﻿: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;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  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;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
}

#app {
  min-height: 100dvh;
  background: var(--bg);
}

.shell {
  width: 100%;
  max-width: var(--content);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

.shell.busy {
  pointer-events: none;
  opacity: 0.72;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  background: var(--bg);
  padding: calc(12px + var(--safe-t)) 20px 0;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: flex;
}

.screen.dark {
  background: #121212;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    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));
  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 {
  margin: 28px auto 24px;
  width: min(100%, 320px);
  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-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.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;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-top .close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  display: grid;
  place-items: center;
}

.add-all {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.review-list {
  display: grid;
  gap: 22px;
  padding: 10px 0 30px;
}

.review-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-body {
  background: #1e1e1e;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.review-body img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b2b2b;
}

.review-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
}

.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;
}

.home {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(84px + var(--safe-b));
}

.home-top {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.home-top .mark.sm {
  text-align: center;
}

.home-tools {
  display: flex;
  gap: 4px;
}

.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;
}

.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.1fr 0.9fr;
  gap: 8px;
  margin-bottom: 10px;
}

.outfit-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f4f4;
  display: block;
}

.outfit-grid .tall {
  grid-row: span 2;
  min-height: 220px;
}

.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: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
}

.progress-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.progress-icon svg {
  width: 20px;
  height: 20px;
}

.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;
  height: calc(64px + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 8;
}

.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(8px);
  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 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

@media (min-width: 900px) {
  .shell {
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
  }
}
