:root {
  --bg: #f5f7f4;
  --bg-strong: #ecf1eb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-muted: #f1f4ef;
  --text: #142118;
  --muted: #617164;
  --line: rgba(20, 33, 24, 0.08);
  --line-strong: rgba(20, 33, 24, 0.16);
  --accent: #1e7a52;
  --accent-strong: #11553a;
  --accent-soft: rgba(30, 122, 82, 0.12);
  --accent-gold: #b8852f;
  --accent-gold-soft: rgba(184, 133, 47, 0.12);
  --shadow-lg: 0 30px 80px rgba(31, 47, 36, 0.12);
  --shadow-md: 0 18px 44px rgba(31, 47, 36, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Titillium Web", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 122, 82, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(204, 166, 104, 0.16), transparent 24%),
    linear-gradient(180deg, #f7faf6 0%, #eff4ee 100%);
}

.login-body {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-shell {
  width: min(100%, 460px);
}

.login-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 30px;
  border: 1px solid rgba(20, 33, 24, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 54px rgba(31, 47, 36, 0.12);
}

.login-card h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: -0.04em;
}

.login-copy {
  margin: 0.7rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 72%);
}

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

input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

button {
  appearance: none;
}

.page-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero__copy,
.stats,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.hero__copy::after,
.panel::after,
.stats::after {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 122, 82, 0.12), transparent 72%);
  pointer-events: none;
}

.hero__copy {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at right top, rgba(30, 122, 82, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 250, 246, 0.74));
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__topbar .eyebrow {
  margin: 0;
}

.hero__logout {
  padding-inline: 1rem;
}

.hero__copy h1,
.panel__heading h2,
.bulk-import__head h3,
.stat-card strong {
  font-family: "Titillium Web", sans-serif;
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 7ch;
  font-weight: 700;
}

.hero__text {
  margin: 1rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 33, 24, 0.06);
}

.stats {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  align-self: stretch;
  background:
    radial-gradient(circle at top right, rgba(204, 166, 104, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 243, 0.86));
}

.stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 33, 24, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.panel {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 243, 0.8));
}

.panel--form {
  position: sticky;
  top: 1rem;
  border-top: 5px solid var(--accent);
}

.panel--catalog {
  border-top: 5px solid var(--accent-gold);
}

.panel__heading,
.toolbar,
.garment-card__head,
.garment-card__actions,
.bulk-import__head,
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.panel__heading {
  position: relative;
  align-items: flex-end;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(20, 33, 24, 0.1);
}

.panel__heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(30, 122, 82, 0.18));
}

.panel--catalog .panel__heading::before {
  background: linear-gradient(90deg, var(--accent-gold), rgba(184, 133, 47, 0.2));
}

.panel__heading h2,
.bulk-import__head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f1a12;
  font-weight: 700;
}

.garment-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #435548;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #8a978c;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(30, 122, 82, 0.38);
  box-shadow: 0 0 0 4px rgba(30, 122, 82, 0.12);
}

textarea {
  resize: vertical;
  min-height: 108px;
}

.grid {
  display: grid;
  gap: 0.95rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid--align-end {
  align-items: end;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.92rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 120px;
  border-radius: 22px;
  border: 1px dashed rgba(30, 122, 82, 0.32);
  background:
    radial-gradient(circle at top right, rgba(30, 122, 82, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 241, 0.9));
  padding: 1.1rem 1.15rem;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.upload-field:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 122, 82, 0.5);
  box-shadow: 0 16px 34px rgba(30, 122, 82, 0.08);
}

.upload-field::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.9rem;
  border-radius: 18px;
  background: rgba(30, 122, 82, 0.12);
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.upload-field--wide {
  min-height: 108px;
}

.upload-field__content {
  display: grid;
  gap: 0.28rem;
  text-transform: none;
  letter-spacing: 0;
}

.upload-field__content strong {
  color: var(--text);
  font-size: 1rem;
}

.upload-field__content span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkbox input {
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox--compact {
  white-space: nowrap;
}

.field-help {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.field-help--inline {
  margin: 0;
}

.inline-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 85, 58, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid rgba(20, 33, 24, 0.06);
}

.bulk-import {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 246, 242, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  position: relative;
}

.section-collapse {
  overflow: hidden;
}

.section-collapse summary {
  list-style: none;
  cursor: pointer;
}

.section-collapse summary::-webkit-details-marker {
  display: none;
}

.bulk-import::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, var(--accent), rgba(30, 122, 82, 0.18));
}

.bulk-import--looks::before {
  background: linear-gradient(180deg, #2667a8, rgba(38, 103, 168, 0.16));
}

.bulk-import--batch::before {
  background: linear-gradient(180deg, var(--accent-gold), rgba(184, 133, 47, 0.16));
}

.bulk-import__head {
  align-items: flex-end;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(20, 33, 24, 0.08);
  margin-bottom: 0.8rem;
}

.section-collapse__summary {
  position: relative;
  padding-right: 3rem;
  margin-bottom: 0;
}

.section-collapse__summary::after {
  content: "+";
  position: absolute;
  top: 0.2rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 33, 24, 0.06);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-collapse[open] > .section-collapse__summary::after {
  content: "−";
}

.section-collapse__body {
  padding-top: 0.2rem;
}

.section-collapse__action {
  pointer-events: none;
}

.section-collapse--filters {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 33, 24, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(243, 247, 242, 0.88));
  overflow: hidden;
}

.section-collapse__summary--filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(20, 33, 24, 0.08);
}

.section-collapse__summary--filters h3 {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}

.bulk-import__results {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.bulk-import__item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  line-height: 1.55;
}

.bulk-import__item strong {
  color: var(--text);
}

.look-form {
  display: grid;
  gap: 0.9rem;
}

.look-editing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(38, 103, 168, 0.1);
  border: 1px solid rgba(38, 103, 168, 0.14);
  color: #1f4f80;
  font-weight: 700;
}

.look-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.look-selected {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
}

.look-selected__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.look-selected__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(247, 249, 246, 0.92);
  border: 1px solid rgba(20, 33, 24, 0.08);
}

.look-selected__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(20, 33, 24, 0.08);
  background: #e4ece1;
}

.look-selected__meta {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.look-selected__name {
  font-weight: 700;
  color: var(--text);
}

.look-selected__detail {
  font-size: 0.82rem;
  color: var(--muted);
}

.look-selected__remove {
  flex: 0 0 auto;
}

.look-picker__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.look-picker__item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.look-picker__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  background: #e4ece1;
  border: 1px solid rgba(20, 33, 24, 0.06);
}

.look-picker__meta {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.look-picker__name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look-picker__detail {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look-picker__empty {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.look-picker__item input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.looks-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.look-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 33, 24, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.look-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.look-card__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.look-card__head h4 {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.look-card__garments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.look-card__garment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(247, 249, 246, 0.92);
  border: 1px solid rgba(20, 33, 24, 0.08);
}

.look-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(20, 33, 24, 0.08);
  background: #e4ece1;
}

.look-card__garment-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.look-card__garment-name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look-card__garment-detail {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combinations-dialog {
  width: min(920px, calc(100% - 2rem));
  border: 1px solid rgba(20, 33, 24, 0.12);
  border-radius: 28px;
  padding: 0;
  background: rgba(252, 254, 251, 0.98);
  box-shadow: 0 30px 80px rgba(20, 33, 24, 0.2);
}

.combinations-dialog::backdrop {
  background: rgba(15, 26, 18, 0.42);
  backdrop-filter: blur(6px);
}

.combinations-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0.9rem;
  border-bottom: 1px solid rgba(20, 33, 24, 0.08);
}

.combinations-dialog__header h3 {
  margin: 0;
  font-size: 1.7rem;
}

.combinations-dialog__body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.combinations-dialog__look {
  display: grid;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(20, 33, 24, 0.12);
}

.toolbar {
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 0;
  padding: 1rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 248, 243, 0.92), rgba(255, 255, 255, 0.88));
  border: 0;
}

.toolbar .search {
  flex: 1 1 260px;
}

.toolbar input,
.toolbar select,
.toolbar button,
.toolbar .checkbox {
  min-height: 48px;
}

.toolbar select {
  width: auto;
  min-width: 166px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.garment-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(20, 33, 24, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.garment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(31, 47, 36, 0.12);
}

.garment-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 4.5;
  background:
    radial-gradient(circle at top right, rgba(204, 166, 104, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(30, 122, 82, 0.18), rgba(255, 255, 255, 0.2)),
    #eaf0e8;
}

.garment-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.garment-card__favorite {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(20, 33, 24, 0.74);
  color: #f6d66f;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.garment-card__content {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-top: 1px solid rgba(20, 33, 24, 0.06);
}

.garment-card__name {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.garment-card__meta,
.garment-card__details,
.garment-card__notes,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.garment-card__status {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.garment-card__actions {
  margin-top: 0.2rem;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}

.garment-card__actions .ghost-button,
.garment-card__actions .primary-button {
  flex: 1 1 120px;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.image-preview {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.image-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.85rem;
}

.image-preview__card {
  display: grid;
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 33, 24, 0.06);
}

.image-preview__topbar {
  display: flex;
  justify-content: flex-end;
}

.image-preview__thumb {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: #e4ece1;
}

.image-preview__choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: none;
  letter-spacing: 0;
}

.image-preview__choice input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.image-preview__delete {
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 24, 0.06);
  color: var(--accent-strong);
  padding: 0.38rem 0.74rem;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.image-preview--hidden,
.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;
}

.empty-state {
  padding: 2.6rem 1rem 1rem;
  text-align: center;
  font-size: 1rem;
  margin-top: 1rem;
  border-top: 1px dashed rgba(20, 33, 24, 0.12);
}

@media (max-width: 1120px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--form {
    position: static;
  }
}

@media (max-width: 820px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .look-picker__toolbar {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 1rem, 1380px);
  }

  .hero__copy,
  .panel,
  .stats {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 0.75rem;
  }

  .hero__copy,
  .panel,
  .stats {
    padding: 1rem;
  }

  .hero__copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .hero__topbar,
  .look-editing-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .panel__heading,
  .bulk-import__head,
  .toolbar,
  .garment-card__head,
  .garment-card__actions,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar select,
  .toolbar button,
  .toolbar .checkbox {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .garment-card__actions .ghost-button,
  .garment-card__actions .primary-button {
    width: 100%;
    flex-basis: auto;
  }
}
