:root {
  --ink: #252b27;
  --paper: #f4f1e9;
  --white: #faf9f5;
  --line: rgba(37, 43, 39, 0.16);
  --olive: #7c866f;
  --clay: #a96f58;
  --blue: #9db8bd;
  --blush: #d7aaa8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.022;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 233, 0.94);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font: 600 11px "DM Sans", sans-serif;
  letter-spacing: 0.21em;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 10px "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.header-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.progress-line {
  width: 90px;
  height: 1px;
  background: var(--line);
}

.progress-line i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--ink);
  transition: width 0.4s ease;
}

.quiet-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}

.account-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen {
  display: none;
  min-height: calc(100vh - 78px);
}

.screen.active {
  display: block;
  animation: reveal 0.45s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-screen.active {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.welcome-copy {
  padding: 10vh 6vw;
  align-self: center;
}

.kicker {
  margin: 0 0 20px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Italiana", serif;
  font-weight: 400;
}

.welcome-copy h1 {
  font-size: clamp(64px, 7vw, 114px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.welcome-copy h1 em {
  color: var(--olive);
  font-weight: 400;
}

.lede {
  max-width: 460px;
  margin: 36px 0;
  font-size: 16px;
  line-height: 1.75;
}

.primary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  border: 0;
  padding: 0 22px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.primary-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.ui-arrow {
  position: relative;
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -2px;
}

.ui-arrow::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  top: 7px;
  left: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.ui-arrow::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 1px;
  right: 1px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.demo-shortcuts {
  margin-top: 35px;
}

.demo-shortcuts > span {
  display: block;
  margin-bottom: 11px;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.demo-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-shortcuts button,
.sample-fill-row button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.welcome-editorial {
  min-height: calc(100vh - 78px);
  position: relative;
  overflow: hidden;
  background: #ccd5d1;
}

.editorial-card {
  width: 32%;
  height: 62%;
  position: absolute;
  top: 17%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(37, 43, 39, 0.32);
  box-shadow: 0 25px 60px rgba(37, 43, 39, 0.12);
}

.editorial-card span {
  font-size: 9px;
}

.editorial-card p {
  margin: 0;
  font: 40px/0.92 "Italiana", serif;
}

.card-one {
  left: 7%;
  color: var(--white);
  background: #7a5d4f;
  transform: rotate(-7deg);
}

.card-two {
  left: 34%;
  z-index: 2;
  background: #dfd7c4;
  transform: translateY(-2%);
}

.card-three {
  right: 7%;
  color: var(--white);
  background: #84958c;
  transform: rotate(7deg);
}

.editorial-note {
  position: absolute;
  right: 4%;
  bottom: 5%;
  font-size: 8px;
  letter-spacing: 0.25em;
}

.setup-screen {
  padding: 8vh 6vw 10vh;
}

.step-heading {
  display: grid;
  grid-template-columns: 0.25fr 1.2fr 0.55fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 8vh;
}

.step-count {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.step-heading h2,
.planner-intro h2,
.starter-closet h2 {
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.step-heading > p:last-child {
  max-width: 310px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

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

.occasion-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 24px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.occasion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(37, 43, 39, 0.1);
}

.occasion-number,
.occasion-label {
  font-size: 8px;
  letter-spacing: 0.18em;
}

.occasion-card h3 {
  margin: 8px 0 12px;
  font-size: 47px;
  line-height: 0.9;
}

.occasion-card p {
  max-width: 270px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.weekend { background: #ddd8cc; }
.vacation { background: #b9ccce; }
.wedding { background: #e1cecb; }

.occasion-art {
  height: 150px;
  position: relative;
  margin: 15px 0;
}

.weekend-art i {
  width: 68px;
  height: 100px;
  position: absolute;
  bottom: 5px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.weekend-art i:nth-child(1) { left: 12%; transform: rotate(-12deg); }
.weekend-art i:nth-child(2) { left: 38%; background: #8a7969; transform: rotate(3deg); }
.weekend-art i:nth-child(3) { right: 12%; transform: rotate(12deg); }

.vacation-art i:first-child {
  width: 145px;
  height: 145px;
  position: absolute;
  left: 14%;
  border-radius: 50%;
  background: #d9cfb4;
}

.vacation-art i:last-child {
  width: 92px;
  height: 135px;
  position: absolute;
  right: 15%;
  bottom: 0;
  border-radius: 50px 50px 0 0;
  background: #6d837a;
}

.wedding-art {
  display: grid;
  place-items: center;
}

.wedding-art i {
  width: 110px;
  height: 145px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 55px 55px 0 0;
  background: rgba(250, 249, 245, 0.5);
  font: 48px "Italiana", serif;
}

.details-form {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: auto;
}

.sample-fill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: rgba(124, 134, 111, 0.1);
}

.sample-fill-row p {
  margin: 0;
  font-size: 10px;
}

.details-form label > span,
.pace-field legend {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.details-form input,
.details-form select {
  width: 100%;
  height: 54px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.wide-field {
  grid-column: 1 / -1;
}

.pace-field {
  display: flex;
  gap: 10px;
  border: 0;
  margin: 15px 0 0;
  padding: 0;
}

.pace-field legend {
  width: 100%;
}

.pace-field label {
  flex: 1;
}

.pace-field input {
  position: absolute;
  opacity: 0;
}

.pace-field label span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.pace-field input:checked + span {
  color: var(--white);
  background: var(--ink);
}

.form-actions,
.mood-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.back-button {
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

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

.mood-card {
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.mood-card.selected {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.mood-swatch {
  height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.mood-swatch span {
  font: 42px "Italiana", serif;
}

.mood-card h3 {
  margin: 16px 0 5px;
  font-size: 27px;
}

.mood-card p {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.5;
}

.mood-card small {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mood-actions {
  margin-top: 42px;
}

.generating-screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.generating-mark {
  width: 90px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--ink);
  border-radius: 45px 45px 0 0;
}

.generating-mark span {
  font: 22px "DM Sans", sans-serif;
  font-weight: 500;
}

.generating-screen h2 {
  font-size: clamp(44px, 6vw, 78px);
}

.generating-line {
  width: 260px;
  height: 2px;
  margin-top: 35px;
  overflow: hidden;
  background: var(--line);
}

.generating-line i {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ink);
  transform-origin: left;
  animation: loading 1.25s ease both;
}

@keyframes loading {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.planner-screen {
  background: var(--planner-paper, var(--paper));
}

.demo-switcher {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: var(--planner-paper, var(--paper));
}

.demo-switcher > span {
  margin-right: 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.demo-switcher button {
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: inherit;
  background: transparent;
  font-size: 9px;
}

.demo-switcher button.active {
  color: var(--white);
  background: var(--ink);
}

.planner-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  align-items: center;
  gap: 10vw;
  padding: 9vh 7vw;
  color: var(--planner-ink, var(--ink));
  background: var(--planner-bg, #d6ddd7);
}

.planner-hero h1 {
  font-size: clamp(72px, 8vw, 124px);
  line-height: 0.85;
}

.planner-hero h1 em {
  color: var(--planner-accent, var(--olive));
  font-weight: 400;
}

.planner-hero #plannerMeta {
  margin-top: 30px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.planner-stamp {
  width: 240px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 1px solid currentColor;
  border-radius: 120px 120px 0 0;
}

.planner-stamp span,
.planner-stamp small {
  font-size: 8px;
  letter-spacing: 0.2em;
}

.planner-stamp strong {
  margin: 15px 0 40px;
  font: 37px/0.9 "Italiana", serif;
  text-align: center;
}

.planner-nav {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.planner-nav span {
  margin-right: auto;
  font-weight: 600;
}

.planner-nav a {
  color: inherit;
  text-decoration: none;
}

.planner-intro,
.starter-closet {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 12vw;
  align-items: end;
  padding: 110px 7vw 65px;
}

.planner-intro > p {
  max-width: 440px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.generated-timeline {
  padding: 0 7vw 110px;
}

.timeline-day {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-top: 1px solid var(--line);
}

.timeline-date {
  padding: 30px 20px 30px 0;
  border-right: 1px solid var(--line);
}

.timeline-date span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.timeline-date strong {
  display: block;
  margin-top: 7px;
  font: 25px "Italiana", serif;
}

.timeline-date button {
  margin: 10px 0 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  color: inherit;
  background: transparent;
  font: 600 8px "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.58;
}

.timeline-date button:hover,
.timeline-date button:focus-visible {
  opacity: 1;
}

.timeline-moments {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 22px 0 22px 28px;
}

.timeline-moment {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(250, 249, 245, 0.48);
}

.timeline-moment.styled {
  min-width: 190px;
  background: rgba(250, 249, 245, 0.9);
}

.timeline-moment.editing {
  width: 100%;
  align-items: stretch;
}

.timeline-moment span {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.moment-card-top,
.moment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.moment-card-top {
  min-height: 20px;
}

.moment-title {
  justify-content: flex-start;
}

.moment-title strong {
  margin-top: 5px;
  font: 18px "Italiana", serif;
}

.moment-remove,
.moment-rename {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0.48;
}

.moment-remove {
  width: 28px;
  height: 28px;
  margin: -8px -12px 0 0;
  font: 300 20px/1 "DM Sans", sans-serif;
}

.moment-rename {
  width: 27px;
  height: 27px;
  margin-top: 4px;
}

.moment-rename svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.moment-remove:hover,
.moment-remove:focus-visible,
.moment-rename:hover,
.moment-rename:focus-visible {
  opacity: 1;
}

.moment-look {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.moment-look img {
  width: 52px;
  height: 62px;
  object-fit: contain;
  background: rgba(255,255,255,0.65);
}

.timeline-moment small {
  max-width: 180px;
  margin-top: 7px;
  overflow: hidden;
  font-size: 7px;
  line-height: 1.35;
  opacity: 0.65;
  text-overflow: ellipsis;
}

.moment-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.moment-actions button {
  border: 1px solid var(--line);
  padding: 6px 9px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moment-actions button.ready {
  border-color: var(--planner-accent, #6f8178);
  color: var(--planner-accent, #6f8178);
  background: color-mix(in srgb, var(--planner-accent, #6f8178) 8%, transparent);
}

.look-editor {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.look-editor > p {
  margin: 0 0 12px;
  font: 13px/1.5 "Inter", sans-serif;
  opacity: 0.62;
}

.look-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.editor-item {
  min-width: 0;
  border: 1px solid transparent;
  padding: 7px;
  color: inherit;
  background: rgba(255,255,255,0.38);
  text-align: left;
}

.editor-item.selected {
  border-color: var(--planner-accent, #6f8178);
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px var(--planner-accent, #6f8178);
}

.editor-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: contain;
}

.editor-item span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.add-moment {
  width: 70px;
  height: 70px;
  border: 1px dashed var(--line);
  color: inherit;
  background: transparent;
  font-size: 20px;
}

.add-moment-form {
  width: min(260px, 100%);
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(250, 249, 245, 0.9);
}

.add-moment-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.add-moment-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: 15px "Inter", sans-serif;
  outline: none;
}

.add-moment-form > div {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.add-moment-form button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-closet {
  align-items: center;
  color: var(--white);
  background: var(--planner-dark, var(--ink));
}

.wardrobe-form {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) 1fr;
  gap: 24px;
}

.wardrobe-form[hidden] {
  display: none;
}

.wardrobe-upload {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
  text-align: center;
  cursor: pointer;
}

.wardrobe-upload input {
  position: absolute;
  opacity: 0;
}

.wardrobe-upload img {
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: var(--planner-paper);
}

.wardrobe-upload.has-preview img {
  display: block;
}

.wardrobe-upload.has-preview .upload-icon,
.wardrobe-upload.has-preview strong,
.wardrobe-upload.has-preview small {
  display: none;
}

.wardrobe-upload small {
  max-width: 190px;
  margin-top: 8px;
  opacity: 0.65;
}

.wardrobe-intake {
  min-width: 0;
}

.upload-queue {
  display: grid;
  gap: 12px;
}

.upload-queue-empty {
  min-height: 180px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.upload-queue-empty span {
  font: 20px "Italiana", serif;
  opacity: 0.55;
}

.upload-queue-empty p {
  max-width: 330px;
  margin: 0;
  font: 24px/1.15 "Italiana", serif;
}

.upload-queue-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.32);
}

.upload-queue-photo {
  min-width: 0;
  position: relative;
}

.upload-queue-photo > span {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 4px;
  color: var(--ink);
  background: rgba(250,249,245,0.88);
  font-size: 7px;
}

.upload-crop-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  transition: aspect-ratio 180ms ease;
}

.upload-queue-photo.crop-square .upload-crop-frame {
  aspect-ratio: 1;
}

.upload-queue-photo.crop-portrait .upload-crop-frame {
  aspect-ratio: 4 / 5;
}

.upload-crop-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.upload-queue-photo.crop-original .upload-crop-frame img {
  object-fit: contain;
}

.upload-queue-photo > div {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}

.upload-queue-photo button,
.upload-queue-actions button {
  border: 0;
  padding: 4px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-transform: uppercase;
}

.upload-queue-fields {
  display: grid;
  align-content: center;
  gap: 11px;
}

.upload-suggestion {
  margin: 0;
  border-left: 2px solid rgba(255,255,255,0.5);
  padding-left: 9px;
  font-size: 8px;
  line-height: 1.5;
  opacity: 0.75;
}

.upload-suggestion b {
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.upload-queue-fields > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-queue-fields label > span {
  display: block;
  margin-bottom: 5px;
  font-size: 7px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  text-transform: uppercase;
}

.upload-queue-fields input,
.upload-queue-fields select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  border-radius: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  outline: none;
}

.upload-queue-fields option {
  color: var(--ink);
}

.upload-queue-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.upload-queue-actions[hidden] {
  display: none;
}

.upload-queue-actions #saveWardrobeBatch {
  border: 1px solid rgba(255,255,255,0.55);
  padding: 12px 18px;
  text-decoration: none;
}

#addSampleWardrobe {
  border: 0;
  padding: 12px 0 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 8px;
  text-decoration: underline;
  opacity: 0.72;
}

#wardrobeStatus {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 9px;
  opacity: 0.72;
}

.wardrobe-fields {
  align-content: center;
  display: grid;
  gap: 14px;
}

.wardrobe-fields label span {
  display: block;
  margin-bottom: 6px;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wardrobe-fields input,
.wardrobe-fields select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.42);
  border-radius: 0;
  padding: 9px 0;
  color: var(--white);
  background: transparent;
  outline: none;
}

.wardrobe-fields select option {
  color: var(--ink);
}

.wardrobe-fields > button {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 12px;
  color: inherit;
  background: transparent;
}

#addSampleWardrobe {
  border-color: transparent;
  padding: 4px 0;
  text-decoration: underline;
  opacity: 0.72;
}

.wardrobe-fields p {
  min-height: 18px;
  margin: 0;
  font-size: 9px;
  opacity: 0.72;
}

.closet-invitation {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.4);
  text-align: center;
}

.closet-invitation[hidden] {
  display: none;
}

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

.demo-closet-grid[hidden] {
  display: none;
}

.demo-closet-item {
  min-width: 0;
}

.demo-closet-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
}

.demo-closet-item strong,
.demo-closet-item span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-closet-item strong {
  font-size: 9px;
}

.demo-closet-item span {
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  opacity: 0.6;
  text-transform: uppercase;
  white-space: normal;
}

.personal-closet-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.personal-closet-grid[hidden] {
  display: none;
}

.personal-closet-item {
  min-width: 0;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.26);
}

.personal-closet-item > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
}

.personal-closet-item strong,
.personal-closet-item > span,
.personal-closet-item small {
  display: block;
  margin-top: 6px;
}

.personal-closet-item strong {
  font-size: 9px;
}

.personal-closet-item > span,
.personal-closet-item small {
  font-size: 7px;
  line-height: 1.45;
  opacity: 0.65;
}

.personal-closet-item select,
.personal-closet-item > button:not(.delete-wardrobe-item) {
  width: 100%;
  margin-top: 9px;
  border: 1px solid rgba(255,255,255,0.32);
  padding: 7px;
  color: inherit;
  background: transparent;
  font-size: 8px;
}

.personal-closet-item select option {
  color: var(--ink);
}

.edit-wardrobe-item {
  margin-top: 7px;
}

[data-view-image] {
  cursor: zoom-in;
}

.delete-wardrobe-item {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 7px;
  right: 7px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(250,249,245,0.88);
}

.lookbook-section,
.final-check-section {
  padding: 110px 7vw;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.7fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 65px;
}

.section-heading h2 {
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 0.9;
}

.section-heading > p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.lookbook-day {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--line);
}

.lookbook-day > header {
  padding: 28px 25px 28px 0;
  border-right: 1px solid var(--line);
}

.lookbook-day > header span {
  font-size: 8px;
  letter-spacing: 0.13em;
}

.lookbook-day > header h3 {
  margin-top: 10px;
  font-size: 30px;
}

.lookbook-day > div {
  padding: 20px 0 35px 28px;
}

.lookbook-moment {
  padding: 15px 0 25px;
  border-bottom: 1px solid var(--line);
}

.lookbook-moment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.lookbook-moment-heading span {
  font-size: 7px;
  letter-spacing: 0.13em;
}

.lookbook-moment-heading h4 {
  margin: 5px 0 0;
  font: 22px "Italiana", serif;
}

.lookbook-moment-heading button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  color: inherit;
  background: transparent;
  font-size: 8px;
}

.lookbook-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.lookbook-pieces > div {
  width: 88px;
  position: relative;
}

.lookbook-pieces img {
  width: 88px;
  height: 105px;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.6);
}

.lookbook-pieces button {
  width: 21px;
  height: 21px;
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(250,249,245,0.9);
}

.lookbook-pieces span {
  display: block;
  margin-top: 5px;
  font-size: 7px;
  line-height: 1.35;
}

.lookbook-pieces select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  padding: 5px 3px;
  color: inherit;
  background: transparent;
  font-size: 6px;
}

.combination-list {
  max-width: 660px;
  margin-top: 17px;
}

.combination-list p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  margin: 5px 0;
  font-size: 8px;
  line-height: 1.45;
}

.lookbook-empty,
.packing-empty {
  font-size: 11px;
  opacity: 0.6;
}

.upload-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 25px;
}

.closet-invitation p {
  margin: 8px 0 20px;
  font-size: 11px;
  opacity: 0.7;
}

.closet-invitation button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 7px 0;
  color: inherit;
  background: transparent;
}

.readiness-preview {
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr repeat(3, 0.55fr);
  align-items: center;
  padding: 40px 7vw;
  border-bottom: 1px solid var(--line);
}

.readiness-preview > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--line);
}

.readiness-preview strong {
  font: 48px "Italiana", serif;
}

.readiness-preview span {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.final-check-section {
  background: rgba(255,255,255,0.24);
}

.final-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}

.final-check-grid h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.lookbook-share-panel > p:first-child {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
}

.lookbook-share-panel > button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: inherit;
  background: transparent;
  font: 600 8px "DM Sans", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.lookbook-share-panel > button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.share-icon {
  position: relative;
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 1px solid currentColor;
  border-top: 0;
}

.share-icon::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 10px;
  top: -6px;
  left: 5px;
  background: currentColor;
}

.share-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -6px;
  left: 2px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.share-status {
  min-height: 18px;
  margin: 5px 0 0;
  font-size: 8px;
  line-height: 1.5;
  opacity: 0.7;
}

.check-row,
.packing-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.check-row > button,
.packing-row > button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
}

.check-row.checked > button,
.packing-row.checked > button {
  background: var(--planner-accent, var(--olive));
}

.check-row button:disabled {
  opacity: 0.3;
}

.check-row strong,
.check-row span,
.packing-row strong,
.packing-row span {
  display: block;
}

.check-row strong,
.packing-row strong {
  font-size: 9px;
}

.check-row span,
.packing-row span {
  margin-top: 3px;
  font-size: 7px;
  opacity: 0.6;
}

.check-row a {
  color: inherit;
  font-size: 8px;
}

.packing-row {
  grid-template-columns: 32px 46px 1fr;
}

.packing-row img {
  width: 42px;
  height: 50px;
  object-fit: contain;
  background: rgba(255,255,255,0.55);
}

.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav[hidden] {
  display: none !important;
}

.outfit-sheet,
.outfit-sheet-backdrop {
  display: none;
}

.account-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(29,34,30,0.48);
  backdrop-filter: blur(5px);
}

.account-modal-backdrop[hidden],
.account-modal[hidden] {
  display: none;
}

.account-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 81;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 52px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(25,30,26,0.24);
}

.account-modal-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 28px;
}

.account-modal h2 {
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 0.95;
}

.account-modal h2 + p {
  max-width: 390px;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.7;
}

.account-modal form label span {
  display: block;
  margin-bottom: 7px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-modal input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.account-modal form button,
.account-primary-button,
.account-secondary-button,
#syncNowButton,
#signOutButton {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.account-primary-button,
.account-secondary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.account-secondary-button {
  margin-top: 8px;
  color: inherit;
  background: transparent;
}

.account-modal form button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

#signOutButton {
  margin-top: 8px;
  color: inherit;
  background: transparent;
}

.account-fine-print {
  display: block;
  margin-top: 15px;
  font-size: 9px;
  line-height: 1.55;
  opacity: 0.58;
}

.account-step strong {
  font-weight: 600;
}

.account-status-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--olive);
  font-size: 22px;
}

.account-mail-mark {
  font-size: 19px;
}

.account-spinner {
  width: 52px;
  height: 52px;
  display: block;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: account-spin 800ms linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-sync-status {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 10px;
}

.account-sync-status.error {
  color: #8d443b;
}

.account-message {
  min-height: 20px;
  margin: 17px 0 0;
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.72;
}

body.account-modal-open {
  overflow: hidden;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 24px 4.5vw;
  font: 600 8px "DM Sans", sans-serif;
  letter-spacing: 0.16em;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.photo-viewer {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 58px 18px 28px;
  color: var(--white);
  background: rgba(17,20,18,0.94);
  backdrop-filter: blur(12px);
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer > button {
  width: 46px;
  height: 46px;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 34px;
}

.photo-viewer img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.photo-viewer p {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

body.photo-viewer-open,
body.item-edit-open,
body.crop-editor-open {
  overflow: hidden;
}

.crop-summary-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  padding: 8px 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.crop-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(15,18,16,0.62);
  backdrop-filter: blur(8px);
}

.crop-editor-backdrop[hidden],
.crop-editor[hidden] {
  display: none;
}

.crop-editor {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 24px);
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 89;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
}

.crop-editor > header {
  display: flex;
  justify-content: space-between;
}

.crop-editor > header h2 {
  font-size: 46px;
  line-height: 0.9;
}

.crop-editor > header button {
  width: 42px;
  height: 42px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 30px;
}

.crop-editor > p {
  margin: 16px 0;
  font-size: 10px;
  line-height: 1.6;
}

.crop-editor-stage {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: #dfddd6;
  touch-action: none;
  cursor: grab;
}

.crop-editor-stage:active {
  cursor: grabbing;
}

.crop-editor-stage.crop-square { aspect-ratio: 1; }
.crop-editor-stage.crop-original { aspect-ratio: 4 / 5; }

.crop-editor-stage img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
}

.crop-editor-stage.crop-original img {
  object-fit: contain;
}

.crop-editor-stage > span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  color: var(--white);
  background: rgba(24,28,25,0.64);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crop-editor-shapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.crop-editor-shapes button,
.crop-editor footer button {
  min-height: 42px;
  border: 1px solid var(--line);
  color: inherit;
  background: transparent;
}

.crop-editor-shapes button.active {
  color: var(--white);
  background: var(--ink);
}

.crop-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 17px 0;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crop-zoom input {
  width: 100%;
}

.crop-editor footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8px;
}

.crop-editor footer button:last-child {
  color: var(--white);
  background: var(--ink);
}

.item-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(21,25,22,0.5);
  backdrop-filter: blur(5px);
}

.item-edit-backdrop[hidden],
.item-edit-modal[hidden] {
  display: none;
}

.item-edit-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 86;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 42px;
  color: var(--ink);
  background: var(--paper);
}

.item-edit-modal > button {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 28px;
}

.item-edit-modal h2 {
  margin-bottom: 24px;
  font-size: 48px;
  line-height: 0.95;
}

.item-edit-modal form {
  display: grid;
  gap: 16px;
}

.item-edit-modal form > img {
  width: 120px;
  height: 145px;
  object-fit: contain;
  background: rgba(255,255,255,0.7);
}

.item-edit-modal form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.item-edit-modal label span {
  display: block;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-edit-modal input,
.item-edit-modal select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 16px;
}

.item-edit-modal form > button {
  min-height: 48px;
  border: 0;
  color: var(--white);
  background: var(--ink);
}

.item-edit-modal form > p {
  min-height: 18px;
  margin: 0;
  font-size: 9px;
}

.extra-wardrobe-item.selected {
  border-color: rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.12) !important;
}

.wardrobe-look-status {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 8px;
  font-size: 7px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.extras-picker {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.extras-picker h4 {
  margin: 0;
  font: 27px "Italiana", serif;
}

.extras-picker > p {
  margin: 8px 0 18px;
  font-size: 9px;
  line-height: 1.55;
  opacity: 0.65;
}

#extrasPicker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#extrasPicker button {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
}

#extrasPicker button.selected {
  background: color-mix(in srgb, var(--planner-accent, var(--olive)) 18%, transparent);
}

#extrasPicker img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.5);
}

#extrasPicker span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Looks is the finished answer; Plan holds the controls. */
.lookbook-section {
  background: color-mix(in srgb, var(--planner-bg, var(--blue)) 28%, var(--paper));
}

.lookbook-day {
  grid-template-columns: 180px 1fr;
  padding: 34px 0 50px;
}

.lookbook-day > header {
  border-right: 0;
}

.lookbook-day > header h3 {
  font-size: 38px;
}

.lookbook-day > header p {
  margin-top: 9px;
  font-size: 8px;
  letter-spacing: 0.1em;
  opacity: 0.55;
  text-transform: uppercase;
}

.lookbook-day > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 0 28px;
}

.lookbook-moment {
  min-width: 0;
  padding: 20px;
  border: 0;
  background: rgba(250,249,245,0.78);
}

.lookbook-moment-heading {
  align-items: start;
}

.lookbook-moment-heading h4 {
  font-size: 30px;
}

.lookbook-moment-heading button {
  flex: 0 0 auto;
}

.lookbook-collage {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 7px;
  margin-top: 22px;
}

.lookbook-collage figure {
  min-width: 0;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}

.lookbook-collage figure:first-child { grid-area: 1 / 1 / 7 / 5; }
.lookbook-collage figure:nth-child(2) { grid-area: 1 / 5 / 4 / 7; }
.lookbook-collage figure:nth-child(3) { grid-area: 4 / 5 / 7 / 7; }
.lookbook-collage figure:nth-child(4) { grid-area: 5 / 1 / 7 / 3; }
.lookbook-collage figure:nth-child(5) { grid-area: 5 / 3 / 7 / 5; }
.lookbook-collage.count-1 figure:first-child { grid-area: 1 / 1 / 7 / 7; }
.lookbook-collage.count-2 figure:first-child { grid-area: 1 / 1 / 7 / 5; }
.lookbook-collage.count-2 figure:nth-child(2) { grid-area: 1 / 5 / 7 / 7; }

.lookbook-collage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.lookbook-collage figcaption {
  max-width: calc(100% - 8px);
  position: absolute;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 4px 5px;
  background: rgba(250,249,245,0.88);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookbook-outfit-line {
  margin: 15px 0 0;
  font: 14px/1.45 "Italiana", serif;
}

.lookbook-moment.empty-look {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: 1px dashed var(--line);
}

body[data-theme="coastal"] {
  --planner-bg: #c4d4d6;
  --planner-paper: #f4f1e9;
  --planner-accent: #657c74;
  --planner-dark: #263a35;
}

body[data-theme="garden"] {
  --planner-bg: #ddcfca;
  --planner-paper: #f7f2ec;
  --planner-accent: #986c69;
  --planner-dark: #493e3b;
}

body[data-theme="noir"] {
  --planner-bg: #dedbd4;
  --planner-paper: #f4f2ed;
  --planner-accent: #6a685f;
  --planner-dark: #20221f;
}

body[data-theme="sunlit"] {
  --planner-bg: #e0d5b9;
  --planner-paper: #f7f3e8;
  --planner-accent: #9d674a;
  --planner-dark: #4a4236;
}

body[data-theme="city"] {
  --planner-bg: #d3d1cb;
  --planner-paper: #f4f2ed;
  --planner-accent: #6e726c;
  --planner-dark: #252825;
}

@media (max-width: 900px) {
  .welcome-screen.active {
    grid-template-columns: 1fr;
  }

  .welcome-editorial {
    min-height: 560px;
  }

  .step-heading {
    grid-template-columns: 0.2fr 1fr;
  }

  .step-heading > p:last-child {
    grid-column: 2;
  }

  .occasion-grid,
  .mood-grid {
    grid-template-columns: 1fr;
  }

  .occasion-card {
    min-height: 340px;
  }

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

@media (max-width: 600px) {
  :root { --mobile-nav-height: 76px; }
  html { scroll-padding-top: 68px; }
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }

  .site-header {
    height: 58px;
    grid-template-columns: 1fr auto;
    position: sticky;
    top: 0;
    padding: 0 18px;
    backdrop-filter: blur(18px);
  }

  .brand { font-size: 9px; }
  .brand-monogram { width: 28px; height: 28px; font-size: 8px; }
  .quiet-button { font-size: 9px; }
  .header-actions { gap: 9px; }
  .account-button { min-height: 30px; padding: 0 10px; font-size: 7px; }
  .header-progress { display: none; }

  .welcome-copy,
  .setup-screen { padding: 55px 20px; }
  .welcome-copy h1 { font-size: 58px; }
  .demo-shortcuts > div { gap: 13px; }
  .welcome-editorial { min-height: 400px; }
  .editorial-card { height: 65%; padding: 14px; }
  .editorial-card p { font-size: 26px; }
  .step-heading { display: block; margin-bottom: 42px; }
  .step-heading h2 { margin: 18px 0 22px; }
  .details-form { grid-template-columns: 1fr; }
  .sample-fill-row { align-items: flex-start; gap: 10px; }
  .demo-switcher { overflow-x: auto; justify-content: flex-start; padding: 8px 20px; }
  .wide-field { grid-column: auto; }
  .pace-field { display: grid; }
  .form-actions { gap: 20px; }
  .mood-swatch { height: 200px; }

  .planner-hero {
    min-height: 330px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 46px 20px 30px;
  }

  .planner-hero h1 { font-size: clamp(52px, 17vw, 72px); line-height: 0.88; }
  .planner-hero #plannerMeta { margin-top: 18px; font-size: 7px; line-height: 1.5; }
  .planner-stamp,
  .planner-nav { display: none; }

  .planner-intro,
  .starter-closet {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 18px 35px;
  }

  .planner-intro h2,
  .starter-closet h2,
  .section-heading h2 { font-size: 48px; }
  .planner-intro > p,
  .section-heading > p:last-child { font-size: 12px; line-height: 1.65; }

  .generated-timeline { padding: 0 14px 58px; }
  .timeline-day { grid-template-columns: 1fr; padding: 22px 0; }
  .timeline-date { padding: 0 4px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline-date strong { font-size: 27px; }
  .timeline-moments { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0 0; }

  .timeline-moment,
  .timeline-moment.styled {
    width: 100%;
    min-width: 0;
    min-height: 128px;
    padding: 16px;
  }

  .moment-title strong { font-size: 24px; }
  .timeline-moment small { max-width: none; font-size: 8px; }
  .moment-look { max-width: 100%; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .moment-look img { width: 64px; height: 78px; flex: 0 0 auto; scroll-snap-align: start; }
  .moment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .moment-actions button { min-height: 42px; font-size: 8px; }

  .look-editor {
    margin: 16px -16px -16px;
    padding: 16px;
    background: var(--planner-paper, var(--paper));
  }

  .look-editor-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .editor-item { width: 128px; flex: 0 0 128px; scroll-snap-align: start; }
  .editor-item span { font-size: 8px; }
  .add-moment { width: 100%; height: 48px; font-size: 24px; }
  .add-moment-form { width: 100%; }
  .add-moment-form input { min-height: 44px; font-size: 16px; }
  .add-moment-form button { min-height: 42px; flex: 1; }

  .wardrobe-form,
  .section-heading,
  .final-check-grid,
  .lookbook-day { grid-template-columns: 1fr; }
  .wardrobe-form { gap: 18px; }
  .wardrobe-upload { min-height: 145px; background: rgba(255,255,255,0.04); }
  .wardrobe-upload .upload-icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .upload-queue-empty { min-height: 130px; }
  .upload-queue-empty p { font-size: 21px; }
  .upload-queue-card { grid-template-columns: 105px 1fr; gap: 12px; padding: 10px; }
  .upload-queue-fields { gap: 9px; }
  .upload-queue-fields > div { grid-template-columns: 1fr; gap: 9px; }
  .upload-queue-fields input,
  .upload-queue-fields select { min-height: 40px; font-size: 16px; }
  .upload-queue-actions { position: sticky; bottom: calc(var(--mobile-nav-height) + 8px); z-index: 4; padding: 9px; background: var(--planner-dark, var(--ink)); }
  .upload-queue-actions button { min-height: 44px; }
  .upload-queue-actions #saveWardrobeBatch { flex: 1; }

  .demo-closet-grid,
  .personal-closet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .personal-closet-grid { margin-top: 26px; }
  .personal-closet-item strong { font-size: 10px; }
  .personal-closet-item select,
  .personal-closet-item > button:not(.delete-wardrobe-item) { min-height: 40px; font-size: 9px; }

  .lookbook-section,
  .final-check-section { padding: 58px 18px; }
  .section-heading { gap: 18px; margin-bottom: 38px; }
  .lookbook-day > header { padding: 25px 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lookbook-day,
  .lookbook-day > header,
  .lookbook-day > div,
  .lookbook-moment,
  .lookbook-moment-heading { min-width: 0; max-width: 100%; }
  .lookbook-day > div { padding-left: 0; overflow: hidden; }
  .lookbook-moment { padding: 20px 0 28px; }
  .lookbook-moment-heading h4 { font-size: 25px; }
  .lookbook-moment-heading button { min-height: 40px; padding: 0 4px; }
  .lookbook-pieces { width: 100%; max-width: calc(100vw - 36px); flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .lookbook-pieces > div { width: 112px; flex: 0 0 112px; scroll-snap-align: start; }
  .lookbook-pieces img { width: 112px; height: 134px; }
  .lookbook-pieces select { min-height: 38px; font-size: 7px; }

  .readiness-preview { grid-template-columns: 1fr 1fr; gap: 25px 0; padding: 44px 18px; }
  .readiness-preview > p { grid-column: 1 / -1; }
  .final-check-grid { gap: 48px; }
  .check-row,
  .packing-row { min-height: 72px; }
  .check-row > button,
  .packing-row > button { width: 34px; height: 34px; }

  .mobile-bottom-nav {
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 8px 7px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--planner-paper, var(--paper)) 94%, transparent);
    box-shadow: 0 -8px 30px rgba(37,43,39,0.08);
    backdrop-filter: blur(18px);
  }

  .site-footer {
    min-height: 130px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 28px 18px calc(92px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .site-footer > span:last-child {
    width: 100%;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-decoration: none;
  }

  .mobile-bottom-nav i { font-style: normal; font-size: 7px; letter-spacing: 0.08em; opacity: 0.6; }
  .mobile-bottom-nav span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav a {
    position: relative;
    border-radius: 12px;
    transition: color 160ms ease, background 160ms ease;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.active {
    color: var(--planner-dark, var(--ink));
    background: color-mix(in srgb, var(--planner-accent, var(--olive)) 18%, transparent);
  }
  .mobile-bottom-nav a.active::before {
    width: 5px;
    height: 5px;
    position: absolute;
    top: 5px;
    border-radius: 50%;
    background: var(--planner-accent, var(--olive));
    content: "";
  }
  .mobile-bottom-nav a.active i { opacity: 1; }
  .mobile-bottom-nav button { transform: translateY(-20px); }
  .mobile-bottom-nav button b {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--planner-dark, var(--ink));
    box-shadow: 0 8px 22px rgba(37,43,39,0.22);
    font-size: 28px;
    font-weight: 400;
  }
  .mobile-bottom-nav button span { margin-top: 2px; }

  .account-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 45px 24px 28px;
  }

  .account-modal h2 {
    font-size: 43px;
  }

  .item-edit-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 38px 22px 24px;
  }

  .item-edit-modal h2 { font-size: 41px; }
  .item-edit-modal form > div { grid-template-columns: 1fr; }
  .item-edit-modal form > img { width: 100px; height: 120px; }

  .crop-editor {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .crop-editor > header h2 { font-size: 36px; }
  .crop-editor > p { margin: 10px 0; }
  .crop-editor-stage { width: min(100%, 310px); max-height: 51dvh; }

  #extrasPicker { grid-template-columns: repeat(2, 1fr); }

  .lookbook-day {
    display: block;
    padding: 34px 0;
  }
  .lookbook-day > header {
    padding: 0 0 20px;
  }
  .lookbook-day > header h3 { font-size: 34px; }
  .lookbook-day > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    overflow: visible;
  }
  .lookbook-moment {
    padding: 17px;
  }
  .lookbook-moment-heading {
    display: flex;
  }
  .lookbook-moment-heading h4 { font-size: 29px; }
  .lookbook-moment-heading button { max-width: 105px; line-height: 1.4; }
  .lookbook-collage {
    width: 100%;
    min-height: 420px;
    margin-top: 18px;
  }
  .lookbook-outfit-line { font-size: 16px; }

  body.outfit-sheet-open { overflow: hidden; }

  .outfit-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(20,25,22,0.48);
    backdrop-filter: blur(3px);
  }

  .outfit-sheet-backdrop[hidden],
  .outfit-sheet[hidden] {
    display: none;
  }

  .outfit-sheet {
    max-height: 89dvh;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 61;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    color: var(--planner-dark, var(--ink));
    background: var(--planner-paper, var(--paper));
    box-shadow: 0 -18px 60px rgba(24,28,25,0.24);
  }

  .outfit-sheet-handle {
    width: 42px;
    height: 4px;
    flex: 0 0 auto;
    align-self: center;
    margin: 2px 0 13px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.2;
  }

  .outfit-sheet > header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .outfit-sheet > header span {
    font-size: 7px;
    letter-spacing: 0.14em;
    opacity: 0.65;
    text-transform: uppercase;
  }

  .outfit-sheet > header h2 {
    margin: 3px 0 0;
    font: 31px "Italiana", serif;
  }

  .outfit-sheet > header button {
    width: 38px;
    height: 38px;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 28px;
  }

  .outfit-sheet-selected {
    min-height: 48px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
  }

  .outfit-sheet-selected > span {
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .outfit-sheet-selected > div {
    display: flex;
    flex-direction: row-reverse;
    padding-right: 6px;
  }

  .outfit-sheet-selected img {
    width: 34px;
    height: 34px;
    margin-right: -7px;
    border: 2px solid var(--planner-paper, var(--paper));
    border-radius: 50%;
    object-fit: cover;
    background: white;
  }

  .outfit-sheet-search {
    flex: 0 0 auto;
  }

  .outfit-sheet-search > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }

  .outfit-sheet-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0 16px;
    color: inherit;
    background: rgba(255,255,255,0.5);
    font-size: 16px;
  }

  .outfit-sheet-filters {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
  }

  .outfit-sheet-filters button {
    min-height: 32px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 0 12px;
    color: inherit;
    background: transparent;
    font-size: 8px;
    text-transform: uppercase;
  }

  .outfit-sheet-filters button.active {
    color: var(--white);
    background: var(--planner-dark, var(--ink));
  }

  .outfit-sheet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    overflow-y: auto;
    padding: 2px 1px 18px;
  }

  .outfit-sheet-grid > button {
    min-width: 0;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
  }

  .outfit-sheet-grid > button > span {
    display: block;
    position: relative;
  }

  .outfit-sheet-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    border: 1px solid transparent;
    object-fit: contain;
    background: rgba(255,255,255,0.55);
  }

  .outfit-sheet-grid button.selected img {
    border: 2px solid var(--planner-accent, var(--olive));
  }

  .outfit-sheet-grid i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    position: absolute;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    color: var(--white);
    background: var(--planner-dark, var(--ink));
    font-style: normal;
    font-size: 14px;
  }

  .outfit-sheet-grid button.selected i {
    background: var(--planner-accent, var(--olive));
  }

  .outfit-sheet-grid strong,
  .outfit-sheet-grid small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .outfit-sheet-grid strong { font-size: 9px; }
  .outfit-sheet-grid small { margin-top: 2px; font-size: 7px; opacity: 0.6; }

  .outfit-sheet-empty {
    grid-column: 1 / -1;
    padding: 30px 0;
    text-align: center;
  }

  .outfit-sheet-empty button {
    min-height: 44px;
    border: 1px solid var(--line);
    padding: 0 15px;
    color: inherit;
    background: transparent;
  }

  .outfit-sheet > footer {
    display: grid;
    grid-template-columns: 1fr auto;
    flex: 0 0 auto;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .outfit-sheet > footer button {
    min-height: 48px;
    border: 1px solid var(--line);
    padding: 0 17px;
    color: inherit;
    background: transparent;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .outfit-sheet > footer button:first-child,
  .outfit-sheet > footer button.ready {
    color: var(--white);
    background: var(--planner-dark, var(--ink));
  }

  .outfit-sheet > footer button:disabled {
    opacity: 0.35;
  }
}
