@font-face {
  font-family:Manrope;
  src:url("../fonts/Manrope.c329d9ac3c7b.ttf") format('truetype');
  font-weight:200 800;
  font-display:swap;
}

@font-face {
  font-family:'Plex Mono';
  src:url("../fonts/IBMPlexMono-Regular.560033d0c7f2.ttf") format('truetype');
  font-weight:400;
  font-display:swap;
}

:root {
  --paper:#f2f3ef;
  --surface:#e7eae3;
  --white:#fbfcf9;
  --ink:#252d28;
  --muted:#626b63;
  --line:#cdd2c9;
  --accent:#325443;
  --accent-light:#dfe8dc;
  --error:#963d32;
  --radius:6px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --space-12:48px;
  --space-16:64px;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}

* {
  box-sizing:border-box;
}

html {
  scroll-padding-top:24px;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Manrope,Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

body:has(dialog[open]) {
  overflow:hidden;
}

button,input,select,textarea {
  font:inherit;
  color:inherit;
}

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}

button,summary {
  cursor:pointer;
}

button {
  border:0;
  background:none;
}

a {
  color:inherit;
  text-decoration:none;
}

img {
  max-width:100%;
  display:block;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  font-weight:500;
  line-height:1.15;
}

h1 {
  font-size:clamp(42px,5.8vw,76px);
  letter-spacing:-.065em;
}

h2 {
  font-size:28px;
  letter-spacing:-.045em;
}

h3 {
  font-size:18px;
  letter-spacing:-.025em;
}

p {
  max-width:65ch;
}

button {
  line-height:1.3;
}

button:disabled {
  opacity:.5;
  cursor:not-allowed;
}

a,button,summary {
  touch-action:manipulation;
}

::selection {
  background:#c6d5bd;
  color:var(--ink);
}

:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline-offset:1px;
}

input,select,textarea {
  width:100%;
  min-height:48px;
  border:1px solid var(--line);
  background:var(--white);
  padding:12px 14px;
  border-radius:var(--radius);
  font-size:15px;
  line-height:1.4;
}

input::placeholder,textarea::placeholder {
  color:#687168;
}

textarea {
  resize:vertical;
}

select {
  padding-right:28px;
}

input[type=checkbox] {
  width:18px;
  height:18px;
  min-height:0;
  accent-color:var(--accent);
  flex-shrink:0;
}

input[type=range] {
  padding:0;
  min-height:44px;
  accent-color:var(--accent);
  background:none;
  border:0;
}

label {
  display:block;
  font-size:13px;
  font-weight:600;
}

label>input:not([type=checkbox]),label>select,label>textarea {
  margin-top:8px;
}

form {
  margin:0;
}

.icon {
  width:21px;
  height:21px;
  flex-shrink:0;
  display:inline-block;
  vertical-align:middle;
}

.icon-button {
  width:44px;
  min-width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--radius);
  color:var(--ink);
  transition:background .16s;
}

.icon-button:hover {
  background:var(--accent-light);
}

.button {
  min-height:48px;
  padding:13px 19px;
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:13px;
  font-weight:650;
  line-height:1.4;
  white-space:nowrap;
  transition:background .16s var(--ease),transform .16s var(--ease);
}

.button:hover {
  background:var(--surface);
}

.button:active {
  transform:translateY(1px);
}

.button.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:var(--white);
}

.button.primary:hover {
  background:#263e32;
}

.full {
  width:100%;
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:600;
  min-height:44px;
  line-height:1.5;
}

.text-link:hover {
  text-decoration:underline;
  text-underline-offset:5px;
}

.muted {
  color:var(--muted);
}

.small,.help {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}

.help {
  display:block;
  margin-top:7px;
}

.mono {
  font-family:'Plex Mono',monospace;
  font-size:10px;
  letter-spacing:.08em;
  line-height:1.5;
}

.eyebrow {
  font-size:10px;
  letter-spacing:.18em;
  font-weight:700;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  padding:0;
  border:0;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  padding:12px;
  background:var(--accent);
  color:white;
  z-index:50;
}

.skip-link:focus {
  top:12px;
}

[hidden] {
  display:none!important;
}

.site-header {
  height:88px;
  max-width:1440px;
  margin:auto;
  padding:0 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:8;
}

.wordmark {
  font-size:44px;
  letter-spacing:-.08em;
  line-height:1;
  font-weight:700;
  display:flex;
  align-items:baseline;
}

.wordmark span {
  color:var(--accent);
  font-size:56px;
  margin-left:1px;
  line-height:.5;
}

.header-note {
  font-size:12px;
  color:var(--muted);
}

.main-nav {
  display:flex;
  gap:8px;
  height:100%;
  align-items:center;
}

.main-nav>a {
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 19px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  border-radius:var(--radius);
}

.main-nav>a[aria-current] {
  color:var(--accent);
  background:var(--accent-light);
}

.main-nav>a:hover {
  color:var(--ink);
}

.main-nav .icon {
  width:19px;
  height:19px;
}

.account-menu {
  position:relative;
}

.account-menu summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:52px;
  min-height:44px;
  font-weight:600;
}

.account-menu summary::-webkit-details-marker {
  display:none;
}

.account-menu summary .icon {
  width:14px;
}

.account-menu>div {
  position:absolute;
  right:0;
  top:50px;
  min-width:210px;
  background:var(--white);
  padding:18px;
  border:1px solid var(--line);
  box-shadow:0 10px 30px #252d2810;
}

.account-menu>div>span {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
}

.account-menu a,.account-menu button {
  display:flex;
  gap:10px;
  min-height:44px;
  align-items:center;
  font-size:13px;
}

.page {
  max-width:1440px;
  margin:0 auto;
  padding:48px 56px 64px;
  min-height:calc(100dvh - 185px);
}

.site-footer {
  max-width:1328px;
  margin:0 auto;
  padding:25px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:24px;
  color:var(--muted);
  font-size:11px;
}

.site-footer a {
  display:flex;
  align-items:center;
  gap:12px;
}

.site-footer .icon {
  width:16px;
  height:16px;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:32px;
}

.page-heading>div {
  min-width:0;
}

.page-heading p {
  color:var(--muted);
  font-size:15px;
  margin-top:15px;
}

.page-heading .greeting {
  font-size:13px;
  margin:0 0 10px;
}

.heading-period {
  color:var(--accent);
}

.soft-word {
  color:#738477;
}

.back-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  min-height:44px;
  margin-bottom:20px;
  color:var(--muted);
}

.section-title {
  margin:42px 0 24px;
}

.messages {
  max-width:1328px;
  margin:20px auto 0;
  padding:0 4px;
}

.message {
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 16px;
  background:var(--accent-light);
  border-left:3px solid var(--accent);
  font-size:13px;
}

.message.error {
  background:#f3e5df;
  border-color:var(--error);
}

.message>span {
  flex:1;
}

.message>button {
  width:44px;
  height:36px;
  flex-shrink:0;
}

.inline-notice {
  border-left:3px solid var(--accent);
  background:var(--accent-light);
  padding:14px 18px;
  font-size:13px;
  margin:16px 0;
}

.errorlist {
  list-style:none;
  padding:0;
  margin:8px 0 14px;
  color:var(--error);
  font-size:13px;
}

.field {
  margin-bottom:23px;
}

.field>label {
  margin-bottom:8px;
}

.choice-field {
  border:0;
  padding:0;
  min-width:0;
}

.choice-field>legend {
  padding:0;
  margin-bottom:10px;
  font-size:13px;
  font-weight:600;
}

.has-error>input,.has-error>select {
  border-color:var(--error);
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-actions {
  display:flex;
  gap:12px;
  margin-top:28px;
  flex-wrap:wrap;
}

.check-label {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-weight:500;
  font-size:13px;
}

.search-field {
  display:flex;
  align-items:center;
  gap:11px;
  border-bottom:1px solid var(--line);
  min-height:48px;
  min-width:0;
}

.search-field>input {
  border:0;
  background:transparent;
  min-width:0;
  padding:10px 0;
  border-radius:0;
}

.search-field>.icon {
  width:19px;
  color:var(--muted);
}

.search-field>input:focus-visible {
  outline:none;
}

.search-field:focus-within {
  border-bottom:2px solid var(--accent);
}

.closet-intro {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:0 0 40px;
  gap:24px;
}

.closet-intro>p {
  font-size:17px;
  line-height:1.65;
}

.closet-intro>p>span {
  color:var(--muted);
}

.closet-tools {
  display:flex;
  align-items:flex-start;
  gap:28px;
  justify-content:space-between;
  margin-bottom:28px;
}

.closet-tools>.search-field {
  width:330px;
  max-width:100%;
}

.filter-details {
  position:relative;
}

.filter-details>summary {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  list-style:none;
  font-size:13px;
}

.filter-fields {
  display:grid;
  grid-template-columns:1fr 1fr auto auto;
  gap:14px;
  align-items:end;
  background:var(--paper);
  padding:16px 0 0;
}

.filter-fields label {
  min-width:120px;
}

.category-tabs {
  display:flex;
  align-items:center;
  gap:29px;
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  scrollbar-width:none;
  margin-bottom:30px;
}

.category-tabs::-webkit-scrollbar {
  display:none;
}

.category-tabs>a {
  flex-shrink:0;
  padding:12px 0 18px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  border-bottom:2px solid transparent;
}

.category-tabs>a[aria-current] {
  color:var(--accent);
  border-color:var(--accent);
  font-weight:700;
}

.category-tabs>a>span {
  margin-left:7px;
  font-family:'Plex Mono',monospace;
  font-size:10px;
  font-weight:400;
}

.garment-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:36px 22px;
}

.garment-tile {
  min-width:0;
}

.garment-photo {
  background:#e8ebe5;
  display:block;
  aspect-ratio:1/.99;
  overflow:hidden;
  position:relative;
}

.garment-photo>img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:26px;
  transition:transform .28s var(--ease);
}

.garment-tile:nth-child(4n+2) .garment-photo {
  background:#e9e9e5;
}

.garment-tile:nth-child(4n+3) .garment-photo {
  background:#e4e7e1;
}

.garment-photo:hover>img {
  transform:scale(1.035);
}

.garment-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding-top:12px;
}

.garment-caption>div {
  min-width:0;
}

.garment-kind {
  font-size:10px;
  letter-spacing:.06em;
  color:var(--muted);
}

.garment-caption h2 {
  font-size:14px;
  line-height:1.5;
  letter-spacing:-.015em;
  overflow-wrap:anywhere;
  font-weight:600;
  margin-top:3px;
}

.tile-tags {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:6px;
  min-height:20px;
  color:var(--muted);
  font-size:10px;
}

.tile-tags>*+*:before {
  content:'·';
  margin-right:7px;
}

.favorite .icon {
  width:19px;
}

.favorite.is-favorite {
  color:var(--accent);
}

.favorite.is-favorite .icon {
  fill:var(--accent);
}

.add-tile {
  border:1px dashed var(--line);
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  background:transparent;
  margin-bottom:59px;
}

.add-tile>span {
  width:48px;
  height:48px;
  border:1px solid var(--line);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
}

.add-tile>strong {
  font-size:17px;
  font-weight:500;
  letter-spacing:-.04em;
}

.add-tile>small {
  font-size:11px;
  color:var(--muted);
}

.add-tile:hover {
  background:var(--surface);
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  margin:44px 0 8px;
  font-size:12px;
}

.empty-state {
  min-height:350px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:22px;
  padding:40px 24px;
}

.empty-state>.icon {
  width:50px;
  height:50px;
  color:#748573;
}

.empty-state p {
  color:var(--muted);
  font-size:14px;
}

.compact-empty {
  min-height:220px;
}

.first-closet {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:80px;
  padding:46px 40px;
}

.first-closet h2 {
  font-size:50px;
  margin:18px 0 22px;
  letter-spacing:-.065em;
}

.first-closet p {
  color:var(--muted);
  font-size:14px;
  margin-bottom:24px;
}

.empty-rail {
  position:relative;
  border-top:2px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:300px;
  background:var(--surface);
  color:var(--muted);
}

.empty-rail>.icon {
  width:120px;
  height:120px;
  stroke-width:.7;
}

.empty-rail>span {
  font-size:12px;
}

.empty-composition {
  width:200px;
  height:130px;
  border:1px dashed var(--line);
  display:grid;
  place-items:center;
}

.empty-composition>.icon {
  width:58px;
  height:58px;
  color:var(--muted);
  stroke-width:1;
}

.login-page .page {
  padding-top:32px;
  padding-bottom:32px;
  min-height:calc(100dvh - 88px);
}

.login-layout {
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:70px;
  align-items:center;
  min-height:680px;
}

.login-copy {
  padding:20px 0 20px 48px;
}

.login-copy>h1 {
  font-size:clamp(70px,6.7vw,96px);
  line-height:1.02;
  letter-spacing:-.065em;
  margin:25px 0 22px;
}

.login-copy>p {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
}

.login-form {
  margin-top:28px;
  max-width:335px;
}

.login-form .field {
  margin-bottom:17px;
}

.login-copy>.personal-note {
  font-size:11px;
  margin-top:28px;
}

.personal-note>span {
  font-weight:700;
  color:var(--ink);
  margin-left:5px;
}

.login-art {
  position:relative;
  height:680px;
  background:#e0e5da;
  overflow:hidden;
}

.art-top {
  position:absolute;
  left:28px;
  right:28px;
  top:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  letter-spacing:.025em;
}

.login-art>img {
  position:absolute;
  object-fit:contain;
  filter:drop-shadow(0 12px 10px #31422a13);
}

.art-shirt {
  left:2%;
  top:8%;
  width:70%;
  height:55%;
  transform:rotate(-12deg);
}

.art-skirt {
  left:14%;
  top:34%;
  width:45%;
  height:59%;
  transform:rotate(7deg);
}

.art-bag {
  right:0;
  top:48%;
  width:43%;
  height:34%;
  transform:rotate(-8deg);
}

.art-ticket {
  position:absolute;
  right:25px;
  bottom:25px;
  width:230px;
  background:var(--white);
  padding:18px 23px;
  transform:rotate(-4deg);
  box-shadow:2px 7px 15px #30402a0b;
}

.art-ticket:before {
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:45px;
  border-top:1px dashed var(--line);
}

.art-ticket>strong {
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.045em;
  display:block;
  font-weight:500;
  margin:24px 0 13px;
}

.art-ticket>.small {
  font-size:9px;
}

.form-heading {
  margin-bottom:30px;
}

.form-heading h1 {
  font-size:58px;
}

.garment-editor {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:start;
  max-width:1160px;
}

.photo-column {
  min-width:0;
}

.upload-zone {
  position:relative;
  width:100%;
  min-height:440px;
  background:var(--surface);
  border:1px dashed #abb7a7;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}

.upload-zone.has-photo {
  border:0;
}

.upload-zone img {
  width:100%;
  height:470px;
  object-fit:contain;
  padding:25px;
}

.upload-zone:has(img:not([hidden])) .upload-prompt {
  display:none;
}

.upload-prompt {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:10px;
  font-weight:400;
  text-align:center;
  padding:22px;
}

.upload-prompt>.icon {
  height:48px;
  width:48px;
  stroke-width:1;
  margin-bottom:18px;
}

.upload-prompt>strong {
  font-size:25px;
  letter-spacing:-.045em;
  font-weight:500;
}

.upload-prompt>span {
  font-size:13px;
}

.upload-prompt>small {
  font-size:11px;
  color:var(--muted);
  margin-top:16px;
}

.photo-change {
  position:absolute;
  bottom:16px;
  left:16px;
  padding:9px 12px;
  background:var(--white);
  font-size:11px;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
}

.photo-help {
  margin-top:15px;
  max-width:52ch;
}

.photo-toolbar {
  display:flex;
  gap:8px;
  margin:21px 0 10px;
  flex-wrap:wrap;
}

.photo-toolbar .button {
  font-size:12px;
  padding:10px 14px;
  min-height:44px;
}

.background-action {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:21px;
}

.background-action .help {
  margin:2px 0;
}

.file-field input[type=file] {
  font-size:11px;
  padding:10px;
  min-height:44px;
}

.file-field input::file-selector-button {
  background:var(--surface);
  padding:9px 10px;
  border:0;
  color:var(--ink);
  font:inherit;
  margin-right:10px;
  border-radius:3px;
  cursor:pointer;
}

.form-details>summary,.outfit-details>summary,.suggestion-details>summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:56px;
  border-top:1px solid var(--line);
  list-style:none;
  font-weight:600;
  font-size:13px;
}

.form-details>summary>span {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}

.form-details[open]>summary {
  margin-bottom:20px;
}

.field>div:has(input[type=checkbox]) {
  display:flex;
  flex-wrap:wrap;
  gap:5px 8px;
}

.field>div>div>label:has(input[type=checkbox]) {
  display:flex;
  gap:8px;
  align-items:center;
  min-height:44px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:12px;
  font-weight:400;
}

.field>div>div>label:has(input:checked) {
  border-color:var(--accent);
  background:var(--accent-light);
}

.checkbox-field {
  display:flex;
  align-items:center;
  flex-direction:row-reverse;
  justify-content:flex-end;
  gap:10px;
  margin:0;
  min-height:44px;
}

.checkbox-field>label {
  margin:0;
  font-weight:500;
}

.status-fields {
  margin-top:15px;
}

.garment-next {
  margin-top:32px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.dialog {
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:8px;
  max-width:600px;
  width:calc(100% - 32px);
  padding:26px;
  max-height:90dvh;
  overflow:auto;
  box-shadow:0 20px 80px #263d2930;
}

.dialog::backdrop {
  background:#202a2466;
  backdrop-filter:blur(3px);
}

.dialog-heading {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:22px;
}

.dialog-heading h2 {
  font-size:26px;
}

.dialog-heading p {
  font-size:12px;
  margin-bottom:5px;
}

.crop-preview {
  position:relative;
  width:100%;
  margin-bottom:20px;
  background:var(--surface);
}

.crop-preview img {
  width:100%;
  max-height:380px;
  object-fit:contain;
}

.crop-preview>[data-crop-box] {
  position:absolute;
  left:5%;
  top:5%;
  width:90%;
  height:90%;
  border:2px solid var(--accent);
  background:#32544310;
  box-shadow:0 0 0 1px #fff;
}

.dialog .button {
  margin-top:20px;
}

.dialog .form-grid label {
  font-size:12px;
}

.editor-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:27px;
}

.editor-heading .back-link {
  margin-bottom:10px;
}

.editor-heading h1 {
  font-size:48px;
}

.editor-layout {
  display:grid;
  grid-template-columns:minmax(0,560px) 320px;
  gap:64px;
  align-items:start;
  max-width:944px;
  margin-inline:auto;
}

.canvas-column {
  width:100%;
  min-width:0;
}

.canvas-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:9px;
  gap:12px;
}

.canvas-toolbar>div {
  display:flex;
  gap:6px;
  align-items:center;
}

.canvas-toolbar .text-link {
  font-size:11px;
}

.canvas-toolbar .mono {
  font-size:10px;
}

.outfit-board {
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  background:#e8ebe4;
  overflow:hidden;
  isolation:isolate;
}

.outfit-board:before,.outfit-board:after {
  content:'';
  position:absolute;
  width:14px;
  height:14px;
  pointer-events:none;
  z-index:0;
  opacity:.65;
}

.outfit-board:before {
  left:14px;
  top:14px;
  border-top:1px solid #99aa93;
  border-left:1px solid #99aa93;
}

.outfit-board:after {
  bottom:14px;
  right:14px;
  border-bottom:1px solid #99aa93;
  border-right:1px solid #99aa93;
}

.board-piece {
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .2s;
  transform-origin:center;
}

.board-piece img {
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

.board-piece.missing-piece {
  border:1px dashed #8d9789;
  background:#ffffff66;
  color:var(--muted);
  padding:5px;
  font-size:10px;
  text-align:center;
}

.missing-piece small {
  display:block;
  font-size:9px;
}

.board-empty {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:16px;
  text-align:center;
  color:var(--muted);
  padding:25px;
  font-size:13px;
}

.board-empty>.icon {
  width:55px;
  height:55px;
  stroke-width:1;
}

.outfit-ticket {
  position:relative;
  display:flex;
  gap:15px;
  align-items:center;
  justify-content:space-between;
  padding:22px 18px;
  background:var(--white);
  border-top:1px dashed #bdc5b7;
  min-width:0;
}

.outfit-ticket:before,.outfit-ticket:after {
  content:'';
  position:absolute;
  top:-6px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--paper);
  z-index:2;
}

.outfit-ticket:before {
  left:-6px;
}

.outfit-ticket:after {
  right:-6px;
}

.outfit-ticket h2 {
  font-size:20px;
  line-height:1.35;
  overflow-wrap:anywhere;
  margin-top:6px;
}

.outfit-ticket>div {
  min-width:0;
}

.outfit-ticket .mono {
  color:var(--muted);
  font-size:9px;
}

.editor-ticket {
  display:block;
  padding:20px 24px;
}

.editor-ticket>input {
  font-size:25px;
  letter-spacing:-.04em;
  font-weight:500;
  border:0;
  border-radius:0;
  background:transparent;
  padding:0;
  min-height:38px;
}

.editor-ticket>div {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:10px;
  margin-top:9px;
}

.editor-ticket .icon {
  height:14px;
  width:14px;
}

.editable-board {
  width:100%;
  max-width:100%;
  margin:auto;
}

.editable-board .board-piece {
  cursor:grab;
  border:1px solid transparent;
  padding:0;
  touch-action:none;
  background:transparent;
  border-radius:0;
}

.editable-board .board-piece.selected {
  border:1px solid var(--accent);
  outline:3px solid #fbfcf950;
  outline-offset:1px;
}

.editable-board .board-piece.locked:after {
  content:'Sabit';
  position:absolute;
  right:0;
  top:0;
  background:var(--accent);
  color:var(--white);
  font-size:8px;
  padding:3px 5px;
  letter-spacing:.04em;
}

.editable-board .board-piece:active {
  cursor:grabbing;
}

.editable-board .board-piece.locked {
  cursor:default;
}

.board-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:14px;
  text-align:center;
}

.piece-library {
  border-left:1px solid var(--line);
  padding-left:30px;
  min-width:0;
}

.library-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.library-title h2 {
  font-size:24px;
}

.piece-library>select {
  margin:14px 0;
  font-size:12px;
  min-height:44px;
  background:transparent;
}

.library-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px 11px;
  margin:14px 0 20px;
}

.library-piece {
  padding:0;
  text-align:left;
  min-width:0;
  position:relative;
}

.library-piece>img {
  width:100%;
  aspect-ratio:1;
  object-fit:contain;
  padding:10px;
  background:var(--surface);
}

.library-piece>span {
  font-size:11px;
  line-height:1.4;
  display:block;
  margin-top:7px;
  overflow-wrap:anywhere;
}

.library-piece>small {
  font-size:10px;
  color:var(--accent);
}

.library-piece[aria-pressed=true]>img {
  outline:1px solid var(--accent);
  outline-offset:-1px;
  background:var(--accent-light);
}

.library-piece:hover>img {
  background:#dfe6da;
}

.library-grid>.help {
  grid-column:1/-1;
  text-align:center;
  padding:24px 0;
}

.outfit-details {
  margin-top:26px;
}

.outfit-details>label {
  margin-top:13px;
}

.outfit-details input,.outfit-details textarea {
  font-size:13px;
}

.editor-secondary {
  margin-top:24px;
  display:grid;
  gap:12px;
}

.piece-controls {
  background:var(--white);
  padding:15px 14px;
  border-top:1px solid var(--line);
}

.piece-controls>strong {
  display:block;
  font-size:13px;
  overflow-wrap:anywhere;
  font-weight:600;
}

.piece-control-row {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:8px;
}

.direction-controls {
  display:flex;
  gap:0;
}

.direction-controls>.icon-button {
  width:44px;
  min-width:44px;
}

.size-control {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:9px;
  flex:1;
  min-width:125px;
}

.size-control>input {
  min-width:65px;
  width:100%;
  margin:0;
}

.piece-controls .help {
  font-size:10px;
  margin-top:5px;
}

.canvas-column.is-expanded {
  position:fixed;
  inset:12px;
  background:var(--paper);
  z-index:20;
  max-width:none;
  width:auto;
  padding:16px;
  overflow:auto;
  box-shadow:0 0 0 30px #202a2466;
}

.canvas-column.is-expanded .editable-board {
  height:min(70dvh,850px);
  width:auto;
}

.canvas-column.is-expanded .editor-ticket,.canvas-column.is-expanded .piece-controls {
  max-width:680px;
  margin:auto;
}

.editor-layout:has(.is-expanded) {
  min-height:700px;
}

.lookbook-tools {
  display:flex;
  align-items:center;
  gap:20px;
  margin:20px 0 32px;
  flex-wrap:wrap;
}

.lookbook-tools>.search-field {
  flex:1;
  max-width:420px;
}

.lookbook-tools>.text-link {
  margin-left:auto;
}

.lookbook-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:42px 26px;
}

.lookbook-sheet {
  min-width:0;
}

.lookbook-sheet .outfit-board {
  background:#e6e9e2;
}

.lookbook-sheet:nth-child(3n+2) {
  padding-top:38px;
}

.lookbook-sheet:nth-child(3n+2) .outfit-board {
  background:#e9e9e3;
}

.lookbook-sheet .sheet-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 16px;
  background:var(--white);
  border-top:1px solid #e9ebe5;
}

.sheet-actions .text-link {
  font-size:11px;
}

.wear-history {
  margin-top:70px;
  padding-top:28px;
  border-top:1px solid var(--line);
  max-width:850px;
}

.wear-history>p {
  font-size:12px;
  margin-top:12px;
}

.wear-history>div {
  margin-top:24px;
}

.wear-entry {
  display:flex;
  align-items:center;
  gap:26px;
  min-height:60px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.wear-entry>time {
  font-family:'Plex Mono',monospace;
  font-size:11px;
  color:var(--muted);
  min-width:65px;
}

.wear-entry>a {
  margin-left:auto;
}

.comparison-start-layout {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:64px;
  padding-top:14px;
}

.suggestion-panel {
  background:var(--accent-light);
  padding:32px 28px;
  align-self:start;
}

.suggestion-panel h2 {
  font-size:41px;
  letter-spacing:-.055em;
  margin:18px 0;
}

.suggestion-panel>p {
  font-size:13px;
  margin-bottom:26px;
  color:#4b5f4e;
}

.suggestion-panel form>label,.suggestion-details label {
  margin-bottom:18px;
}

.suggestion-panel select,.suggestion-panel input {
  background:#f7faf3;
  border-color:#c0cbb9;
  font-size:13px;
}

.suggestion-details>summary {
  font-size:11px;
  min-height:56px;
  font-weight:500;
}

.suggestion-details[open]>summary {
  margin-bottom:14px;
}

.suggestion-panel .button {
  margin-top:14px;
}

.choose-outfits>p {
  font-size:13px;
  color:var(--muted);
  margin:12px 0 24px;
}

.compare-picker-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.compare-picker {
  position:relative;
  display:block;
  cursor:pointer;
}

.compare-picker>input {
  position:absolute;
  z-index:4;
  left:12px;
  top:12px;
}

.compare-picker .outfit-board {
  border:2px solid transparent;
}

.compare-picker:has(input:checked) .outfit-board {
  border-color:var(--accent);
}

.picker-caption {
  display:flex;
  flex-direction:column;
  padding:12px 1px;
  gap:3px;
}

.picker-caption>strong {
  font-size:12px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.picker-caption>small {
  font-size:10px;
  color:var(--muted);
  font-weight:400;
}

.picker-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:20px;
}

.picker-footer>span {
  font-size:11px;
  color:var(--muted);
  flex:1 1 100%;
  overflow-wrap:anywhere;
}

.compare-search {
  margin-bottom:24px;
}

.comparison-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:6px 0 20px;
}

.comparison-tools>span {
  font-size:12px;
}

.comparison-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:32px;
  max-width:1100px;
  margin:auto;
}

.candidate {
  min-width:0;
}

.candidate-header {
  display:flex;
  gap:13px;
  align-items:center;
  padding:8px 0 12px;
}

.candidate-header>button {
  margin-left:auto;
}

.candidate-letter {
  font-size:20px;
  color:var(--accent);
  width:36px;
  height:36px;
  border:1px solid #9fac97;
  display:grid;
  place-items:center;
  border-radius:50%;
}

.candidate-header .mono {
  font-size:9px;
  color:var(--muted);
}

.candidate-piece-list {
  padding:13px 5px 4px;
}

.candidate-piece {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:60px;
  border-bottom:1px solid var(--line);
}

.candidate-piece>img {
  width:43px;
  height:43px;
  object-fit:contain;
}

.candidate-piece>.piece-info {
  flex:1;
  min-width:0;
}

.piece-info>span {
  display:block;
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.piece-info>small {
  font-size:9px;
  color:var(--muted);
}

.candidate-piece>button {
  flex-shrink:0;
}

.candidate-piece>button[aria-pressed=true] {
  color:var(--accent);
  background:var(--accent-light);
}

.candidate-piece .icon {
  width:18px;
  height:18px;
}

.candidate-choice {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:22px 0 5px;
}

.candidate-more>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  font-size:12px;
  color:var(--muted);
  list-style:none;
}

.candidate-more form {
  margin-top:14px;
  display:grid;
  gap:9px;
}

.candidate-more input {
  font-size:13px;
}

.candidate-more .text-link {
  font-size:11px;
}

.comparison-footnote {
  max-width:1100px;
  margin:32px auto 0;
  border-top:1px solid var(--line);
  padding-top:22px;
  color:var(--muted);
  font-size:11px;
  display:flex;
  justify-content:space-between;
  gap:28px;
}

.comparison-footnote>span {
  white-space:nowrap;
}

.comparison-footnote .icon {
  width:14px;
  height:14px;
  margin-right:6px;
}

.comparison-footnote>p {
  max-width:57ch;
}

.is-common.dimmed {
  opacity:.2;
}

.is-different:after {
  content:'';
  position:absolute;
  inset:0;
  border:1px dashed #687d5f88;
  pointer-events:none;
}

.swap-dialog {
  max-width:660px;
}

.swap-dialog .library-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.zoom-dialog {
  max-width:620px;
  padding:18px;
}

.zoom-dialog .outfit-board {
  max-height:72dvh;
  width:auto;
  max-width:100%;
  margin:auto;
}

.zoom-dialog .dialog-heading {
  margin-bottom:12px;
}

.zoom-dialog .dialog-heading h2 {
  font-size:20px;
}

.preferences-layout {
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:80px;
  margin-top:45px;
}

.preference-form>h2 {
  margin-bottom:26px;
}

.preference-form>label {
  margin-bottom:22px;
}

.preference-form>.help {
  margin-top:22px;
}

.pair-rule {
  display:flex;
  gap:20px;
  align-items:center;
  margin-top:25px;
  border-bottom:1px solid var(--line);
  padding-bottom:25px;
}

.pair-images {
  display:flex;
  gap:5px;
  flex-shrink:0;
}

.pair-images>img {
  width:62px;
  height:78px;
  object-fit:contain;
  padding:5px;
  background:var(--surface);
}

.pair-rule>div:nth-child(2) {
  flex:1;
  min-width:0;
}

.pair-rule h3 {
  font-size:14px;
  overflow-wrap:anywhere;
  line-height:1.5;
}

.pair-rule p {
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.feedback-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:20px;
  border-bottom:1px solid var(--line);
  padding-bottom:20px;
  font-size:13px;
}

.feedback-row p {
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.confirm-panel {
  max-width:620px;
  margin:65px auto;
}

.confirm-panel>h1 {
  font-size:56px;
}

.confirm-panel>h2 {
  font-size:24px;
  margin-top:28px;
  overflow-wrap:anywhere;
}

.confirm-panel>p {
  margin:20px 0 30px;
  color:var(--muted);
}

.confirm-panel form {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

@media(min-width:1450px) {
  .page {
    padding-top:55px;
  }
}

@media(max-width:1199px) {
  .site-header {
    padding:0 32px;
  }
  .page {
    padding:40px 32px 56px;
  }
  .site-footer {
    margin:0 32px;
  }
  .messages {
    margin:18px 32px 0;
  }
  .main-nav>a {
    padding:10px 14px;
  }
  .garment-editor {
    gap:42px;
  }
  .editor-layout {
    grid-template-columns:minmax(0,1fr) 285px;
    gap:25px;
  }
  .piece-library {
    padding-left:20px;
  }
  .login-layout {
    gap:40px;
    min-height:640px;
  }
  .login-copy {
    padding-left:12px;
  }
  .login-art {
    height:640px;
  }
  .filter-fields {
    grid-template-columns:1fr 1fr;
  }
  .closet-tools:has(.filter-details[open])>.search-field {
    min-width:230px;
  }
  .comparison-start-layout {
    grid-template-columns:280px minmax(0,1fr);
    gap:36px;
  }
  .suggestion-panel {
    padding:27px 23px;
  }
  .compare-picker-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .preferences-layout {
    gap:40px;
    grid-template-columns:300px minmax(0,1fr);
  }
}

@media(max-width:899px) {
  h1 {
    font-size:58px;
  }
  .site-header {
    padding:0 24px;
    height:76px;
  }
  .main-nav>a {
    padding:10px;
    gap:7px;
    font-size:12px;
  }
  .main-nav {
    gap:2px;
  }
  .page {
    padding:36px 24px 50px;
  }
  .site-footer {
    margin:0 24px;
  }
  .garment-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px 16px;
  }
  .garment-photo>img {
    padding:18px;
  }
  .garment-editor {
    gap:30px;
  }
  .garment-editor .upload-zone {
    min-height:360px;
  }
  .garment-editor .upload-zone img {
    height:390px;
  }
  .garment-editor .form-actions .button {
    width:100%;
  }
  .form-heading h1 {
    font-size:48px;
  }
  .photo-toolbar .button {
    padding:10px;
    font-size:11px;
  }
  .photo-toolbar .icon {
    width:17px;
    height:17px;
  }
  .editor-layout {
    grid-template-columns:minmax(0,1fr) 240px;
    gap:22px;
  }
  .editor-heading h1 {
    font-size:40px;
  }
  .piece-library {
    padding-left:16px;
  }
  .library-title h2 {
    font-size:20px;
  }
  .editor-ticket {
    padding:18px;
  }
  .editor-ticket input {
    font-size:22px;
  }
  .lookbook-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:32px 22px;
  }
  .lookbook-sheet:nth-child(3n+2) {
    padding-top:0;
  }
  .lookbook-sheet:nth-child(2n) {
    padding-top:32px;
  }
  .comparison-grid {
    gap:24px;
  }
  .comparison-start-layout {
    grid-template-columns:240px minmax(0,1fr);
    gap:30px;
  }
  .suggestion-panel {
    padding:25px 20px;
  }
  .suggestion-panel h2 {
    font-size:35px;
  }
  .candidate-piece {
    gap:5px;
  }
  .candidate-piece>img {
    width:36px;
    height:36px;
  }
  .candidate-piece>button {
    width:44px;
    min-width:44px;
  }
  .piece-info>span {
    font-size:11px;
  }
  .login-layout {
    gap:30px;
    min-height:630px;
  }
  .login-art {
    height:620px;
  }
  .login-copy {
    padding:0;
  }
  .login-copy h1 {
    font-size:75px;
  }
  .art-ticket {
    width:200px;
    right:20px;
    padding:18px;
  }
  .art-ticket>strong {
    font-size:22px;
  }
  .art-shirt {
    width:90%;
    left:-9%;
  }
  .art-skirt {
    width:60%;
    left:1%;
  }
  .art-bag {
    width:54%;
    right:-6%;
  }
  .preferences-layout {
    grid-template-columns:250px minmax(0,1fr);
    gap:30px;
  }
  .pair-rule {
    gap:12px;
    flex-wrap:wrap;
  }
  .pair-images>img {
    width:45px;
    height:60px;
  }
  .pair-rule>form {
    margin-left:auto;
  }
  .first-closet {
    padding:35px 10px;
    gap:35px;
  }
  .first-closet h2 {
    font-size:42px;
  }
}

@media(max-width:639px) {
  body {
    font-size:14px;
  }
  .site-header {
    height:72px;
    padding:0 20px;
  }
  .wordmark {
    font-size:38px;
  }
  .wordmark span {
    font-size:48px;
  }
  .main-nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:auto;
    min-height:68px;
    padding:6px 8px max(7px,env(safe-area-inset-bottom));
    background:#f7f8f4f5;
    border-top:1px solid var(--line);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:3px;
    z-index:30;
  }
  .main-nav>a {
    min-height:55px;
    flex-direction:column;
    gap:4px;
    font-size:10px;
    padding:7px 4px;
    border-radius:5px;
    font-weight:500;
  }
  .main-nav .icon {
    width:22px;
    height:22px;
  }
  .main-nav>a[aria-current] {
    background:#e4eadf;
  }
  .account-menu summary {
    width:46px;
    font-size:13px;
  }
  .page {
    padding:30px 20px 45px;
    min-height:calc(100dvh - 210px);
  }
  .site-footer {
    margin:0 20px;
    padding:20px 0 100px;
    display:block;
    font-size:10px;
  }
  .site-footer a {
    margin-top:8px;
    font-size:10px;
  }
  .messages {
    margin:16px 16px 0;
    padding:0;
  }
  .message {
    font-size:12px;
    padding:9px 10px;
    gap:8px;
  }
  .message>.icon {
    width:17px;
  }
  .page-heading {
    gap:12px;
    align-items:flex-start;
    margin-bottom:24px;
  }
  .page-heading h1 {
    font-size:47px;
    line-height:1.08;
  }
  .page-heading>div {
    flex:1;
  }
  .page-heading p {
    font-size:12px;
    margin-top:12px;
  }
  .page-heading .greeting {
    font-size:11px;
    margin-bottom:9px;
  }
  .page-heading>.button,.page-heading>form>.button {
    min-height:44px;
    padding:11px 12px;
    font-size:11px;
    gap:6px;
    margin-top:20px;
  }
  .page-heading>.button .icon {
    width:17px;
    height:17px;
  }
  .closet-intro {
    margin-bottom:28px;
    gap:12px;
    align-items:center;
  }
  .closet-intro>p {
    font-size:12px;
    line-height:1.75;
  }
  .closet-intro>.text-link {
    font-size:10px;
    gap:4px;
    max-width:120px;
    line-height:1.6;
  }
  .closet-intro>.text-link .icon {
    width:17px;
  }
  .closet-tools {
    gap:20px;
    margin-bottom:18px;
    flex-wrap:wrap;
  }
  .closet-tools>.search-field {
    flex:1;
    width:auto;
    min-width:0;
  }
  .search-field {
    min-height:44px;
  }
  .search-field>input {
    font-size:13px;
  }
  .filter-details>summary {
    font-size:11px;
    gap:6px;
    min-height:44px;
  }
  .filter-details>summary>.icon {
    width:17px;
  }
  .filter-details[open] {
    width:100%;
  }
  .filter-fields {
    grid-template-columns:1fr 1fr;
    gap:12px;
    padding:7px 0 5px;
  }
  .filter-fields label {
    min-width:0;
    font-size:11px;
  }
  .filter-fields input,.filter-fields select {
    font-size:12px;
  }
  .closet-tools:has(.filter-details[open])>.search-field {
    min-width:0;
    width:100%;
    flex:auto;
  }
  .category-tabs {
    gap:22px;
    margin:0 -20px 23px;
    padding:0 20px;
    scroll-padding-left:20px;
  }
  .category-tabs>a {
    padding:9px 0 13px;
    font-size:11px;
  }
  .category-tabs>a>span {
    font-size:9px;
    margin-left:3px;
  }
  .garment-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px 13px;
  }
  .garment-photo {
    aspect-ratio:1/1.15;
  }
  .garment-photo>img {
    padding:13px 9px;
  }
  .garment-caption {
    padding-top:8px;
    align-items:flex-start;
    gap:0;
  }
  .garment-kind {
    font-size:9px;
    letter-spacing:.025em;
  }
  .garment-caption h2 {
    font-size:11px;
    line-height:1.5;
    margin-top:2px;
  }
  .garment-caption .icon-button {
    width:44px;
    min-width:44px;
    height:44px;
    margin-right:-5px;
  }
  .garment-caption .icon {
    width:16px;
    height:16px;
  }
  .tile-tags {
    font-size:9px;
    gap:5px;
    margin-top:4px;
  }
  .tile-tags>*+*:before {
    margin-right:5px;
  }
  .add-tile {
    min-height:180px;
    margin-bottom:60px;
    gap:5px;
    text-align:center;
    padding:10px;
  }
  .add-tile>span {
    height:38px;
    width:38px;
    margin-bottom:6px;
  }
  .add-tile>strong {
    font-size:14px;
  }
  .add-tile>small {
    font-size:9px;
    max-width:16ch;
  }
  .first-closet {
    padding:10px 0 20px;
    gap:28px;
    grid-template-columns:1fr;
  }
  .empty-rail {
    min-height:200px;
  }
  .empty-rail>.icon {
    width:100px;
    height:100px;
  }
  .first-closet h2 {
    font-size:38px;
  }
  .first-closet>div:last-child {
    padding:8px 12px;
  }
  .empty-state {
    min-height:320px;
    padding:32px 10px;
    gap:19px;
  }
  .empty-state h2 {
    font-size:27px;
  }
  .empty-state p {
    font-size:13px;
  }
  .empty-state>.icon {
    width:42px;
    height:42px;
  }
  .compact-empty {
    min-height:210px;
  }
  .back-link {
    margin-bottom:15px;
    font-size:11px;
  }
  .section-title {
    margin:30px 0 20px;
    font-size:25px;
  }
  .button {
    font-size:12px;
    min-height:46px;
    padding:12px 15px;
  }
  .page-heading:has(h1)>form {
    flex-shrink:0;
  }
  .page-heading:has(h1)>a {
    flex-shrink:0;
  }
  .login-page .page {
    padding:20px 24px 35px;
  }
  .login-layout {
    grid-template-columns:1fr;
    gap:32px;
    min-height:0;
  }
  .login-copy {
    padding-top:12px;
    position:relative;
  }
  .login-copy .eyebrow {
    font-size:9px;
    letter-spacing:.14em;
  }
  .login-copy>h1 {
    font-size:78px;
    line-height:1.02;
    margin:19px 0;
  }
  .login-copy>p {
    font-size:12px;
  }
  .login-form {
    max-width:none;
    margin-top:24px;
  }
  .login-form .field {
    margin-bottom:16px;
  }
  .login-form input {
    min-height:47px;
    font-size:16px;
  }
  .login-copy>.personal-note {
    font-size:10px;
    margin-top:20px;
  }
  .login-art {
    height:310px;
    margin-top:0;
  }
  .art-top {
    left:18px;
    right:18px;
    top:16px;
    font-size:9px;
  }
  .art-shirt {
    height:68%;
    width:65%;
    top:10%;
    left:-7%;
  }
  .art-skirt {
    height:71%;
    width:43%;
    top:20%;
    left:34%;
    transform:rotate(12deg);
  }
  .art-bag {
    height:37%;
    width:34%;
    top:58%;
    right:-5%;
  }
  .art-ticket {
    left:20px;
    right:auto;
    bottom:18px;
    width:145px;
    padding:12px 15px;
    transform:rotate(-6deg);
  }
  .art-ticket>.mono {
    font-size:7px;
  }
  .art-ticket:before {
    top:33px;
  }
  .art-ticket>strong {
    font-size:17px;
    margin:17px 0 8px;
  }
  .art-ticket>.small {
    font-size:7px;
  }
  .header-note {
    font-size:10px;
  }
  .form-heading h1 {
    font-size:44px;
  }
  .form-heading {
    margin-bottom:25px;
  }
  .garment-editor {
    grid-template-columns:1fr;
    gap:32px;
  }
  .garment-editor .upload-zone {
    min-height:320px;
  }
  .garment-editor .upload-zone img {
    height:365px;
    padding:24px;
  }
  .upload-prompt>strong {
    font-size:25px;
  }
  .upload-prompt>small {
    font-size:10px;
  }
  .photo-help {
    font-size:11px;
  }
  .photo-toolbar .button {
    font-size:12px;
    padding:10px 13px;
    min-height:44px;
  }
  .photo-toolbar {
    gap:8px;
    margin-top:17px;
  }
  .photo-change {
    font-size:10px;
    left:12px;
    bottom:12px;
  }
  .garment-fields input,.garment-fields select,.garment-fields textarea {
    font-size:16px;
  }
  .garment-fields label {
    font-size:12px;
  }
  .file-field input[type=file] {
    font-size:10px;
  }
  .field {
    margin-bottom:22px;
  }
  .form-details>summary {
    font-size:13px;
  }
  .form-details>summary>span {
    font-size:10px;
  }
  .help {
    font-size:11px;
  }
  .garment-editor .form-actions {
    flex-wrap:nowrap;
  }
  .garment-editor .form-actions .button {
    width:auto;
    flex:1;
    font-size:11px;
    padding:12px 10px;
  }
  .garment-next {
    margin-top:25px;
  }
  .garment-next .text-link {
    font-size:11px;
  }
  .form-grid {
    gap:13px;
  }
  .dialog {
    padding:19px;
    max-height:88dvh;
    width:calc(100% - 24px);
  }
  .dialog-heading h2 {
    font-size:24px;
  }
  .dialog-heading {
    margin-bottom:18px;
  }
  .editor-heading {
    align-items:flex-start;
    gap:12px;
    margin-bottom:24px;
  }
  .editor-heading h1 {
    font-size:36px;
    max-width:7ch;
  }
  .editor-heading>.button {
    font-size:10px;
    padding:12px 11px;
    gap:6px;
    margin-top:53px;
  }
  .editor-heading>.button>.icon {
    width:16px;
    height:16px;
  }
  .editor-heading .back-link {
    font-size:10px;
    margin-bottom:12px;
  }
  .editor-layout {
    display:flex;
    flex-direction:column;
    gap:30px;
  }
  .canvas-column {
    max-width:none;
  }
  .editable-board {
    max-height:570px;
    width:100%;
  }
  .canvas-toolbar .mono {
    font-size:9px;
  }
  .canvas-toolbar .text-link {
    font-size:10px;
    gap:5px;
  }
  .canvas-toolbar .icon {
    width:18px;
    height:18px;
  }
  .canvas-toolbar {
    margin-bottom:6px;
  }
  .outfit-ticket {
    padding:17px 13px;
  }
  .editor-ticket {
    padding:17px 19px;
  }
  .editor-ticket>input {
    font-size:23px;
    min-height:34px;
  }
  .editor-ticket>div {
    font-size:9px;
    margin-top:7px;
  }
  .board-caption {
    font-size:9px;
    margin-top:13px;
  }
  .piece-controls {
    padding:12px;
  }
  .piece-controls>strong {
    font-size:12px;
  }
  .piece-control-row {
    gap:6px;
  }
  .direction-controls>.icon-button {
    width:44px;
    min-width:44px;
  }
  .size-control {
    width:100%;
    flex:none;
    order:2;
    font-size:10px;
  }
  .piece-control-row>.icon-button {
    width:44px;
    min-width:44px;
  }
  .piece-library {
    border-left:0;
    border-top:1px solid var(--line);
    padding:23px 0 0;
    width:100%;
  }
  .library-title h2 {
    font-size:27px;
  }
  .piece-library>.search-field {
    margin-top:8px;
  }
  .piece-library>select {
    font-size:13px;
    margin:15px 0 0;
  }
  .library-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px 12px;
    margin-top:20px;
  }
  .library-piece>img {
    padding:8px;
  }
  .library-piece>span {
    font-size:10px;
    line-height:1.5;
  }
  .outfit-details {
    margin-top:28px;
  }
  .editor-secondary {
    gap:12px;
  }
  .canvas-column.is-expanded {
    inset:8px;
    padding:12px;
  }
  .canvas-column.is-expanded .editable-board {
    width:100%;
    height:auto;
    max-height:60dvh;
  }
  .lookbook-tools {
    gap:10px;
    margin:8px 0 26px;
  }
  .page:has(.lookbook-tools) .page-heading {
    flex-direction:column;
    gap:16px;
  }
  .page:has(.lookbook-tools) .page-heading>form>.button {
    margin-top:0;
  }
  .lookbook-tools>.search-field {
    max-width:none;
    width:100%;
    flex:auto;
  }
  .lookbook-tools>.check-label {
    font-size:11px;
  }
  .lookbook-tools>.button {
    min-height:44px;
    padding:10px 15px;
    font-size:11px;
  }
  .lookbook-tools>.text-link {
    font-size:11px;
  }
  .lookbook-grid {
    grid-template-columns:1fr;
    gap:34px;
  }
  .lookbook-sheet:nth-child(n) {
    padding-top:0;
  }
  .lookbook-sheet .outfit-board {
    max-height:490px;
  }
  .outfit-ticket h2 {
    font-size:21px;
  }
  .lookbook-sheet .sheet-actions {
    padding:9px 15px;
  }
  .sheet-actions .text-link {
    font-size:12px;
  }
  .wear-history {
    margin-top:45px;
  }
  .wear-history h2 {
    font-size:27px;
  }
  .wear-history>p {
    font-size:11px;
  }
  .wear-entry {
    font-size:12px;
    gap:16px;
  }
  .wear-entry>time {
    font-size:10px;
    min-width:60px;
  }
  .comparison-start-layout {
    grid-template-columns:1fr;
    gap:38px;
  }
  .suggestion-panel {
    padding:28px 25px;
  }
  .suggestion-panel h2 {
    font-size:40px;
    margin-top:17px;
  }
  .suggestion-panel>p {
    font-size:13px;
    max-width:28ch;
    margin-bottom:24px;
  }
  .suggestion-panel select {
    font-size:14px;
  }
  .suggestion-panel .button {
    margin-top:16px;
  }
  .choose-outfits h2 {
    font-size:27px;
  }
  .choose-outfits>p {
    font-size:12px;
    max-width:35ch;
  }
  .compare-picker-grid {
    gap:20px 14px;
  }
  .compare-picker>input {
    width:20px;
    height:20px;
    left:10px;
    top:10px;
  }
  .picker-caption>strong {
    font-size:12px;
  }
  .picker-footer {
    gap:12px;
  }
  .picker-footer .button {
    font-size:11px;
    padding:12px;
  }
  .picker-footer>span {
    font-size:12px;
    max-width:none;
  }
  .page:has(.comparison-grid) .page-heading h1 {
    font-size:44px;
    max-width:11ch;
  }
  .comparison-tools {
    gap:10px;
    align-items:flex-start;
    flex-direction:column;
    padding:0 0 20px;
  }
  .comparison-tools>.check-label {
    font-size:12px;
  }
  .comparison-tools>span {
    font-size:10px;
    margin-top:-3px;
  }
  .comparison-grid {
    gap:12px;
    margin:0 -8px;
  }
  .candidate-header {
    gap:7px;
    padding-bottom:7px;
  }
  .candidate-header .mono {
    font-size:7px;
    letter-spacing:.025em;
  }
  .candidate-header>button {
    width:34px;
    min-width:34px;
    height:44px;
  }
  .candidate-header>button>.icon {
    width:18px;
  }
  .candidate-letter {
    width:29px;
    height:29px;
    font-size:16px;
  }
  .candidate .outfit-ticket {
    padding:13px 10px;
    min-height:86px;
    align-items:flex-start;
  }
  .candidate .outfit-ticket h2 {
    font-size:14px;
    line-height:1.4;
    letter-spacing:-.03em;
  }
  .candidate .outfit-ticket .mono {
    font-size:8px;
  }
  .candidate-piece-list {
    padding:9px 0 0;
  }
  .candidate-piece {
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:3px 6px;
    padding:8px 0;
    min-height:94px;
  }
  .candidate-piece>img {
    width:30px;
    height:36px;
  }
  .candidate-piece>.piece-info {
    min-height:32px;
  }
  .piece-info>span {
    font-size:10px;
    line-height:1.45;
  }
  .piece-info>small {
    font-size:8px;
  }
  .candidate-piece>button {
    width:100%;
    height:44px;
    min-width:44px;
    border:1px solid #d5dad0;
    border-radius:4px;
    margin-top:3px;
  }
  .candidate-piece>button:nth-last-child(2) {
    grid-column:1;
    min-width:44px;
  }
  .candidate-piece>button:last-child {
    grid-column:2;
  }
  .candidate-piece>button:last-child:after {
    content:'Değiştir';
    font-size:11px;
    margin-left:5px;
  }
  .candidate-piece>button[disabled]:last-child:after {
    content:'Sabit';
  }
  .candidate-piece .icon {
    width:15px;
    height:15px;
  }
  .candidate-choice {
    padding:17px 0 0;
    gap:8px;
  }
  .candidate-choice .button {
    font-size:11px;
    white-space:normal;
    min-height:47px;
    padding:10px 5px;
    gap:4px;
  }
  .candidate-choice .button .icon {
    width:14px;
    height:14px;
  }
  .candidate-choice form:nth-child(2) .button {
    font-size:9px;
    white-space:normal;
  }
  .candidate-more>summary {
    font-size:10px;
    gap:4px;
  }
  .candidate-more>summary>.icon {
    width:15px;
  }
  .candidate-more .text-link {
    font-size:10px;
  }
  .candidate-more input {
    font-size:12px;
    padding:10px 7px;
  }
  .candidate-more label {
    font-size:10px;
  }
  .comparison-footnote {
    flex-direction:column;
    font-size:10px;
    gap:12px;
    margin-top:28px;
  }
  .comparison-footnote>p {
    max-width:43ch;
  }
  .swap-dialog .library-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .swap-dialog .library-piece>span {
    font-size:12px;
  }
  .zoom-dialog {
    padding:13px;
  }
  .zoom-dialog .outfit-board {
    width:100%;
    height:auto;
  }
  .preferences-layout {
    grid-template-columns:1fr;
    gap:42px;
    margin-top:26px;
  }
  .preferences-layout h2 {
    font-size:28px;
  }
  .preference-form>label {
    font-size:12px;
  }
  .preference-form input,.preference-form select {
    font-size:14px;
  }
  .pair-rule {
    gap:12px;
    flex-wrap:nowrap;
  }
  .pair-images>img {
    width:42px;
    height:62px;
  }
  .pair-rule h3 {
    font-size:12px;
  }
  .pair-rule p {
    font-size:10px;
    margin-top:6px;
  }
  .pair-rule>form .icon-button {
    width:36px;
    min-width:36px;
  }
  .confirm-panel {
    margin:35px auto;
  }
  .confirm-panel>h1 {
    font-size:45px;
  }
  .confirm-panel>h2 {
    font-size:23px;
  }
  .confirm-panel>p {
    font-size:13px;
  }
  .site-footer a>.icon {
    width:14px;
  }
  .pagination {
    gap:15px;
  }
  .pagination>.button {
    font-size:11px;
    padding:12px;
  }
}

@media(max-width:374px) {
  .page {
    padding-left:16px;
    padding-right:16px;
  }
  .category-tabs {
    margin-left:-16px;
    margin-right:-16px;
    padding-left:16px;
    padding-right:16px;
  }
  .page-heading h1 {
    font-size:43px;
  }
  .closet-intro>p {
    font-size:11px;
  }
  .closet-intro>.text-link {
    font-size:9px;
    max-width:110px;
  }
  .garment-grid {
    gap:23px 11px;
  }
  .editor-heading h1 {
    font-size:34px;
  }
  .editor-heading>.button {
    font-size:11px;
    padding:12px 9px;
  }
  .candidate-header .mono {
    font-size:6px;
  }
  .candidate-choice .button {
    font-size:11px;
    white-space:normal;
  }
  .comparison-grid {
    gap:10px;
    margin-left:-5px;
    margin-right:-5px;
  }
  .direction-controls>.icon-button {
    width:44px;
    min-width:44px;
  }
  .piece-control-row>.icon-button {
    width:44px;
    min-width:44px;
  }
  .site-header {
    padding:0 16px;
  }
}

.login-copy>h1 {
  font-size:clamp(62px,5.4vw,80px);
}

.crop-preview {
  width:fit-content;
  margin-left:auto;
  margin-right:auto;
}

.crop-preview img {
  width:auto;
  max-width:100%;
}

@media(max-width:639px) {
  .login-copy>h1 {
    font-size:clamp(50px,14.5vw,62px);
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}

.file-field {
  margin-bottom:23px;
}

.file-field>label {
  margin-bottom:8px;
}

.photo-file-picker {
  position:relative;
  display:flex;
  gap:12px;
  align-items:center;
  min-height:52px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:8px 12px;
  background:var(--white);
}

.photo-file-picker>input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  font-size:16px;
}

.photo-file-picker:focus-within {
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.photo-file-picker>strong {
  font-size:12px;
  font-weight:600;
  flex-shrink:0;
}

.photo-file-picker>span {
  font-size:11px;
  color:var(--muted);
  overflow-wrap:anywhere;
  min-width:0;
}

.library-jump {
  display:none;
}

@media(max-width:639px) {
  .library-jump {
    display:inline-flex;
  }
  .canvas-toolbar .mono {
    font-size:9px;
  }
  .canvas-toolbar>div {
    gap:4px;
  }
  .candidate-piece .piece-info>span {
    font-size:12px;
  }
  .candidate-piece .piece-info>small {
    font-size:10px;
  }
  .candidate-piece>button:nth-last-child(2) {
    width:44px;
  }
  .candidate-piece .text-link {
    font-size:11px;
  }
  .piece-controls .direction-controls>.icon-button {
    min-width:44px;
    width:44px;
  }
  .message>button {
    height:44px;
  }
}
