:root {
  --admin-bg: #f3f5f8;
  --admin-surface: #ffffff;
  --admin-border: rgba(21, 31, 44, 0.14);
  --admin-text: #171a1f;
  --admin-muted: #66717f;
  --admin-accent: #2563eb;
  --admin-danger: #b42318;
  --admin-success: #047857;
  --line: var(--admin-border);
  --line-strong: rgba(21, 31, 44, 0.24);
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --surface: #eef2f6;
  --surface-soft: #f6f8fb;
  --text: var(--admin-text);
  --muted: var(--admin-muted);
  --accent: var(--admin-accent);
  --accent-soft: rgba(37, 99, 235, 0.12);
  --ok: #146c43;
  --pending: #946200;
  --admin-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 23, 42, 0.06);
  --admin-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body.admin-body {
  margin: 0;
  color: var(--admin-text);
  background: var(--admin-bg);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.admin-clean-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  color: var(--admin-text);
  background: var(--admin-bg);
}

.admin-clean-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  box-shadow: inset -1px 0 0 rgba(15, 23, 42, .02);
}

.admin-clean-sidebar__top-actions {
  display: flex;
  gap: 8px;
}

.admin-clean-sidebar__top-actions > .admin-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.admin-clean-nav {
  display: grid;
  gap: 6px;
}

.admin-clean-nav__link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  color: var(--admin-muted);
  font-size: .95rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
}

.admin-clean-nav__link:hover,
.admin-clean-nav__link.is-active {
  background: var(--surface);
  color: var(--admin-text);
}

.admin-clean-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-clean-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  background: var(--admin-bg);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #111827;
  color: #fff;
}

.admin-brand {
  display: block;
  margin-bottom: 28px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a,
.admin-logout {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #d1d5db;
  text-decoration: none;
}

.admin-sidebar nav a:hover,
.admin-logout:hover {
  color: #fff;
  background: #1f2937;
}

.admin-logout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.admin-main {
  min-width: 0;
  padding: 32px;
}

.admin-page__header,
.admin-page__head,
.admin-panel__header,
.admin-form-actions,
.admin-actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-page__header,
.admin-page__head {
  justify-content: space-between;
}

.admin-page__header h1,
.admin-page__head h1,
.admin-panel__header h2 {
  margin: 0;
}

.admin-page {
  display: grid;
  gap: 14px;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.admin-page--wide {
  width: min(1380px, 100%);
}

.admin-page__header h1,
.admin-page__head h1 {
  max-width: none;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-panel,
.auth-card {
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.admin-panel {
  margin-bottom: 18px;
  overflow: hidden;
  padding: 14px;
}

.admin-panel--nested {
  box-shadow: none;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

.admin-stats div {
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
}

.admin-stats span,
.admin-table span,
.admin-muted {
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
  text-align: left;
  vertical-align: top;
}

.admin-thumb {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f7;
}

.button,
.button--primary,
.button--danger,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

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

.button--primary,
.admin-btn--primary {
  border-color: var(--admin-accent);
  background: var(--admin-accent);
  color: #fff;
}

.button,
.admin-btn--ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--admin-text);
}

.button--danger,
.admin-btn--danger {
  border-color: rgba(180, 35, 24, .22);
  color: var(--admin-danger);
}

.admin-btn--text {
  background: transparent;
  color: var(--admin-muted);
}

.admin-btn--block {
  width: 100%;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--admin-text);
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.inline-form select,
.admin-upload input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 500;
}

.field textarea {
  padding: 10px 11px;
}

.field textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.product-editor-form .field textarea {
  font-family: inherit;
  font-size: inherit;
}

.product-editor-form {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

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

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

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

.admin-grid--compact {
  gap: 10px;
}

.admin-checks {
  display: flex;
  gap: 18px;
  margin: 10px 0 18px;
  font-weight: 700;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-alert--error {
  background: #fef3f2;
  color: var(--admin-danger);
}

.admin-alert--success {
  background: #ecfdf3;
  color: var(--admin-success);
}

.status-pill {
  display: inline-block;
  margin: 2px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.admin-pill-list,
.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-pill,
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
}

.admin-pill--toggle {
  cursor: pointer;
}

.admin-pill.is-active {
  border-color: rgba(20, 108, 67, .2);
  background: rgba(20, 108, 67, .1);
  color: var(--ok);
}

.admin-chip button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--admin-text);
  cursor: pointer;
}

.admin-chip--danger,
.admin-pill--danger {
  border-color: rgba(166, 42, 42, .22);
  background: rgba(166, 42, 42, .1);
  color: #a62a2a;
}

.admin-message {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: .94rem;
  font-weight: 800;
}

.admin-message--success {
  background: rgba(20, 108, 67, .1);
  color: var(--ok);
}

.admin-message--error {
  background: rgba(158, 42, 43, .1);
  color: #9e2a2b;
}

.admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--admin-shadow);
}

.admin-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.admin-card__head h2 {
  margin: 0;
  font-size: .96rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.admin-card__body {
  padding: 14px;
}

.admin-card__body--stack {
  display: grid;
  gap: 1rem;
}

.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--admin-shadow);
}

.admin-stat span {
  color: var(--admin-muted);
  font-size: .82rem;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -.045em;
}

.admin-overview-ranges {
  margin-bottom: 12px;
}

.admin-overview-updated {
  margin: -4px 0 -8px;
}

.overview-products-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.overview-products-table__head,
.overview-products-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 140px 180px 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}

.overview-products-table__head {
  color: var(--admin-muted);
  font-size: .79rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.overview-products-table__row + .overview-products-table__row {
  border-top: 1px solid var(--line);
}

.overview-products-table__product,
.overview-products-table__metric {
  display: grid;
  gap: 4px;
}

.overview-products-table__metric-label {
  display: none;
  color: var(--admin-muted);
  font-size: .78rem;
  font-weight: 800;
}

.overview-products-table__value {
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

.status-pill--ok {
  background: #dcfae6;
  color: #067647;
}

.status-pill--home {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill--danger {
  background: #fee4e2;
  color: #b42318;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-card__text {
  color: var(--admin-muted);
}

.form-error {
  color: var(--admin-danger);
  font-weight: 700;
}

.admin-upload {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
}

.admin-upload code {
  overflow-wrap: anywhere;
  color: var(--admin-accent);
}

.admin-actions {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

.admin-actions__search {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  flex: 0 0 180px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field__stack {
  display: grid;
  gap: 8px;
}

.admin-field__label {
  color: #4b5565;
  font-size: .88rem;
  font-weight: 800;
}

.admin-field__hint {
  margin: 0;
  color: var(--admin-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.admin-input,
.admin-select,
.admin-textarea,
.fieldless-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.admin-input,
.admin-select,
.fieldless-input {
  height: 38px;
  padding: 0 11px;
}

.admin-textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.admin-textarea--small {
  min-height: 58px;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus,
.fieldless-input:focus {
  border-color: rgba(37, 99, 235, .44);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 140ms ease, background 140ms ease;
}

.admin-list__item:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.admin-list__item--button {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-list__item--sold-out {
  border-color: rgba(166, 42, 42, .2);
  background: rgba(166, 42, 42, .06);
}

.admin-list__item strong {
  display: block;
}

.admin-list__item span {
  color: var(--admin-muted);
  font-size: .82rem;
}

.homepage-selection {
  gap: 8px;
}

.homepage-selection__chip {
  min-height: 34px;
  padding-right: 6px;
  color: var(--admin-text);
}

.homepage-selection__chip button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--admin-text);
  cursor: pointer;
}

.homepage-selection__chip small {
  color: #a62a2a;
  font-size: .72rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.product-tile {
  display: block;
  transition: transform 140ms ease, opacity 140ms ease;
}

.product-tile:hover {
  transform: translateY(-2px);
}

.product-tile__frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.product-tile__image,
.product-tile__placeholder {
  width: 100%;
  height: 100%;
}

.product-tile__image {
  display: block;
  object-fit: cover;
}

.product-tile__placeholder {
  display: grid;
  place-items: center;
  color: var(--admin-muted);
  background: var(--surface-soft);
  font-weight: 800;
}

.product-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 11, .06) 0%, rgba(20, 16, 11, .08) 45%, rgba(20, 16, 11, .8) 100%);
}

.product-tile__top,
.product-tile__bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
}

.product-tile__top {
  top: 16px;
  justify-content: space-between;
  gap: 10px;
}

.product-tile__bottom {
  bottom: 16px;
}

.product-tile__price,
.product-tile__featured {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--admin-text);
  font-size: .95rem;
  font-weight: 800;
}

.product-tile__featured {
  background: rgba(37, 99, 235, .9);
  color: #fff;
  font-size: .82rem;
}

.product-tile__bottom strong {
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

.salesdrive-log-list {
  display: grid;
  gap: .5rem;
}

.salesdrive-log {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: 1rem;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .875rem;
  line-height: 1.25;
}

.salesdrive-log--inbound {
  background: rgba(32, 157, 91, .08);
}

.salesdrive-log--outbound {
  background: rgba(37, 99, 235, .08);
}

.salesdrive-log--internal {
  background: rgba(120, 102, 75, .08);
}

.salesdrive-log--error {
  background: rgba(173, 52, 12, .12);
  color: #982f0b;
}

.salesdrive-log__time {
  color: var(--admin-muted);
}

.salesdrive-log__badge,
.salesdrive-log__scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.salesdrive-log__message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-pre {
  max-width: 520px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
}

.home-review-slider .slick-list {
  overflow: hidden;
}

.home-review-slider .slick-track {
  display: flex;
  transition: transform 300ms ease;
}

.home-review-slider .slick-slide {
  flex: 0 0 100%;
}

.home-image-placeholder,
.storefront-order-note {
  padding: 12px;
  text-align: center;
}

.storefront-order-note--success {
  color: #097b40;
}

.admin-hidden-field,
.admin-hidden-file {
  display: none !important;
}

.visual-editor {
  display: grid;
  gap: 18px;
}

.visual-media-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.visual-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.visual-section__head,
.visual-review-toolbar,
.visual-chart-head,
.visual-color-card__head,
.visual-chart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-section__head h3,
.visual-review-toolbar h2 {
  margin: 0;
}

.visual-media-grid,
.visual-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.visual-media-grid--single {
  grid-template-columns: minmax(132px, 220px);
}

.visual-review-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
}

.visual-media-card,
.visual-review-card,
.visual-color-card,
.visual-chart-card,
.visual-empty {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
}

.visual-media-card,
.visual-review-card {
  position: relative;
  overflow: hidden;
}

.visual-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #eef2f7;
}

.visual-review-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #eef2f7;
}

.visual-media-card span {
  display: block;
  min-height: 34px;
  padding: 8px;
  color: var(--admin-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.visual-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.button--icon {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 6px;
  line-height: 1;
}

.visual-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 16px;
  color: var(--admin-muted);
  font-weight: 700;
  text-align: center;
}

.visual-color-list,
.visual-chart-list {
  display: grid;
  gap: 14px;
}

.visual-color-card,
.visual-chart-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.visual-color-card__head input,
.visual-chart-head input,
.visual-column-head input,
.visual-size-chip input,
.visual-variant-table input,
.visual-size-table input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 600;
}

.visual-color-card__head input,
.visual-chart-head input {
  flex: 1;
  min-width: 180px;
}

.visual-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-size-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 170px;
}

.visual-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.visual-variant-table,
.visual-size-table {
  min-width: 760px;
}

.visual-variant-table td,
.visual-size-table td,
.visual-size-table th {
  vertical-align: middle;
}

.visual-variant-table input[type="number"] {
  max-width: 110px;
}

.visual-column-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 32px;
  gap: 6px;
  align-items: center;
}

.visual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visual-tab {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.visual-tab.is-active {
  border-color: var(--admin-accent);
  background: #eff6ff;
  color: #1d4ed8;
}

.visual-review-toolbar {
  padding-top: 4px;
}

.visual-review-toolbar p {
  margin: 4px 0 0;
}

.visual-review-card .button--icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
}

.review-dropzone {
  display: grid;
  min-height: 86px;
  place-items: center;
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--admin-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.review-dropzone.is-drag-over,
.review-dropzone:hover {
  border-color: rgba(37, 99, 235, .42);
  background: #fff;
  color: var(--admin-accent);
}

.admin-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: start;
}

.admin-content-layout__main,
.admin-field__stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-content-layout__photos {
  min-width: 0;
}

.admin-cover-gallery--stack {
  display: grid;
  gap: 8px;
}

.admin-cover-card {
  display: grid;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  cursor: pointer;
}

.admin-cover-card__image {
  position: relative;
  display: grid;
  min-height: 176px;
  place-items: center;
  background: #eef2f7;
}

.admin-cover-card__image img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
}

.admin-cover-card__empty {
  color: var(--admin-muted);
  font-size: 32px;
  font-weight: 800;
}

.admin-cover-card__name {
  padding: 8px;
  font-weight: 800;
  text-align: center;
}

.admin-cover-card__crop {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: #fff;
  color: var(--admin-text);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .16);
}

.admin-color-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-pill-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  font: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-pill-action:hover {
  border-color: var(--line-strong);
  color: var(--admin-text);
}

.admin-pill-action--danger:hover {
  border-color: rgba(185, 28, 28, .36);
  color: #b91c1c;
}

.admin-color-pill,
.chart-editor__size-pill,
.visual-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-color-pill:hover,
.chart-editor__size-pill:hover,
.visual-tab:hover {
  border-color: var(--line-strong);
  color: var(--admin-text);
}

.admin-color-pill.is-active,
.chart-editor__size-pill.is-active,
.visual-tab.is-active {
  border-color: rgba(37, 99, 235, .34);
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-color-pill--add,
.chart-editor__size-pill--add {
  width: 40px;
  padding: 0;
}

.admin-color-pill-edit,
.chart-editor__size-edit {
  min-width: 96px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, .34);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.admin-color-add,
.chart-editor__size-add {
  display: inline-grid;
  grid-template-columns: minmax(92px, 130px) 34px;
  gap: 6px;
  align-items: center;
}

.admin-color-add input,
.chart-editor__size-add input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.admin-color-add button,
.chart-editor__size-add button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.admin-color-media-panel {
  display: grid;
  gap: 10px;
}

.admin-color-media-empty {
  padding: 18px;
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  color: var(--admin-muted);
  font-weight: 700;
  text-align: center;
}

.media-uploader__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.media-uploader__add {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--admin-muted);
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
}

.chart-editor {
  display: grid;
  gap: 12px;
}

.chart-editor__size-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chart-editor__parts {
  display: grid;
  gap: 10px;
}

.chart-editor__part {
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
}

.chart-editor__part-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-border);
  background: var(--panel-strong);
}

.chart-editor__part-head input,
.chart-editor__part-head strong {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--admin-text);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.chart-editor__part-head button,
.chart-editor__measure span button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-text);
  cursor: pointer;
}

.chart-editor__measure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
}

.chart-editor__measure {
  display: grid;
  gap: 6px;
}

.chart-editor__measure span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px;
  align-items: center;
}

.chart-editor__measure span input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.chart-editor__measure > input,
.stock-card__item input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.chart-editor__add-measure,
.chart-editor__add-table {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--admin-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chart-editor__add-measure {
  min-height: 70px;
  font-size: 28px;
}

.chart-editor__add-table {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.chart-editor__empty-size {
  padding: 18px;
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  color: var(--admin-muted);
  font-weight: 700;
  text-align: center;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .62);
}

.crop-modal__panel {
  display: grid;
  gap: 14px;
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.crop-modal__head,
.crop-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crop-modal__head h3 {
  margin: 0;
}

.crop-modal__canvas-wrap {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #111827;
}

.crop-modal__canvas {
  display: block;
  width: min(100%, 560px);
  max-height: 62vh;
  background: #fff;
}

.crop-modal__controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.crop-modal__controls label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-weight: 800;
}

.crop-modal__controls select,
.crop-modal__controls input {
  width: 100%;
}

.admin-details {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
}

.admin-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.admin-details > summary::-webkit-details-marker {
  display: none;
}

.admin-details__body {
  padding: 0 18px 18px;
}

.stock-cards {
  display: grid;
  gap: 14px;
}

.stock-card {
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
}

.stock-card__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--admin-border);
}

.stock-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 150px));
  gap: 12px;
  padding: 14px 16px 16px;
}

.stock-card__item {
  display: grid;
  gap: 8px;
}

.stock-card__size {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-clean-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .admin-clean-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-clean-main {
    overflow: visible;
    padding: 18px;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-logout {
    position: static;
    margin-top: 16px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-grid,
  .admin-grid--two,
  .admin-grid--3,
  .admin-grid--four,
  .admin-stats,
  .admin-stats--compact {
    grid-template-columns: 1fr;
  }

  .admin-page__header,
  .admin-panel__header,
  .admin-form-actions,
  .admin-actions,
  .inline-form,
  .admin-upload,
  .visual-section__head,
  .visual-review-toolbar,
  .visual-chart-head,
  .visual-color-card__head,
  .visual-chart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-media-layout {
    grid-template-columns: 1fr;
  }

  .admin-content-layout {
    grid-template-columns: 1fr;
  }

  .overview-products-table {
    border-radius: 16px;
  }

  .overview-products-table__head {
    display: none;
  }

  .overview-products-table__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    padding: 14px;
  }

  .overview-products-table__product {
    grid-column: 1 / -1;
  }

  .overview-products-table__product strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.18;
  }

  .overview-products-table__metric-label {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
  }

  .overview-products-table__value {
    font-size: 1rem;
    line-height: 1.2;
  }

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

  .visual-size-chip {
    width: 100%;
  }

  .admin-list__item,
  .admin-card__head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-tile__frame {
    border-radius: 22px;
  }

  .product-tile__top,
  .product-tile__bottom {
    left: 12px;
    right: 12px;
  }

  .product-tile__top {
    top: 12px;
  }

  .product-tile__bottom {
    bottom: 12px;
  }

  .product-tile__price,
  .product-tile__featured {
    min-height: 30px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .product-tile__bottom strong {
    font-size: .9rem;
  }

  .salesdrive-log {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .salesdrive-log__message {
    white-space: normal;
  }
}
