:root {
  font-family: Inter, "Noto Sans", system-ui, "Yu Gothic", sans-serif;
  color: #26352f;
  background: #f5f3ed;
  font-synthesis: none;
  --green: #223b35;
  --muted: #768077;
  --line: #dddeda;
  --cream: #e8e5da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  color: var(--green);
  background: #e8ece7;
}
button.ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}
a {
  color: #365f50;
}
input,
select,
textarea {
  border: 1px solid #ccd1ca;
  background: #fff;
  border-radius: 8px;
  padding: 11px;
  width: 100%;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: block;
  font-size: 13px;
  color: #536257;
  margin: 12px 0;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
.layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  background: #efeee7;
}
.brand {
  font-family: Georgia, serif;
  font-size: 36px;
  letter-spacing: -2px;
  margin: 0 12px 8px;
}
.subbrand {
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 12px 44px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  color: #69786e;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
}
nav button.active {
  background: var(--green);
  color: #fafaf5;
}
nav .ico {
  font-size: 19px;
  width: 22px;
}
.sidebottom {
  margin-top: auto;
  padding: 20px 12px 0;
}
.private {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.content {
  padding: 32px 48px 60px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  font-size: 12px;
  color: var(--muted);
}
.topbar select {
  width: auto;
  padding: 6px 10px;
  background: transparent;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 550;
  margin: 10px 0 12px;
}
h2 {
  font-weight: 550;
  font-size: 19px;
  margin: 0 0 17px;
}
h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 12px 0 8px;
}
p {
  line-height: 1.7;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.titleline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.weather {
  background: var(--green);
  color: #f4f3e9;
  border-radius: 16px;
  padding: 28px;
  min-height: 215px;
  position: relative;
  overflow: hidden;
}
.weather:after {
  content: "☀";
  position: absolute;
  right: -20px;
  top: -38px;
  font-size: 190px;
  opacity: 0.06;
}
.weather .muted {
  color: #b7c5b7;
}
.temp {
  font-family: Georgia, serif;
  font-size: 66px;
  line-height: 1.1;
  margin: 15px 0;
}
.weather .row {
  position: relative;
  z-index: 1;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
}
.recommend {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #eae9de;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 36px;
}
.stat {
  border-bottom: 1px solid var(--line);
  padding: 17px 5px;
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 20px;
}
.card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.photo {
  background: #e9e8e0;
  aspect-ratio: 4/4.6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
}
.placeholder {
  color: #90998d;
  text-align: center;
  font-size: 12px;
  padding: 20px;
}
.placeholder b {
  display: block;
  font-family: Georgia, serif;
  font-size: 45px;
  opacity: 0.45;
  font-weight: 400;
  margin-bottom: 10px;
}
.cardbody {
  padding: 15px;
}
.card h3 {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.badge {
  font-size: 10px;
  border: 1px solid #d2d9cd;
  border-radius: 20px;
  padding: 4px 9px;
  display: inline-block;
  background: #f5f7f1;
  color: #5c705c;
}
.badge.warn {
  background: #fbf2df;
  border-color: #ecd9b4;
  color: #8c6a30;
}
.cardmeta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px 150px;
  gap: 12px;
  margin: 20px 0;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #cbd0c5;
  border-radius: 12px;
  color: #6b796d;
  background: #f8f8f2;
}
.empty p {
  max-width: 460px;
  margin: 10px auto 20px;
}
.list {
  display: grid;
  gap: 14px;
}
.order {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.order strong {
  font-size: 16px;
}
.outfit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.outfit ul {
  padding-left: 20px;
  line-height: 1.9;
}
.outfit .reason {
  font-size: 14px;
  color: #657467;
}
.section {
  margin-top: 32px;
}
.auth {
  max-width: 510px;
  margin: 8vh auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth .brand {
  margin-left: 0;
}
.auth p {
  font-size: 14px;
  color: #69766c;
}
.auth label {
  line-height: 1.8;
}
.notice {
  padding: 13px 16px;
  background: #f2ebd9;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.notice.error {
  background: #f5e1dc;
  color: #a34831;
}
dialog {
  max-width: 750px;
  width: calc(100vw - 32px);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  color: inherit;
  background: #fafbf7;
}
dialog::backdrop {
  background: #11251c80;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span2 {
  grid-column: span 2;
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialoghead button {
  padding: 8px 12px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  position: sticky;
  bottom: -28px;
  background: #fafbf7;
  padding: 14px 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #263f34;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 40px #0002;
  display: none;
  z-index: 100;
}
.measurements {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.measurements td,
.measurements th {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.stack {
  display: grid;
  gap: 18px;
}
.code {
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  padding: 14px;
  background: #eee;
}
.mobilebrand {
  display: none;
}
footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.body-group {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.body-group > summary {
  font-size: 18px;
  cursor: pointer;
}
.body-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.body-measure {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.body-measure select {
  width: auto;
  min-width: 85px;
}
.body-measure strong {
  font-size: 13px;
}
.body-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.body-measure details {
  font-size: 12px;
  margin-top: 8px;
}
.body-reference {
  display: block;
  max-width: 200px;
  max-height: 300px;
  object-fit: contain;
}
.tryon-gallery {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.tryon-gallery img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 10px;
  background: #edf0e9;
}
.tryon-gallery .row {
  flex-wrap: wrap;
}
.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.15s;
}
.stat-link:hover,
.stat-link:focus-visible {
  background: #e6ede6;
  outline: 2px solid #466658;
  outline-offset: 2px;
}
.advanced-filters {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.advanced-filters summary {
  cursor: pointer;
  font-weight: 600;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.filters label,
.filter-grid label {
  min-width: 0;
}
.filter-summary {
  justify-content: space-between;
  margin-bottom: 16px;
}
.bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: #edf0e9;
  border-radius: 12px;
}
.bulk-toolbar select {
  width: auto;
  max-width: 100%;
}
.trait-summary {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
}
.cardbody select {
  font-size: 12px;
  padding: 8px;
}
.outfit-items {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.outfit-items li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
}
.outfit-photo {
  width: 100px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0eb;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
}
.outfit-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 650px) {
  .filters .search-filter {
    grid-column: span 2;
  }
  .stat-link {
    padding: 12px 8px;
  }
  .stat-link span {
    font-size: 11px;
  }
  .outfit-items li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }
  .outfit-photo {
    width: 72px;
    height: 90px;
  }
}
@media (max-width: 1050px) {
  .content {
    padding: 25px;
  }
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}
@media (max-width: 650px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 30px;
  }
  .subbrand,
  .sidebottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px 13px;
    font-size: 12px;
  }
  nav .ico {
    display: none;
  }
  .content {
    padding: 20px 16px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .titleline {
    align-items: flex-start;
  }
  .hero {
    gap: 14px;
  }
  .weather {
    padding: 22px;
  }
  .temp {
    font-size: 52px;
  }
  .stats {
    gap: 8px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: span 2;
  }
  .formgrid {
    display: block;
  }
  .auth {
    margin: 25px 16px;
    padding: 25px;
  }
  .cardbody {
    padding: 12px;
  }
  .card h3 {
    font-size: 12px;
  }
}
