:root {
  --bg: #faf8fc;
  --card: #ffffff;
  --ink: #35303d;
  --mut: #696171;
  --pink: #79566f;
  --acc: #79566f;
  --soft: #f0ebf4;
  --line: #e7e1eb;
  --lav: #eee7f4;
  --gold: #75637b;
  color-scheme: light;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --shadow: 0 8px 28px #64517305;
}
:root[data-theme="dark"] {
  --bg: #211e27;
  --card: #2c2732;
  --ink: #f8f1fb;
  --mut: #c8becf;
  --pink: #79566f;
  --acc: #e5b9d1;
  --soft: #39313f;
  --line: #514557;
  --lav: #433b35;
  --gold: #ceb8db;
  color-scheme: dark;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 110px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 17px;
  min-height: 46px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  background: var(--soft);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 4px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}
h1 em {
  font-weight: 400;
  color: var(--acc);
}
h2 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
}
p {
  margin: 10px 0;
}
.mut {
  font-size: 13px;
  color: var(--mut);
}
.eyebrow,
.edition,
.art-caption,
.editor-note > span {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.eyebrow {
  color: var(--gold);
  margin: 0 0 12px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 100001;
  background: var(--card);
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.site-header {
  height: 89px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 31px;
  letter-spacing: -1.5px;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  font-size: 22px;
  color: var(--acc);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 34px;
}
.brand-dot {
  font: 10px Arial;
  align-self: flex-start;
  padding-top: 10px;
  letter-spacing: 0;
  margin-left: -7px;
}
.header-note {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--mut);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-add {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-size: 12px;
}
.header-add:hover {
  background: var(--acc);
  color: var(--card);
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 22px;
  min-width: 46px;
  padding: 4px;
}
main {
  max-width: 1136px;
  margin: auto;
  padding: 0 28px;
}
section {
  display: none;
}
section.on {
  display: block;
  animation: enter 0.25s ease;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.section-top {
  padding: 29px 0 24px;
}
.section-top > .mut {
  margin: 0;
}
.section-top > h1 {
  margin-bottom: 12px;
}
.section-top .eyebrow {
  margin-bottom: 9px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  min-height: 430px;
}
.hero-copy {
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero .edition {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.hero h1 {
  margin: 22px 0 15px;
  font-size: clamp(38px, 4.6vw, 58px);
}
.hero h1 em {
  display: inline-block;
}
.hero-copy > p {
  color: var(--mut);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.pri {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: none;
}
.pri:hover {
  background: #59303b;
  border-color: #59303b;
  color: #fff;
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 12px;
}
.privacy-line {
  display: block;
  font-size: 11px;
  color: var(--mut);
  line-height: 1.7;
}
.hero .privacy-line {
  margin-top: 24px;
}
.hero-art {
  background: #eae1d6;
  position: relative;
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5a4c3e;
}
.hero-art svg {
  width: 100%;
  max-width: 340px;
  height: 350px;
}
.art-caption {
  align-self: flex-start;
  font-size: 9px;
}
.art-label {
  font: italic 12px Georgia;
  align-self: flex-end;
}
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
}
.dashboard > .card {
  margin: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.circle-button {
  border-radius: 50%;
  width: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 22px;
  background: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  border-right: 1px solid var(--line);
  padding: 0 16px;
}
.stats > div:first-child {
  padding-left: 0;
}
.stats > div:last-child {
  border: 0;
}
.stats b {
  display: block;
  font: 36px Georgia;
  margin-bottom: 7px;
}
.stats span {
  font-size: 11px;
  color: var(--mut);
}
.today-card .empty {
  margin-top: 20px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.today-card .flat {
  max-width: 320px;
  margin: 18px auto;
}
.today-card > h2 {
  font-size: 29px;
}
.editor-note {
  text-align: center;
  padding: 52px 10px 24px;
  color: var(--mut);
}
.editor-note p {
  font: italic 22px/1.5 Georgia;
  color: var(--ink);
  margin-top: 17px;
}
footer {
  margin-top: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font: 19px Georgia;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font: 11px Arial;
  color: var(--mut);
}
nav {
  position: fixed;
  z-index: 50;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 0 10px 40px #29272324;
}
nav button {
  border: 0;
  min-width: 0;
  background: transparent;
  min-height: 59px;
  border-radius: 13px;
  color: var(--mut);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 7px 3px;
  font-size: 10px;
  line-height: 1.2;
}
nav button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
nav button[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 6px;
}
input,
select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
input[type="color"] {
  padding: 5px;
  min-width: 46px;
  width: 52px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 0;
  accent-color: var(--acc);
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 12px;
}
details {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin: 16px 0 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 24px;
}
summary .mut {
  font-size: 11px;
  font-weight: 400;
  float: right;
  margin-left: 8px;
}
details[open] > summary {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.upload-card {
  padding: 0;
  overflow: hidden;
}
.upload-card details {
  margin: 0;
  border: 0;
  padding: 21px 24px;
}
.upload-card summary {
  font-size: 15px;
}
.upload-intro {
  margin-top: 24px;
}
.upload-intro p {
  color: var(--mut);
  font-size: 13px;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed var(--gold);
  background: var(--bg);
  padding: 24px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
}
.upload-zone > span {
  font-size: 11px;
  color: var(--mut);
}
.upload-zone .upload-symbol {
  font: 34px Georgia;
  color: var(--acc);
}
.upload-zone input {
  max-width: 300px;
  background: var(--card);
  font-size: 12px;
}
.closet-tools {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 15px 1px 12px;
  scrollbar-width: thin;
}
.chips button {
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 99px;
  padding: 8px 17px;
  font-size: 11px;
  min-height: 38px;
  background: transparent;
}
.chips button.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.collection-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 28px;
}
.item {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--card);
}
.item .ph {
  padding: 0;
  border: 0;
  border-radius: 0;
  width: 100%;
  display: block;
  background: var(--soft);
}
.item img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
}
.item .info {
  padding: 15px;
}
.item h3 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.item .mut {
  font-size: 11px;
  margin: 8px 0;
}
.edit-button {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 36px;
  width: 100%;
  margin-top: 10px;
  background: transparent;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #8887;
  vertical-align: middle;
  margin-right: 4px;
}
.palette-strip {
  display: flex;
  gap: 4px;
  margin: 9px 0;
}
.palette-strip span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #8885;
}
.empty {
  background: var(--soft);
  border: 1px dashed var(--line);
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  color: var(--mut);
  font-size: 13px;
}
.empty::before {
  content: "◇";
  font: 38px Georgia;
  display: block;
  color: var(--gold);
  margin-bottom: 10px;
}
.empty button {
  margin-top: 14px;
  align-self: center;
}
.backup-panel {
  background: var(--card);
  margin-top: 22px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
  min-width: 120px;
}
.note {
  background: var(--soft);
  padding: 14px;
  border-radius: 9px;
  font-size: 12px;
  margin: 14px 0;
  color: var(--mut);
}
.warn {
  background: #f8edda;
  border: 1px solid #e5d2b0;
  color: #634d29;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 12px;
  margin: 14px 0;
}
.warn button {
  margin-left: 8px;
  font-size: 11px;
  min-height: 36px;
  background: transparent;
  color: inherit;
}
.step-title {
  font: 600 12px Arial;
  margin: 28px 0 13px;
  letter-spacing: 0.3px;
}
.wide {
  width: 100%;
  margin: 24px 0 8px;
}
.footnote {
  text-align: center;
  margin: 18px auto;
  max-width: 600px;
}
.pick {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  text-align: left;
}
.pick.sel {
  border: 2px solid var(--acc);
}
.pick img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--soft);
}
.pick .in {
  padding: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pick .ck {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 50%;
  background: var(--card);
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
}
.tag {
  font-size: 10px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--acc);
  padding: 3px 6px;
  display: inline-block;
  margin-top: 5px;
}
.flat {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr 0.7fr;
  gap: 8px;
  aspect-ratio: 4/5;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px;
  max-height: 550px;
}
.flat figure {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}
.flat img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.cols span {
  font-size: 11px;
}
.dph {
  width: 100%;
  height: min(36vh, 280px);
  object-fit: contain;
  background: var(--soft);
  border-radius: 12px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.modal-head b {
  font: 22px Georgia;
}
.modal-head button {
  font-size: 12px;
}
.bar {
  position: sticky;
  bottom: -24px;
  background: var(--card);
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #17151299;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#modal.show {
  display: flex;
}
#modal .sheet {
  width: 100%;
  max-width: 610px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--card);
  padding: 24px;
  border-radius: 18px;
  overscroll-behavior: contain;
}
#toast {
  display: none;
  position: fixed;
  z-index: 2000;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 30px));
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px #0003;
  padding: 16px;
  border-radius: 12px;
}
#toast.show {
  display: flex;
}
#toast > div {
  flex: 1;
}
#toast b,
#toast .mut {
  display: block;
}
#toast button {
  padding: 4px 10px;
  min-height: 40px;
}
#toast.err {
  border-color: #ac463e;
}
.prow {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin: 18px 0;
  padding: 18px;
  position: relative;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.review-head b {
  font-size: 12px;
}
.review-head button {
  font-size: 11px;
  min-height: 36px;
  padding: 6px 12px;
}
.review-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}
.preview-wrap {
  align-self: start;
}
.sample-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: crosshair;
  background: var(--soft);
  touch-action: manipulation;
}
.sample-help {
  font-size: 10px;
  color: var(--mut);
  margin: 7px 0;
}
.review-fields {
  min-width: 0;
}
.review-fields label:first-child {
  margin-top: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.field-grid > div {
  min-width: 0;
}
.color-inputs {
  display: flex;
  gap: 7px;
}
.color-inputs select {
  flex: 1;
  min-width: 0;
}
.swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.swatches button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--card);
  outline: 1px solid var(--line);
}
.swatches button[aria-pressed="true"] {
  outline: 2px solid var(--acc);
}
.review-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 400;
  clear: both;
}
.analysis-status {
  font-size: 11px;
  color: var(--mut);
  padding: 10px 0;
}
.analysis-status strong {
  color: var(--acc);
}
.review-fields .mut {
  font-size: 11px;
}
.loading {
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@media (min-width: 800px) {
  #saved #sl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  #create > .card {
    max-width: 820px;
    margin: auto;
  }
  .today-card .flat {
    max-height: 300px;
  }
  nav {
    bottom: 20px;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 20px;
    height: 76px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr 0.85fr;
  }
  .hero-copy {
    padding: 30px 25px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .hero-art {
    padding: 18px 16px;
  }
  .hero-art svg {
    height: 300px;
  }
  .hero-actions {
    gap: 4px;
  }
  .hero .edition {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard {
    gap: 14px;
  }
  .card {
    padding: 20px;
  }
  .stats > div {
    padding: 0 10px;
  }
  .review-layout {
    grid-template-columns: 140px 1fr;
    gap: 14px;
  }
}
@media (max-width: 540px) {
  body {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px));
  }
  .site-header {
    height: 72px;
    padding: 0 18px;
    gap: 10px;
  }
  .brand {
    font-size: 28px;
    gap: 7px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    line-height: 28px;
    font-size: 19px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-add {
    width: 39px;
    min-height: 39px;
    padding: 5px;
    font-size: 24px;
    border-radius: 50%;
  }
  .header-add span {
    display: none;
  }
  .icon-button {
    min-width: 35px;
  }
  main {
    padding: 0 17px;
  }
  .section-top {
    padding: 23px 0 20px;
  }
  .section-top > h1 {
    font-size: 39px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-copy {
    padding: 29px 25px 26px;
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.04;
    margin: 19px 0 15px;
  }
  .hero-copy > p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-art {
    height: 220px;
    padding: 15px 23px;
    overflow: hidden;
  }
  .hero-art svg {
    position: absolute;
    right: 12px;
    top: -30px;
    height: 280px;
    width: 260px;
  }
  .hero-art .art-caption {
    position: absolute;
    left: 22px;
    top: 24px;
    writing-mode: vertical-rl;
    font-size: 8px;
  }
  .art-label {
    position: absolute;
    bottom: 14px;
    left: 22px;
    font-size: 10px;
  }
  .hero .privacy-line {
    margin-top: 17px;
    font-size: 10px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions button {
    font-size: 11px;
  }
  .dashboard {
    grid-template-columns: 1fr;
    margin-top: 18px;
    gap: 16px;
  }
  h2 {
    font-size: 29px;
  }
  .card {
    padding: 21px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .item .info {
    padding: 11px;
  }
  .item h3 {
    font-size: 19px;
  }
  .item .mut {
    font-size: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .closet-tools {
    grid-template-columns: 1fr 125px;
    gap: 10px;
  }
  .closet-tools select,
  .closet-tools input {
    font-size: 12px;
  }
  .upload-card details {
    padding: 18px;
  }
  .upload-card summary .mut {
    display: block;
    float: none;
    margin: 6px 0 0;
  }
  .upload-zone {
    padding: 16px;
  }
  .upload-zone span {
    font-size: 10px;
  }
  .upload-zone input {
    width: 100%;
    font-size: 11px;
  }
  .upload-intro h2 {
    font-size: 26px;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .preview-wrap {
    max-width: 260px;
    margin: auto;
    width: 100%;
  }
  .prow {
    padding: 14px;
  }
  .field-grid {
    gap: 0 9px;
  }
  .review-fields label {
    font-size: 11px;
  }
  summary .mut {
    float: none;
    display: block;
    margin: 4px 0 0;
  }
  .editor-note {
    padding: 36px 5px 20px;
  }
  .editor-note p {
    font-size: 21px;
  }
  footer span {
    font-size: 10px;
  }
  nav {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 28px);
  }
  #modal {
    align-items: flex-end;
    padding: 8px;
  }
  #modal .sheet {
    border-radius: 18px 18px 10px 10px;
    padding: 20px;
    max-height: 94dvh;
  }
  .row > * {
    min-width: 110px;
  }
  .cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .bar {
    bottom: -20px;
  }
  .backup-panel .row {
    flex-direction: column;
  }
  .stats b {
    font-size: 33px;
  }
  .stats > div {
    padding: 0 16px;
  }
  input,
  select {
    font-size: 16px;
  }
  #toast {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}
/* A quieter, soft minimal layer across the original responsive layouts. */
.base-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-top: 15px;
}
.base-preview img {
  width: 72px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--soft);
}
.base-preview strong,
.base-preview .eyebrow {
  display: block;
}
.base-preview .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.base-preview p {
  margin: 5px 0 0;
}
.extras-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.extras-tools > div {
  flex: 1;
  min-width: 0;
}
.extras-tools button {
  font-size: 11px;
  white-space: nowrap;
}
.pick:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.pick-reason {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--mut);
  margin-top: 6px;
  font-weight: 400;
}
.look-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.look-results-summary {
  margin: 24px 0 15px;
}
.look-results-summary strong {
  font-size: 14px;
}
.outfit-result {
  margin: 18px 0 22px;
  padding: 20px;
}
.outfit-result h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
.outfit-result .flat {
  max-width: 460px;
  margin: 0 auto 18px;
}
.outfit-composition {
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.outfit-composition li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.outfit-composition span {
  color: var(--mut);
}
.outfit-composition strong {
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 500;
  max-width: 60%;
}
.look-diagnostic {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 20px;
  margin-top: 20px;
  font-size: 13px;
}
.look-diagnostic h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.look-diagnostic .row {
  margin-top: 16px;
}
.look-diagnostic button {
  font-size: 11px;
}
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.legacy-grid figure {
  margin: 0;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
}
.legacy-grid img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.legacy-grid figcaption {
  font-size: 11px;
  color: var(--mut);
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flat figure {position:relative;overflow:hidden}
.flat figure img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media (max-width: 540px) {
  .look-preferences {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .extras-tools {
    gap: 8px;
  }
  .extras-tools button {
    padding: 10px 8px;
    font-size: 10px;
  }
  .outfit-result {
    padding: 16px;
  }
  .outfit-composition li {
    font-size: 11px;
  }
  .base-preview {
    padding: 10px;
    gap: 12px;
  }
}
dialog#cameraDialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--card);
  color: var(--ink);
  width: min(520px, calc(100% - 24px));
  max-height: 92dvh;
  overflow: auto;
}
#cameraDialog::backdrop {
  background: #211b2a88;
  backdrop-filter: blur(5px);
}
.camera-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.camera-heading h2 {
  font-size: 22px;
}
.camera-heading button {
  font-size: 22px;
  min-width: 44px;
  padding: 5px;
  border-radius: 50%;
}
.camera-preview {
  position: relative;
  background: var(--soft);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-top: 18px;
}
#cameraVideo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.camera-guide {
  position: absolute;
  inset: 12%;
  border: 1px dashed #fff9;
  border-radius: 16px;
  pointer-events: none;
}
#cameraStatus {
  font-size: 12px;
  color: var(--mut);
  min-height: 38px;
  margin-top: 12px;
}
.camera-alternatives {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.camera-alternatives button {
  flex: 1;
  font-size: 11px;
  padding: 10px;
  min-width: 140px;
  background: var(--bg);
}
.brand {
  font-weight: 600;
  letter-spacing: -1.1px;
  font-size: 26px;
  gap: 9px;
}
.brand-mark {
  background: var(--lav);
  border: 0;
  border-radius: 13px;
  color: var(--acc);
  font-family: Georgia, serif;
}
.site-header {
  border-bottom: 0;
  height: 82px;
}
.header-note {
  letter-spacing: 1.5px;
  font-size: 9px;
}
.header-add {
  background: var(--soft);
  color: var(--ink);
  border-color: transparent;
  border-radius: 99px;
}
.icon-button {
  border-radius: 50%;
  background: transparent;
}
.section-top {
  padding-top: 25px;
}
.eyebrow,
.edition {
  letter-spacing: 1.5px;
  font-size: 10px;
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -1.1px;
}
h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -1px;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
}
.hero {
  border: 0;
  border-radius: 28px;
  background: var(--card);
  grid-template-columns: 1.1fr 1fr;
  min-height: 365px;
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 34px 38px;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.13;
  margin: 18px 0;
}
.hero-copy > p {
  font-size: 13px;
}
.hero .edition {
  font-size: 9px;
  letter-spacing: 1.3px;
}
.hero .privacy-line {
  margin-top: 18px;
}
.hero-art {
  background: transparent;
  padding: 20px 30px;
  position: relative;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 350px;
  position: static;
}
.hero-art .art-label {
  font:
    11px ui-sans-serif,
    system-ui,
    sans-serif;
  align-self: center;
  position: static;
  color: var(--mut);
}
.pri {
  border-radius: 99px;
  font-size: 12px;
  padding: 13px 20px;
}
.pri:hover {
  background: #634359;
  border-color: #634359;
}
.hero-actions {
  gap: 18px;
}
.hero-actions .text-button {
  font-weight: 500;
}
.card {
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: none;
}
.card-heading h2 {
  font-size: 26px;
}
.circle-button {
  background: var(--soft);
  border-color: transparent;
}
.stats {
  margin: 20px 0 16px;
  border-top: 0;
  padding-top: 0;
}
.stats b {
  font-family: inherit;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.collection-summary > details {
  border: 0;
  background: var(--bg);
}
.today-card > h2 {
  font-size: 25px;
}
.today-card .empty {
  min-height: 170px;
  border: 0;
  background: var(--bg);
}
.empty {
  border: 0;
  background: var(--soft);
  border-radius: 16px;
}
.empty::before {
  content: "✧";
  font-size: 30px;
  color: var(--acc);
}
nav {
  box-shadow: 0 8px 30px #48344d12;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 7px;
  max-width: 450px;
}
nav button {
  font-size: 10px;
  border-radius: 17px;
  min-height: 57px;
}
nav button[aria-current="page"] {
  background: var(--lav);
  color: var(--acc);
}
.chips button.on {
  background: var(--lav);
  border-color: var(--lav);
  color: var(--acc);
}
input,
select,
details {
  border-radius: 12px;
}
.item {
  border-radius: 18px;
}
.item h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.item img {
  background: var(--bg);
}
.item .info {
  padding: 14px;
}
.photo-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 10px;
}
.source-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 23px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.source-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--acc);
  margin-bottom: 4px;
}
.source-button strong {
  font-size: 13px;
  font-weight: 600;
}
.source-button span {
  font-size: 11px;
  font-weight: 400;
  color: var(--mut);
}
.camera-source {
  background: var(--lav);
  border-color: var(--lav);
}
.photo-limits,
.camera-hint {
  font-size: 11px;
  color: var(--mut);
  text-align: center;
  max-width: 520px;
  margin: 8px auto;
  line-height: 1.6;
}
.camera-hint {
  font-size: 10px;
}
.upload-intro h2 {
  font-size: 25px;
}
.prow {
  border-radius: 18px;
}
.review-confirm {
  border-radius: 12px;
}
footer {
  margin-top: 32px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: -0.5px;
}
:root[data-theme="dark"] .hero-art svg {
  opacity: 0.9;
}
@media (max-width: 760px) {
  .hero-copy {
    padding: 30px 26px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-art {
    padding: 18px;
  }
  .site-header {
    height: 76px;
  }
  .hero {
    min-height: 340px;
  }
}
@media (max-width: 540px) {
  .site-header {
    height: 70px;
  }
  .brand {
    font-size: 25px;
  }
  .hero {
    display: flex;
    border-radius: 24px;
    min-height: 0;
  }
  .hero-copy {
    padding: 28px 24px 15px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.2px;
  }
  .hero-art {
    height: 195px;
    padding: 0 30px 17px;
    justify-content: center;
    overflow: hidden;
  }
  .hero-art svg {
    width: 235px;
    max-height: 180px;
  }
  .hero-art .art-label {
    font-size: 10px;
    margin-top: -3px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero .privacy-line {
    font-size: 10px;
  }
  .card-heading h2 {
    font-size: 25px;
  }
  .section-top > h1 {
    font-size: 34px;
  }
  .photo-sources {
    gap: 10px;
  }
  .source-button {
    padding: 20px 8px;
  }
  .card {
    border-radius: 20px;
  }
  .header-add {
    background: var(--lav);
    color: var(--acc);
    width: 38px;
    height: 38px;
  }
  .dashboard {
    margin-top: 17px;
  }
  .stats b {
    font-size: 29px;
  }
  nav {
    border-radius: 23px;
  }
  nav button {
    min-height: 56px;
  }
  .upload-card details {
    padding: 19px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sample-canvas, .edit-crop-preview {
  background-color: var(--bg, #faf8f6);
  background-image: linear-gradient(45deg, #b9a5b21a 25%, transparent 25%), linear-gradient(-45deg, #b9a5b21a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #b9a5b21a 75%), linear-gradient(-45deg, transparent 75%, #b9a5b21a 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.cutout-tools { margin-top: 12px; }
.cutout-tools[hidden], [hidden] { display: none !important; }
.edit-crop-preview { max-width: 100%; max-height: 320px; margin: 12px auto; border-radius: 18px; }
.admin-page { padding: 32px 20px 60px; }
.admin-shell { width: min(100%, 680px); margin: auto; padding: 0; }
.admin-shell h1 { margin-top: 8px; font-size: clamp(28px, 6vw, 44px); }
.admin-shell .card { padding: 24px; margin-top: 24px; }
.admin-shell input:not([type="checkbox"]), .admin-shell select { width: 100%; }
.admin-shell .pri { margin-top: 16px; }
.admin-shell .mut { line-height: 1.65; overflow-wrap: anywhere; }
.admin-shell .row button { min-width: 120px; }
.admin-back { display: inline-block; margin-bottom: 30px; }
#adminStatus { margin-top: 18px; line-height: 1.6; }
.harmony-tag { display: inline-block; padding: 7px 12px; border-radius: 20px; background: var(--soft, #eee7ee); color: var(--ink); font-size: 12px; margin: 8px 0; }
