:root {
  --mint: #6fefd3;
  --violet: #b693ed;
  --pink: #e2a1f1;
  --ink: #111114;
  --text: #191922;
  --muted: #73717f;
  --line: #e8e5ef;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --page: #f7f8fb;
  --danger: #e03131;
  --success: #0f9f6e;
  --warning: #c47a00;
  --gradient: linear-gradient(135deg, var(--mint), var(--violet) 55%, var(--pink));
  --shadow: 0 18px 48px rgba(26, 24, 38, 0.09);
  --shadow-soft: 0 10px 28px rgba(26, 24, 38, 0.055);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -8%, rgba(111, 239, 211, 0.16), transparent 27%),
    radial-gradient(circle at 92% -4%, rgba(226, 161, 241, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(246, 247, 251, 0.84)),
    var(--page);
  font-family: var(--font);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(182, 147, 237, 0.22);
  outline-offset: 2px;
}

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

.auth-card {
  width: min(460px, 100%);
  border: 1px solid rgba(182, 147, 237, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(26, 24, 38, 0.11);
  backdrop-filter: blur(22px);
  padding: 28px;
}

.auth-logo {
  width: 148px;
  display: block;
  margin: 0 auto 24px;
}

.auth-card h1,
.auth-card p {
  margin: 0;
  text-align: center;
}

.auth-card h1 {
  font-size: 24px;
  line-height: 1.25;
}

.auth-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #474450;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(182, 147, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(182, 147, 237, 0.14);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid rgba(232, 229, 239, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.sidebar-brand img {
  width: 118px;
  height: auto;
}

.environment-pill {
  border: 1px solid rgba(182, 147, 237, 0.28);
  border-radius: 999px;
  color: #594ac6;
  background: rgba(182, 147, 237, 0.08);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

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

.nav-button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4f4b5d;
  padding: 10px 11px;
  text-align: start;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.nav-button.is-active {
  color: #131318;
  border-color: rgba(182, 147, 237, 0.24);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 12px 24px rgba(111, 239, 211, 0.1);
}

.nav-button:hover {
  transform: translateX(-1px);
  border-color: rgba(182, 147, 237, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 18px 24px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(232, 229, 239, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  padding: 12px 14px;
}

.page-title h1,
.page-title p {
  margin: 0;
}

.page-title h1 {
  font-size: 22px;
  line-height: 1.18;
}

.page-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.live-pill,
.admin-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #4f4b5d;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.live-pill svg {
  width: 15px;
  height: 15px;
  color: #0f9f6e;
  stroke-width: 2;
}

.admin-chip {
  padding: 5px 9px 5px 10px;
}

.admin-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gradient);
  color: #111114;
  font-size: 11px;
  font-weight: 950;
}

.admin-chip strong,
.admin-chip small {
  display: block;
  line-height: 1.1;
}

.admin-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.compact-select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-weight: 850;
}

.compact-toolbar {
  gap: 6px;
  flex-wrap: nowrap;
}

.icon-button,
.text-button,
.primary-button,
.danger-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  font-weight: 850;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.icon-button svg,
.text-button svg,
.primary-button svg,
.danger-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
}

.primary-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #15151a, #24202f 48%, #8065da 86%);
  box-shadow: 0 12px 24px rgba(128, 101, 218, 0.18);
}

.danger-button {
  border-color: rgba(224, 49, 49, 0.2);
  color: var(--danger);
  background: rgba(224, 49, 49, 0.06);
}

.danger-icon {
  border-color: rgba(224, 49, 49, 0.18);
  color: var(--danger);
  background: rgba(224, 49, 49, 0.06);
}

.content {
  padding-top: 18px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.two-col {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

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

.panel {
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.76)),
    var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 229, 239, 0.7);
  padding: 14px;
}

.panel-head h2,
.panel-head p {
  margin: 0;
}

.panel-head h2 {
  font-size: 15px;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 14px;
}

.metric {
  position: relative;
  min-height: 122px;
  padding: 16px;
}

.metric::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gradient);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.chart {
  height: 210px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 12px 6px 2px;
}

.bar {
  flex: 1;
  min-width: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(111, 239, 211, 0.92), rgba(182, 147, 237, 0.9));
  box-shadow: inset 0 -12px 18px rgba(255, 255, 255, 0.18);
}

.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-step {
  position: relative;
  min-height: 104px;
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  overflow: hidden;
}

.pipeline-step::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(182, 147, 237, 0.14);
}

.pipeline-step.active::after {
  background: var(--gradient);
}

.pipeline-step span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(182, 147, 237, 0.12);
  color: #6d4fc7;
  font-weight: 900;
}

.pipeline-step strong {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

.pipeline-step small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

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

.health-card {
  min-height: 96px;
  border: 1px solid rgba(232, 229, 239, 0.78);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(246, 243, 255, 0.7));
  padding: 12px;
}

.health-card span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6d4fc7;
  background: rgba(182, 147, 237, 0.13);
}

.health-card svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.health-card strong,
.health-card small {
  display: block;
}

.health-card strong {
  margin-top: 10px;
  font-size: 22px;
}

.health-card small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

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

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(232, 229, 239, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  transition: border-color 150ms ease, background 150ms ease;
}

.mini-row:hover {
  border-color: rgba(182, 147, 237, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

.mini-row strong,
.mini-row span {
  display: block;
}

.mini-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
  gap: 10px;
  margin-bottom: 12px;
}

.delivery-provider-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(232, 229, 239, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

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

.filters input,
.filters select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(232, 229, 239, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  color: #5d596b;
  background: rgba(251, 251, 253, 0.94);
  font-size: 11px;
  letter-spacing: 0;
  text-align: start;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(232, 229, 239, 0.78);
  padding: 11px 12px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 150ms ease;
}

.data-table tbody tr:hover {
  background: rgba(182, 147, 237, 0.045);
}

.product-cell {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 260px;
}

.product-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(232, 229, 239, 0.78);
  background: #fff;
  object-fit: contain;
}

.muted {
  color: var(--muted);
}

.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 229, 239, 0.9);
  border-radius: 999px;
  background: #fff;
  color: #4e4a57;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.active,
.badge.ready,
.badge.delivered,
.badge.sent {
  color: #087353;
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(15, 159, 110, 0.08);
}

.badge.draft,
.badge.pending,
.badge.preparing {
  color: #7254ce;
  border-color: rgba(182, 147, 237, 0.28);
  background: rgba(182, 147, 237, 0.1);
}

.badge.archived,
.badge.blocked,
.badge.cancelled,
.badge.failed,
.badge.not-ready {
  color: var(--danger);
  border-color: rgba(224, 49, 49, 0.22);
  background: rgba(224, 49, 49, 0.07);
}

.badge.shipping {
  color: #0b7285;
  border-color: rgba(11, 114, 133, 0.22);
  background: rgba(11, 114, 133, 0.08);
}

.badge.disabled,
.badge.not_required {
  color: #6b6475;
  border-color: rgba(107, 100, 117, 0.18);
  background: rgba(107, 100, 117, 0.07);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(17, 17, 20, 0.32);
  backdrop-filter: blur(5px);
}

.drawer {
  width: min(760px, 100%);
  height: 100%;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: -24px 0 60px rgba(17, 17, 20, 0.18);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  padding: 16px;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-head h2,
.drawer-head p {
  margin: 0;
}

.drawer-head h2 {
  font-size: 18px;
}

.drawer-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.drawer-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.inline-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

.inline-create input {
  min-height: 38px;
  padding: 9px 10px;
}

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

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

.variant-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(232, 229, 239, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.variant-row input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
}

.check-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(232, 229, 239, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #4f4b5d;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.variant-row [data-remove-variant] {
  justify-self: end;
}

.check-label input {
  width: 15px;
  height: 15px;
  min-height: 0;
  padding: 0;
  accent-color: var(--violet);
}

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

.info-grid > div {
  border: 1px solid rgba(232, 229, 239, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px;
}

.info-grid .wide {
  grid-column: 1 / -1;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.info-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 13px;
  width: 1px;
  background: linear-gradient(180deg, rgba(111, 239, 211, 0.68), rgba(182, 147, 237, 0.68));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border: 1px solid rgba(232, 229, 239, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 10px 10px 34px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(182, 147, 237, 0.14);
}

.timeline-item span {
  font-weight: 900;
}

.timeline-item strong {
  color: var(--muted);
  font-size: 12px;
}

.timeline-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.45;
}

.team-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(232, 229, 239, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.team-card strong,
.team-card span {
  display: block;
}

.team-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(232, 229, 239, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.payment-method-card strong,
.payment-method-card span {
  display: block;
}

.payment-method-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.permission-tile {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px 9px;
  align-items: start;
  border: 1px solid rgba(232, 229, 239, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.permission-tile input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--violet);
}

.permission-tile span {
  font-size: 12px;
  font-weight: 900;
}

.permission-tile small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.readiness-box {
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background: #fbfbfd;
  padding: 12px;
}

.readiness-box ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.upload-box {
  border: 1px dashed rgba(182, 147, 237, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
}

.hint-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hint-grid span {
  border: 1px solid rgba(182, 147, 237, 0.22);
  border-radius: 999px;
  background: rgba(182, 147, 237, 0.08);
  color: #514a65;
  font-size: 11px;
  font-weight: 850;
  padding: 7px 10px;
}

.image-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px dashed rgba(182, 147, 237, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  margin-bottom: 12px;
  padding: 12px;
}

.image-upload-row input {
  min-width: 0;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 229, 239, 0.82);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 8px;
}

.storefront-manager {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.storefront-manager-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 239, 211, 0.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(226, 161, 241, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.storefront-manager-head h2,
.storefront-manager-head p {
  margin: 0;
}

.storefront-manager-head h2 {
  margin-top: 8px;
  font-size: 22px;
}

.storefront-manager-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b55c7;
  font-size: 12px;
  font-weight: 900;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.storefront-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.storefront-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.storefront-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 1px solid rgba(232, 229, 239, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 850;
}

.storefront-stats strong {
  color: var(--text);
  font-size: 20px;
}

.storefront-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 14px;
}

.storefront-side {
  display: grid;
  gap: 14px;
}

.storefront-card {
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.storefront-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.storefront-card-head h3,
.storefront-card-head p {
  margin: 0;
}

.storefront-card-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.storefront-card-head h3 svg {
  width: 19px;
  height: 19px;
  color: #6b55c7;
  stroke-width: 1.85;
}

.storefront-card-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-admin-preview {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(232, 229, 239, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(111, 239, 211, 0.14), rgba(226, 161, 241, 0.16)),
    #fff;
}

.hero-admin-preview img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
}

.hero-admin-preview.is-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

.hero-admin-preview.is-empty div {
  display: grid;
  place-items: center;
  gap: 8px;
}

.hero-admin-preview.is-empty svg {
  width: 34px;
  height: 34px;
  color: #8d73df;
  stroke-width: 1.7;
}

.hero-admin-preview.is-empty strong {
  color: var(--text);
  font-size: 16px;
}

.hero-edit-button {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.hero-edit-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.storefront-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-content-row,
.collection-preview-row,
.shortcut-preview-tile,
.offer-preview-card {
  border: 1px solid rgba(232, 229, 239, 0.84);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
}

.mini-content-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px;
  text-align: start;
}

.mini-content-row > img,
.mini-content-row > svg:first-child {
  width: 48px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.mini-content-row span,
.mini-content-row strong,
.mini-content-row em {
  display: block;
}

.mini-content-row strong {
  font-size: 13px;
}

.mini-content-row em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.shortcut-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.shortcut-preview-tile {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 10px 6px;
}

.shortcut-preview-tile img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.shortcut-preview-tile svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
  stroke-width: 1.7;
}

.shortcut-preview-tile span {
  max-width: 100%;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-preview-grid {
  display: grid;
  gap: 9px;
}

.offer-preview-card {
  min-height: 104px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-align: start;
}

.offer-preview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 20, 0.68), rgba(17, 17, 20, 0.12));
}

.offer-preview-card span {
  position: relative;
  z-index: 1;
  min-height: 104px;
  display: grid;
  align-content: end;
  gap: 4px;
  color: #fff;
  padding: 12px;
}

.offer-preview-card strong,
.offer-preview-card em {
  display: block;
}

.offer-preview-card em {
  font-style: normal;
  opacity: 0.82;
  font-size: 12px;
}

.collections-manager-card {
  margin-top: 0;
}

.collection-preview-list {
  display: grid;
  gap: 8px;
}

.collection-preview-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: start;
}

.collection-preview-row > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(111, 239, 211, 0.18), rgba(226, 161, 241, 0.2));
  color: #6b55c7;
}

.collection-preview-row svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.collection-preview-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-preview-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.content-block-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(232, 229, 239, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.content-preview {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 229, 239, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(111, 239, 211, 0.1), rgba(226, 161, 241, 0.12)),
    #fff;
  overflow: hidden;
}

.content-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-preview svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
  stroke-width: 1.7;
}

.content-block-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.content-block-top,
.content-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.content-block-top strong,
.content-block-top span {
  display: block;
}

.content-block-top strong {
  font-size: 14px;
}

.content-block-top span,
.content-meta-row span,
.content-block-body p {
  color: var(--muted);
  font-size: 12px;
}

.content-block-body p {
  margin: 0;
  line-height: 1.45;
}

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

.content-item-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(232, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.item-image-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.content-item-row input,
.content-item-row select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
}

.item-image-upload input {
  width: 100%;
}

.toast {
  position: fixed;
  inset-block-end: 24px;
  inset-inline: 0;
  z-index: 100;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: auto;
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.9);
  color: #fff;
  padding: 11px 14px;
  box-shadow: 0 18px 42px rgba(17, 17, 20, 0.2);
  font-weight: 850;
}

.empty {
  border: 1px dashed rgba(182, 147, 237, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.empty.compact {
  padding: 12px;
  font-size: 12px;
}

.loading {
  min-height: 160px;
  display: grid;
  gap: 12px;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.loading::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(182, 147, 237, 0.16);
  border-top-color: rgba(111, 239, 211, 0.9);
  animation: spin 820ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .metrics-grid,
  .two-col,
  .three-col,
  .storefront-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .main {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .storefront-manager-head,
  .storefront-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .storefront-actions {
    justify-content: flex-start;
  }

  .nav-list,
  .metrics-grid,
  .two-col,
  .three-col,
  .storefront-stats,
  .filters,
  .form-grid,
  .language-grid,
  .info-grid,
  .permission-grid,
  .pipeline-strip,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .inline-create,
  .image-upload-row,
  .content-block-card,
  .variant-row {
    grid-template-columns: 1fr;
  }

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

  .content-block-grid,
  .content-item-row {
    grid-template-columns: 1fr;
  }

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

  .hero-admin-preview,
  .hero-admin-preview img {
    min-height: 220px;
  }

.collection-preview-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .collection-preview-row .badge,
  .collection-preview-row em {
    justify-self: start;
  }

  .sidebar {
    padding: 12px;
  }
}

.taxonomy-assets-card {
  margin-top: 14px;
}

.taxonomy-assets-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.taxonomy-assets-column {
  min-width: 0;
}

.taxonomy-assets-column h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
}

.taxonomy-assets-list {
  max-height: 430px;
  display: grid;
  gap: 9px;
  overflow: auto;
  padding-inline-end: 4px;
}

.taxonomy-asset-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(232, 229, 239, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.taxonomy-asset-preview {
  width: 58px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 239, 211, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(26, 26, 32, 0.96), rgba(129, 92, 217, 0.86));
  color: #fff;
}

.taxonomy-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.taxonomy-asset-preview strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.taxonomy-asset-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.taxonomy-asset-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.taxonomy-asset-main input {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .taxonomy-assets-layout {
    grid-template-columns: 1fr;
  }

  .taxonomy-asset-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .taxonomy-asset-row .text-button {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
