:root {
  color-scheme: light;
  --red: #c91636;
  --red-dark: #a8112c;
  --ink: #231d1b;
  --muted: #645a55;
  --paper: #faf8f5;
  --white: #fff;
  --line: #e8e0d9;
  --soft: #f1ebe6;
  --rose: #f9e8e9;
  --radius: 22px;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled, input:disabled { opacity: .62; cursor: wait; }
button, a, label, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1:focus { outline: none; }
h1, h2, p { margin: 0; }
h1 { font-weight: 850; line-height: 1.31; letter-spacing: -.045em; }
h2 { font-size: 1.1rem; line-height: 1.45; letter-spacing: -.035em; }
svg { flex-shrink: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.boot { padding: 2rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 21px; border-radius: 999px; font-weight: 750; text-decoration: none;
}
.primary { width: 100%; color: var(--white); background: var(--red); border: 1px solid var(--red); }
.primary:hover { background: var(--red-dark); }
.secondary { color: var(--ink); background: var(--soft); border: 1px solid transparent; }
.secondary:hover { border-color: #cbbcb0; }
.icon-button {
  width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: var(--soft);
}
.icon-button:hover { background: #eae1d9; }
.wordmark { color: var(--red); font: 900 2rem/.95 "Arial Black", Arial, sans-serif; letter-spacing: -.09em; white-space: nowrap; }
.wordmark span { margin-left: .035em; }
.brand-name { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.kicker { display: block; color: var(--red); font-weight: 850; font-size: .85rem; letter-spacing: .12em; }
.entry, .quiz, .processing, .result { width: min(100%, 478px); margin-inline: auto; padding: 0 clamp(20px, 6.15vw, 30px); }
.entry, .result { padding-bottom: 30px; }
.entry-brand { display: flex; align-items: end; gap: 12px; padding-block: 27px 20px; }
.entry-brand .brand-name { padding-bottom: 1px; }
.cover {
  display: grid; grid-template-columns: 1fr .84fr 1fr; align-items: start; gap: 6px;
  height: clamp(142px, 46vw, 200px); margin-bottom: 12px;
}
.cover img { width: 100%; height: 84%; object-fit: cover; border-radius: 15px; }
.cover img:nth-child(2) { margin-top: 24px; height: 83%; }
.cover img:nth-child(3) { margin-top: 10px; height: 91%; }
.entry-heading { margin-bottom: 22px; }
.entry h1 { font-size: clamp(2.05rem, 10vw, 3.05rem); }
.entry-heading p { color: var(--muted); line-height: 1.6; margin-top: 9px; }
#email-form { display: grid; }
#email-form label { font-weight: 750; font-size: .85rem; margin-bottom: 6px; }
#email, .measure input {
  width: 100%; height: 54px; border: 1px solid #dacec4; border-radius: 15px; background: var(--white); padding-inline: 15px;
}
#email::placeholder, .measure input::placeholder { color: #7d746e; }
.error { color: var(--red-dark); font-size: .85rem; font-weight: 700; margin: 5px 0 10px; min-height: 0; }
.error:empty { margin: 0; }
#email-form .primary { margin-top: 12px; }
.quiz { min-height: 100dvh; display: flex; flex-direction: column; }
.quiz-top { height: 77px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; }
.quiz-top .icon-button { justify-self: start; }
.quiz-count { justify-self: end; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.progress { height: 5px; overflow: hidden; background: var(--soft); border-radius: 1em; }
.progress div { height: 100%; background: var(--red); border-radius: inherit; }
.quiz-form { flex: 1; display: flex; flex-direction: column; }
.quiz-heading { margin: 30px 0 23px; }
.quiz h1, .processing h1, .result h1 { margin-top: 7px; font-size: clamp(1.75rem, 7.35vw, 2.35rem); }
.quiz-heading p { margin-top: 9px; color: var(--muted); }
.quiz-footer { margin-top: auto; padding: 19px 0 max(26px, calc(env(safe-area-inset-bottom) + 12px)); }
.measure { position: relative; }
.measure span { position: absolute; right: 18px; top: 17px; color: var(--muted); font-weight: 750; }
.measure input { height: 62px; font-size: 1.4rem; font-weight: 750; padding-right: 64px; appearance: textfield; }
.measure input::-webkit-inner-spin-button { appearance: none; }
.options { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.option, .check-item {
  display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 10px 13px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
}
.option { font-size: .94rem; }
.option:has(:checked), .check-item:has(:checked) { border-color: var(--red); background: var(--rose); }
.option input, .check-item input { flex: 0 0 19px; width: 19px; height: 19px; accent-color: var(--red); margin: 0; }
.photo-fields { display: grid; gap: 10px; }
.photo-field {
  display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 10px; min-height: 78px;
  padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); cursor: pointer;
}
.photo-field:has(:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.photo-field:has(:disabled) { cursor: wait; }
.photo-field strong, .photo-field small { display: block; }
.photo-field small { color: var(--muted); font-size: .79rem; line-height: 1.48; margin-top: 3px; }
.photo-thumb {
  width: 55px; height: 58px; overflow: hidden; display: grid; place-items: center;
  border-radius: 10px; background: var(--rose); color: var(--red);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-action { padding-inline: 2px; justify-self: end; color: var(--red-dark); font-weight: 750; font-size: .85rem; }
.privacy { display: flex; align-items: start; gap: 7px; margin-block: 13px 4px; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.privacy svg { margin-top: 2px; }

.processing .entry-brand { justify-content: center; }
.processing { text-align: center; }
.processing-pins { display: flex; justify-content: center; align-items: center; margin: 42px 0 33px; height: 203px; }
.processing-pins img { width: 34%; height: 78%; object-fit: cover; border: 3px solid var(--paper); border-radius: 18px; box-shadow: 0 6px 16px #44312023; }
.processing-pins img:first-child { transform: translateX(13%) rotate(-10deg); animation: photo-left .85s ease-out both; }
.processing-pins img:nth-child(2) { position: relative; z-index: 1; height: 95%; animation: photo-center .75s ease-out both; }
.processing-pins img:last-child { transform: translateX(-13%) rotate(10deg); animation: photo-right .95s ease-out both; }
@keyframes photo-left { from { opacity: .35; transform: translateX(62%) rotate(0deg); } }
@keyframes photo-center { from { transform: translateY(13px) scale(.88); } }
@keyframes photo-right { from { opacity: .35; transform: translateX(-62%) rotate(0deg); } }
.processing-list { display: grid; gap: 14px; width: max-content; max-width: 100%; margin: 24px auto; text-align: left; padding: 0; list-style: none; }
.processing-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.processing-list li::before {
  content: ""; width: 12px; height: 12px; border: 2px solid #dcc8c4; border-radius: 50%;
  animation: fill-step .4s var(--delay, .25s) forwards;
}
.processing-list li:nth-child(2) { --delay: .8s; }
.processing-list li:nth-child(3) { --delay: 1.31s; }
@keyframes fill-step { to { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--rose); } }
.result-intro { margin: 12px 0 19px; }
.result-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; padding: 15px;
  background: var(--rose); border: 1px solid #f3d8d9; border-radius: var(--radius);
}
.result-card > div:not(.swatches) > span { display: block; font-size: .77rem; color: var(--muted); }
.result-card strong { display: block; font-size: 1.13rem; margin-top: 2px; }
.result-card .swatches { grid-column: 1 / -1; }
.look-preview h2 { font-size: 1rem; }
.look-preview > p:not(.empty) { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.result .look-preview { margin-block: 17px; }
.result-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 11px; margin-top: 10px; }
.result-preview .pin-image { aspect-ratio: 2 / 3; }
.swatches { display: flex; align-items: start; gap: 4px; }
.swatches > span { min-width: 0; flex: 1 1 0; }
.swatches i { display: block; width: 100%; height: 15px; border: 1px solid #42302722; background: var(--swatch); border-radius: 6px; }
.swatches.labeled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 15px; }
.swatches.labeled > span { color: var(--muted); font-size: .8rem; }
.swatches.labeled i { height: 31px; margin-bottom: 3px; }

.app-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.app-header-inner {
  display: flex; align-items: center; gap: 11px; width: min(100%, 970px); height: 63px;
  margin: 0 auto; padding-inline: 16px;
}
.header-logo { border: 0; padding: 0; background: none; }
.app-header .account { margin-left: auto; width: 38px; height: 38px; }
.workspace { width: min(100%, 970px); margin-inline: auto; padding: 16px 14px calc(83px + env(safe-area-inset-bottom)); }
.page-title { margin: 0 2px 15px; }
.page-title h1 { font-size: clamp(1.65rem, 7vw, 2.35rem); }
.page-title p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.profile-preview {
  display: flex; justify-content: space-between; gap: 8px; align-items: center; width: 100%; min-height: 48px;
  margin-bottom: 11px; padding: 8px 11px; text-align: left; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; font-size: .84rem;
}
.profile-preview .middot { padding: 0 5px; color: var(--muted); }
.profile-preview .swatches { width: min(34%, 135px); }
.profile-preview .swatches i { height: 13px; border-radius: 50%; width: 13px; }
.profile-preview .swatches > span { flex: 1 1 0; }
.search {
  display: flex; align-items: center; gap: 10px; min-height: 45px; width: 100%; padding: 0 13px; border-radius: 999px;
  background: var(--soft); color: var(--muted);
}
.search:focus-within { outline: 2px solid var(--red); }
.search input { width: 100%; height: 44px; min-width: 0; border: 0; padding: 0; background: none; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); font-size: .9rem; }
.filters, .occasion-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block: 11px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 42px;
  padding: 6px 9px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: .82rem; font-weight: 730;
}
.chip:hover { border-color: #bfa99b; }
.chip.active { color: var(--white); background: var(--red); border-color: var(--red); }
.feed-label { display: flex; justify-content: space-between; gap: 8px; margin: 3px 2px 8px; color: var(--muted); font-size: .77rem; }
.masonry { --columns: 2; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 16px 12px; align-items: start; }
.masonry.laid-out { grid-auto-rows: 1px; row-gap: 0; }
.pin { min-width: 0; align-self: start; }
.pin-link { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: transparent; }
.pin-image {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: 17px; background: var(--soft);
}
.pin-image img { width: 100%; height: auto; }
.pin-link:hover .pin-image { filter: brightness(.95); }
.personal-image { display: grid; place-items: center; aspect-ratio: 2 / 3; color: var(--red); background: var(--soft); }
.personal-image img { position: absolute; inset: 0; }
.personal-image img, .result-preview .pin-image img { width: 100%; height: 100%; object-fit: contain; }
.photo-lock {
  display: inline-flex; align-items: center; gap: 4px; position: absolute; top: 7px; left: 7px; max-width: calc(100% - 14px);
  padding: 3px 7px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .66rem; font-weight: 750;
}
.pin strong, .pin small { display: block; overflow-wrap: anywhere; margin-inline: 3px; }
.pin strong { font-size: .89rem; line-height: 1.36; margin-top: 6px; }
.pin small { color: var(--muted); font-size: .74rem; line-height: 1.6; margin-top: 1px; }
.empty { margin: 15px 0 10px; color: var(--muted); }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; inset-inline: 0; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav > div { display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 970px); margin: auto; padding: 3px 2px 4px; }
.bottom-nav button {
  display: grid; place-content: center; justify-items: center; min-width: 0; min-height: 56px; gap: 3px; white-space: nowrap;
  padding: 3px 1px; color: var(--muted); background: none; border: 0; font-size: clamp(.6rem, 2.75vw, .77rem); font-weight: 730;
}
.bottom-nav button[aria-current] { color: var(--red); }
.bottom-nav button[aria-current] svg { filter: drop-shadow(0 0 5px #c9163633); }

.section-card, .garment, .wardrobe, .wardrobe-summary, .today-card, .extra {
  background: var(--white); border: 1px solid var(--line); border-radius: 17px;
}
.section-card { padding: 15px; margin-bottom: 11px; }
.section-card p { margin-top: 6px; }
.section-card .secondary { margin-top: 10px; }
.section-card h2 + .muted, .section-card p + .muted { display: block; margin-top: 6px; }
.result-name { display: inline-block; margin-top: 8px; color: var(--red); font-size: 1.24rem; font-weight: 850; }
.lead { font-weight: 740; }
.facts { display: grid; gap: 7px; margin: 8px 0 0; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.facts dt { font-size: .88rem; color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 730; }
.extras { display: grid; gap: 8px; margin-top: 17px; }
.extra {
  padding: 9px; min-height: 58px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; text-align: left;
}
.extra strong { font-size: .88rem; }
.extra:hover { border-color: #cbbcb0; }
.extra-icon, .garment-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--red-dark); background: var(--rose); }
.locked { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.capsule { display: grid; gap: 9px; }
.garment { display: grid; grid-template-columns: 49px 1fr; gap: 10px; padding: 11px; }
.garment-icon { width: 49px; height: 49px; background: var(--swatch); color: #1c1414; }
.garment-icon svg { fill: #fff8; }
.garment p, .garment .muted { font-size: .85rem; }
.retailers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.retailers a { font-size: .8rem; font-weight: 770; text-decoration: none; padding: 8px 13px; min-height: 42px; background: var(--soft); border-radius: 999px; }
.retailers a:hover { background: var(--rose); }
.today-card { overflow: hidden; }
.today-card > button { display: block; width: 100%; border: 0; padding: 0; background: var(--soft); }
.today-card img { width: 100%; height: auto; max-height: 535px; object-fit: cover; }
.today-copy { padding: 14px; }
.today-copy p { margin-block: 4px 10px; }
.wardrobe-summary { display: grid; gap: 8px; margin: 0 0 10px; padding: 12px; }
.wardrobe-summary progress { width: 100%; height: 10px; border-radius: 999px; accent-color: var(--red); }
.wardrobe-summary progress::-webkit-progress-bar { border-radius: 999px; background: var(--soft); }
.wardrobe-summary progress::-webkit-progress-value { border-radius: 999px; background: var(--red); }
.wardrobe { display: grid; overflow: hidden; }
.check-item { min-height: 49px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: 0; }
.text-back { display: flex; align-items: center; min-height: 41px; gap: 4px; padding: 0; border: 0; background: none; color: var(--red-dark); }
.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.calendar > * { text-align: left; padding: 7px; min-height: 63px; border: 1px solid var(--line); border-radius: 10px; font-weight: 790; }
.calendar > button { color: var(--red-dark); background: var(--white); }
.calendar > div { color: var(--muted); background: var(--soft); }
.calendar span { display: block; color: var(--muted); font-weight: 550; font-size: .72rem; line-height: 1.3; }

.sheet {
  max-width: min(100%, 520px); width: 100%; max-height: 87dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: #26171c65; }
.sheet-inner { padding: 14px 16px max(22px, calc(env(safe-area-inset-bottom) + 11px)); }
.sheet-inner > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-inner > p { margin-block: 10px; }
.sheet-inner > header .icon-button { flex-shrink: 0; }
.dialog-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-image { margin-block: 10px; background: var(--soft); border-radius: 16px; overflow: hidden; }
.detail-image img { width: 100%; max-height: 49dvh; height: auto; object-fit: contain; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-row span { background: var(--soft); border-radius: 999px; padding: 4px 9px; color: var(--muted); font-size: .8rem; }
.match { font-size: .84rem; font-weight: 700; color: var(--red-dark); }
.sample-note { font-size: .82rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.photo-gallery figure { margin: 0; min-width: 0; }
.photo-gallery img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: var(--soft); border-radius: 11px; }
.photo-gallery figcaption { font-size: .78rem; padding-top: 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.danger { color: var(--red-dark); }

@media (min-width: 640px) {
  .workspace { padding-inline: 21px; }
  .masonry { --columns: 3; }
  .capsule { grid-template-columns: 1fr 1fr; }
  .today-card { display: grid; grid-template-columns: 1fr 1fr; }
  .today-copy { align-self: center; padding: 22px; }
  .sheet { margin: auto; border-radius: 22px; }
}
@media (min-width: 880px) {
  .masonry { --columns: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; }
}
