:root {
  --paper: #f7f3ee;
  --paper-card: #fdfaf7;
  --paper-deep: #eee6dc;
  --white: #ffffff;
  --ink: #201c1a;
  --ink-soft: #38322e;
  --muted: #6b635e;
  --muted-light: #948b85;
  --line: #e2dad1;
  --line-light: #ede5dc;
  --gold: #c59b6d;
  --gold-dark: #9e7545;
  --gold-soft: rgba(197, 155, 109, 0.14);
  --gold-glow: rgba(197, 155, 109, 0.28);
  --wine: #6e2037;
  --wine-dark: #511729;
  --purple: #704da8;
  --purple-soft: rgba(112, 77, 168, 0.12);
  --emerald: #22674e;
  --emerald-soft: rgba(34, 103, 78, 0.12);
  --danger: #b91c1c;
  --serif: 'Playfair Display', Georgia, serif;
  --display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(32, 28, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(32, 28, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(32, 28, 26, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  border: 1px solid var(--wine);
  background: var(--white);
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* SHELL & HEADER (Unified across all Vendor Portals) */
.page-shell { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.site-header {
  width: min(1360px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #c8bcb0;
}

.vendor-header-brand,
.header-brand-group {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.wordmark,
.vendor-page .site-header.store-branded-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 24px/1 var(--display) !important;
  letter-spacing: -0.025em !important;
}
.wordmark > span {
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--wine);
}
.vendor-header-brand > .wordmark > .store-custom-brand-wrap {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vendor-header-brand .store-custom-brand-wrap .wordmark {
  display: block;
  max-width: 100%;
  font-size: 27px !important;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.vendor-header-brand .store-powered-by { display: none; }
.brand-caption {
  padding-left: 18px;
  border-left: 1px solid #c8bcb0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* STUDIO SWITCHER */
.studio-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}
.studio-pill:hover:not(.active) { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.studio-pill.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pill-icon { font-size: 13px; }

/* HEADER ACTIONS */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.header-user {
  display: none !important;
}
.back-link, .text-button {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c8bcb0;
  background: var(--paper-card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.back-link:hover, .text-button:hover {
  border-color: var(--wine);
  background: #f2e8e6;
  color: var(--wine-dark);
  transform: translateY(-1px);
}
.vendor-page .sign-out {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.vendor-page .sign-out:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

/* MAIN CONTENT CONTAINER */
main {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.6vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}
h1 { font: 600 clamp(2.15rem, 1.5rem + 2.2vw, 3.25rem)/1.06 var(--display); letter-spacing: -0.03em; margin: 0; }
h1 em { color: var(--gold-dark); font-family: inherit; font-style: normal; font-weight: 700; }
h2 { font: 600 clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem)/1.18 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }
h3 { font: 600 1.15rem/1.3 var(--display); letter-spacing: -0.015em; margin: 0 0 8px; }

/* BOOT STATE */
.boot-state {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.loader-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 20px;
}
.loader-mark.small { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* SIGN IN & SETUP */
.sign-in-layout {
  min-height: 600px;
  padding: 60px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}
.sign-in-intro h1 { font-size: clamp(48px, 5.5vw, 76px); line-height: 0.98; }
.intro-copy {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}
.note-mark { color: var(--gold); font-size: 24px; }

.login-panel {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}
.login-panel::before {
  content: '';
  position: absolute;
  top: 10px; right: -10px; bottom: -10px; left: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: -1;
}
.panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel-index { color: var(--gold-dark); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.panel-rule { flex: 1; height: 1px; background: var(--line); }
.form-copy { color: var(--muted); font-size: 12px; margin: 8px 0 24px; }
.field-label { display: block; margin: 16px 0 6px; font-size: 11px; font-weight: 600; color: var(--ink); }
.field-help { margin: -2px 0 10px; color: var(--muted); font-size: 11px; }

input[type="text"], input[type="password"], input[type="search"], input[type="tel"], input[type="date"], select, textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
textarea { height: auto; padding: 10px 14px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  outline: none;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover:not(:disabled) { background: #000; transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button.secondary:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); }
.button.delete-btn { background: var(--danger); color: #fff; }

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--wine);
  background: #fdf5f5;
  color: var(--wine-dark);
  font-size: 12px;
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.notice.success { border-color: var(--emerald); background: var(--emerald-soft); color: #144633; }
.notice.info { border-color: var(--gold); background: var(--gold-soft); color: #6d4e28; }
.privacy-copy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: 10px; }

/* DASHBOARD HEADER & METRICS */
.dashboard { padding: 40px 0 80px; }
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.metrics-ribbon { display: flex; gap: 14px; flex-wrap: wrap; }
.metric-card {
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 130px;
  box-shadow: var(--shadow-sm);
}
.metric-value { display: block; font: 600 24px/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ATELIER TABS BAR */
.atelier-tabs-bar {
  display: flex;
  gap: 8px;
  margin: 30px 0 35px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.atelier-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.atelier-tab:hover { color: var(--ink); }
.atelier-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.tab-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--muted);
}
.atelier-tab.active .tab-badge { background: var(--gold-soft); color: var(--gold-dark); }

/* TAB PANELS */
.tab-panel { display: none; animation: fadeIn 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* CATALOG TOOLBAR */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-chips-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { min-width: 260px; }

/* GARMENTS GRID */
.garments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.garment-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.garment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.garment-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 130%;
  background: #f2eee8;
  overflow: hidden;
}
.garment-thumb-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.garment-card:hover .garment-thumb-img { transform: scale(1.04); }
.garment-badge-row {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.badge-origin {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-origin.custom { background: var(--gold); color: #fff; }
.badge-origin.builtin { background: rgba(32, 28, 26, 0.75); color: #fff; }

.garment-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.garment-pills { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pill-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper-deep);
  color: var(--muted);
}
.pill-tag.gender { color: var(--purple); background: var(--purple-soft); }
.pill-tag.experimental { color: #b45309; background: #fef3c7; }
.garment-title { font: 600 18px/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 6px; }
.garment-detail { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 0 12px; }
.garment-note-box {
  margin-top: auto;
  padding: 8px 10px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.garment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}
.btn-try-preview {
  flex: 1;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: background 0.18s ease;
}
.btn-try-preview:hover { background: var(--gold-dark); }
.btn-delete-garment {
  padding: 8px 12px;
  background: transparent;
  color: var(--danger);
  border: 1px solid #fca5a5;
  border-radius: 2px;
  font-size: 11px;
  transition: all 0.18s ease;
}
.btn-delete-garment:hover { background: #fef2f2; }

/* ADD GARMENT PANEL */
.add-garment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: 40px;
  align-items: start;
}
.garment-form-panel {
  padding: 34px 38px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: var(--gold-dark); }
.upload-action-btn { width: 100%; margin-top: 10px; }

/* MEDIA PANEL & DROP ZONE */
.garment-media-panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.garment-drop-zone {
  min-height: 240px;
  border: 2px dashed #cfc5ba;
  border-radius: var(--radius-md);
  background: #faf7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.garment-drop-zone:hover, .garment-drop-zone.is-over {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.drop-art { color: var(--gold-dark); margin-bottom: 12px; }
.drop-instructions strong { display: block; font-size: 14px; margin-bottom: 4px; }
.drop-instructions span { display: block; color: var(--gold-dark); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.drop-instructions small { display: block; color: var(--muted); font-size: 10px; }

.garment-preview-box { margin-top: 20px; }
.preview-stage-wrap {
  position: relative;
  width: 100%;
  padding-top: 130%;
  background: #181513;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
#garment-stage-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;
}
.mannequin-guide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.35;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}
.guide-line {
  position: absolute;
  left: 10%; right: 10%;
  border-bottom: 1px dashed rgba(197, 155, 109, 0.6);
}
.guide-line.neckline { top: 22%; }
.guide-line.waist { top: 48%; }
.guide-line.hem { top: 82%; }
.preview-metrics-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.metric-pill {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--paper-deep);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.metric-pill.success { background: var(--emerald-soft); color: var(--emerald); }

.upload-progress-wrap { margin-top: 20px; }
.progress-heading { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; color: var(--muted); }
progress {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  appearance: none;
  accent-color: var(--gold);
}

/* MODELS SECTION */
.models-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-lede { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.model-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.model-thumb-wrap { position: relative; width: 100%; padding-top: 135%; background: #eee; }
.model-thumb-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.model-card-body { padding: 16px 18px; }
.model-card-body h3 { font: 600 17px/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 4px; }
.model-card-body p { color: var(--muted); font-size: 11px; margin: 0 0 10px; }

/* CRM SECTION */
.crm-header { margin-bottom: 25px; }
.crm-search-form {
  max-width: 480px;
  margin-top: 20px;
}
.search-input-wrap { display: flex; gap: 10px; }
.crm-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.crm-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.crm-card-date { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.crm-card-title { font: 600 17px/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 6px; }
.crm-card-notes { font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 0; }

.crm-note-panel {
  max-width: 600px;
  margin-top: 35px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* DIAGNOSTICS SECTION */
.diagnostics-header { margin-bottom: 30px; }
.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.diag-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.diag-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.diag-tag { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; }
.status-pill {
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.status-pill.active { background: var(--emerald-soft); color: var(--emerald); }
.status-pill.warn { background: #fef3c7; color: #b45309; }
.diag-metrics { margin-top: 18px; border-top: 1px solid var(--line-light); padding-top: 14px; }
.metric-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--muted); }
.metric-row strong { color: var(--ink); }

.quota-gauge-wrap { margin: 18px 0; }
.quota-gauge-numbers { font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.quota-gauge-numbers span:last-child { font-size: 14px; color: var(--muted); font-family: var(--sans); }
.quota-progress-track { height: 8px; background: var(--paper-deep); border-radius: 4px; overflow: hidden; }
.quota-progress-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width 0.4s ease; }
.diag-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 0; }
.diag-actions { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.diag-ping-result { font-size: 12px; font-weight: 600; color: var(--emerald); }

/* DIALOGS */
.atelier-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 500px;
  width: 90%;
  border-radius: var(--radius-sm);
}
.atelier-dialog::backdrop { background: rgba(20, 17, 15, 0.6); backdrop-filter: blur(6px); }
.dialog-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: auto;
  background: var(--paper-card);
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 50px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-wordmark { font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-dark); }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 960px) {
  .site-header { width: calc(100% - 36px); flex-direction: column; align-items: stretch; gap: 12px; }
  .header-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .sign-in-layout { grid-template-columns: 1fr; gap: 40px; }
  .add-garment-layout { grid-template-columns: 1fr; }
  .dashboard-heading { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .vendor-header-brand, .header-brand-group { gap: 12px; }
  .brand-caption { padding-left: 12px; }
  .garments-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
