:root {
  --bg: #ffffff;
  --text: #000000;
  --text-3: #8e8e93;
  --muted: #f2f2f2;
  --shadow-btn: 0 10px 28px rgba(0, 0, 0, 0.22);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --content: 440px;
  --app-height: 100svh;
  --app-top: 0px;
  --inapp-b: 0px;
  --tabbar-h: calc(56px + max(8px, env(safe-area-inset-bottom, 0px)) + var(--inapp-b));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

#app {
  position: fixed;
  top: var(--app-top);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  background: var(--bg);
  display: flex;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: var(--content);
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.in-app-browser {
  --inapp-b: 10px;
}

.shell.busy {
  pointer-events: none;
  opacity: 0.72;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg);
  padding: calc(12px + var(--safe-t)) 20px 0;
  opacity: 1;
  overflow: hidden;
}

.screen:not(.home):not(.profile) {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
  opacity: 1;
  animation: screenIn 0.22s ease;
}

.screen.dark {
  background: #121212;
  color: #fff;
}

@keyframes screenIn {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0 -4px 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
}

.icon-btn svg,
.icon-btn [data-lucide] {
  width: 20px;
  height: 20px;
}

.skip {
  font-size: 17px;
  padding: 8px 4px;
}

.mark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.mark.hero {
  font-size: 34px;
  letter-spacing: 0.1em;
}

.mark.sm {
  font-size: 18px;
  letter-spacing: 0.1em;
}

.circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--muted);
  display: grid;
  place-items: center;
  margin: 8px 0 18px;
  color: #111;
}

.circle-icon svg,
.circle-icon [data-lucide] {
  width: 22px;
  height: 22px;
}

h1.title {
  margin: 0;
  font-size: clamp(28px, 6vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1.title em {
  font-style: italic;
  font-weight: 700;
}

.sub {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 400;
}

.sub.muted {
  color: var(--text-3);
}

.grow {
  flex: 1;
}

.footer-cta {
  position: sticky;
  bottom: 0;
  padding: 18px 0 calc(22px + var(--safe-b) + var(--inapp-b));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 5;
}

.screen.dark .footer-cta {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0), #121212 28%);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #000;
  border: 1.5px solid #111;
}

.btn-soft {
  background: var(--muted);
  color: #111;
  box-shadow: none;
}

.btn-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.welcome-copy {
  margin-top: 18px;
  max-width: 300px;
}

.welcome-copy .tag {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.welcome-copy .privacy {
  margin: 36px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

.welcome-copy .privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18vh;
}

.auth-wrap .mark {
  margin-bottom: 56px;
}

.auth-wrap .btn-stack {
  width: min(100%, 340px);
}

.auth-wrap .btn-soft {
  min-height: 54px;
  font-weight: 500;
}

.auth-wrap .btn-soft svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-note {
  margin-top: 16px;
  color: #c62828;
  font-size: 14px;
}

.field-stack {
  margin-top: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--muted);
}

.field-stack input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 18px 16px;
  font-size: 17px;
  color: #111;
}

.field-stack input + input {
  border-top: 2px solid #fff;
}

.field-stack input::placeholder {
  color: var(--text-3);
}

.wear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 36px;
}

.wear-card {
  min-height: 220px;
  background: var(--muted);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.wear-card .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #c7c7cc;
  display: grid;
  place-items: center;
  background: transparent;
  color: transparent;
}

.wear-card .check svg {
  width: 14px;
  height: 14px;
}

.wear-card.selected .check {
  background: #000;
  border-color: #000;
  color: #fff;
}

.wear-card .label {
  font-size: 16px;
  font-weight: 500;
}

.work-input {
  margin-top: 28px;
  width: 100%;
  border: 0;
  outline: 0;
  background: var(--muted);
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
}

.work-input::placeholder {
  color: var(--text-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 100px;
}

.chip {
  background: var(--muted);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
}

.chip.selected {
  background: #111;
  color: #fff;
}

.brand-search-wrap {
  position: relative;
  margin: 8px 0 0;
}

.brand-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: var(--muted);
  border-radius: 10px;
  padding: 14px 44px 14px 14px;
  font-size: 16px;
}

.brand-search-wrap .search-ico,
.brand-search-wrap svg.lucide {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.brand-list {
  margin: 12px -20px 0;
  padding: 0 0 110px;
  overflow: auto;
  flex: 1;
}

.brand-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--muted);
  border-bottom: 2px solid #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.heart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #111;
}

.heart svg {
  width: 16px;
  height: 16px;
}

.brand-row.liked .heart svg {
  fill: currentColor;
}

.email-box {
  margin-top: 36px;
  background: var(--muted);
  border-radius: 8px;
  padding: 18px 16px;
  font-size: 16px;
  font-weight: 500;
}

.first-outfit {
  text-align: center;
  padding-top: 8px;
}

.first-outfit .mark.sm {
  margin: 8px auto 28px;
}

.first-outfit h1 {
  font-size: clamp(24px, 5vw, 28px);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 320px;
}

.closet-preview-wrap {
  position: relative;
  margin: 28px auto 24px;
  width: min(100%, 320px);
}

.closet-preview {
  width: 100%;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 18px 14px 22px;
  color: #fff;
  text-align: left;
}

.closet-preview h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.preview-block {
  margin-bottom: 14px;
}

.preview-block:last-child {
  margin-bottom: 0;
  opacity: 0.72;
}

.preview-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.preview-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
}

.preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #2a2a2a;
}

.preview-meta strong {
  display: block;
  font-size: 13px;
}

.preview-meta span {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.prettify {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.outfit-picker {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(240px, 78%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: #111;
}

.outfit-picker[hidden] {
  display: none !important;
}

.outfit-picker button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  text-align: left;
}

.outfit-picker button:last-child {
  border-bottom: 0;
}

.outfit-picker button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.review-top .close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  color: #fff;
}

.add-all {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-all:disabled,
.add-all.is-muted {
  background: #3a3a3c;
  color: #c7c7cc;
}

.review-list {
  display: grid;
  gap: 22px;
  padding: 10px 0 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.review-empty {
  color: #aaa;
  text-align: center;
  padding: 40px 12px;
}

.review-status {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
}

.review-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.review-card-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-edit {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #c7c7cc;
  flex-shrink: 0;
}

.review-edit svg {
  width: 14px;
  height: 14px;
}

.review-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  color: #fff;
  margin-left: auto;
  flex-shrink: 0;
}

.review-remove svg {
  width: 14px;
  height: 14px;
}

.review-body {
  background: #1e1e1e;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  min-height: 120px;
}

.review-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #9a9a9a;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-progress {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
}

.review-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(#1e1e1e 0 54%, transparent 55%),
    conic-gradient(#fff calc(var(--p, 0) * 1%), #5c5c5c 0);
}

.review-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  min-width: 0;
}

.review-info .brand {
  font-size: 15px;
  font-weight: 500;
}

.review-info .cat {
  font-size: 13px;
  color: #aaa;
  padding-top: 8px;
  border-top: 1px solid #333;
  margin-top: 8px;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

.mini-btn {
  background: #2a2a2a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-btn.primary {
  background: #e5e5ea;
  color: #111;
}

.mini-btn svg {
  width: 14px;
  height: 14px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: #3a3a3c;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 55%;
}

.skeleton-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  justify-content: flex-end;
}

.skeleton-pill {
  width: 72px;
  height: 28px;
  border-radius: 999px;
  background: #3a3a3c;
}

.home {
  padding: 0;
  padding-top: var(--safe-t);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-top {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 6;
}

.home-top .mark.sm {
  text-align: center;
}

.home-tools {
  display: flex;
  gap: 2px;
}

.home-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 16px calc(var(--tabbar-h) + 24px);
}

.greet-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.greet-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.weather {
  text-align: right;
  line-height: 1.1;
}

.weather .temp {
  font-size: 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.weather .hi {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
  margin: 8px 0 14px;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.occasion {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.occasion strong {
  font-size: 18px;
}

.occasion span {
  color: var(--text-3);
  font-size: 14px;
}

.outfit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 260px;
}

.outfit-grid img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f4f4;
  display: block;
}

.outfit-grid .tall {
  grid-row: span 2;
  min-height: 260px;
}

.outfit-grid .mid {
  min-height: 126px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
  margin: 8px 0 14px;
}

.meta-row .meta-info,
.meta-row svg {
  width: 14px;
  height: 14px;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

.action-row button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #222;
}

.action-row button svg {
  width: 22px;
  height: 22px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.dots > i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #ddd;
  display: block;
}

.dots > i.on {
  background: #333;
}

.progress-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
  position: sticky;
  bottom: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.progress-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
  display: grid;
  place-items: center;
}

.progress-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.progress-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.progress-card small {
  display: block;
  color: #bdbdbd;
  margin-top: 2px;
  font-size: 12px;
}

.progress-card .bar {
  grid-column: 2 / 4;
  height: 4px;
  background: #3a3a3a;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.progress-card .bar > i {
  display: block;
  width: 10%;
  height: 100%;
  background: #fff;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: var(--tabbar-h);
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #ececec;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 30;
}

.tabbar[hidden] {
  display: none !important;
}

.tabbar .tab-profile {
  color: inherit;
}

.tabbar .tab-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 2px solid transparent;
}

.tabbar button.active .tab-avatar {
  border-color: #111;
}

.tabbar .tab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tabbar button {
  height: 48px;
  display: grid;
  place-items: center;
  color: #8e8e93;
}

.tabbar button.active {
  color: #111;
}

.tabbar button svg {
  width: 22px;
  height: 22px;
}

.tabbar .add {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: #111;
  color: #fff;
}

.tabbar .add svg {
  width: 22px;
  height: 22px;
}

.weather .temp {
  font-size: 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.weather-icon,
.weather .temp svg {
  width: 18px;
  height: 18px;
  color: #f5a623;
  stroke: #f5a623;
}

.prettify {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prettify svg {
  width: 12px;
  height: 12px;
}

.add-all {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-all svg {
  width: 14px;
  height: 14px;
}

.review-top .close svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.btn svg,
.btn [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-wrap .g-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 22px;
}

.stars button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #c7c7cc;
  line-height: 1;
}

.stars button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
}

.stars button.on {
  color: #111;
}

.stars button.on svg {
  fill: currentColor;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal-backdrop.show {
  display: flex;
}

.rate-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 22px 22px;
  text-align: center;
}

.rate-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.laurel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.laurel img {
  width: 48px;
  height: auto;
  display: block;
  object-fit: contain;
}

.laurel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.rate-submit {
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  background: #5c5c5c;
  color: #fff;
  box-shadow: none;
}

.rate-submit.is-ready {
  background: #111;
}

.home-toast {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 auto 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  background: #2c2c2e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-toast[hidden] {
  display: none !important;
}

.action-row .create-avatar {
  margin-left: auto;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  height: auto;
}

@media (min-width: 900px) {
  #app {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background: #0a0a0a;
    padding: 24px 0;
    align-items: center;
    height: 100dvh;
    max-height: 100dvh;
  }

  html,
  body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .shell {
    height: min(844px, calc(100dvh - 48px));
    max-height: min(844px, calc(100dvh - 48px));
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid #2a2a2a;
    overflow: hidden;
  }

  .screen.home,
  .screen.profile {
    border-radius: 28px;
  }

  .tabbar {
    border-radius: 0 0 28px 28px;
  }
}

/* —— Profile —— */
.screen.profile {
  padding: 0;
  padding-top: var(--safe-t);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.profile-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
}

.profile-top h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.profile-note {
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f0;
  color: #b42318;
  font-size: 13px;
}

.profile-note[hidden] {
  display: none !important;
}

.profile-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 16px calc(var(--tabbar-h) + 20px);
}

.profile-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #0a0a0a;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.profile-avatar-placeholder {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.profile-avatar-badge svg {
  width: 14px;
  height: 14px;
  color: #666;
}

.profile-meta {
  min-width: 0;
  padding-top: 2px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-name-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #ff7a1a;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px 2px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.streak-pill svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  stroke: #fff;
}

.profile-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 6px;
  font-size: 14px;
  color: #222;
}

.profile-counts b {
  font-weight: 700;
}

.profile-social {
  margin-top: 6px;
  font-size: 14px;
  color: #222;
}

.ig-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ig-row svg {
  width: 14px;
  height: 14px;
}

.profile-follow {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 14px;
  color: #222;
}

.profile-follow b {
  font-weight: 700;
}

.profile-member {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-btn {
  min-height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.profile-btn.icon svg {
  width: 18px;
  height: 18px;
}

.profile-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.profile-banner[hidden] {
  display: none !important;
}

.profile-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.profile-banner small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

.profile-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #888;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ececec;
  margin: 4px 0 14px;
}

.profile-tabs button {
  padding: 12px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #8e8e93;
  position: relative;
}

.profile-tabs button.active {
  color: #111;
}

.profile-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: #111;
  border-radius: 2px 2px 0 0;
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-cta {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.sort-btn svg {
  width: 16px;
  height: 16px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #222;
}

.toolbar-right svg {
  width: 18px;
  height: 18px;
}

.select-btn {
  font-size: 14px;
  font-weight: 600;
}

.lookbook-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.chip-outline {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.looks-empty,
.panel-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #c5c5c5;
  text-align: center;
}

.panel-empty p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #b0b0b0;
}

.empty-hanger svg,
.empty-plane svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.2;
  opacity: 0.55;
}

.looks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.looks-grid figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f3f3;
}

.looks-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-avatar-badge.has-photo {
  padding: 0;
  overflow: hidden;
  border-width: 2px;
}

.profile-avatar-badge.has-photo svg {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.sheet-backdrop[hidden] {
  display: none !important;
}

.sheet-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 10px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: sheetUp 0.22s ease;
}

@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #ddd;
  margin: 4px auto 12px;
}

.sheet-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.sheet-copy {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.sheet-action {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: #f3f3f3;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sheet-action svg {
  width: 18px;
  height: 18px;
}

.sheet-action.ghost {
  background: transparent;
  color: #666;
  margin-bottom: 0;
}

.sheet-field {
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

.sheet-field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.sheet-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  background: #fafafa;
}

.friends-list {
  max-height: 160px;
  overflow-y: auto;
  margin: 4px 0 10px;
  text-align: left;
}

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 600;
}

.friend-row button {
  color: #888;
  font-size: 12px;
  font-weight: 600;
}

.trips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trip-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}

.trip-card strong {
  display: block;
  font-size: 16px;
}

.trip-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

/* —— Closet / Search / Discover —— */
.screen.closet,
.screen.search-screen,
.screen.discover {
  padding: 0;
  padding-top: var(--safe-t);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.closet-top,
.discover-top,
.search-top {
  flex-shrink: 0;
  padding: 10px 16px 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 5;
}

.discover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.closet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.closet-tabs button {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #999;
  border-bottom: 2px solid transparent;
}

.closet-tabs button.active {
  color: #111;
  border-bottom-color: #111;
}

.closet-scroll,
.search-scroll,
.discover-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(var(--tabbar-h) + 28px);
}

.closet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.closet-count {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.closet-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.closet-cats::-webkit-scrollbar { display: none; }

.closet-cats .chip {
  flex: 0 0 auto;
  border: 0;
  background: #f2f2f2;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

.closet-cats .chip.active {
  background: #111;
  color: #fff;
}

.closet-cats .chip.icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.closet-cats .chip.icon svg {
  width: 16px;
  height: 16px;
}

.closet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}

.closet-card {
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}

.closet-card .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #f3f3f3;
  overflow: hidden;
}

.closet-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closet-card .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(80,80,80,.55);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.closet-card strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closet-card span {
  display: block;
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closet-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 14px;
}

.suggest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.suggest-card {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.suggest-card .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f2f2f2;
  overflow: hidden;
}

.suggest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggest-card .plus {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
}

.suggest-card .plus svg {
  width: 14px;
  height: 14px;
}

.suggest-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.search-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 10px 14px;
}

.search-bar svg {
  width: 16px;
  height: 16px;
  color: #888;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
  min-width: 0;
}

.search-clear,
.search-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  border: 0;
  flex-shrink: 0;
}

.search-clear svg,
.search-close svg {
  width: 16px;
  height: 16px;
}

.search-section {
  margin: 8px 0 16px;
}

.search-section-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.search-brand-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  font-size: 15px;
}

.search-empty {
  text-align: center;
  color: #999;
  margin-top: 40px;
}

.discover-top h1 {
  margin: 4px 0;
  font-size: 22px;
  font-weight: 700;
}

.discover-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #111;
  margin-bottom: 18px;
}

.discover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}

.discover-hero-copy {
  position: absolute;
  inset: auto 0 16px;
  text-align: center;
  color: #fff;
}

.discover-hero-copy strong {
  display: block;
  font-size: 22px;
}

.discover-hero-copy span {
  font-size: 13px;
  opacity: .85;
}

.discover-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.discover-block-head h2 {
  margin: 0;
  font-size: 17px;
}

.new-pill {
  background: #19c37d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

.discover-looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.discover-look {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.discover-look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-backdrop.dark-sheet {
  background: rgba(0,0,0,.45);
}

.add-sheet-card {
  background: #1c1c1e !important;
  color: #fff;
}

.add-sheet-card h3 {
  color: #fff;
}

.add-sheet-card .sheet-copy {
  color: #aaa;
}

.sheet-action.light {
  background: #fff;
  color: #111;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
}

.sheet-action.light small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 12px;
  font-weight: 500;
}

.sheet-action.light small svg {
  width: 12px;
  height: 12px;
}

.sheet-action.dark {
  background: #2c2c2e;
  color: #fff;
}

.toast-banner {
  position: fixed;
  top: calc(var(--safe-t) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: #2c2c2e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.toast-banner.show {
  opacity: 1;
}

/* —— Calendar / Avatar / Item / Outfit detail —— */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.week-day {
  border: 0;
  background: none;
  padding: 4px 0;
  text-align: center;
}

.week-day .wd {
  display: block;
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
}

.week-day .dn {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 6px;
}

.week-day .thumb {
  height: 44px;
  border-radius: 8px;
  background: #f2f2f2;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.week-day .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.week-day .thumb .plus {
  color: #bbb;
  font-size: 16px;
}

.week-day.on .dn {
  border-bottom: 2px solid #111;
  display: inline-block;
  padding-bottom: 2px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.home-pill {
  border: 0;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 calc(50% - 4px);
}

.home-pill svg {
  width: 16px;
  height: 16px;
}

.outfit-grid-btn {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f5f5f5;
  cursor: pointer;
}

.screen.calendar,
.screen.avatar-flow,
.screen.item-detail,
.screen.trip-detail,
.screen.user-profile,
.screen.paged,
.screen.outfit-detail {
  padding: 0;
  padding-top: var(--safe-t);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.cal-top,
.avatar-top,
.item-top,
.trip-detail-top,
.outfit-detail-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 10px;
}

.cal-top .streak-pill.on,
.streak-pill.on {
  display: inline-flex;
}

.cal-scroll,
.item-scroll,
.outfit-detail-scroll,
.avatar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px calc(var(--tabbar-h) + 24px);
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.cal-month-nav button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  display: grid;
  place-items: center;
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-bottom: 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  min-height: 72px;
  border: 0;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 4px;
  text-align: left;
  position: relative;
}

.cal-cell .n {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  color: #888;
}

.cal-cell .look {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cal-cell .add {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  color: #ccc;
  font-size: 18px;
}

.cal-cell.empty {
  background: transparent;
}

.avatar-top .mark.sm {
  margin: 0;
}

.avatar-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.avatar-hero {
  width: min(100%, 360px);
  max-height: 42vh;
  object-fit: contain;
}

.avatar-body p {
  max-width: 280px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.face-examples {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.face-card {
  position: relative;
  width: 42%;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 3/4;
  transform: rotate(-4deg);
}

.face-card.good {
  transform: rotate(5deg);
  width: 48%;
}

.face-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.face-badge.no {
  background: #e11d48;
  color: #fff;
}

.face-badge.yes {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.face-badge svg {
  width: 16px;
  height: 16px;
}

.item-top-actions {
  display: flex;
  gap: 8px;
}

.item-top-actions button {
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
}

.item-media {
  position: relative;
  background: #f2f2f2;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prettify-float {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  white-space: nowrap;
}

.item-fields {
  margin: 0 0 18px;
}

.item-fields > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.item-fields dt {
  color: #999;
  font-size: 14px;
}

.item-fields dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.outfit-detail {
  background: #0b0b0b;
  color: #fff;
}

.outfit-detail .icon-btn {
  background: #2a2a2a;
  color: #fff;
}

.outfit-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}

.outfit-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.save-pill {
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 15px;
}

.date-pill {
  border: 0;
  background: #2a2a2a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 18px;
}

.outfit-sec {
  margin-bottom: 18px;
}

.outfit-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #bbb;
  font-size: 14px;
}

.outfit-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.outfit-sec-grid .pick {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #1e1e1e;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
}

.outfit-sec-grid .pick.on {
  border-color: #fff;
}

.outfit-sec-grid .pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfit-sec-grid .pick.add {
  color: #888;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #1a1a1a;
}

.discover-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.discover-chips::-webkit-scrollbar {
  display: none;
}

.discover-chips .chip {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f2f2f2;
  color: #111;
  font-size: 13px;
  font-weight: 600;
}

.discover-chips .chip.active {
  background: #111;
  color: #fff;
}

.discover-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.discover-rail::-webkit-scrollbar {
  display: none;
}

.discover-rail-card {
  flex: 0 0 118px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.discover-rail-card .thumb {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.discover-rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-rail-card .meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-rail-card .meta small {
  display: block;
  color: var(--text-3);
  font-weight: 500;
}

.discover-look {
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
}

.discover-look .look-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #666;
}

.discover-look .look-meta strong {
  color: #111;
  font-size: 12px;
}

.discover-block-head .linkish {
  margin-left: auto;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.search-discover-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 14px;
  margin: 4px 0 14px;
  border-radius: 14px;
  background: #f5f5f5;
  border: 0;
}

.search-discover-cta strong {
  display: block;
  font-size: 14px;
}

.search-discover-cta small {
  color: #888;
  font-size: 12px;
}

.search-discover-cta svg {
  width: 18px;
  height: 18px;
  color: #999;
}

.panel-empty small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

/* —— Public user profiles —— */
.creator-block {
  margin: 4px 0 14px;
}

.creator-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.creator-card {
  flex: 0 0 auto;
  width: 86px;
  text-align: center;
}

.creator-avatar {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-card small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.user-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-counts {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.user-counts div {
  text-align: center;
}

.user-counts strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.user-counts span {
  font-size: 12px;
  color: var(--text-3);
}

.user-follow {
  margin-bottom: 14px;
}

/* —— Paged screens (tutorial, install) —— */
.paged-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 10px;
}

.paged-dots {
  display: flex;
  gap: 6px;
}

.paged-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8d8d8;
}

.paged-dot.active {
  background: #111;
  width: 18px;
  border-radius: 3px;
}

.paged-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 24px;
  gap: 10px;
}

.paged-art {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 8px;
}

.paged-body h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.paged-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-3);
  max-width: 32ch;
}

/* —— Avatar settings —— */
.sheet-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
}

.sheet-card textarea {
  width: 100%;
  background: #f3f3f3;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.slider-row {
  margin-bottom: 10px;
  text-align: left;
}

.slider-row output {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: #111;
}

.pose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.pose-grid button {
  padding: 10px 6px;
  border-radius: 8px;
  background: #f3f3f3;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.pose-grid button.active {
  background: #111;
  color: #fff;
}

.pick-row input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #111;
}

/* —— Styling settings —— */
.settings-hint {
  margin: -4px 0 8px;
  font-size: 13px;
  color: var(--text-3);
}

.settings-value {
  font-size: 14px;
  color: var(--text-3);
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 2px;
}

.segmented button {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.segmented button.active {
  background: #fff;
  color: var(--text);
}

.settings-select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: right;
}

.settings-select.wide {
  width: 100%;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.event-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  text-align: left;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
}

.event-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.event-meta small {
  font-size: 12px;
  color: var(--text-3);
}

/* —— Trips —— */
.trip-detail-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.trip-detail-title h1 {
  margin: 0;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-detail-title span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.trip-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.trip-tabs button {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  position: relative;
}

.trip-tabs button.active {
  color: var(--text);
}

.trip-tabs button.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #111;
}

.trip-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px calc(var(--tabbar-h) + 24px);
}

.trip-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip.static {
  background: #f3f3f3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.chip.removable::after {
  content: ' ×';
  opacity: 0.6;
}

.trip-looks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trip-look {
  margin: 0;
  position: relative;
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.trip-look img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.trip-look-day {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-look figcaption {
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-3);
}

.dest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.dest-row {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}

.dest-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dest-index {
  font-size: 12px;
  color: var(--text-3);
}

.dest-row input {
  width: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
}

.dest-dates {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dest-dates input {
  flex: 1;
  min-width: 0;
}

.icon-btn.sm {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-btn.sm svg {
  width: 14px;
  height: 14px;
}

.link-add {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.trip-card {
  width: 100%;
  text-align: left;
}

/* —— Lookbooks & look actions —— */
.panel-note {
  margin: 18px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.sheet-note {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 13px;
  text-align: left;
}

.pick-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
  text-align: left;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  cursor: pointer;
}

.pick-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #111;
}

.look-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}

.look-actions .chip-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.look-actions .chip-outline svg {
  width: 14px;
  height: 14px;
}

.chip-outline.danger {
  color: #c0392b;
  border-color: #f0c8c2;
}

/* —— Wishlist —— */
.wishlist-list {
  display: flex;
  flex-direction: column;
}

.wishlist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.wishlist-thumb {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--muted);
  overflow: hidden;
}

.wishlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wishlist-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.wishlist-name {
  font-size: 13px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-price {
  font-size: 13px;
  font-weight: 600;
}

.wishlist-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wishlist-actions .icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
}

.wishlist-actions .icon-btn svg {
  width: 16px;
  height: 16px;
}

.looks-grid figure,
.tryons-grid figure {
  cursor: pointer;
  position: relative;
}

.looks-grid figure .fig-label,
.tryons-grid figure .fig-label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tryon-sheet-card {
  background: #1c1c1e !important;
  color: #fff;
}

.tryon-sheet-card h3,
.tryon-sheet-card .sheet-copy {
  color: #fff;
}

.tryon-sheet-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #111;
  margin: 8px 0 12px;
}

.tryon-sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen.settings {
  padding: 0;
  padding-top: var(--safe-t);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.settings-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 10px;
}

.settings-top h1 {
  margin: 0;
  font-size: 18px;
}

.settings-spacer {
  width: 40px;
}

.settings-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px calc(var(--tabbar-h) + 28px);
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.settings-card {
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
}

.settings-row,
.settings-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  text-align: left;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.settings-card > :last-child {
  border-bottom: 0;
}

.settings-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.settings-row svg {
  width: 18px;
  height: 18px;
}

.settings-row.static strong {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-toggle span {
  font-size: 15px;
}

.settings-toggle input {
  width: 44px;
  height: 26px;
  appearance: none;
  background: #d1d1d6;
  border-radius: 999px;
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}

.settings-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s ease;
}

.settings-toggle input:checked {
  background: #111;
}

.settings-toggle input:checked::after {
  transform: translateX(18px);
}

.settings-signout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f2f2f2;
  font-size: 15px;
  font-weight: 600;
}

.settings-signout svg {
  width: 18px;
  height: 18px;
}

.cal-cell.has-look .add {
  display: none;
}

.week-day .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* —— Ask Youthfin —— */
.ask-sheet-card {
  max-height: min(88svh, 720px);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(12px + var(--safe-b));
}

.ask-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ask-sheet-head h3 {
  margin: 0;
}

.ask-sheet-sub {
  margin-top: 4px !important;
  margin-bottom: 10px !important;
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ask-chips button {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 600;
}

.ask-messages {
  flex: 1;
  min-height: 180px;
  max-height: 42svh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 12px;
}

.ask-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ask-bubble.user {
  align-self: flex-end;
  background: #1c1c1e;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.ask-bubble.assistant {
  align-self: flex-start;
  background: #f2f2f2;
  color: #111;
  border-bottom-left-radius: 6px;
}

.ask-bubble.typing {
  opacity: 0.7;
  font-style: italic;
}

.ask-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #ebebeb;
  padding-top: 10px;
}

.ask-compose input {
  flex: 1;
  border: 0;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 12px 14px;
  outline: none;
}

.ask-compose button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c1c1e;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ask-compose button svg {
  width: 18px;
  height: 18px;
}

/* —— Try-on create / process —— */
.tryon-create-card {
  background: #1c1c1e !important;
  color: #fff;
  max-height: min(88svh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tryon-create-card h3,
.tryon-create-card .sheet-copy {
  color: #fff;
}

.tryon-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 42svh;
  overflow-y: auto;
  margin: 8px 0 14px;
}

.tryon-pick {
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #111;
  position: relative;
}

.tryon-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tryon-pick.on {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tryon-pick span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-sheet-card {
  background: #1c1c1e !important;
  color: #fff;
  text-align: center;
  padding: 28px 20px calc(24px + var(--safe-b));
}

.process-sheet-card h3,
.process-sheet-card .sheet-copy {
  color: #fff;
}

.process-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  animation: yf-spin .8s linear infinite;
}

@keyframes yf-spin {
  to { transform: rotate(360deg); }
}

.action-row button.is-on {
  color: #c45c26;
}

.action-row button.is-on svg {
  fill: currentColor;
}

.discover-look.is-liked .look-meta span {
  color: #c45c26;
}

.home-suggest-hidden {
  opacity: 0.45;
  filter: grayscale(0.35);
}

#weather-city{display:block;max-width:145px;font-size:16px;color:inherit;background:transparent;border:0;min-height:32px}.weather-source{display:block;font-size:10px;color:inherit;opacity:.6}.sheet-action:disabled{opacity:.5;pointer-events:none}

#share-result{margin:20px 0}#share-link{width:100%;font-size:16px;border:1px solid #777;border-radius:10px;padding:12px;color:inherit;background:transparent;margin:8px 0}.sheet-card a.sheet-action{display:flex;justify-content:center;text-decoration:none}
