﻿:root {
  font-family: Inter, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  color: #2b2b2b;
  background: #f1eee9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 22% 10%, rgba(238, 207, 210, .28), transparent 24%),
    linear-gradient(135deg, #fbfaf8, #ede9e1);
}

.phone {
  width: min(100%, 430px);
  height: min(900px, calc(100vh - 44px));
  min-height: 720px;
  overflow: hidden;
  position: relative;
  border: 10px solid #151515;
  border-radius: 46px;
  background: #fafaf7;
  box-shadow: 0 28px 70px rgba(43, 43, 43, .18);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 118px;
  height: 31px;
  border-radius: 18px;
  background: #050505;
  transform: translateX(-50%);
  z-index: 4;
}

.topbar {
  height: 116px;
  padding: 28px 26px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  background: linear-gradient(#fafaf7 78%, rgba(250, 250, 247, 0));
}

.eyebrow,
.muted,
.section-label {
  margin: 0;
  color: #69655f;
  font-size: 12px;
}

.topbar h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 650;
}

h3 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
}

p {
  color: #5c5852;
  font-size: 13px;
  line-height: 1.45;
}

.icon-row {
  display: flex;
  gap: 8px;
}

.icon-button,
.round-add,
.back-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 7px 24px rgba(70, 62, 50, .08);
}

.content {
  height: calc(100% - 206px);
  overflow-y: auto;
  padding: 0 20px 24px;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.view {
  animation: enter .35s ease both;
}

.stack {
  display: grid;
  gap: 16px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.today-hero,
.panel,
.calendar-card,
.wake-card,
.profile-card,
.folder-card,
.item-card,
.look-card,
.model-panel,
.sheet {
  border: 1px solid rgba(234, 231, 226, .86);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 36px rgba(76, 68, 57, .08);
}

.today-hero {
  min-height: 176px;
  display: grid;
  grid-template-columns: 1.1fr .85fr;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(237, 231, 221, .9), rgba(250, 250, 247, .88)),
    url("data:image/svg+xml,%3Csvg width='140' height='160' viewBox='0 0 140 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23eecfd2' stroke-width='1.2' opacity='.48'%3E%3Cpath d='M93 87c23-15 31-42 20-69-20 13-34 35-20 69Z'/%3E%3Cpath d='M87 94c7-28-5-51-31-64-8 25 2 51 31 64Z'/%3E%3Cpath d='M95 99c29-1 50-18 58-45-28-2-52 12-58 45Z'/%3E%3Cpath d='M88 95c8 24 7 44-4 61' stroke='%23899b82'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right bottom;
  background-repeat: no-repeat;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-actions button {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 20px;
  background: #fff;
  color: #3f3b36;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(76, 68, 57, .07);
}

.main-card,
.calendar-card,
.wake-card,
.profile-card {
  border-radius: 26px;
  padding: 18px;
}

.button-row,
.section-head,
.folder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.button-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.primary-button,
.soft-button,
.tear-button,
.wake-card button,
.restore-card,
.full {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.primary-button {
  background: #2b2b2b;
  color: #fff;
}

.soft-button,
.tear-button,
.restore-card,
.wake-card button {
  background: #ede7dd;
}

.calendar-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdf9, #f3eadc);
  transform-origin: right center;
  transition: transform .35s ease, opacity .25s ease;
  touch-action: pan-y;
}

.calendar-pin {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8f2e8;
  color: #6b6257;
  font-size: 12px;
  font-weight: 650;
}

.fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 24px 0 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(200, 183, 166, .28));
  box-shadow: inset 10px 10px 20px rgba(255, 255, 255, .8);
}

.swatches {
  display: flex;
  gap: 8px;
  margin: 12px 0 15px;
}

.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(42, 34, 28, .12);
}

.restore-card {
  width: 100%;
}

.wake-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, #f8efee, #ffffff);
}

.section-head h3,
.section-head h2 {
  margin: 0;
}

.section-head button:not(.round-add):not(.back-button) {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: #56514c;
  font-size: 12px;
  font-weight: 650;
}

.look-strip,
.picker-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.look-strip::-webkit-scrollbar,
.picker-strip::-webkit-scrollbar {
  display: none;
}

.look-card {
  min-height: 152px;
  padding: 11px;
  border-radius: 10px;
  text-align: left;
}

.look-visual {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.look-card strong,
.item-card strong,
.picker-card span {
  display: block;
  overflow: hidden;
  color: #34302c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.look-card span,
.item-card span {
  color: #746f68;
  font-size: 11px;
}

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

.folder-card {
  min-height: 172px;
  position: relative;
  overflow: hidden;
  padding: 20px 16px 14px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--tone), rgba(255, 255, 255, .72));
  text-align: left;
}

.folder-tab {
  position: absolute;
  top: 0;
  left: 18px;
  width: 72px;
  height: 19px;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, .64);
}

.folder-title strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 650;
}

.folder-title span {
  font-size: 11px;
  color: #68635d;
}

.folder-title svg {
  width: 31px;
  height: 31px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
}

.folder-preview {
  height: 95px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0;
}

.back-button {
  width: auto;
  padding: 0 13px;
  grid-auto-flow: column;
  gap: 5px;
  background: #fff;
  font-size: 13px;
}

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

.chips button,
.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #5c5751;
  font-size: 13px;
  white-space: nowrap;
}

.chips .active,
.segmented .active {
  background: #c9d9c3;
  color: #243020;
  font-weight: 700;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.item-card {
  min-height: 182px;
  padding: 13px;
  border-radius: 22px;
  text-align: left;
}

.item-card .clothing-art {
  height: 112px;
  margin: 0 auto 8px;
}

.model-panel {
  padding: 15px;
  border-radius: 30px;
  background: linear-gradient(160deg, #f7f5f2, #ffffff);
}

.model {
  height: 322px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 25px;
  background:
    linear-gradient(#ffffff, rgba(237, 231, 221, .52)),
    radial-gradient(circle at 50% 24%, rgba(238, 207, 210, .3), transparent 28%);
}

.head {
  position: absolute;
  top: 22px;
  width: 42px;
  height: 48px;
  border-radius: 45% 45% 48% 48%;
  background: #e8d7c8;
}

.neck {
  position: absolute;
  top: 64px;
  width: 18px;
  height: 28px;
  border-radius: 0 0 8px 8px;
  background: #e8d7c8;
}

.body-line,
.legs-line {
  position: absolute;
  border: 2px solid rgba(99, 90, 80, .28);
}

.body-line {
  top: 84px;
  width: 92px;
  height: 106px;
  border-radius: 45px 45px 28px 28px;
  border-bottom: 0;
}

.legs-line {
  top: 184px;
  width: 78px;
  height: 116px;
  border-top: 0;
  border-radius: 0 0 34px 34px;
}

.worn {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.worn-top {
  top: 83px;
  width: 132px;
  height: 112px;
}

.worn-bottom {
  top: 169px;
  width: 136px;
  height: 132px;
}

.worn .clothing-art {
  width: 100%;
  height: 100%;
}

.outfit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #45413c;
  font-size: 13px;
  font-weight: 650;
}

.picker-strip {
  grid-auto-columns: 118px;
}

.picker-card {
  min-height: 128px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid #eae7e2;
  border-radius: 18px;
  background: #fff;
  transition: transform .2s ease, border .2s ease;
}

.picker-card.selected {
  border-color: #9aad91;
  transform: translateY(-3px);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  padding: 8px 0 2px;
  background: linear-gradient(rgba(250, 250, 247, 0), #fafaf7 28%);
}

.profile-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 15px;
  align-items: center;
  background: linear-gradient(145deg, #fff, #f2eadf);
}

.avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c9d9c3;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 68, 57, .07);
}

.stat strong {
  font-size: 24px;
}

.stat span {
  color: #67615b;
  font-size: 12px;
}

.list-panel {
  display: grid;
  padding: 8px 16px;
}

.list-panel button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid #efebe5;
  font-size: 14px;
}

.list-panel button:last-child {
  border-bottom: 0;
}

.clothing-art {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 9px rgba(56, 46, 37, .12));
}

.clothing-art.compact {
  width: 68px;
  height: 68px;
}

.clothing-art svg {
  width: 100%;
  height: 100%;
}

.cloth-main {
  fill: var(--tone);
  stroke: rgba(43, 43, 43, .16);
  stroke-width: 1.8;
}

.cloth-accent {
  fill: var(--accent);
  opacity: .65;
}

.cloth-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 2;
  opacity: .85;
}

.mini-look {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: end;
  background: rgba(43, 43, 43, .18);
  backdrop-filter: blur(4px);
}

.sheet {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 28px 28px 34px 34px;
  background: #fffdf9;
  animation: sheetUp .28s ease both;
}

@keyframes sheetUp {
  from {
    transform: translateY(28px);
  }
}

.upload-box {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed #d7cfc3;
  border-radius: 22px;
  background: #faf7f1;
  color: #736d65;
  font-size: 13px;
}

.full {
  width: 100%;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 12;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(43, 43, 43, .9);
  color: #fff;
  text-align: center;
  font-size: 13px;
  transform: translateX(-50%);
  animation: toast .25s ease both;
}

@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.nav {
  height: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 18px 14px;
  border-top: 1px solid rgba(234, 231, 226, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.nav button {
  display: grid;
  place-items: center;
  gap: 4px;
  background: transparent;
  color: #2f2b27;
  font-size: 11px;
  font-weight: 650;
}

.nav span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}

.nav .active span {
  background: #c9d9c3;
  transform: translateY(-2px);
}

.nav .featured span {
  width: 64px;
  height: 64px;
  margin-top: -26px;
  background: #b9bea0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(95, 105, 75, .23);
}

.nav .featured.active span {
  background: #9fab86;
}

/* Keep navigation controls inside the phone frame after text changes. */
.nav {
  overflow: visible;
}

.nav button,
.quick-actions button {
  min-width: 0;
}

.nav button {
  white-space: nowrap;
}

.quick-actions button {
  overflow: hidden;
}

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

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

  .phone::before {
    top: 12px;
  }
}

@media (max-width: 370px) {
  .topbar {
    padding-inline: 18px;
  }

  .content {
    padding-inline: 14px;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .today-hero {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Final closet layout: fixed image zones, no text overlap. */
.camera-upload-card {
  min-height: 56px;
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(234, 231, 226, .78);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(237,231,221,.78));
  box-shadow: 0 10px 24px rgba(76, 68, 57, .07);
  text-align: left;
}

.camera-upload-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #c9d9c3;
  color: #fff;
}

.camera-upload-card strong {
  display: block;
  font-size: 13px;
}

.camera-upload-card small {
  display: block;
  margin-top: 3px;
  color: #746f68;
  font-size: 10px;
}

.camera-upload-card i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #5d5750;
}

.category-card {
  min-height: 152px;
  display: grid;
  grid-template-rows: 38px 1fr;
  padding: 17px 13px 9px 15px;
}

.category-card .folder-title {
  min-height: 36px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.category-preview {
  height: 86px;
  max-height: 86px;
  min-height: 86px;
  overflow: hidden;
  align-items: center;
  padding: 0;
}

.category-preview .clothing-art.photo {
  margin-left: -7px;
  transform: none;
}

.category-preview .clothing-art.photo:first-child {
  margin-left: 0;
}

.category-card:hover .category-preview .clothing-art,
.category-card:hover .category-preview .clothing-art:nth-child(1),
.category-card:hover .category-preview .clothing-art:nth-child(2),
.category-card:hover .category-preview .clothing-art:nth-child(3) {
  transform: translateY(-2px);
}

.category-preview .cat-top,
.category-preview .cat-outer {
  width: 47px;
  height: 78px;
}

.category-preview .cat-bottom {
  width: 43px;
  height: 82px;
}

.category-preview .cat-shoe {
  width: 58px;
  height: 45px;
}

.category-preview .cat-bag {
  width: 55px;
  height: 58px;
}

.category-preview .cat-accessory {
  width: 52px;
  height: 45px;
}

.item-grid {
  align-items: stretch;
}

.item-card {
  min-height: 190px;
  display: grid;
  grid-template-rows: 124px 18px 15px;
  gap: 5px;
  padding: 11px;
  overflow: hidden;
}

.item-card .clothing-art.photo {
  align-self: center;
  justify-self: center;
  max-width: 126px;
  width: 100%;
  height: 116px;
  margin: 0;
}

.item-card.item-bottom .clothing-art.photo {
  max-width: 100px;
  height: 122px;
}

.item-card.item-shoe .clothing-art.photo {
  max-width: 132px;
  height: 96px;
}

.item-card.item-bag .clothing-art.photo {
  max-width: 124px;
  height: 106px;
}

.item-card.item-accessory .clothing-art.photo {
  max-width: 124px;
  height: 90px;
}

.item-card strong,
.item-card span {
  position: relative;
  z-index: 2;
  line-height: 1.15;
}

.closet-inspiration .look-card {
  min-height: 154px;
  display: grid;
  grid-template-rows: 12px 104px 16px;
  overflow: hidden;
}

.closet-inspiration .look-visual {
  height: 104px;
  max-height: 104px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

.real-look-visual .clothing-art.photo:nth-child(1) {
  width: 42px;
  height: 70px;
}

.real-look-visual .clothing-art.photo:nth-child(2) {
  width: 38px;
  height: 78px;
}

.real-look-visual .clothing-art.photo:nth-child(3) {
  width: 39px;
  height: 45px;
}

.real-look-visual .clothing-art.photo:nth-child(4) {
  width: 42px;
  height: 36px;
}

.closet-inspiration .look-card strong {
  align-self: end;
  line-height: 1.1;
}

/* Complete-fit image rules: never crop wardrobe assets inside components. */
.clothing-art.photo,
.clothing-art.photo.compact {
  display: grid;
  place-items: center;
  overflow: visible;
}

.clothing-art.photo img,
.category-preview .clothing-art.photo img,
.item-card .clothing-art.photo img,
.picker-card .clothing-art.photo img,
.look-visual .clothing-art.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.category-card {
  overflow: hidden;
}

.category-preview {
  height: 88px;
  overflow: visible;
  align-items: center;
}

.category-preview .clothing-art.photo {
  margin-left: -6px;
  flex: 0 0 auto;
}

.category-preview .cat-top,
.category-preview .cat-outer {
  width: 48px;
  height: 76px;
}

.category-preview .cat-bottom {
  width: 46px;
  height: 82px;
}

.category-preview .cat-shoe {
  width: 58px;
  height: 48px;
}

.category-preview .cat-bag {
  width: 56px;
  height: 62px;
}

.category-preview .cat-accessory {
  width: 54px;
  height: 48px;
}

.item-card {
  min-height: 188px;
  overflow: hidden;
}

.item-card .clothing-art.photo {
  width: 100%;
  max-width: 128px;
  height: 118px;
  margin: 0 auto 8px;
}

.item-card.item-bottom .clothing-art.photo {
  max-width: 112px;
  height: 126px;
}

.item-card.item-shoe .clothing-art.photo {
  max-width: 138px;
  height: 92px;
  margin-top: 17px;
}

.item-card.item-bag .clothing-art.photo {
  max-width: 132px;
  height: 106px;
  margin-top: 6px;
}

.item-card.item-accessory .clothing-art.photo {
  max-width: 136px;
  height: 92px;
  margin-top: 16px;
}

.picker-card .clothing-art.photo {
  width: 82px;
  height: 82px;
}

.picker-card .cat-bottom {
  height: 90px;
}

.real-look-visual .clothing-art.photo {
  flex: 0 0 auto;
  object-fit: contain;
}

/* Real wardrobe asset sizing */
.clothing-art.photo img {
  object-position: center bottom;
}

.category-preview .clothing-art.photo {
  width: 64px;
  height: 78px;
}

.closet-inspiration .look-visual {
  height: 94px;
}

.closet-inspiration .look-visual .clothing-art.photo {
  width: 46px;
  height: 70px;
  margin-left: -7px;
}

.closet-inspiration .look-visual .clothing-art.photo:first-child {
  margin-left: 0;
}

.real-look-visual {
  align-items: end;
  gap: 0;
}

.real-look-visual .clothing-art.photo:nth-child(1) {
  width: 54px;
  height: 76px;
}

.real-look-visual .clothing-art.photo:nth-child(2) {
  width: 52px;
  height: 82px;
}

.real-look-visual .clothing-art.photo:nth-child(3),
.real-look-visual .clothing-art.photo:nth-child(4) {
  width: 43px;
  height: 52px;
}

.item-card .clothing-art.photo {
  width: 100%;
  height: 118px;
}

/* Closet reference-image pass */
.closet-home {
  gap: 12px;
  padding-top: 2px;
}

.closet-home .section-head {
  margin-top: 0;
}

.category-grid {
  gap: 8px;
}

.category-card {
  min-height: 151px;
  padding: 19px 14px 10px 16px;
  border: 0;
  border-radius: 27px 35px 25px 31px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .72), transparent 26%),
    linear-gradient(146deg, color-mix(in srgb, var(--tone) 82%, #fff 18%), rgba(255, 255, 255, .72));
  box-shadow:
    inset 0 0 0 1px rgba(234, 231, 226, .62),
    0 8px 24px rgba(65, 56, 46, .055);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.category-card:nth-child(1) {
  background: linear-gradient(148deg, #f5eadb, #fbf8f1 86%);
}

.category-card:nth-child(2) {
  background: linear-gradient(148deg, #ece9dc, #fbfaf5 86%);
}

.category-card:nth-child(3) {
  background: linear-gradient(148deg, #eee8dd, #fbf8f2 86%);
}

.category-card:nth-child(4) {
  background: linear-gradient(148deg, #f5e9e4, #fbf7f1 86%);
}

.category-card:nth-child(5) {
  background: linear-gradient(148deg, #f6e8df, #fbf7f3 86%);
}

.category-card:nth-child(6) {
  background: linear-gradient(148deg, #ece9df, #fbfaf5 86%);
}

.category-card:active {
  transform: scale(.975) translateY(1px);
  filter: saturate(.98);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(234, 231, 226, .72),
    0 14px 28px rgba(65, 56, 46, .08);
}

.category-card .folder-title strong {
  color: #34302c;
  font-size: 15px;
  line-height: 1.05;
}

.category-card .folder-title span {
  display: block;
  margin-top: 5px;
  color: #716960;
  font-size: 9.5px;
  font-weight: 650;
}

.card-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #5a534d;
  box-shadow: 0 7px 17px rgba(58, 49, 40, .08);
  transition: transform .22s ease, background .22s ease;
}

.category-card:hover .card-arrow {
  transform: translateX(2px);
  background: #fff;
}

.category-card .folder-title > svg,
.category-card .folder-title > i > svg {
  width: 15px;
  height: 15px;
  padding: 0;
  background: transparent;
}

.category-preview {
  height: 87px;
  align-items: end;
  justify-content: center;
  padding-top: 5px;
}

.category-preview .clothing-art {
  width: 58px;
  height: 74px;
  margin-left: -8px;
  transform-origin: bottom center;
  transition: transform .24s ease;
}

.category-preview .clothing-art:nth-child(1) {
  transform: translateY(1px) rotate(-1deg);
}

.category-preview .clothing-art:nth-child(2) {
  transform: translateY(-3px);
}

.category-preview .clothing-art:nth-child(3) {
  transform: translateY(2px) rotate(1.4deg);
}

.category-card:hover .category-preview .clothing-art:nth-child(1) {
  transform: translateY(-2px) rotate(-2deg);
}

.category-card:hover .category-preview .clothing-art:nth-child(2) {
  transform: translateY(-6px);
}

.category-card:hover .category-preview .clothing-art:nth-child(3) {
  transform: translateY(-1px) rotate(2deg);
}

.category-preview .clothing-art:first-child {
  margin-left: 0;
}

.closet-flower {
  top: 179px;
  right: -38px;
  width: 156px;
  height: 250px;
  opacity: .66;
  z-index: 3;
}

.closet-inspiration {
  position: relative;
  z-index: 4;
}

.closet-inspiration .section-head h3 {
  font-size: 13px;
  font-weight: 800;
}

.inspo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspo-actions button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  color: #615b54;
  font-size: 10.5px;
  font-weight: 800;
}

.closet-inspiration .look-strip {
  grid-auto-columns: 119px;
  gap: 9px;
}

.closet-inspiration .look-card {
  min-height: 144px;
  padding: 8px 8px 10px;
  border: 1px solid rgba(234, 231, 226, .78);
  border-radius: 9px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 20px rgba(65, 56, 46, .055);
  transition: transform .22s ease, box-shadow .22s ease;
}

.closet-inspiration .look-card:active {
  transform: scale(.98);
}

.closet-inspiration .look-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(65, 56, 46, .08);
}

.look-dots {
  height: 10px;
  color: #69645e;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}

.closet-inspiration .look-visual {
  height: 92px;
  margin-bottom: 4px;
}

.closet-inspiration .look-visual .clothing-art {
  width: 56px;
  height: 72px;
}

.closet-inspiration .look-card strong {
  font-size: 9.5px;
  font-weight: 800;
}

.closet-inspiration .look-card span {
  display: none;
}

.clothing-art svg {
  overflow: visible;
}

.cloth-main {
  stroke-width: 1.2;
}

/* Closence V3 visual pass */
.content {
  padding: 0 18px 24px;
}

.closet-home {
  position: relative;
  gap: 13px;
}

.upload-entry {
  justify-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #4c4741;
  box-shadow: 0 8px 22px rgba(76, 68, 57, .08);
  font-size: 12px;
  font-weight: 650;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.category-card {
  min-height: 142px;
  position: relative;
  overflow: hidden;
  padding: 18px 15px 12px;
  border: 1px solid rgba(234, 231, 226, .84);
  border-radius: 25px 34px 24px 30px;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .74), transparent 30%),
    linear-gradient(145deg, var(--tone), rgba(255, 255, 255, .68));
  box-shadow: 0 13px 30px rgba(76, 68, 57, .08);
  text-align: left;
}

.category-card:nth-child(2n) {
  border-radius: 31px 24px 32px 22px;
}

.category-card:nth-child(3n) {
  border-radius: 23px 28px 25px 34px;
}

.category-card .folder-title {
  align-items: flex-start;
}

.category-card .folder-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.category-card .folder-title svg {
  width: 28px;
  height: 28px;
  padding: 7px;
}

.category-preview {
  height: 82px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0;
  padding-top: 3px;
}

.category-preview .clothing-art {
  margin-left: -8px;
}

.category-preview .clothing-art:first-child {
  margin-left: 0;
}

.closet-flower {
  position: absolute;
  right: -29px;
  top: 164px;
  width: 146px;
  height: 236px;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
  background-image: url("data:image/svg+xml,%3Csvg width='150' height='240' viewBox='0 0 150 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M81 96C98 68 95 42 73 14C55 44 57 75 81 96Z' fill='%23eecfd2' fill-opacity='.42' stroke='%23dfb5bb'/%3E%3Cpath d='M78 101C56 76 32 69 3 82C26 106 52 114 78 101Z' fill='%23eecfd2' fill-opacity='.38' stroke='%23dfb5bb'/%3E%3Cpath d='M87 105C119 95 135 74 134 42C104 52 84 75 87 105Z' fill='%23f2d7da' fill-opacity='.42' stroke='%23dfb5bb'/%3E%3Cpath d='M82 112C106 126 133 123 154 102C128 89 101 90 82 112Z' fill='%23f1cfd4' fill-opacity='.38' stroke='%23dfb5bb'/%3E%3Cpath d='M82 108C95 153 91 195 72 232' stroke='%23899b82' stroke-opacity='.52' stroke-width='2'/%3E%3Cpath d='M75 163C53 151 34 155 18 175C39 184 59 182 75 163Z' fill='%23c9d9c3' fill-opacity='.24' stroke='%23899b82' stroke-opacity='.36'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.model-panel {
  padding: 12px;
}


.file-input {
  display: none;
}

.upload-box {
  cursor: pointer;
}

.hint {
  margin: -4px 2px 0;
  color: #837b72;
  font-size: 12px;
}

.clothing-art.photo {
  overflow: visible;
}

.clothing-art.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.worn .clothing-art.photo img {
  filter: drop-shadow(0 8px 7px rgba(40, 34, 29, .18));
}

.today-page {
  gap: 14px;
}

.today-date-panel,
.today-outfit-card,
.wear-calendar-card,
.day-detail-card {
  border: 1px solid rgba(234, 231, 226, .86);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(76, 68, 57, .08);
}

.today-date-panel {
  min-height: 128px;
  display: grid;
  grid-template-columns: 1fr 122px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(237, 231, 221, .88), rgba(255, 255, 255, .82)),
    radial-gradient(circle at 86% 20%, rgba(201, 217, 195, .34), transparent 34%);
}

.today-date-panel h2 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.weather-pill {
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
}

.weather-pill span {
  font-size: 24px;
  font-weight: 700;
}

.weather-pill strong,
.weather-pill small {
  font-size: 12px;
}

.weather-pill small {
  color: #777168;
}

.today-outfit-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf9, #f5eee5);
}

.outfit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0e7dc;
  color: #74695c;
  font-size: 11px;
  font-weight: 700;
}

.record-state.done {
  background: #c9d9c3;
  color: #2f442a;
}

.today-outfit-body {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: stretch;
}

.photo-upload {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 4px;
  overflow: hidden;
  border: 1px dashed #d9d0c4;
  border-radius: 24px;
  background: rgba(250, 247, 241, .9);
  color: #5c554d;
  cursor: pointer;
}

.photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload strong {
  font-size: 13px;
}

.photo-upload small {
  color: #81786d;
  font-size: 11px;
}

.today-look-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .64);
}

.compact-inspiration {
  cursor: pointer;
}

.inspiration-detail {
  animation: paperOpen .28s ease both;
}

@keyframes paperOpen {
  from {
    opacity: .2;
    transform: translateY(16px) scale(.96) rotate(-1deg);
  }
}

.inspiration-items {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.wear-calendar-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #fffdf9, #f4eee5);
}

.mini-segment {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #f0e8dc;
}

.mini-segment button {
  min-width: 36px;
  min-height: 28px;
  border-radius: 999px;
  background: transparent;
  color: #6d645b;
  font-size: 12px;
  font-weight: 700;
}

.mini-segment .active {
  background: #fff;
  color: #2b2b2b;
}

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

.day-card {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(76, 68, 57, .06);
}

.day-card.today {
  background: #e8eadc;
}

.day-card span {
  color: #5d554d;
  font-size: 11px;
  font-weight: 700;
}

.day-card div {
  display: flex;
  justify-content: center;
}

.day-card .clothing-art {
  width: 32px;
  height: 32px;
  margin-left: -6px;
}

.day-card .clothing-art:first-child {
  margin-left: 0;
}

.magazine-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.day-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(250, 250, 247, .58);
  backdrop-filter: blur(8px);
}

.day-detail-card {
  width: min(100%, 320px);
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 30px;
  text-align: center;
  animation: enter .28s ease both;
}

.close-floating {
  position: absolute;
  top: 12px;
  right: 12px;
}

.big-record-look {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 26px;
  background: linear-gradient(145deg, #f8f2e8, #fff);
}

.big-record-look .clothing-art {
  width: 120px;
  height: 120px;
}

@media (max-width: 370px) {
  .today-date-panel,
  .today-outfit-body {
    grid-template-columns: 1fr;
  }

  .calendar-grid-mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FINAL OVERRIDE: fit all clean wardrobe images inside cards, keep arrows/text visible. */
.category-card {
  display: grid !important;
  grid-template-rows: 38px 84px !important;
  min-height: 150px !important;
  padding: 16px 13px 10px 15px !important;
  overflow: hidden !important;
}

.category-card .folder-title {
  position: relative !important;
  z-index: 5 !important;
  min-height: 36px !important;
  align-items: start !important;
}

.category-card .folder-title strong,
.category-card .folder-title span {
  position: relative !important;
  z-index: 6 !important;
}

.card-arrow {
  position: relative !important;
  z-index: 7 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  background: rgba(255, 255, 255, .92) !important;
}

.category-preview {
  position: relative !important;
  z-index: 2 !important;
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.category-preview .clothing-art,
.category-preview .clothing-art.photo {
  flex: 0 0 auto !important;
  margin-left: -5px !important;
  transform: none !important;
  overflow: hidden !important;
}

.category-preview .clothing-art:first-child,
.category-preview .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.category-preview .clothing-art.photo img,
.item-card .clothing-art.photo img,
.look-visual .clothing-art.photo img,
.picker-card .clothing-art.photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

.category-preview .cat-top {
  width: 39px !important;
  height: 66px !important;
}

.category-preview .cat-outer {
  width: 43px !important;
  height: 68px !important;
}

.category-preview .cat-bottom {
  width: 36px !important;
  height: 72px !important;
}

.category-preview .cat-shoe {
  width: 52px !important;
  height: 38px !important;
}

.category-preview .cat-bag {
  width: 50px !important;
  height: 48px !important;
}

.category-preview .cat-accessory {
  width: 48px !important;
  height: 36px !important;
}

.category-card:hover .category-preview .clothing-art,
.category-card:hover .category-preview .clothing-art:nth-child(1),
.category-card:hover .category-preview .clothing-art:nth-child(2),
.category-card:hover .category-preview .clothing-art:nth-child(3) {
  transform: translateY(-1px) !important;
}

.item-card {
  display: grid !important;
  grid-template-rows: 118px 18px 15px !important;
  min-height: 178px !important;
  padding: 10px !important;
  gap: 5px !important;
  overflow: hidden !important;
}

.item-card .clothing-art.photo {
  align-self: center !important;
  justify-self: center !important;
  width: 100% !important;
  max-width: 112px !important;
  height: 108px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

.item-card.item-top .clothing-art.photo,
.item-card.item-outer .clothing-art.photo {
  max-width: 104px !important;
  height: 108px !important;
}

.item-card.item-bottom .clothing-art.photo {
  max-width: 82px !important;
  height: 112px !important;
}

.item-card.item-shoe .clothing-art.photo {
  max-width: 116px !important;
  height: 78px !important;
}

.item-card.item-bag .clothing-art.photo {
  max-width: 110px !important;
  height: 88px !important;
}

.item-card.item-accessory .clothing-art.photo {
  max-width: 108px !important;
  height: 70px !important;
}

.item-card strong,
.item-card span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.closet-inspiration .look-card {
  display: grid !important;
  grid-template-rows: 10px 92px 16px !important;
  min-height: 132px !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.closet-inspiration .look-visual,
.real-look-visual {
  height: 92px !important;
  max-height: 92px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  gap: 0 !important;
}

.real-look-visual .clothing-art.photo {
  flex: 0 0 auto !important;
  margin-left: -6px !important;
  overflow: hidden !important;
}

.real-look-visual .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.real-look-visual .cat-top,
.real-look-visual .cat-outer {
  width: 34px !important;
  height: 58px !important;
}

.real-look-visual .cat-bottom {
  width: 30px !important;
  height: 62px !important;
}

.real-look-visual .cat-bag {
  width: 34px !important;
  height: 36px !important;
}

.real-look-visual .cat-shoe {
  width: 38px !important;
  height: 28px !important;
}

.real-look-visual .cat-accessory {
  width: 30px !important;
  height: 24px !important;
}

.closet-inspiration .look-card strong {
  align-self: end !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Single-item asset layout: balanced spacing and visible controls. */
.category-preview {
  justify-content: space-evenly !important;
  gap: 4px !important;
}

.category-preview .clothing-art,
.category-preview .clothing-art.photo,
.real-look-visual .clothing-art.photo {
  margin-left: 0 !important;
}

.category-preview .cat-top {
  width: 40px !important;
  height: 66px !important;
}

.category-preview .cat-outer {
  width: 42px !important;
  height: 67px !important;
}

.category-preview .cat-bottom {
  width: 35px !important;
  height: 72px !important;
}

.category-preview .cat-shoe {
  width: 51px !important;
  height: 39px !important;
}

.category-preview .cat-bag {
  width: 48px !important;
  height: 50px !important;
}

.category-preview .cat-accessory {
  width: 45px !important;
  height: 39px !important;
}

.card-arrow {
  z-index: 20 !important;
  box-shadow: 0 8px 18px rgba(58, 49, 40, .12) !important;
}

.real-look-visual {
  justify-content: space-evenly !important;
}

.real-look-visual .cat-top,
.real-look-visual .cat-outer {
  width: 31px !important;
  height: 54px !important;
}

.real-look-visual .cat-bottom {
  width: 27px !important;
  height: 58px !important;
}

.real-look-visual .cat-bag {
  width: 32px !important;
  height: 32px !important;
}

.real-look-visual .cat-shoe {
  width: 35px !important;
  height: 26px !important;
}

/* Closet home thumbnail scale-up: fuller cards without touching labels/arrows. */
.category-preview {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  gap: 5px !important;
  justify-content: center !important;
}

.category-preview .cat-top {
  width: 46px !important;
  height: 76px !important;
}

.category-preview .cat-outer {
  width: 48px !important;
  height: 78px !important;
}

.category-preview .cat-bottom {
  width: 40px !important;
  height: 82px !important;
}

.category-preview .cat-shoe {
  width: 58px !important;
  height: 45px !important;
}

.category-preview .cat-bag {
  width: 56px !important;
  height: 58px !important;
}

.category-preview .cat-accessory {
  width: 52px !important;
  height: 44px !important;
}

/* Fine tune closet cards and poster-style inspiration cards. */
.category-preview {
  gap: 1px !important;
  justify-content: center !important;
}

.category-preview .cat-top {
  width: 51px !important;
  height: 80px !important;
}

.category-preview .cat-outer {
  width: 52px !important;
  height: 80px !important;
}

.category-preview .cat-bottom {
  width: 44px !important;
  height: 84px !important;
}

.category-preview .cat-shoe {
  width: 62px !important;
  height: 45px !important;
}

.category-preview .cat-bag {
  width: 60px !important;
  height: 58px !important;
}

.category-preview .cat-accessory {
  width: 56px !important;
  height: 42px !important;
}

.closet-inspiration .look-strip {
  grid-auto-columns: 128px !important;
  gap: 9px !important;
}

.closet-inspiration .poster-look-card {
  min-height: 186px !important;
  display: grid !important;
  grid-template-rows: 118px 1fr !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(221, 214, 204, .9) !important;
  border-radius: 10px !important;
  background: #fffaf2 !important;
  box-shadow: 0 7px 18px rgba(65, 56, 46, .08) !important;
  text-align: left !important;
}

.poster-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--poster);
}

.poster-blob {
  position: absolute;
  width: 104px;
  height: 82px;
  border-radius: 48% 52% 45% 55% / 56% 42% 58% 44%;
  background: rgba(255, 255, 255, .88);
  transform: rotate(-7deg);
}

.poster-spark {
  position: absolute;
  z-index: 3;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.poster-spark.left {
  top: 9px;
  left: 10px;
}

.poster-spark.right {
  top: 9px;
  right: 10px;
}

.poster-look-card .real-look-visual {
  position: relative !important;
  z-index: 4 !important;
  width: 112px !important;
  height: 100px !important;
  max-height: 100px !important;
  display: flex !important;
  align-items: end !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: visible !important;
}

.poster-look-card .real-look-visual .clothing-art.photo {
  margin-left: -5px !important;
  overflow: visible !important;
}

.poster-look-card .real-look-visual .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.poster-look-card .real-look-visual .cat-top,
.poster-look-card .real-look-visual .cat-outer {
  width: 42px !important;
  height: 70px !important;
}

.poster-look-card .real-look-visual .cat-bottom {
  width: 34px !important;
  height: 76px !important;
}

.poster-look-card .real-look-visual .cat-bag {
  width: 38px !important;
  height: 42px !important;
}

.poster-look-card .real-look-visual .cat-shoe {
  width: 40px !important;
  height: 30px !important;
}

.poster-copy {
  padding: 7px 8px 6px !important;
  background: #fffaf2;
}

.poster-copy strong {
  display: block;
  margin: 0 0 2px;
  color: #2b2b2b;
  font-size: 13px !important;
  line-height: 1.05;
  font-weight: 850 !important;
}

.poster-copy p {
  height: 27px;
  margin: 0;
  color: #47413b;
  font-size: 10px;
  line-height: 1.22;
  overflow: hidden;
}

.poster-icons {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  color: #4e4943;
  font-size: 19px;
  line-height: 1;
}

/* Restore inspiration strip and match reference closet-card spacing. */
.category-card {
  grid-template-rows: 36px 94px !important;
  min-height: 150px !important;
  padding: 15px 10px 7px 13px !important;
}

.category-preview {
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
}

.category-preview .clothing-art.photo {
  margin-left: -3px !important;
}

.category-preview .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.category-preview .cat-top {
  width: 55px !important;
  height: 84px !important;
}

.category-preview .cat-outer {
  width: 56px !important;
  height: 86px !important;
}

.category-preview .cat-bottom {
  width: 48px !important;
  height: 90px !important;
}

.category-preview .cat-shoe {
  width: 66px !important;
  height: 49px !important;
}

.category-preview .cat-bag {
  width: 64px !important;
  height: 62px !important;
}

.category-preview .cat-accessory {
  width: 60px !important;
  height: 48px !important;
}

.closet-inspiration .look-strip {
  grid-auto-columns: 120px !important;
  gap: 9px !important;
}

.closet-inspiration .look-card,
.closet-inspiration .restored-look-card {
  min-height: 148px !important;
  display: grid !important;
  grid-template-rows: 10px 96px 15px !important;
  padding: 8px !important;
  border: 1px solid rgba(234, 231, 226, .78) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .7) !important;
  box-shadow: 0 8px 20px rgba(65, 56, 46, .055) !important;
  overflow: hidden !important;
  text-align: left !important;
}

.closet-inspiration .look-visual,
.closet-inspiration .real-look-visual {
  height: 96px !important;
  max-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.closet-inspiration .real-look-visual .clothing-art.photo {
  margin-left: -5px !important;
  overflow: hidden !important;
}

.closet-inspiration .real-look-visual .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.closet-inspiration .real-look-visual .cat-top,
.closet-inspiration .real-look-visual .cat-outer {
  width: 38px !important;
  height: 62px !important;
}

.closet-inspiration .real-look-visual .cat-bottom {
  width: 32px !important;
  height: 68px !important;
}

.closet-inspiration .real-look-visual .cat-bag {
  width: 36px !important;
  height: 40px !important;
}

.closet-inspiration .real-look-visual .cat-shoe {
  width: 38px !important;
  height: 28px !important;
}

.closet-inspiration .look-card strong {
  align-self: end !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
}

.closet-inspiration .look-card span {
  display: none !important;
}

/* Center closet home grid and item groups with equal left/right breathing room. */
.content {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.closet-home {
  width: 100% !important;
  justify-items: stretch !important;
}

.category-grid {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
}

.category-card {
  width: 100% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.category-preview {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  gap: 2px !important;
}

.category-preview .clothing-art,
.category-preview .clothing-art.photo,
.category-preview .clothing-art.photo:first-child {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.category-preview .cat-top {
  width: 50px !important;
  height: 82px !important;
}

.category-preview .cat-outer {
  width: 50px !important;
  height: 82px !important;
}

.category-preview .cat-bottom {
  width: 43px !important;
  height: 88px !important;
}

.category-preview .cat-shoe {
  width: 56px !important;
  height: 46px !important;
}

.category-preview .cat-bag {
  width: 55px !important;
  height: 58px !important;
}

.category-preview .cat-accessory {
  width: 52px !important;
  height: 45px !important;
}

.closet-inspiration {
  width: 100% !important;
}

.closet-inspiration .look-strip {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Reference-size pass: larger garments, tighter spacing, fixed floral background. */
.closet-home {
  position: relative !important;
  isolation: isolate !important;
}

.closet-flower {
  position: fixed !important;
  top: 292px !important;
  left: calc(50% + 86px) !important;
  right: auto !important;
  width: 150px !important;
  height: 245px !important;
  z-index: 0 !important;
  transform: none !important;
}

.category-grid,
.closet-inspiration,
.camera-upload-card {
  position: relative !important;
  z-index: 2 !important;
}

.category-card {
  grid-template-rows: 34px 98px !important;
  padding: 14px 8px 6px 11px !important;
}

.category-preview {
  height: 98px !important;
  min-height: 98px !important;
  max-height: 98px !important;
  gap: 0 !important;
}

.category-preview .cat-top {
  width: 55px !important;
  height: 88px !important;
}

.category-preview .cat-outer {
  width: 55px !important;
  height: 90px !important;
}

.category-preview .cat-bottom {
  width: 48px !important;
  height: 94px !important;
}

.category-preview .cat-shoe {
  width: 62px !important;
  height: 50px !important;
}

.category-preview .cat-bag {
  width: 61px !important;
  height: 64px !important;
}

.category-preview .cat-accessory {
  width: 58px !important;
  height: 50px !important;
}

/* Final reference push: denser, larger closet thumbnails like the supplied mock. */
.category-card {
  grid-template-rows: 32px 104px !important;
  min-height: 150px !important;
  padding: 13px 7px 4px 10px !important;
}

.category-preview {
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  gap: 0 !important;
  transform: translateY(-1px);
}

.category-preview .cat-top {
  width: 60px !important;
  height: 94px !important;
}

.category-preview .cat-outer {
  width: 60px !important;
  height: 96px !important;
}

.category-preview .cat-bottom {
  width: 53px !important;
  height: 100px !important;
}

.category-preview .cat-shoe {
  width: 68px !important;
  height: 54px !important;
}

.category-preview .cat-bag {
  width: 67px !important;
  height: 69px !important;
}

.category-preview .cat-accessory {
  width: 64px !important;
  height: 55px !important;
}

.category-card .folder-title {
  z-index: 12 !important;
}

.card-arrow {
  z-index: 30 !important;
}

/* Polished closet-home density: larger items, tighter rhythm, fixed flower layer. */
.closet-home {
  position: relative !important;
  isolation: isolate !important;
}

.closet-flower {
  position: fixed !important;
  top: 292px !important;
  left: calc(50% + 86px) !important;
  right: auto !important;
  width: 150px !important;
  height: 245px !important;
  z-index: 0 !important;
  transform: none !important;
  pointer-events: none !important;
}

.category-grid,
.closet-inspiration,
.camera-upload-card {
  position: relative !important;
  z-index: 3 !important;
}

.category-card {
  grid-template-rows: 30px 109px !important;
  min-height: 150px !important;
  padding: 12px 5px 2px 9px !important;
  overflow: hidden !important;
}

.category-card .folder-title {
  position: relative !important;
  z-index: 20 !important;
  padding-right: 31px !important;
}

.category-card .card-arrow {
  position: absolute !important;
  top: -1px !important;
  right: 0 !important;
  z-index: 40 !important;
}

.category-preview {
  width: 100% !important;
  height: 109px !important;
  min-height: 109px !important;
  max-height: 109px !important;
  gap: 0 !important;
  justify-content: center !important;
  align-items: end !important;
  overflow: hidden !important;
  transform: translateY(-3px) !important;
}

.category-preview .clothing-art,
.category-preview .clothing-art.photo {
  flex: 0 0 auto !important;
  margin-left: -3px !important;
  margin-right: -3px !important;
}

.category-preview .clothing-art:first-child,
.category-preview .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.category-preview .clothing-art:last-child,
.category-preview .clothing-art.photo:last-child {
  margin-right: 0 !important;
}

.category-preview .cat-top {
  width: 59px !important;
  height: 98px !important;
}

.category-preview .cat-outer {
  width: 59px !important;
  height: 100px !important;
}

.category-preview .cat-bottom {
  width: 53px !important;
  height: 104px !important;
}

.category-preview .cat-shoe {
  width: 66px !important;
  height: 56px !important;
}

.category-preview .cat-bag {
  width: 64px !important;
  height: 70px !important;
}

.category-preview .cat-accessory {
  width: 62px !important;
  height: 56px !important;
}

/* Half-step enlargement requested: fuller thumbnails with tighter spacing. */
.category-card {
  grid-template-rows: 29px 112px !important;
  padding: 11px 4px 1px 8px !important;
}

.category-preview {
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  transform: translateY(-4px) !important;
}

.category-preview .clothing-art,
.category-preview .clothing-art.photo {
  margin-left: -5px !important;
  margin-right: -5px !important;
}

.category-preview .cat-top {
  width: 63px !important;
  height: 103px !important;
}

.category-preview .cat-outer {
  width: 63px !important;
  height: 105px !important;
}

.category-preview .cat-bottom {
  width: 56px !important;
  height: 109px !important;
}

.category-preview .cat-shoe {
  width: 70px !important;
  height: 59px !important;
}

.category-preview .cat-bag {
  width: 68px !important;
  height: 74px !important;
}

.category-preview .cat-accessory {
  width: 66px !important;
  height: 60px !important;
}

/* Closet card item enlargement: fuller assets, tighter spacing, centered row. */
.closet-home .category-card {
  grid-template-rows: 28px 116px !important;
  padding: 10px 2px 0 7px !important;
  overflow: hidden !important;
}

.closet-home .category-preview {
  height: 116px !important;
  min-height: 116px !important;
  max-height: 116px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

.closet-home .category-preview .clothing-art,
.closet-home .category-preview .clothing-art.photo {
  flex: 0 0 auto !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
  overflow: visible !important;
  transform: none !important;
}

.closet-home .category-preview .clothing-art:first-child,
.closet-home .category-preview .clothing-art.photo:first-child {
  margin-left: -4px !important;
}

.closet-home .category-preview .clothing-art:last-child,
.closet-home .category-preview .clothing-art.photo:last-child {
  margin-right: -4px !important;
}

.closet-home .category-preview .clothing-art:nth-child(1),
.closet-home .category-preview .clothing-art:nth-child(2),
.closet-home .category-preview .clothing-art:nth-child(3) {
  transform: none !important;
}

.closet-home .category-preview .clothing-art.photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: scale(1.5) !important;
  transform-origin: center center !important;
}

.closet-home .category-preview .cat-top {
  width: 66px !important;
  height: 104px !important;
}

.closet-home .category-preview .cat-outer {
  width: 67px !important;
  height: 106px !important;
}

.closet-home .category-preview .cat-bottom {
  width: 60px !important;
  height: 110px !important;
}

.closet-home .category-preview .cat-shoe {
  width: 72px !important;
  height: 62px !important;
}

.closet-home .category-preview .cat-bag {
  width: 71px !important;
  height: 76px !important;
}

.closet-home .category-preview .cat-accessory {
  width: 70px !important;
  height: 62px !important;
}

.closet-home .category-card:hover .category-preview .clothing-art,
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(1),
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(2),
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(3) {
  transform: translateY(-1px) !important;
}

/* Closet category fine tuning: equal slots, clearer spacing, centered assets. */
.closet-home .category-preview {
  box-sizing: border-box !important;
  padding: 0 7px !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.closet-home .category-preview .clothing-art,
.closet-home .category-preview .clothing-art.photo,
.closet-home .category-preview .clothing-art:first-child,
.closet-home .category-preview .clothing-art.photo:first-child,
.closet-home .category-preview .clothing-art:last-child,
.closet-home .category-preview .clothing-art.photo:last-child {
  flex: 0 0 31.5% !important;
  width: 31.5% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.closet-home .category-preview .clothing-art.photo img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: scale(1.36) !important;
}

.closet-home .folder-top .category-preview,
.closet-home .folder-outer .category-preview,
.closet-home .folder-bag .category-preview {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.closet-home .folder-top .category-preview .clothing-art.photo img,
.closet-home .folder-outer .category-preview .clothing-art.photo img,
.closet-home .folder-bag .category-preview .clothing-art.photo img {
  transform: scale(1.3) !important;
}

.closet-home .folder-bottom .category-preview {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.closet-home .folder-bottom .category-preview .cat-bottom {
  height: 114px !important;
}

.closet-home .folder-bottom .category-preview .clothing-art.photo img {
  transform: scale(1.46) !important;
}

.closet-home .folder-accessory .category-preview {
  padding-left: 8px !important;
  padding-right: 8px !important;
  align-items: center !important;
}

.closet-home .folder-accessory .category-preview .cat-accessory {
  height: 66px !important;
}

.closet-home .folder-accessory .category-preview .clothing-art.photo img {
  transform: scale(1.34) !important;
}

.closet-home .category-card:hover .category-preview .clothing-art,
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(1),
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(2),
.closet-home .category-card:hover .category-preview .clothing-art:nth-child(3) {
  transform: none !important;
}

/* Closet equal-slot refinement: larger items, slightly tighter but still even spacing. */
.closet-home .category-preview {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.closet-home .category-preview .clothing-art,
.closet-home .category-preview .clothing-art.photo,
.closet-home .category-preview .clothing-art:first-child,
.closet-home .category-preview .clothing-art.photo:first-child,
.closet-home .category-preview .clothing-art:last-child,
.closet-home .category-preview .clothing-art.photo:last-child {
  flex-basis: 32.4% !important;
  width: 32.4% !important;
}

.closet-home .category-preview .clothing-art.photo img {
  transform: scale(1.5) !important;
}

.closet-home .folder-top .category-preview,
.closet-home .folder-outer .category-preview,
.closet-home .folder-bag .category-preview,
.closet-home .folder-accessory .category-preview,
.closet-home .folder-bottom .category-preview {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.closet-home .folder-top .category-preview .clothing-art.photo img,
.closet-home .folder-outer .category-preview .clothing-art.photo img,
.closet-home .folder-bag .category-preview .clothing-art.photo img {
  transform: scale(1.44) !important;
}

.closet-home .folder-bottom .category-preview .cat-bottom {
  height: 116px !important;
}

.closet-home .folder-bottom .category-preview .clothing-art.photo img {
  transform: scale(1.58) !important;
}

.closet-home .folder-accessory .category-preview .cat-accessory {
  height: 66px !important;
}

.closet-home .folder-accessory .category-preview .clothing-art.photo img {
  transform: scale(1.46) !important;
  transform-origin: center center !important;
}

/* Bottoms and shoes: larger within equal slots, tighter balanced spacing. */
.closet-home .folder-bottom .category-preview,
.closet-home .folder-shoe .category-preview {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.closet-home .folder-bottom .category-preview .clothing-art,
.closet-home .folder-bottom .category-preview .clothing-art.photo,
.closet-home .folder-shoe .category-preview .clothing-art,
.closet-home .folder-shoe .category-preview .clothing-art.photo {
  flex-basis: 32.8% !important;
  width: 32.8% !important;
}

.closet-home .folder-bottom .category-preview .cat-bottom {
  height: 118px !important;
}

.closet-home .folder-bottom .category-preview .clothing-art.photo img {
  transform: scale(1.75) !important;
}

.closet-home .folder-shoe .category-preview .cat-shoe {
  height: 68px !important;
}

.closet-home .folder-shoe .category-preview .clothing-art.photo img {
  transform: scale(1.86) !important;
  transform-origin: center center !important;
}

/* Outerwear, accessories, bags: equal-slot tighter spacing and requested scale. */
.closet-home .folder-outer .category-preview,
.closet-home .folder-accessory .category-preview,
.closet-home .folder-bag .category-preview {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.closet-home .folder-outer .category-preview .clothing-art,
.closet-home .folder-outer .category-preview .clothing-art.photo,
.closet-home .folder-accessory .category-preview .clothing-art,
.closet-home .folder-accessory .category-preview .clothing-art.photo,
.closet-home .folder-bag .category-preview .clothing-art,
.closet-home .folder-bag .category-preview .clothing-art.photo {
  flex-basis: 32.8% !important;
  width: 32.8% !important;
}

.closet-home .folder-outer .category-preview .cat-outer {
  height: 110px !important;
}

.closet-home .folder-outer .category-preview .clothing-art.photo img {
  transform: scale(1.56) !important;
  transform-origin: center center !important;
}

.closet-home .folder-accessory .category-preview .cat-accessory {
  height: 72px !important;
}

.closet-home .folder-accessory .category-preview .clothing-art.photo img {
  transform: scale(1.7) !important;
  transform-origin: center center !important;
}

.closet-home .folder-bag .category-preview .cat-bag {
  height: 80px !important;
}

.closet-home .folder-bag .category-preview .clothing-art.photo img {
  transform: scale(1.56) !important;
  transform-origin: center center !important;
}

/* Recenter equal-slot categories: symmetric left/right edges. */
.closet-home .folder-shoe .category-preview,
.closet-home .folder-outer .category-preview,
.closet-home .folder-bag .category-preview,
.closet-home .folder-accessory .category-preview {
  padding-left: 6px !important;
  padding-right: 6px !important;
  justify-content: space-between !important;
}

.closet-home .folder-shoe .category-preview .clothing-art,
.closet-home .folder-shoe .category-preview .clothing-art.photo,
.closet-home .folder-outer .category-preview .clothing-art,
.closet-home .folder-outer .category-preview .clothing-art.photo,
.closet-home .folder-bag .category-preview .clothing-art,
.closet-home .folder-bag .category-preview .clothing-art.photo,
.closet-home .folder-accessory .category-preview .clothing-art,
.closet-home .folder-accessory .category-preview .clothing-art.photo {
  flex: 0 0 31.8% !important;
  width: 31.8% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.closet-home .folder-shoe .category-preview .cat-shoe {
  height: 62px !important;
}

.closet-home .folder-shoe .category-preview .clothing-art.photo img {
  transform: scale(1.56) !important;
  transform-origin: center center !important;
}

.closet-home .folder-outer .category-preview .clothing-art.photo img,
.closet-home .folder-bag .category-preview .clothing-art.photo img,
.closet-home .folder-accessory .category-preview .clothing-art.photo img {
  transform-origin: center center !important;
}

/* Correct category centering: symmetric card padding and preview bounds. */
.closet-home .category-card.folder-outer,
.closet-home .category-card.folder-shoe,
.closet-home .category-card.folder-bag,
.closet-home .category-card.folder-accessory {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.closet-home .category-card.folder-outer .category-preview,
.closet-home .category-card.folder-shoe .category-preview,
.closet-home .category-card.folder-bag .category-preview,
.closet-home .category-card.folder-accessory .category-preview {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 3px !important;
  justify-items: center !important;
  align-items: center !important;
}

.closet-home .category-card.folder-outer .category-preview .clothing-art,
.closet-home .category-card.folder-outer .category-preview .clothing-art.photo,
.closet-home .category-card.folder-shoe .category-preview .clothing-art,
.closet-home .category-card.folder-shoe .category-preview .clothing-art.photo,
.closet-home .category-card.folder-bag .category-preview .clothing-art,
.closet-home .category-card.folder-bag .category-preview .clothing-art.photo,
.closet-home .category-card.folder-accessory .category-preview .clothing-art,
.closet-home .category-card.folder-accessory .category-preview .clothing-art.photo {
  width: 100% !important;
  max-width: 100% !important;
  flex: initial !important;
  margin: 0 !important;
  justify-self: center !important;
}

.closet-home .category-card.folder-accessory .category-preview .clothing-art:nth-child(3) {
  transform: translateY(-2mm) !important;
}

/* Outfit inspiration cards: magazine-like mini posters with soft Closence color. */
.closet-inspiration {
  margin-top: 8px !important;
}

.closet-inspiration .section-head {
  margin-bottom: 8px !important;
  align-items: center !important;
}

.closet-inspiration .section-head h3 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #2e2a25 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.closet-inspiration .love-mark {
  color: #e45e69 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  transform: rotate(-8deg) !important;
  display: inline-block !important;
}

.closet-inspiration .inspo-actions button {
  color: #3d3832 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.closet-inspiration .look-strip {
  grid-auto-columns: 118px !important;
  gap: 9px !important;
  padding: 0 1px 3px !important;
  align-items: stretch !important;
}

.closet-inspiration .look-card,
.closet-inspiration .restored-look-card {
  min-height: 171px !important;
  display: grid !important;
  grid-template-rows: 95px 76px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  border: 1px solid rgba(226, 216, 202, .82) !important;
  background: #fffaf2 !important;
  box-shadow: 0 9px 18px rgba(67, 57, 47, .06) !important;
  text-align: left !important;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
}

.closet-inspiration .look-card:hover {
  transform: translateY(-3px) rotate(-.4deg) !important;
  box-shadow: 0 14px 24px rgba(67, 57, 47, .1) !important;
  filter: saturate(1.03) !important;
}

.closet-inspiration .look-card:active {
  transform: translateY(-1px) scale(.985) !important;
}

.look-art-panel {
  position: relative !important;
  height: 95px !important;
  border-radius: 9px 9px 0 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .92) 0 34%, rgba(255, 255, 255, .22) 35% 44%, transparent 45%),
    linear-gradient(145deg, color-mix(in srgb, var(--look-tone) 76%, #fff 24%), color-mix(in srgb, var(--look-tone) 48%, #fff 52%)) !important;
}

.look-art-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 12px 11px auto auto !important;
  width: 26px !important;
  height: 22px !important;
  border-radius: 48% 52% 44% 56% !important;
  background: rgba(255, 255, 255, .2) !important;
  transform: rotate(18deg) !important;
}

.look-spark {
  position: absolute !important;
  color: rgba(255, 255, 255, .96) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  z-index: 3 !important;
}

.look-spark-left {
  top: 8px !important;
  left: 7px !important;
}

.look-spark-right {
  top: 12px !important;
  right: 8px !important;
}

.look-pin {
  position: absolute !important;
  top: 4px !important;
  left: 50% !important;
  width: 10px !important;
  height: 10px !important;
  border: 2px solid rgba(120, 108, 80, .72) !important;
  border-radius: 50% !important;
  background: rgba(255, 252, 243, .9) !important;
  transform: translateX(-50%) !important;
  z-index: 4 !important;
}

.closet-inspiration .look-visual,
.closet-inspiration .real-look-visual {
  position: absolute !important;
  inset: 14px 4px 5px !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  align-items: end !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: visible !important;
  z-index: 2 !important;
}

.closet-inspiration .real-look-visual .clothing-art.photo {
  flex: 0 0 auto !important;
  margin-left: -8px !important;
  overflow: visible !important;
}

.closet-inspiration .real-look-visual .clothing-art.photo:first-child {
  margin-left: 0 !important;
}

.closet-inspiration .real-look-visual .clothing-art.photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: scale(1.22) !important;
}

.closet-inspiration .real-look-visual .cat-top,
.closet-inspiration .real-look-visual .cat-outer {
  width: 38px !important;
  height: 63px !important;
}

.closet-inspiration .real-look-visual .cat-bottom {
  width: 34px !important;
  height: 69px !important;
}

.closet-inspiration .real-look-visual .cat-bag {
  width: 38px !important;
  height: 40px !important;
}

.closet-inspiration .real-look-visual .cat-shoe {
  width: 40px !important;
  height: 30px !important;
}

.look-copy {
  position: relative !important;
  padding: 7px 8px 6px !important;
  background: rgba(255, 251, 245, .96) !important;
}

.closet-inspiration .look-card strong {
  display: block !important;
  color: #292520 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  margin: 0 0 3px !important;
  letter-spacing: 0 !important;
}

.closet-inspiration .look-card span {
  display: block !important;
  color: #575149 !important;
  font-size: 9.5px !important;
  line-height: 1.12 !important;
  max-width: 88px !important;
}

.look-actions {
  position: absolute !important;
  left: 7px !important;
  bottom: 5px !important;
  display: flex !important;
  gap: 10px !important;
  color: #342f2a !important;
}

.look-actions i {
  width: 13px !important;
  height: 13px !important;
  display: grid !important;
  place-items: center !important;
  transition: transform .18s ease, color .18s ease !important;
}

.closet-inspiration .look-card:hover .look-actions i:first-child {
  color: #e45e69 !important;
  transform: scale(1.16) rotate(-8deg) !important;
}

/* Real outfit inspiration photos: bigger image, lighter copy. */
.closet-inspiration .love-mark {
  display: none !important;
}

.closet-inspiration .look-strip {
  grid-auto-columns: 122px !important;
  gap: 9px !important;
}

.closet-inspiration .look-card,
.closet-inspiration .restored-look-card {
  min-height: 166px !important;
  grid-template-rows: 121px 45px !important;
  background: #fffaf3 !important;
}

.look-art-panel {
  height: 121px !important;
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, .92) 0 38%, rgba(255, 255, 255, .2) 39% 47%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--look-tone) 72%, #fff 28%), #fffaf5) !important;
}

.look-photo {
  position: absolute !important;
  inset: 4px 5px !important;
  width: calc(100% - 10px) !important;
  height: calc(100% - 8px) !important;
  object-fit: contain !important;
  z-index: 2 !important;
  transition: transform .28s ease !important;
}

.closet-inspiration .look-card:hover .look-photo {
  transform: scale(1.035) rotate(.4deg) !important;
}

.look-pin {
  width: 8px !important;
  height: 8px !important;
  border-width: 1.5px !important;
  z-index: 4 !important;
}

.look-copy {
  padding: 6px 7px 5px !important;
}

.closet-inspiration .look-card strong {
  font-size: 11px !important;
  margin-bottom: 2px !important;
}

.closet-inspiration .look-card span {
  font-size: 8.5px !important;
  line-height: 1.05 !important;
  max-width: 96px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.look-actions {
  right: 7px !important;
  left: auto !important;
  bottom: 6px !important;
  gap: 7px !important;
}

/* Keep inspiration text and action icons from overlapping. */
.look-copy {
  min-height: 45px !important;
  padding-right: 34px !important;
}

.closet-inspiration .look-card strong,
.closet-inspiration .look-card span {
  max-width: 72px !important;
}

.look-actions {
  width: 28px !important;
  justify-content: flex-end !important;
  gap: 5px !important;
}

.look-actions i {
  width: 11px !important;
  height: 11px !important;
}

.look-actions i svg {
  width: 11px !important;
  height: 11px !important;
}

/* Richer inspiration interactions for transparent outfit collages. */
.closet-inspiration .look-card,
.closet-inspiration .restored-look-card {
  transform-origin: center bottom !important;
  will-change: transform, box-shadow !important;
}

.closet-inspiration .look-card:hover {
  transform: translateY(-5px) rotate(-1.2deg) !important;
  box-shadow: 0 18px 30px rgba(67, 57, 47, .14) !important;
}

.closet-inspiration .look-card:nth-child(2):hover {
  transform: translateY(-5px) rotate(.9deg) !important;
}

.closet-inspiration .look-card:active {
  transform: translateY(-2px) scale(.975) !important;
}

.look-art-panel {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .88) 0 42%, rgba(255, 255, 255, .34) 43% 54%, transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--look-tone) 52%, #fff 48%), #fffaf5) !important;
}

.look-photo {
  inset: 2px 4px 3px !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 5px) !important;
  filter: drop-shadow(0 8px 9px rgba(65, 55, 45, .12)) !important;
  transform: translateY(0) scale(1.04) !important;
  transform-origin: center bottom !important;
}

.closet-inspiration .look-card:hover .look-photo {
  transform: translateY(-5px) scale(1.13) rotate(.8deg) !important;
  filter: drop-shadow(0 12px 12px rgba(65, 55, 45, .16)) !important;
}

.closet-inspiration .look-card:nth-child(2):hover .look-photo {
  transform: translateY(-5px) scale(1.13) rotate(-.7deg) !important;
}

.look-pin {
  transition: transform .22s ease, background .22s ease !important;
}

.closet-inspiration .look-card:hover .look-pin {
  transform: translateX(-50%) translateY(-1px) scale(1.12) !important;
  background: #fff !important;
}

.look-actions i:hover {
  transform: scale(1.24) rotate(-10deg) !important;
  color: #e45e69 !important;
}

@keyframes outfitCardPop {
  0% { transform: scale(.98); }
  55% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.closet-inspiration .look-card:focus-visible {
  outline: none !important;
  animation: outfitCardPop .34s ease !important;
  box-shadow: 0 0 0 3px rgba(202, 190, 162, .28), 0 16px 28px rgba(67, 57, 47, .11) !important;
}

/* Final closet alignment and clean inspiration base. */
.content {
  box-sizing: border-box !important;
}

.content:has(.closet-home) {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.closet-home {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.closet-home .camera-upload-card,
.closet-home .category-grid,
.closet-home .closet-inspiration {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.closet-home .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.closet-inspiration .look-copy {
  background: transparent !important;
  border-top: 1px solid rgba(230, 222, 211, .62) !important;
}

/* Inspiration actions and gallery layer. */
.closet-inspiration .look-card {
  cursor: pointer !important;
}

.look-actions button {
  appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: inherit !important;
  display: grid !important;
  place-items: center !important;
}

.look-heart.active,
.gallery-look-card i.active {
  color: #e45e69 !important;
}

.look-heart.active svg,
.gallery-look-card i.active svg,
.inspiration-gallery-head .soft-button svg {
  fill: currentColor !important;
}

.inspiration-gallery-page {
  gap: 12px !important;
}

.inspiration-gallery-head {
  margin-bottom: 0 !important;
}

.soft-button.mini {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
}

.inspiration-hero {
  position: relative !important;
  min-height: 255px !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: 6px !important;
  padding: 16px 16px 12px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.86) 0 31%, rgba(255,255,255,.28) 32% 47%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--look-tone) 62%, #fff 38%), #fffaf4) !important;
  border: 1px solid rgba(229, 220, 207, .78) !important;
  box-shadow: 0 16px 34px rgba(64, 53, 43, .09) !important;
}

.inspiration-hero::before,
.inspiration-hero::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .42) !important;
  pointer-events: none !important;
}

.inspiration-hero::before {
  width: 76px !important;
  height: 76px !important;
  right: -18px !important;
  top: 42px !important;
}

.inspiration-hero::after {
  width: 48px !important;
  height: 48px !important;
  left: 16px !important;
  bottom: 26px !important;
}

.inspiration-hero h2 {
  margin: 2px 0 2px !important;
  color: #2c2722 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

.inspiration-hero span {
  color: #5e564d !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

.inspiration-hero img {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 175px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 14px rgba(64, 53, 43, .14)) !important;
  animation: selectedLookFloat 3.6s ease-in-out infinite !important;
}

@keyframes selectedLookFloat {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-6px) rotate(.6deg); }
}

.inspiration-stack-section {
  padding: 13px 0 4px !important;
  border-radius: 24px !important;
}

.section-head.compact {
  margin-bottom: 9px !important;
}

.section-head.compact h3 {
  font-size: 14px !important;
  color: #2f2a25 !important;
}

.section-head.compact small {
  color: #82786d !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

.inspiration-gallery-strip {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 146px !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
  scroll-snap-type: x proximity !important;
  padding: 10px 14px 15px !important;
  margin: 0 -14px !important;
}

.inspiration-gallery-strip::-webkit-scrollbar {
  display: none !important;
}

.gallery-look-card {
  position: relative !important;
  height: 196px !important;
  border: 1px solid rgba(226, 216, 202, .82) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.78) 0 35%, transparent 36%),
    linear-gradient(150deg, color-mix(in srgb, var(--look-tone) 66%, #fff 34%), #fffaf3) !important;
  box-shadow: 0 12px 24px rgba(64, 53, 43, .08) !important;
  scroll-snap-align: center !important;
  transform: rotate(-3deg) !important;
  transition: transform .24s ease, box-shadow .24s ease !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.gallery-look-card:nth-child(2) {
  transform: rotate(2deg) translateY(-4px) !important;
}

.gallery-look-card:nth-child(3) {
  transform: rotate(-1deg) !important;
}

.gallery-look-card.active,
.gallery-look-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.03) !important;
  box-shadow: 0 18px 30px rgba(64, 53, 43, .14) !important;
}

.gallery-look-card img {
  position: absolute !important;
  inset: 12px 8px 31px !important;
  width: calc(100% - 16px) !important;
  height: calc(100% - 47px) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 9px 10px rgba(64, 53, 43, .12)) !important;
}

.gallery-look-card span {
  position: absolute !important;
  left: 11px !important;
  bottom: 10px !important;
  color: #302b26 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.gallery-look-card i {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  color: #3b352f !important;
}

/* Hard align Closet content: equal distance from phone left and right edges. */
.content.closet-content {
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}

.content.closet-content .closet-home {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.content.closet-content .closet-home > .camera-upload-card,
.content.closet-content .closet-home > .category-grid,
.content.closet-content .closet-home > .closet-inspiration {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.content.closet-content .category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  transform: none !important;
}

.content.closet-content .category-card {
  width: 100% !important;
  min-width: 0 !important;
  transform-origin: center center !important;
}

/* Today Wear Calendar: scrapbook monthly grid with outfit photos. */
.scrapbook-calendar-card {
  padding: 15px 13px 16px !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
  box-shadow: 0 14px 30px rgba(55, 46, 38, .1) !important;
}

.paper-calendar {
  overflow: hidden;
  border: 2px solid #36322f;
  border-radius: 5px;
  background: #fffefa;
  box-shadow: 0 8px 18px rgba(65, 56, 48, .08);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 2px solid #36322f;
  background: #f8f5ed;
}

.calendar-weekdays span {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: #26231f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  border-right: 1.5px solid #36322f;
}

.calendar-weekdays span:last-child {
  border-right: 0;
}

.scrapbook-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

.paper-calendar.week-mode .scrapbook-grid {
  grid-template-rows: 72px;
}

.scrapbook-day {
  position: relative;
  min-height: 58px !important;
  padding: 2px !important;
  overflow: hidden;
  border: 0 !important;
  border-right: 1.5px solid #36322f !important;
  border-bottom: 1.5px solid #36322f !important;
  border-radius: 0 !important;
  background: #fffefa !important;
  box-shadow: none !important;
  transition: transform .18s ease, filter .18s ease;
}

.scrapbook-day:nth-child(7n) {
  border-right: 0 !important;
}

.scrapbook-day:nth-last-child(-n + 7) {
  border-bottom: 0 !important;
}

.paper-calendar.week-mode .scrapbook-day {
  border-bottom: 0 !important;
}

.scrapbook-day:not(.is-empty):hover {
  transform: scale(1.035);
  z-index: 2;
  filter: saturate(1.06);
}

.scrapbook-day.is-empty {
  background: #f8f7f2 !important;
}

.scrapbook-day.today {
  background: #fff7ef !important;
}

.scrapbook-day.has-photo {
  padding: 0 !important;
}

.scrapbook-day img {
  width: 100%;
  height: 100%;
  min-height: 58px;
  display: block;
  object-fit: cover;
}

.scrapbook-day .day-number {
  position: absolute;
  right: 3px;
  bottom: 2px;
  z-index: 3;
  padding: 0 2px;
  color: #312b25 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1;
  background: rgba(255, 253, 248, .78);
  border-radius: 3px;
}

.scrapbook-day.has-note,
.scrapbook-day:not(.has-photo):not(.is-empty) {
  display: block !important;
}

.scrapbook-day em,
.scrapbook-day i {
  position: absolute;
  inset: 8px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f5148;
  font-family: "Comic Sans MS", "Bradley Hand ITC", cursive;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.12;
  white-space: pre-line;
  text-align: center;
}

.scrapbook-day i {
  color: #2d2925;
  font-size: 8px;
  transform: rotate(-8deg);
}

.big-record-photo {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(234, 231, 226, .9);
  background: #f6f1ea;
  aspect-ratio: 3 / 4;
}

.big-record-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scrapbook-calendar-card .section-head h3 span {
  display: block;
  margin-top: 2px;
  color: #8a7f70;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.calendar-swipe-button {
  width: 56px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(54, 50, 47, .18);
  border-radius: 999px;
  background: #fff8ed;
  color: #3b352f;
  box-shadow: 0 8px 18px rgba(83, 71, 58, .11);
  font-size: 10px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.calendar-swipe-button:hover {
  transform: translateX(-2px);
  background: #f4eadc;
}

.paper-calendar {
  touch-action: pan-y;
  cursor: grab;
}

.paper-calendar:active {
  cursor: grabbing;
}

.calendar-month-button {
  width: 42px;
  min-width: 42px;
  height: 46px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 0;
  border-radius: 18px;
  background: #f7efe4;
  color: #292521;
  box-shadow: inset 0 0 0 1px rgba(54, 50, 47, .12), 0 9px 18px rgba(83, 71, 58, .1);
  transition: transform .2s ease, background .2s ease;
}

.calendar-month-button b {
  height: 20px;
  margin-bottom: -2px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.calendar-month-button span {
  color: #6f6559;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.calendar-month-button:hover {
  transform: translateY(-2px);
  background: #efe3d4;
}

.magazine-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 28, 24, .42);
  backdrop-filter: blur(10px);
}

.magazine-reader {
  width: min(100%, 390px);
  max-height: calc(100vh - 42px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf8, #efe4d7);
  box-shadow: 0 26px 70px rgba(22, 18, 15, .32);
}

.magazine-reader-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
}

.magazine-reader-head h3 {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.magazine-reader-head > span {
  color: #776b5e;
  font-size: 12px;
  font-weight: 800;
}

.magazine-book {
  position: relative;
  height: min(60vh, 510px);
  min-height: 430px;
  perspective: 1300px;
  touch-action: pan-y;
}

.magazine-spine {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  z-index: 2;
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .32), rgba(0, 0, 0, .16));
  opacity: .48;
  pointer-events: none;
}

.magazine-page-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px 12px 12px 18px;
  background: #f8f2e8;
  transform-origin: left center;
  box-shadow:
    0 18px 42px rgba(35, 29, 25, .22),
    inset 16px 0 22px rgba(56, 45, 34, .18),
    inset -8px 0 14px rgba(255, 255, 255, .38);
  animation-duration: .52s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.magazine-book.next .magazine-page-sheet {
  animation-name: pageFlipNext;
}

.magazine-book.prev .magazine-page-sheet {
  animation-name: pageFlipPrev;
}

.magazine-page-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 18%, transparent 82%, rgba(0, 0, 0, .08));
  pointer-events: none;
}

.magazine-page-sheet img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.magazine-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.page-turn {
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #24211e;
  color: #fffdf8;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(41, 35, 29, .18);
}

.page-turn:disabled {
  opacity: .28;
}

.magazine-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.magazine-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c9bbaa;
}

.magazine-dots span.active {
  width: 20px;
  background: #2a2622;
}

@keyframes pageFlipNext {
  0% {
    transform: rotateY(-34deg) translateX(-8px);
    filter: brightness(.88);
  }
  62% {
    transform: rotateY(6deg) translateX(2px);
    filter: brightness(1.04);
  }
  100% {
    transform: rotateY(0deg);
    filter: brightness(1);
  }
}

@keyframes pageFlipPrev {
  0% {
    transform: rotateY(28deg) translateX(8px);
    filter: brightness(.9);
  }
  62% {
    transform: rotateY(-5deg) translateX(-2px);
    filter: brightness(1.04);
  }
  100% {
    transform: rotateY(0deg);
    filter: brightness(1);
  }
}

@media (max-height: 760px) {
  .magazine-book {
    height: min(55vh, 450px);
    min-height: 360px;
  }
}

/* Magazine scene refinement: pure color stage with the book placed on top. */
.magazine-overlay {
  background: #efe6d9 !important;
  backdrop-filter: none !important;
}

.magazine-reader {
  width: min(100%, 404px) !important;
  padding: 16px 14px 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.magazine-reader-head {
  padding: 0 2px;
}

.magazine-reader-head .icon-button {
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 10px 22px rgba(80, 66, 52, .13);
}

.magazine-book {
  border-radius: 22px;
  filter: drop-shadow(0 26px 36px rgba(53, 43, 35, .26));
}

.magazine-page-sheet {
  border: 1px solid rgba(255, 253, 248, .72);
  box-shadow:
    0 20px 50px rgba(53, 43, 35, .24),
    inset 18px 0 24px rgba(45, 34, 24, .2),
    inset -8px 0 14px rgba(255, 255, 255, .42) !important;
}

.magazine-controls {
  padding: 0 20px;
}

/* Keep generated magazine fixed inside the phone viewport, independent of page scroll. */
.phone > .magazine-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 18px 16px 86px !important;
}

.phone > .magazine-overlay .magazine-reader {
  align-self: center !important;
  max-height: 100% !important;
}

.phone > .magazine-overlay .magazine-book {
  height: min(58vh, 500px) !important;
  min-height: 390px !important;
}

/* Wear Calendar month navigation: arrows live beside the calendar, not in header. */
.calendar-month-stage {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.calendar-month-stage .paper-calendar {
  min-width: 0;
}

.calendar-side-arrow {
  width: 22px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f7efe4;
  color: #2d2925;
  box-shadow: inset 0 0 0 1px rgba(54, 50, 47, .12), 0 8px 16px rgba(83, 71, 58, .1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}

.calendar-side-arrow:hover {
  background: #efe3d4;
}

.calendar-side-arrow.left:hover {
  transform: translateX(-2px);
}

.calendar-side-arrow.right:hover {
  transform: translateX(2px);
}

.calendar-month-button {
  display: none !important;
}

/* Side month arrows: larger, floating, and not squeezing the calendar. */
.calendar-inline-nav {
  display: none !important;
}

.calendar-month-stage {
  position: relative !important;
  display: block !important;
  width: calc(100% - 48px);
  margin-inline: auto;
}

.calendar-month-stage .paper-calendar {
  width: 100%;
}

.calendar-side-arrow {
  position: absolute !important;
  top: 50% !important;
  z-index: 8 !important;
  width: 32px !important;
  height: 62px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 248, 237, .94) !important;
  color: #2d2925 !important;
  box-shadow: inset 0 0 0 1px rgba(54, 50, 47, .14), 0 12px 22px rgba(83, 71, 58, .16) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 35px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  transition: transform .2s ease, background .2s ease !important;
}

.calendar-side-arrow.left {
  left: -40px !important;
}

.calendar-side-arrow.right {
  right: -40px !important;
}

.calendar-side-arrow.left:hover {
  transform: translate(-2px, -50%) !important;
}

.calendar-side-arrow.right:hover {
  transform: translate(2px, -50%) !important;
}

/* Today outfit recognition preview. */
.today-look-preview {
  position: relative;
  overflow: hidden;
  min-height: 132px;
}

.empty-detected-look {
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(234, 231, 226, .9);
  background:
    radial-gradient(circle at 50% 38%, rgba(238, 207, 210, .34), transparent 40%),
    linear-gradient(145deg, rgba(255, 253, 249, .92), rgba(245, 238, 229, .88)) !important;
}

.preview-flower {
  position: relative;
  width: 54px;
  height: 54px;
  opacity: .72;
}

.preview-flower span {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 18px;
  height: 30px;
  border-radius: 999px 999px 4px 999px;
  background: rgba(231, 154, 147, .38);
  border: 1px solid rgba(206, 130, 125, .22);
  transform-origin: 7px 22px;
}

.preview-flower span:nth-child(1) { transform: rotate(0deg); }
.preview-flower span:nth-child(2) { transform: rotate(72deg); }
.preview-flower span:nth-child(3) { transform: rotate(144deg); }
.preview-flower span:nth-child(4) { transform: rotate(216deg); }
.preview-flower span:nth-child(5) { transform: rotate(288deg); }

.empty-detected-look small {
  max-width: 74px;
  color: #8a7d71;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.detected-look {
  display: grid !important;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 132px !important;
  max-height: 132px !important;
  padding: 4px 4px 5px;
  border: 1px solid rgba(234, 231, 226, .9);
  background: rgba(255, 253, 249, .82) !important;
}

.detected-look > img {
  width: 94%;
  height: 122px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 12px rgba(72, 60, 50, .12));
}

.detected-tags {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.detected-tags span {
  padding: 2px 3px;
  border-radius: 999px;
  background: #f4eadc;
  color: #6e6255;
  font-size: 6.5px;
  font-weight: 800;
  line-height: 1;
}

/* Keep Wear Calendar day popup centered in the phone, independent of scroll. */
.phone > .day-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 75 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px 22px 86px !important;
  background: rgba(250, 250, 247, .64) !important;
  backdrop-filter: blur(8px) !important;
}

.phone > .day-overlay .day-detail-card {
  align-self: center !important;
  max-height: calc(100% - 20px);
  overflow: hidden;
}

/* Hard lock Today upload and detected outfit cards to the same visual height. */
.today-outfit-body .photo-upload {
  height: auto !important;
  min-height: 132px !important;
  max-height: none !important;
}

.today-outfit-body .today-look-preview {
  align-self: stretch !important;
  height: 100% !important;
  min-height: 132px !important;
  max-height: none !important;
}

.detected-look {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.detected-look > img {
  width: 235% !important;
  height: 235% !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: translateY(-2%) !important;
}

.detected-tags {
  position: absolute !important;
  left: 4px !important;
  right: 4px !important;
  bottom: 4px !important;
  z-index: 3 !important;
}

