:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #61708a;
  --soft: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --line: rgba(23, 32, 48, 0.12);
  --shadow: 0 24px 70px rgba(20, 30, 50, 0.12);
  --deep: #0b1220;
  --blue: #0a84ff;
  --coral: #ff5c70;
  --lime: #9dff62;
  --success: #19a974;
  --amber: #b76b00;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.9);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,247,251,.72) 34%, rgba(245,248,252,.94)),
    linear-gradient(135deg, #f9fbff 0%, #edf3fa 48%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
button {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
button:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(10,132,255,.26);
  outline-offset: 3px;
}

.sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20,32,49,.92), rgba(6,17,29,.98)),
    #071323;
  color: white;
  box-shadow: 0 26px 70px rgba(4, 9, 20, .28);
  backdrop-filter: blur(24px);
  z-index: 10;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 24px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #3ee8ff, var(--blue) 46%, var(--coral));
  font-size: 27px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 28px rgba(10,132,255,.3);
}
.brand strong { display: block; font-size: 19px; line-height: 1; }
.brand span { display: block; margin-top: 5px; color: #a8b3c6; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

nav { display: grid; gap: 8px; }
nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  color: #dbe5f3;
  text-decoration: none;
  font-weight: 800;
}
nav a.active, nav a:hover {
  background: rgba(255,255,255,.11);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #b9ddff;
  font-size: 17px;
}

.pro-card {
  margin-top: auto;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
}
.pro-card strong { display: block; }
.pro-card p {
  margin: 8px 0 14px;
  color: #b8c5d8;
  font-size: 13px;
  line-height: 1.45;
}
.pro-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,92,112,.72);
  border-radius: 12px;
  background: rgba(255,92,112,.08);
  color: #ffb0bc;
  font-size: 13px;
  font-weight: 900;
}

.mini-profile {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}
.mini-profile span, .mini-profile small { color: #a8b3c6; }
.mini-profile strong { display: block; margin: 5px 0; }

main {
  margin-left: 282px;
  padding: 22px 24px 36px 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(36px, 3.1vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}
.topbar p {
  max-width: 900px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.top-actions { display: flex; gap: 12px; align-items: center; }
.role-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.role-toggle button {
  min-width: 86px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.role-toggle button.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 24px rgba(10,132,255,.28);
}
.upgrade {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: var(--deep);
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(8,12,20,.18);
}
.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-strong);
  color: var(--deep);
  font-size: 20px;
}
.icon-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 11px;
}
.profile-chip {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 14px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(15,23,42,.07);
}
.profile-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.08)),
    linear-gradient(145deg, #8a5a42 0 43%, #161b24 44% 62%, #f4f0e8 63%);
}
.profile-chip strong,
.profile-chip small {
  display: block;
  text-align: left;
}
.profile-chip strong { font-size: 14px; }
.profile-chip small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.progress-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.step {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(15,23,42,.06);
}
.step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3fb;
  color: var(--muted);
  font-weight: 950;
  grid-row: span 2;
}
.step strong { font-size: 14px; }
.step small { color: var(--muted); font-size: 12px; }
.step.done span { background: #e8fff4; color: var(--success); }
.step.active { border-color: rgba(10,132,255,.35); box-shadow: 0 0 0 4px rgba(10,132,255,.08); }
.step.active span { background: var(--blue); color: white; }

.studio-grid {
  display: grid;
  grid-template-columns: 330px minmax(500px, 1fr) 360px;
  gap: 12px;
  align-items: start;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.surface {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.surface-title {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.surface-title h2 { font-size: 18px; line-height: 1.05; }
.surface-title p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.surface-title button, .surface-title span {
  border: 0;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--blue);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
}
.filter-row button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.filter-row button.active { background: var(--deep); color: white; }

.upload-panel {
  display: grid;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 12px;
  border: 1px solid rgba(10,132,255,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 30px rgba(10,132,255,.08);
}
.upload-panel[hidden] { display: none; }
.upload-panel label {
  display: grid;
  gap: 6px;
  color: #324056;
  font-size: 12px;
  font-weight: 850;
}
.upload-panel input,
.upload-panel select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
}
.upload-preview {
  min-height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(10,132,255,.35);
  border-radius: 12px;
  background: #f4f8ff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
}
.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.upload-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.upload-actions button[type="submit"] {
  border-color: rgba(10,132,255,.24);
  background: var(--blue);
  color: white;
}

.wardrobe-list { display: grid; gap: 8px; padding: 12px 14px 16px; }
.cloth {
  display: grid;
  grid-template-columns: 12px 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  min-height: 76px;
}
.cloth:hover {
  border-color: rgba(10,132,255,.28);
  box-shadow: 0 10px 28px rgba(10,132,255,.08);
}
.wardrobe-select-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(10,132,255,.78);
  border-radius: 50%;
}
.cloth-art {
  width: 58px;
  height: 58px;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.08);
}
.cloth-art img,
.mall-thumb img,
.stylist-avatar img,
.fit-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cloth-art::before {
  content: "";
  position: absolute;
  inset: 12px 15px;
  border-radius: 10px 10px 7px 7px;
  background: rgba(255,255,255,.38);
  opacity: .24;
  pointer-events: none;
}
.cloth strong { display: block; line-height: 1.18; font-size: 14px; }
.cloth small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.cloth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.cloth-tags span {
  padding: 4px 7px;
  border-radius: 8px;
  background: #edf2f8;
  color: #4c6688;
  font-size: 11px;
  font-weight: 800;
}
.cloth button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.scan-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 0;
}
.scan-toolbar button, .outfit-stack button, .request-panel > button, #sendWishlist, .competition-row button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(10,132,255,.23);
}
.measurement-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.measurement-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.avatar-stage {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) 200px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px 18px;
}
.avatar-shell {
  min-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.22)),
    linear-gradient(130deg, rgba(10,132,255,.09), rgba(255,255,255,0) 42%, rgba(255,92,112,.05)),
    #eaf1f8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.avatar-shell::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 106px;
  height: 16px;
  border-radius: 50%;
  background: rgba(10,132,255,.18);
  filter: blur(10px);
}
.scan-ring {
  position: absolute;
  width: 295px;
  height: 470px;
  border: 1px solid rgba(10,132,255,.24);
  border-radius: 50%;
  transform: rotate(-7deg);
}
.scan-ring::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(10,132,255,.22);
  border-radius: 50%;
}
.avatar {
  position: relative;
  width: 210px;
  height: 480px;
  z-index: 1;
}
.avatar-head {
  position: relative;
  width: 62px;
  height: 72px;
  margin: 18px auto 0;
  border-radius: 45% 45% 48% 48%;
  background: linear-gradient(160deg, #a87958, #825b43);
  box-shadow: inset -10px -10px 18px rgba(45,30,22,.16);
}
.avatar-head::before {
  content: "";
  position: absolute;
  inset: -7px -3px 44px;
  border-radius: 22px 22px 12px 12px;
  background: #1c1717;
}
.avatar-neck {
  width: 30px;
  height: 20px;
  margin: -2px auto 0;
  border-radius: 10px;
  background: #91664b;
}
.avatar-torso {
  position: relative;
  z-index: 3;
  width: 138px;
  height: 162px;
  margin: 0 auto;
  border: 3px solid rgba(17,19,24,.88);
  border-radius: 42px 42px 24px 24px;
  background: #f8fafc;
  box-shadow: 0 16px 28px rgba(15,23,42,.08);
}
.avatar-torso::before,
.avatar-torso::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 28px;
  height: 150px;
  border: 3px solid rgba(17,19,24,.82);
  border-radius: 18px 18px 24px 24px;
  background: inherit;
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
}
.avatar-torso::before {
  left: -24px;
  transform: rotate(5deg);
}
.avatar-torso::after {
  right: -24px;
  transform: rotate(-5deg);
}
.avatar-jacket {
  position: absolute;
  top: 112px;
  left: 21px;
  width: 168px;
  height: 178px;
  z-index: 4;
  border: 0 solid transparent;
  border-radius: 48px 48px 28px 28px;
  opacity: .28;
  pointer-events: none;
  clip-path: polygon(6% 16%, 32% 0, 50% 14%, 68% 0, 94% 16%, 84% 100%, 58% 88%, 50% 28%, 42% 88%, 16% 100%);
}
.avatar-leg {
  position: absolute;
  top: 262px;
  z-index: 2;
  width: 58px;
  height: 154px;
  border-radius: 18px 18px 34px 34px;
  background: #c8b28f;
}
.avatar-leg.left { left: 43px; }
.avatar-leg.right { right: 43px; }
.avatar-shoe {
  position: absolute;
  top: 425px;
  width: 70px;
  height: 28px;
  border: 2px solid #ccd8e8;
  border-radius: 999px;
  background: white;
  z-index: 3;
}
.left-shoe { left: 31px; }
.right-shoe { right: 31px; }
.layer-stack {
  position: absolute;
  left: 16px;
  top: 64px;
  display: grid;
  gap: 8px;
  z-index: 2;
}
.layer-stack article {
  width: 104px;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.layer-stack small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.layer-thumb {
  width: 48px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #dbe5ef);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.layer-thumb.jacket { background: linear-gradient(135deg, #0e2747, #172033); }
.layer-thumb.shirt { background: linear-gradient(135deg, #ffffff, #dce7f3); }
.layer-thumb.trouser { background: linear-gradient(135deg, #d0bd9d, #a68b65); }
.layer-thumb.shoe { width: 58px; height: 24px; border-radius: 999px; }
.studio-actions {
  position: absolute;
  right: 16px;
  top: 80px;
  display: grid;
  gap: 10px;
  z-index: 2;
}
.studio-actions button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #24405f;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.measurement-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(15,23,42,.1);
  backdrop-filter: blur(18px);
}
.measurement-dock div {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 8px 12px;
  background: rgba(255,255,255,.5);
}
.measurement-dock small { color: var(--muted); font-size: 11px; font-weight: 750; }
.measurement-dock strong { margin-top: 2px; font-size: 13px; }
#scanQuality { color: var(--success); }

.outfit-stack {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}
.outfit-stack strong { font-size: 18px; }
.outfit-stack ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }

.request-panel { padding-bottom: 18px; }
.request-panel label {
  display: grid;
  gap: 7px;
  margin: 12px 18px;
  color: #293241;
  font-size: 13px;
  font-weight: 850;
}
.request-panel select, .request-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
}
.money-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  color: var(--muted);
  padding-right: 12px;
}
.money-field input { border: 0; background: transparent; }
.inline-toggle {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}
.inline-toggle input { width: auto; min-height: auto; accent-color: var(--blue); }
.request-panel > button { margin: 2px 18px 14px; width: calc(100% - 36px); }
.request-output {
  margin: 0 18px;
  padding: 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #8b4a00;
  font-weight: 850;
  line-height: 1.35;
}
.stylist-tier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 18px;
}
.stylist-tier button {
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  padding: 12px;
}
.stylist-tier button.active {
  border-color: rgba(10,132,255,.58);
  box-shadow: 0 0 0 4px rgba(10,132,255,.08);
  color: var(--blue);
}
.stylist-tier strong { font-size: 13px; }
.stylist-tier span { margin-top: 4px; font-size: 12px; }

.stylists, .mall, .social { min-height: 262px; }
.stylists { grid-column: span 1; }
.stylist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}
.stylist-card, .mall-item {
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.stylist-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.stylist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06)),
    var(--avatar, linear-gradient(135deg, #a87958, #20293a));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.stylist-card strong, .mall-item strong { display: block; font-size: 16px; }
.stylist-card span, .mall-item span { display: block; margin-top: 5px; color: var(--muted); }
.stylist-card b {
  display: inline-flex;
  margin-top: 11px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
}

.mall-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.mall-item {
  min-height: 174px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.mall-thumb {
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0)),
    var(--mall-bg, linear-gradient(135deg, #0e2747, #172033));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.mall-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.mall-actions button {
  min-height: 30px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.mall-actions button:first-child {
  background: #eef5ff;
  color: var(--blue);
  border-color: rgba(10,132,255,.18);
}

.social { grid-column: span 1; }
.feed-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  padding: 14px;
}
.fit-photo {
  min-height: 130px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.08)),
    linear-gradient(135deg, #d6c4a7 0 28%, #f4f0e8 29% 48%, #112033 49% 72%, #ffffff 73%);
}
.feed-card p { margin: 6px 0; color: var(--muted); line-height: 1.42; }
.feed-card span { color: var(--muted); font-weight: 850; }

.competition { grid-column: span 1; }
.competition-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px;
}
.competition-row div {
  min-height: 80px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.competition-row strong { display: block; color: var(--blue); font-size: 26px; }
.competition-row span { color: var(--muted); font-weight: 800; }
.readiness {
  grid-column: 1 / -1;
}
.readiness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
.readiness-list span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  padding: 0 12px;
  color: #41516a;
  font-size: 13px;
  font-weight: 850;
}
.readiness-list #apiStatus {
  background: #fff7ed;
  color: #8b4a00;
}
.readiness-list #apiStatus.live {
  background: #e8fff4;
  color: var(--success);
}

@media (max-width: 1280px) {
  .studio-grid { grid-template-columns: minmax(310px, .9fr) 1.35fr; }
  .request-panel { grid-column: span 2; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .social, .competition { grid-column: span 1; }
}
@media (max-width: 980px) {
  .sidebar { position: static; width: auto; margin: 12px; }
  main { margin-left: 0; padding: 0 12px 28px; }
  .topbar { grid-template-columns: 1fr; }
  .top-actions { flex-wrap: wrap; }
  .progress-panel { grid-template-columns: 1fr; }
  .studio-grid, .lower-grid { grid-template-columns: 1fr; }
  .request-panel, .social, .competition { grid-column: auto; }
  .profile-chip { order: 3; }
}
@media (max-width: 640px) {
  .sidebar { border-radius: 24px; }
  nav { grid-template-columns: 1fr 1fr; display: grid; }
  h1 { font-size: 36px; }
  .top-actions, .scan-toolbar, .feed-card, .avatar-stage, .competition-row, .stylist-tier { display: grid; grid-template-columns: 1fr; }
  .role-toggle { justify-content: stretch; }
  .role-toggle button { flex: 1; min-width: 0; }
  .stylist-grid { grid-template-columns: 1fr; }
  .mall-list { grid-template-columns: 1fr; }
  .avatar-shell { min-height: 520px; }
  .avatar { transform: scale(.78); }
  .layer-stack { left: 10px; top: 18px; grid-template-columns: repeat(2, 88px); }
  .layer-stack article { width: 88px; min-height: 70px; }
  .studio-actions { right: 10px; top: 18px; }
  .studio-actions button { width: 42px; height: 42px; }
  .measurement-dock { grid-template-columns: repeat(2, 1fr); }
  .measurement-dock div:last-child { grid-column: span 2; }
  .profile-chip, .upgrade, .icon-button { width: 100%; justify-content: center; }
}
