:root {
  --paper: #fdfbf7;
  --linen: #f1ece2;
  --hair: #e8e3d9;
  --ink: #141414;
  --graphite: #4d4a44;
  --navy: #1f2e52;
  --good: #4f6b4a;
  --problem: #9b3f36;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
body,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}
button,
.eyebrow,
.button,
.label {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--ink);
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  border-radius: 0;
}
button:hover,
.button:hover {
  background: #302f2c;
  color: var(--paper);
}
button:active {
  background: #000;
}
.outline {
  background: var(--paper);
  color: var(--ink);
}
.outline:hover {
  background: var(--linen);
  color: var(--ink);
}
button:disabled {
  background: var(--linen);
  border-color: var(--hair);
  color: var(--graphite);
  cursor: default;
}
.danger {
  border-color: var(--problem);
  color: var(--problem);
}
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
h1,
h2,
h3,
.wordmark {
  font-family: var(--font-heading);
  font-weight: 400;
}
h1 {
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 24px;
  text-wrap: balance;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
}
h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}
p {
  margin: 0 0 20px;
  text-wrap: pretty;
}
label {
  display: block;
}
.label,
.eyebrow,
legend {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphite);
  margin: 0 0 8px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hair);
  padding: 10px 16px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 0;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input[readonly] {
  background: var(--linen);
  color: var(--graphite);
}
input:focus {
  border-color: var(--ink);
}
input[aria-invalid='true'] {
  border-color: var(--problem);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
input::placeholder {
  color: var(--graphite);
}
.site-header {
  height: 80px;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 3.4vw, 48px);
}
.wordmark {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
}
.site-header > div:last-child {
  text-align: right;
}
.icon-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.icon-link svg {
  width: 24px;
  height: 24px;
}
.content {
  max-width: 816px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) 24px 72px;
}
.form-content {
  max-width: 528px;
}
.landing {
  max-width: none;
  padding: clamp(48px, 9vw, 128px) clamp(20px, 15vw - 40px, 168px) 96px;
}
.landing > div {
  max-width: 600px;
}
.landing p {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  margin-bottom: 26px;
}
.highlight {
  font-size: clamp(20px, 1.7vw, 24px);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  box-shadow: inset 0 -0.38em 0 #d9deea;
}
.highlight:hover {
  box-shadow: inset 0 -0.38em 0 #c6cee2;
}
.stack {
  display: grid;
  gap: 20px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.birthday {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 8px;
}
.phone-row {
  display: grid;
  grid-template-columns: 96px 1fr;
}
.prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linen);
  border: 1px solid var(--hair);
  border-right: 0;
  font-size: 17px;
  color: var(--graphite);
}
.legal,
.small {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.4;
}
.muted {
  color: var(--graphite);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.error {
  font-size: 15px;
  color: var(--problem);
  margin: 10px 0;
  min-height: 0;
}
.error:empty {
  display: none;
}
.code-wrap {
  position: relative;
  margin: 8px 0 16px;
}
.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 48px));
  gap: 8px;
}
.code-boxes span {
  height: 56px;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.code-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  color: transparent;
  caret-color: transparent;
}
.code-wrap:focus-within span.active {
  border-color: var(--ink);
}
.code-wrap.wrong span {
  border-color: var(--problem);
}
.chip {
  font-family: var(--font-label);
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid var(--hair);
  color: var(--graphite);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.check span {
  padding-bottom: 6px;
}
.photo-box {
  border: 1px solid var(--hair);
  padding: 12px;
}
.photo-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.photo-meta button {
  min-height: 44px;
  padding: 0 14px;
}
.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.thumb {
  position: relative;
  width: 60px;
}
.thumb img {
  width: 60px;
  height: 80px;
  object-fit: cover;
}
.thumb button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  justify-content: flex-end;
  align-items: flex-start;
}
.thumb button span {
  background: var(--ink);
  color: var(--paper);
  width: 24px;
  height: 24px;
}
.you-content {
  padding-top: 24px;
  padding-bottom: 32px;
}
.you-content h1 {
  margin-bottom: 16px;
}
.you-content .stack {
  gap: 16px;
}
.you-content p {
  margin-bottom: 8px;
}
.handoff {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.number-display {
  font-family: var(--font-label);
  font-size: 40px;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 8px;
}
.desktop-only {
  display: block;
}
.phone-only {
  display: none;
}
.qr {
  width: 160px;
  height: 160px;
}
.account {
  max-width: 1360px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 3.4vw, 48px) 80px;
  margin: auto;
}
/* The account list and its section pages (Nov 12 2026): a list of rows on /account; each section
   its own page with a back link on phones; from 900 px the list is a left column beside it. */
.section-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
}
.section-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.section-row .row-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.section-row .row-name {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.section-row .row-summary {
  color: var(--graphite);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-row .row-arrow {
  font-size: 24px;
  line-height: 1;
  color: var(--graphite);
}
.section-row[aria-current='page'] {
  background: var(--linen);
  box-shadow: inset 2px 0 0 var(--ink);
}
.account-list {
  max-width: 720px;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
}
.account-layout > .section-list.side {
  display: none;
}
/* The header's back arrow (Nov 12 2026): on a section page on a phone it takes the chat icon's
   place, same position and size (.icon-link, 44 px); on the list and from 900 px, the chat icon. */
.header-back {
  display: none;
}
@media (max-width: 899px) {
  body.on-section .site-header .header-back {
    display: inline-flex;
  }
  body.on-section .site-header .chat-link {
    display: none;
  }
}
@media (min-width: 900px) {
  .account-layout {
    grid-template-columns: 280px minmax(0, 720px);
    gap: 48px;
  }
  .account-section.wide .account-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .account-layout > .section-list.side {
    display: flex;
    align-self: start;
    position: sticky;
    top: 24px;
  }
}
.panel {
  border: 1px solid var(--hair);
  padding: 20px;
  margin-top: 24px;
}
.list-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.list-row p {
  margin: 0;
}
.list-row button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}
.good {
  color: var(--good);
}
.size-row {
  display: grid;
  grid-template-columns: 100px auto minmax(80px, 1fr) auto minmax(64px, 100px) 44px;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.size-row button {
  padding: 0;
  min-width: 44px;
}
.switch {
  position: relative;
  width: 52px;
  min-width: 52px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: var(--hair);
  border-radius: 14px;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch[aria-checked='true'] {
  background: var(--ink);
}
.switch[aria-checked='true']::after {
  transform: translateX(24px);
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.photos-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--linen);
}
.generated-grid img {
  object-fit: contain;
}
.photos-grid figure {
  margin: 0;
}
.photos-grid button {
  width: 100%;
  min-height: 44px;
}
.looks-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.looks-filters, .look-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.looks-filters { margin: 22px 0; }
.look-filter {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 24px;
  background: var(--linen);
  color: var(--ink);
}
.look-filter.active { background: var(--ink); color: white; }
.looks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.look-card { position: relative; border: 1px solid var(--hair); background: white; }
/* the card opens its look's page (Nov 16 2026); a picture no page shows opens the one viewer */
.look-card > .look-open {
  text-decoration: none;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  cursor: zoom-in;
}
a.look-open { cursor: pointer; }
.look-card > .look-open:hover { background: none; color: var(--ink); }
.look-card img, .look-image-missing {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--linen);
}
.look-image-missing { display: grid; place-items: center; padding: 16px; }
.look-card-copy { padding: 16px; }
.look-card-copy h3 { margin: 5px 0 12px; }
.look-chips span {
  padding: 5px 8px;
  border-radius: 15px;
  background: var(--linen);
  font-size: 12px;
}
.looks-load-status { min-height: 30px; margin: 24px 0; text-align: center; }
.skeleton {
  height: 24px;
  background: var(--linen);
  margin: 18px 0;
  animation: shimmer 1s alternate infinite;
}
.skeleton:nth-child(2) {
  width: 75%;
}
#footer {
  border-top: 1px solid var(--hair);
  padding: 24px;
  text-align: center;
}
#footer nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
#footer nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
#footer p {
  font-size: 15px;
  color: var(--graphite);
  margin: 12px 0 0;
}
/* every short message (Constantine, Nov 16 2026): the body serif, a fixed height, square, centred */
#toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  /* even spacing (Nov 23 2026): 16px all round the words; an action's own 44px box sits 4px in */
  padding: 0 16px;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.35 var(--font-body);
  cursor: pointer;
  touch-action: pan-y;
  box-shadow: 0 6px 18px rgb(20 20 20 / 0.25);
  z-index: 10;
}
#toast:empty {
  display: none;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.busy {
  position: relative;
  overflow: hidden;
  opacity: 0.7;
}
.busy::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 40%;
  background: var(--paper);
  animation: slide 1.2s infinite;
}
.loading {
  padding: 48px;
  color: var(--graphite);
}
@keyframes slide {
  to {
    transform: translateX(250%);
  }
}
@keyframes shimmer {
  to {
    opacity: 0.5;
  }
}
@media (max-width: 767px) {
  .site-header {
    height: 64px;
  }
  .wordmark {
    font-size: 22px;
  }
  .desktop-only {
    display: none;
  }
  .phone-only {
    display: block;
  }
  .size-row {
    grid-template-columns: 80px auto minmax(60px, 1fr) auto minmax(50px, 65px) 44px;
    gap: 5px;
    font-size: 15px;
  }
  .size-row input,
  .size-row select {
    padding: 8px;
    font-size: 16px;
  }
  .content {
    padding-top: 40px;
  }
  .you-content {
    padding-top: 24px;
  }
  .you-content h1 {
    font-size: 32px;
  }
  .you-content .stack {
    gap: 14px;
  }
  .code-boxes {
    gap: 6px;
  }
  .number-display {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.given-label {
  margin-top: 32px;
}
.privacy-links {
  margin-top: 24px;
}
h1[tabindex='-1']:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.example-dialog {
  width: min(560px, calc(100% - 40px));
  max-height: 86dvh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--ink);
}
.example-dialog::backdrop {
  background: #14141466;
}
.example-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.example-heading h2 {
  margin-top: 14px;
}
.example-heading button {
  font:
    24px var(--font-body);
  min-width: 48px;
  padding: 0;
}
.example-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.bubble {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 17px;
  margin: 0;
  border-radius: 16px;
}
.bubble.you {
  align-self: flex-end;
  background: var(--navy);
  color: var(--paper);
}
.bubble.fitting {
  align-self: flex-start;
  background: var(--linen);
}
@media (max-width: 767px) {
  .example-dialog {
    margin: auto 0 0;
    width: 100%;
    max-height: 88dvh;
    border-radius: 16px 16px 0 0;
    padding: 24px;
  }
}

input[aria-invalid='true'] {
  border-color: var(--problem);
}
.example-dialog {
  max-width: 100%;
}

@media (max-width: 360px) {
  .size-row {
    grid-template-columns: minmax(72px, 1fr) 14px minmax(76px, 1fr) 44px;
    gap: 8px;
  }
  .size-row select {
    grid-column: 1;
    grid-row: 1;
  }
  .size-row > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .size-row input[name='brand'] {
    grid-column: 3;
    grid-row: 1;
  }
  .size-row > span:nth-child(4) {
    grid-column: 1/3;
    grid-row: 2;
  }
  .size-row input[name='size'] {
    grid-column: 3;
    grid-row: 2;
  }
  .size-row button {
    grid-column: 4;
    grid-row: 1/3;
  }
}

.verification-actions {
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .verification-actions .button {
    width: 100%;
  }
}
#verify-target img { display: block; margin: 24px 0; }
.verification-code { font-family: var(--font-label); font-size: 32px; letter-spacing: .12em; }

.contact-save { display:flex; align-items:flex-start; gap:16px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line, #d8d2c8); }
.contact-save img { flex:none; border-radius:50%; }
.contact-save p:first-child { margin-top:0; }
@media (max-width:360px) { .contact-save { gap:12px; } .contact-save img { width:48px; height:48px; } }

/* Private voting summaries live alongside the signed-in handoff and account. */

/* Your closet: their own pieces, cut from their fit check photos (docs/bhavik/fit-check-plan.md step 6) */
.closet-stats { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 28px 0 22px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); }
.closet-stats div { display: flex; flex-direction: column; }
.closet-stats strong { font-family: var(--font-heading); font-weight: 400; font-size: 34px; line-height: 1.1; }
.closet-stats span { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.closet-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-bottom: 10px; scrollbar-width: none; }
.closet-filter button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; cursor: pointer; }
.closet-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.closet-filter button sup { font-size: 10px; margin-left: 4px; opacity: 0.7; vertical-align: 2px; }
.closet-shelf + .closet-shelf { margin-top: 34px; }
.closet-shelf h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.closet-shelf h3 span { color: var(--graphite); font-weight: 400; }
.closet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.closet-piece { position: relative; margin: 0; }
.closet-piece .swatch { position: relative; aspect-ratio: 4 / 5; background: var(--linen); overflow: hidden; display: grid; place-items: center; transition: background 0.2s ease; }
.closet-piece:hover .swatch { background: #ebe4d6; }
.closet-piece img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.35s ease; }
.closet-piece:hover img { transform: scale(1.04); }
.closet-piece figcaption { padding-top: 10px; }
.closet-piece figcaption p { margin: 0; font-size: 16px; line-height: 1.3; }
.closet-piece figcaption p::first-letter { text-transform: uppercase; }
.closet-piece figcaption span { display: block; margin-top: 3px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.closet-piece .worn { position: absolute; left: 8px; top: 8px; padding: 2px 8px; background: var(--paper); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; }
/* The X on a piece and on an outfit photo (Constantine, Nov 15 2026): a thin x, 12 px, on a small
   quiet circle in the card's top-right corner, so it sits on the picture without shouting; the tap
   area is still 44 px, always shown on a touch screen (no hover there), and it asks before deleting. */
.closet-piece .remove, .outfit-wrap .remove { position: absolute; right: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--paper); cursor: pointer; opacity: 0; transition: opacity 0.15s ease; }
.closet-piece .remove::before, .outfit-wrap .remove::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgb(20 20 20 / 0.32); transition: background 0.15s ease; }
.closet-piece .remove svg, .outfit-wrap .remove svg { position: relative; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.closet-piece:hover .remove, .closet-piece .remove:focus-visible, .outfit-wrap:hover .remove, .outfit-wrap .remove:focus-visible { opacity: 1; }
.closet-piece .remove:hover, .outfit-wrap .remove:hover { background: none; color: var(--paper); }
.closet-piece .remove:hover::before, .outfit-wrap .remove:hover::before { background: var(--problem); }
@media (hover: none) { .closet-piece .remove, .outfit-wrap .remove { opacity: 1; } }
/* a look card's X on Looks: the closet's X, the same look and behaviour (Nov 16 2026) */
.look-card .remove { position: absolute; right: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--paper); cursor: pointer; opacity: 0; transition: opacity 0.15s ease; }
.look-card .remove::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgb(20 20 20 / 0.32); transition: background 0.15s ease; }
.look-card .remove svg { position: relative; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.look-card:hover .remove, .look-card .remove:focus-visible { opacity: 1; }
.look-card .remove:hover { background: none; color: var(--paper); }
.look-card .remove:hover::before { background: var(--problem); }
@media (hover: none) { .look-card .remove { opacity: 1; } }
.outfit-wrap { position: relative; scroll-snap-align: start; }
.confirm-dialog { max-width: min(440px, calc(100vw - 32px)); padding: var(--space-5); border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); color: var(--ink); }
.confirm-dialog::backdrop { background: rgb(0 0 0 / 0.35); }
.confirm-dialog p { margin: 0 0 var(--space-4); }
.confirm-dialog .actions { margin-top: 0; flex-wrap: wrap; }
.confirm-dialog .danger:not(.outline) { background: var(--problem); border-color: var(--problem); color: var(--paper); }
@media (max-width: 600px) { .closet-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } .closet-stats strong { font-size: 28px; } }
.closet-empty { padding: 48px 24px; background: var(--linen); text-align: center; }
.closet-empty-line { margin: 16px 0 0; color: var(--graphite); }
.closet-empty p { max-width: 24em; margin: 0 auto; }
/* "Add pieces" (Nov 16 2026): the button above the closet, a status while photos are read, one line a photo that added nothing */
.closet-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 20px; }
/* Add photos (filled, the primary) and Add pieces (outlined) side by side, the same size; two rows only
   on the narrowest phones (Constantine, Nov 22 2026). The progress sits on its own row under them. */
.closet-add-buttons { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.closet-add-buttons button { flex: 1 1 140px; min-width: 0; padding: 0 12px; }
@media (min-width: 900px) { .closet-add-buttons { flex: 0 1 auto; } .closet-add-buttons button { flex: 0 0 200px; } }
/* Dropping photos on the closet page (a computer): the whole window says where they go */
.closet-drop-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgb(253 251 247 / 0.94); border: 2px dashed var(--ink); pointer-events: none; }
.closet-drop-overlay[hidden] { display: none; }
.closet-drop-overlay p { margin: 0; font: 600 18px/1.3 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.closet-add #closet-add-status { margin: 0; color: var(--graphite); }
.closet-add #closet-add-status:empty { display: none; }
.closet-photos-setting { align-items: flex-start; margin-bottom: var(--space-5); }
.confirm-box { margin: 0 0 var(--space-5); padding: var(--space-4); border: 1px solid var(--hair); border-radius: 12px; }
.confirm-box p { margin: 0 0 var(--space-4); }
.confirm-box .actions { margin-top: 0; }

/* Account pages, spaced on the brand kit's scale (Nov 10 2026; Brand Kit/handoff tokens/spacing.css
   and its layout rules: form stack 16-24px, label to field 8px, 44px taps, account content 720px). */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --line: var(--hair);
}
.account h2 { margin: 0 0 var(--space-4); }
.account h2 + p { margin-bottom: var(--space-5); }
.account .stack { gap: var(--space-5); }
.account .stack > p { margin: 0; }
.account .stack > p.small { margin-top: calc(-1 * var(--space-3)); }
.account .actions { gap: var(--space-3); }
.account .list-row { padding: var(--space-4) 0; }
.account hr { margin: var(--space-6) 0; border: 0; border-top: 1px solid var(--hair); }
.account .privacy-links { margin-top: var(--space-5); }

/* A page's parts (Preferences: shopping, style; Sizes: each department, by brand; Account) */
.form-section { display: grid; gap: var(--space-5); }
.form-section > h3 { margin: 0; }
.form-section + .form-section,
.brand-sizes { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--hair); }
/* Sizes: the department (Preferences' own setting) above the size fields (Nov 11 2026) */
.department-choice { gap: var(--space-2); }
.department-choice + #size-forms > .form-section:first-child { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--hair); }
/* Account: details, time zone, privacy and sign out, one tab (Nov 11 2026) */
.account-part { scroll-margin-top: var(--space-6); }
.account-part + .account-part { margin-top: var(--space-7); }
.account-part > .actions + #delete-content { margin-top: var(--space-4); }
/* Photos, its own tab (Nov 11 2026): the looks link below the photos */
#photos-content + p { margin-top: var(--space-5); }
.brand-sizes > #sizes:empty { display: none; }

/* Style icons */
.style-icons { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.style-icons legend { margin-bottom: var(--space-2); padding: 0; }
#style-icons { display: grid; gap: var(--space-3); }
.icon-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: var(--space-3); align-items: end; padding: var(--space-4); border: 1px solid var(--hair); }
.icon-row .icon-remove, .small-button { min-height: 44px; padding: 0 var(--space-4); font-size: 13px; }
.small-button { justify-self: start; }
@media (max-width: 767px) {
  .icon-row { grid-template-columns: 1fr; }
  .icon-row .icon-remove { justify-self: start; }
}

/* Sizes */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-5) var(--space-4); }
.read-as { display: block; margin-top: var(--space-2); }
.read-as:empty { display: none; }
.read-as.unread { color: var(--problem); }
/* the size boxes say nothing while saving or saved; only a failure shows (Constantine, Nov 16 2026) */
.size-form .save-state:not([data-state="error"]), .brand-sizes .save-state:not([data-state="error"]) { display: none; }
/* Height and weight's units (Nov 16 2026): ft, lb by default; cm, kg for anyone who picks them */
.units { display: inline-flex; justify-self: start; margin-top: calc(-1 * var(--space-2)); border: 1px solid var(--hair); border-radius: 999px; padding: 2px; }
.units button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--graphite); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Height in two boxes, feet and inches, or one cm box (Nov 16 2026); each box shows its unit */
fieldset.height { min-width: 0; }
fieldset.height legend { padding: 0; }
.ft-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ft-in[hidden], .cm-box[hidden] { display: none; }
.unit-box { position: relative; }
.unit-box input { padding-right: 34px; }
.unit-box span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--graphite); font-size: 14px; pointer-events: none; }
.account .size-row { gap: var(--space-2); margin: 0 0 var(--space-3); }
.brand-sizes #add-size { justify-self: start; }
.brand-sizes #autosave { margin: 0; }
.brand-sizes { gap: var(--space-4); }

/* Texts: each switch with its label */
.account .actions:has(> .switch) { flex-wrap: nowrap; margin-top: var(--space-5); }
.account .actions:has(> .switch) + p { margin-top: var(--space-6); }

/* Photos */
.account .photos-grid { gap: var(--space-5) var(--space-4); margin: var(--space-4) 0 var(--space-5); }
.account .photos-grid figure { display: grid; gap: var(--space-3); align-content: start; }
.photo-actions { display: grid; gap: var(--space-2); }
.photo-actions button { min-height: 44px; font-size: 13px; }
.photo-upload { display: grid; gap: var(--space-4); max-width: 480px; margin-top: var(--space-2); }
.photo-upload .check { margin: 0; font-size: 15px; line-height: 1.45; }
.photo-upload .check span { padding: 0; }
.photo-upload button { justify-self: start; }
#upload-status:empty { display: none; }
#upload-status { margin: var(--space-3) 0 0; }

/* The closet: the closest catalog match's product photo, never a cut-out; their outfits */
/* The same 82% box for every picture, whatever its shape (a trimmed one included): pinned, not a grid
   cell's percentage, which a tall picture overflowed. */
.closet-piece .swatch img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.closet-piece figcaption { display: grid; gap: var(--space-1); padding-top: var(--space-3); }
.piece-name { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.icon-button { flex: none; width: 32px; min-height: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--graphite); }
.icon-button:hover { background: var(--linen); color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.closet-piece figcaption p.match-line { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin: 0; }
.closet-piece figcaption .match-chip { display: inline-block; margin: 0; padding: 2px var(--space-2); border: 1px solid var(--ink); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.closet-piece figcaption .match-chip.exact { background: var(--ink); color: var(--paper); }
.closet-piece figcaption .match-chip.looking { border: 1px dashed var(--graphite); color: var(--graphite); }
.closet-piece figcaption .match-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--graphite); }
.closet-piece figcaption .match-name a { color: inherit; }
.closet-piece figcaption p.match-failed { margin: var(--space-1) 0 0; color: var(--graphite); }
.link-button { justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 4px; }
.link-button:hover, .link-button:active { background: none; color: var(--ink); }
.worn-strip { display: flex; gap: var(--space-1); overflow-x: auto; margin-top: var(--space-2); scrollbar-width: none; }
.worn-strip img { flex: none; width: 40px; height: 53px; object-fit: cover; cursor: zoom-in; }
.rename { display: grid; gap: var(--space-2); }
.rename input { min-height: 40px; padding: var(--space-2) var(--space-3); font-size: 16px; }
.outfits { margin: 0 0 var(--space-6); }
.outfits-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-3); }
.outfits h3 { margin: 0; font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.outfit-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--space-3)) / 5); gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-1) var(--space-1) var(--space-2); scrollbar-width: thin; }
.outfit { display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; scroll-snap-align: start; }
.outfit:hover, .outfit:active { background: none; color: var(--ink); }
.outfit img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--linen); }
.outfit span { display: block; padding-top: var(--space-1); font-size: 11px; letter-spacing: 0.08em; color: var(--graphite); }
.outfit[aria-pressed='true'] img { outline: 2px solid var(--ink); outline-offset: 2px; }
.outfit-note { margin: 0 0 var(--space-3); }
.closet-stats { margin: var(--space-6) 0 var(--space-5); }
.closet-photos-setting { gap: var(--space-3); }
@media (max-width: 600px) {
  .outfit-strip { grid-auto-columns: 38%; }
}

/* Every account field saves itself (Nov 11 2026): its state, small, beside it */
.save-state { display: block; min-height: 1.2em; margin-top: var(--space-1); font-size: 13px; line-height: 1.3; color: var(--graphite); }
.save-state:empty { display: none; }
.save-state[data-state="saved"] { color: var(--ink); }
.save-state[data-state="error"] { color: var(--problem); }
.save-state[data-state="error"] .link-button { margin-left: var(--space-1); font-size: 13px; }
.size-row + .save-state { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }

/* The closet uses the width (Nov 11 2026): a grid of cards, 4 a row on a wide screen, 3 on a narrower
   one, 2 on a phone; each the picture on top and a compact name row under it */
#closet-content .closet-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-6) var(--space-4); }
#closet-content .closet-piece figcaption { gap: 2px; padding-top: var(--space-2); }
#closet-content .closet-piece .piece-name { align-items: center; gap: var(--space-1); }
#closet-content .closet-piece .piece-name p { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; }
#closet-content .closet-piece .piece-name .icon-button { width: 44px; height: 44px; min-height: 44px; margin: -12px -12px -12px 0; }   /* a 44 px tap, no taller row */
#closet-content .closet-piece figcaption span.last-worn { margin-top: 0; font-size: 10px; }
#closet-content .closet-piece figcaption p.match-line, #closet-content .closet-piece figcaption p.match-failed { margin-top: var(--space-1); }
#closet-content .closet-piece figcaption p.match-failed { font-size: 13px; line-height: 1.35; }
#closet-content .closet-piece .worn-strip { margin-top: var(--space-1); }
#closet-content .closet-piece .worn-strip img { width: 34px; height: 45px; }
@media (max-width: 600px) {
  #closet-content .closet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
  #closet-content .closet-piece .piece-name p { font-size: 14px; }
}
#closet-content .closet-piece figcaption .match-chip { flex: none; white-space: nowrap; }

/* the bag beside Invite (Nov 14 2026) */
#account-link { display: flex; justify-content: flex-end; gap: 4px; }
.bag-link { position: relative; }
.bag-count { position: absolute; right: 2px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: white; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* The "Add pieces" sheet (Constantine, Nov 21 2026): the closet's own type, colours and squares, no new
   visual language. Phone: full screen, sliding up, the close control top left, the search pinned at the
   top while the rest scrolls. From 900 px: a centred panel about 720 px wide over the dimmed closet. */
body.sheet-open { overflow: hidden; }
.sheet-layer { position: fixed; inset: 0; z-index: 9; }
.sheet-layer[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(20 20 20 / 0.4); opacity: 0; transition: opacity 0.2s ease; }
.closet-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); transform: translateY(100%); transition: transform 0.22s ease; }
.sheet-layer.shown .sheet-scrim { opacity: 1; }
.sheet-layer.shown .closet-sheet { transform: none; }
/* the title on the left, the close X top right (Constantine, Nov 22 2026), its tap area 44px */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 4px 4px 0 var(--space-4, 16px); }
.sheet-head h2 { margin: 0; font: 400 26px/1.1 var(--font-heading); }
.sheet-close, .sheet-clear { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer; }
.sheet-close svg, .sheet-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.sheet-search { position: relative; display: flex; align-items: center; margin: 0; padding: 0 var(--space-4, 16px) 12px; border-bottom: 1px solid var(--hair); background: var(--paper); }
.sheet-search input { flex: 1; min-height: 48px; margin: 0; padding: 0 44px 0 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.2 var(--font-body); }
.sheet-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sheet-search .sheet-clear { position: absolute; right: calc(var(--space-4, 16px) + 2px); top: 2px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--space-4, 16px) 32px; }
/* The action bar (Constantine, Nov 21 2026): pinned under the results, always visible; Add photos filled,
   alone until something is selected; then "Add N pieces" filled beside it and Add photos outlined (Nov 23
   2026). A row of its own, so the results never run under it. */
.sheet-bar { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px var(--space-4, 16px) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); background: var(--paper); }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 14px; }
.sheet-actions .sheet-add-picked { white-space: nowrap; }
/* Photos on a computer: a zone to drop them on, or click to choose (Constantine, Nov 21 2026); a phone
   keeps the button. The zone darkens while photos are dragged over the sheet. */
.sheet-actions .sheet-drop { display: none; border: 1px dashed var(--ink); background: var(--paper); color: var(--ink); font: 400 15px/1.3 var(--font-body); letter-spacing: normal; text-transform: none; }
.sheet-actions .sheet-drop:hover, .sheet-actions .sheet-drop:focus-visible { background: var(--linen); color: var(--ink); }
.closet-sheet.dragging .sheet-drop { border-style: solid; background: var(--linen); }
/* A batch's progress: the line, and a bar filling as each photo finishes */
.add-progress[hidden] { display: none; }
.add-progress p { margin: 0 0 6px; color: var(--graphite); }
.add-progress .meter { height: 4px; background: var(--hair); overflow: hidden; }
.add-progress .meter span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.25s ease; }
.closet-add .add-progress { flex: 1 1 100%; min-width: 0; }
.sheet-more { height: 1px; }
.sheet-none { margin: 8px 0 0; color: var(--graphite); }
body.sheet-open #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.sheet-open.sheet-progress-on #toast { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
.sheet-search { flex-wrap: wrap; }
.sheet-hint { flex-basis: 100%; margin: 8px 0 0; color: var(--graphite); }
.sheet-photos { font-family: var(--font-label); }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet-tile { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.sheet-tile .frame { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
/* Selected (Constantine, Nov 23 2026): an outline and a check; already theirs: a small "In your closet" */
.sheet-tile .pick-mark { display: none; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; place-items: center; background: var(--ink); color: var(--paper); }
.sheet-tile .pick-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sheet-tile.picked .frame { box-shadow: inset 0 0 0 2px var(--ink); }
.sheet-tile.picked .pick-mark { display: grid; }
.sheet-tile.held { cursor: default; }
.sheet-tile.held .held-label { position: absolute; left: 8px; bottom: 8px; padding: 4px 6px; background: var(--paper); font: 600 11px/1.2 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.sheet-tile .frame img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.sheet-tile .brand { margin-top: 6px; font: 600 11px/1.3 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.sheet-tile.result .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; }
.sheet-tile .tile-error { display: block; font: 600 11px/1.3 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--problem); }
.sheet-tile.ghost { cursor: default; }
.sheet-tile.ghost .line { height: 12px; margin-top: 6px; background: var(--linen); }
.sheet-tile.ghost .line.short { width: 60%; }
.sheet-results { margin-top: 16px; }
.sheet-colours { grid-column: 1 / -1; display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.sheet-colour { flex: none; display: flex; flex-direction: column; gap: 4px; width: 88px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: 600 11px/1.3 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.sheet-colour .frame { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--linen); border: 1px solid transparent; }
.sheet-colour:hover .frame, .sheet-colour:focus-visible .frame { border-color: var(--ink); }
.sheet-colour img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.sheet-failed { margin: 0 0 12px; color: var(--problem); }
.sheet-photos { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
#toast .toast-text { flex: 1 1 auto; padding: 13px 0; }
/* the photo a toast's words are about (Nov 23 2026: "We're using this photo for your try-ons"), 4:5 like the
   saved photo, 8px in from the toast's edge with the words' own gap after it */
#toast .toast-photo { flex: none; width: 32px; height: 40px; margin-left: -8px; object-fit: cover; background: var(--graphite); }
#toast:has(.toast-action) { padding-right: 4px; }
#toast .toast-action { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; height: 44px; margin: 0; padding: 0 12px; border: 0; background: none; color: var(--paper); font: 600 13px/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
#toast .toast-undo { width: 44px; padding: 0; }
#toast .toast-undo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
#toast .toast-action:active { opacity: 0.6; }
body.sheet-open #toast { z-index: 11; }
@media (min-width: 900px) {
  .closet-sheet { inset: auto; left: 50%; top: 7vh; width: 720px; max-height: 86vh; transform: translate(-50%, 24px); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; box-shadow: 0 18px 48px rgb(20 20 20 / 0.22); }
  .sheet-layer.shown .closet-sheet { transform: translate(-50%, 0); opacity: 1; }
  .sheet-grid.results { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
  .sheet-body { padding-bottom: 32px; }
  .closet-sheet { max-height: 82vh; }
  body.sheet-open #toast, body.sheet-open.sheet-progress-on #toast { bottom: 16px; }
  .sheet-actions .sheet-add-photos { display: none; }
  .sheet-actions .sheet-drop { display: block; flex: 2 1 0; min-height: 64px; }
  /* before they search, the panel is the box, its hint and the bar: no empty band between them */
  .sheet-body:has(> .sheet-results[hidden]) { display: none; }
  .closet-sheet:has(.sheet-results[hidden]) .sheet-bar { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .closet-sheet, .sheet-scrim, .add-progress .meter span { transition: none; }
}
/* tiles read as pieces, not buttons: the body serif in sentence case, and never the page's dark button hover */
.sheet-tile, .sheet-colour { text-transform: none; letter-spacing: normal; }
.sheet-tile:hover, .sheet-tile:focus, .sheet-tile:active { background: none; color: var(--ink); }
.sheet-colour:hover, .sheet-colour:active { background: none; color: var(--ink); }
.sheet-tile.result .name { font: 400 15px/1.3 var(--font-body); }
.sheet-tile:focus-visible, .sheet-colour:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sheet-grid.results { grid-auto-flow: dense; }
.sheet-tile.result, .sheet-colour { justify-content: flex-start; }
/* "Add photos" on a computer (Constantine, Nov 22 2026): a mid-size panel, about 560 px, centred, the closet
   dimmed behind; the title on the left, the X top right; a large dashed drop area with "Choose photos" in it */
.photos-panel .sheet-head { justify-content: space-between; padding: 4px 4px 0 var(--space-4, 16px); }
.photos-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 240px; margin: 12px var(--space-4, 16px) 0; padding: 24px; border: 1px dashed var(--ink); background: var(--paper); text-align: center; }
.photos-drop p { margin: 0; font: 400 20px/1.3 var(--font-body); }
.photos-panel.dragging .photos-drop { border-style: solid; background: var(--linen); }
.photos-note { margin: 12px var(--space-4, 16px) 20px; color: var(--graphite); }
@media (min-width: 900px) {
  .closet-sheet.photos-panel { top: 14vh; width: 560px; max-height: none; }
}

/* The Closet page's two tabs, "My closet" and "Wishlist" (Constantine, Nov 22 2026): the label caps,
   the open one in ink with an ink rule under it */
.closet-tabs { display: flex; gap: var(--space-5); margin: 0 0 var(--space-4); border-bottom: 1px solid var(--hair); }
.closet-tabs [role="tab"] { min-height: 44px; padding: 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--graphite); font: 600 13px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; }
.closet-tabs [role="tab"]:hover, .closet-tabs [role="tab"]:active { background: none; color: var(--ink); }
.closet-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* The Wishlist: one card per hearted piece, as the cart's rows (picture, brand, name, price, Buy) */
.wishlist-empty { margin: var(--space-6) 0; color: var(--graphite); }
.wish-grid { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-5) var(--space-6); }
.wish-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--hair); }
.wish-pic { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--linen); overflow: hidden; }
.wish-pic img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.wish-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-right: 36px; }
.wish-brand { font: 600 11px/1.3 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.wish-name { margin-top: 2px; font-size: 16px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.wish-name:hover { text-decoration: underline; }
.wish-price { margin-top: 2px; font-size: 15px; line-height: 1.4; }
.wish-price b { font: 600 11px/1.3 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--problem); }
.wish-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.wish-cart { min-height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }
.wish-buy { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--paper); text-decoration: none; }
.wish-buy span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px; background: var(--ink); font: 600 12px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.15s; }
.wish-buy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
.wish-buy:hover { color: var(--paper); }
.wish-buy:hover span { background: #302f2c; }
.wish-bought { margin-top: var(--space-1); min-height: 36px; }
.wish-heart { position: absolute; right: -10px; top: -12px; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: none; color: var(--problem); }
.wish-heart:hover, .wish-heart:active { background: none; color: var(--problem); }
.wish-heart svg, .look-heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wish-heart[aria-pressed="true"] svg { fill: var(--problem); }
@media (max-width: 600px) {
  .wish-grid { grid-template-columns: minmax(0, 1fr); }
  .wish-card { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); }
}

/* Looks: the heart under each card's picture, on the right, level with the title (Nov 22 2026); the
   card's link covers the whole card, the heart and the X sit above it */
.look-card > .look-open::after { content: ""; position: absolute; inset: 0; }
.look-card > .look-open:focus-visible { outline: none; }
.look-card > .look-open:focus-visible::after { outline: 2px solid var(--navy); outline-offset: 2px; }
.look-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); margin: 5px 0 12px; }
.look-card-copy .look-title h3 { min-width: 0; margin: 0; }
.look-heart { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: -10px -12px -10px 0; padding: 0; border: 0; background: none; color: var(--ink); }
.look-heart:hover, .look-heart:active { background: none; color: var(--ink); }
.look-heart[aria-pressed="true"] svg { fill: var(--problem); stroke: var(--problem); }
