:root {
  --bg: #f6f8f5;
  --panel: #ffffff;
  --panel-soft: #f7faf7;
  --text: #111827;
  --muted: #66756e;
  --line: #dfe7df;
  --primary: #166534;
  --primary-dark: #14532d;
  --primary-soft: #edf8ef;
  --accent: #b7791f;
  --danger: #b91c1c;
  --warning: #92400e;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --icon-users: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8m0 2c4 0 7 2 7 5v2H2v-2c0-3 3-5 7-5m8-1a3.5 3.5 0 0 1 0-7 3.5 3.5 0 0 1 0 7m.4 2c2.8.2 4.6 1.8 4.6 4v2h-4v-2c0-1.5-.6-2.8-1.7-3.8z'/%3E%3C/svg%3E");
  --icon-store: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10V7l7-4 7 4v3h1v11h-6v-6h-4v6H4V10zm2-1h10V8.2l-5-2.8-5 2.8zm-1 3v7h2v-6h8v6h2v-7z'/%3E%3C/svg%3E");
  --icon-box: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2 8 4.5v9L12 22l-8-6.5v-9zm0 2.3L6.3 7.5 12 10.7l5.7-3.2zm-6 5v5.2l5 4.1v-5.8zm12 0-5 3.5v5.8l5-4.1z'/%3E%3C/svg%3E");
  --icon-receipt: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h10a2 2 0 0 1 2 2v16l-3-2-2 2-2-2-2 2-2-2-3 2V5a2 2 0 0 1 2-2m0 2v12.3l1-.7 2 2 2-2 2 2 2-2 1 .7V5zm2 4h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9.5 16.8-4.3-4.3L3.8 14l5.7 5.7L20.7 8.5 19.3 7z'/%3E%3C/svg%3E");
  --icon-down: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14v2H5zm7 17-7-7h4V9h6v5h4z'/%3E%3C/svg%3E");
  --icon-wallet: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h15a2 2 0 0 1 2 2v2h-7a4 4 0 0 0 0 8h7v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2m10 6h8v4h-8a2 2 0 0 1 0-4m1 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3zm11 8H6v10h12zM6 7v1h12V7z'/%3E%3C/svg%3E");
  --icon-truck: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h12v4h3l3 4v5h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.6 0H3zm2 2v9h.2a3 3 0 0 1 4.6 0H13V7zm10 4v5h.2a3 3 0 0 1 4.1.4V14l-2-3zm-8 6.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16m1 3v5l4 2-1 1.7-5-2.7V7z'/%3E%3C/svg%3E");
  --icon-circle-check: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16m-1.1 10.6 5.7-5.7 1.4 1.4-7.1 7.1-4.2-4.2 1.4-1.4z'/%3E%3C/svg%3E");
  --icon-circle-x: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16M8.8 7.4 12 10.6l3.2-3.2 1.4 1.4-3.2 3.2 3.2 3.2-1.4 1.4-3.2-3.2-3.2 3.2-1.4-1.4 3.2-3.2-3.2-3.2z'/%3E%3C/svg%3E");
  --icon-empty: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14v14H5zm2 2v10h10V6zm2 13h6v2H9z'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f6f8f5 0%, #fbfcf9 50%, #ffffff 100%);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.brand-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: contain;
}

.auth-page {
  min-height: 100vh;
  background: var(--bg);
}

.entry-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(22, 163, 74, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(234, 179, 8, 0.12), transparent 24%),
    linear-gradient(135deg, #f7fbf6 0%, #ffffff 42%, #f7faf8 100%);
}

.entry-shell {
  display: grid;
  min-height: calc(100vh - 56px);
  place-items: center;
  padding: 36px 32px 40px;
}

.entry-hero {
  position: relative;
  display: grid;
  gap: 30px;
  width: min(880px, 100%);
  padding: 0;
  overflow: visible;
}

.entry-brand-block,
.entry-copy,
.entry-actions {
  position: relative;
  z-index: 1;
}

.entry-brand-block {
  display: grid;
  justify-items: center;
  padding-top: 8px;
}

.entry-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: fit-content;
  padding: 0;
  color: #111827;
  text-align: center;
}

.entry-brand:hover,
.entry-brand:focus-visible {
  outline: none;
}

.entry-logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  background: #fffdf4;
  box-shadow:
    0 18px 42px rgba(22, 101, 52, 0.12),
    inset 0 0 0 10px rgba(250, 250, 245, 0.9);
}

.entry-logo-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0));
}

.entry-logo-frame .brand-mark {
  width: 126px;
  height: 126px;
  border-radius: 50%;
}

.entry-brand-text {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}

.entry-brand-text strong {
  color: #111827;
  font-size: 29px;
  line-height: 1.15;
}

.entry-brand-text span {
  color: #6b746f;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.entry-copy {
  display: grid;
  gap: 12px;
}

.entry-hero h1 {
  margin: 0;
  color: #102417;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
}

.entry-hero p {
  max-width: 620px;
  margin: 0;
  color: #52605a;
  line-height: 1.75;
}

.entry-page .eyebrow {
  margin: 0;
  color: #16733a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-height: 154px;
  padding: 20px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(22, 101, 52, 0.13);
  outline: none;
  transform: translateY(-3px);
}

.entry-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #166534;
  background: #ecfdf3;
}

.entry-card-icon::before,
.entry-card-arrow::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--entry-icon) center / contain no-repeat;
  mask: var(--entry-icon) center / contain no-repeat;
}

.entry-card-icon-merchant {
  --entry-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10V7l7-4 7 4v3h1v11h-6v-6h-4v6H4V10zm2-1h10V8.2l-5-2.8-5 2.8zm-1 3v7h2v-6h8v6h2v-7z'/%3E%3C/svg%3E");
}

.entry-card-icon-admin {
  --entry-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5zm0 2.2 6 2.2V11c0 3.8-2.4 7.2-6 8.7A9.4 9.4 0 0 1 6 11V6.4zM11 7h2v5h4v2h-6z'/%3E%3C/svg%3E");
}

.entry-card-icon-user {
  --entry-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10m0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5'/%3E%3C/svg%3E");
}

.entry-card-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.entry-card strong {
  color: #102417;
  font-size: 19px;
  line-height: 1.25;
}

.entry-card-content span {
  color: #66756e;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.entry-card-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dce7df;
  border-radius: 50%;
  color: #166534;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.entry-card-arrow::before {
  --entry-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m13.6 5 7 7-7 7-1.4-1.4L16.8 13H4v-2h12.8l-4.6-4.6z'/%3E%3C/svg%3E");
  width: 16px;
  height: 16px;
}

.entry-card:hover .entry-card-arrow,
.entry-card:focus-visible .entry-card-arrow {
  border-color: #16a34a;
  background: #ecfdf3;
  transform: translateX(2px);
}

.entry-card-disabled {
  cursor: default;
  border-color: #e5e7eb;
  background: #f8fafc;
  box-shadow: none;
}

.entry-card-disabled:hover {
  border-color: #e5e7eb;
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

.entry-card-disabled .entry-card-icon {
  color: #64748b;
  background: #eef2f7;
}

.entry-badge {
  justify-self: end;
  min-width: max-content;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  min-height: 100vh;
}

.register-shell {
  grid-template-columns: minmax(320px, 0.75fr) minmax(520px, 1.25fr);
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: var(--text);
  background: var(--panel-soft);
  border-right: 1px solid var(--line);
}

.auth-hero h1 {
  max-width: 560px;
  margin: 34px 0 14px;
  font-size: 42px;
  line-height: 1.12;
}

.auth-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats span,
.hero-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.hero-link {
  width: fit-content;
  margin-top: 28px;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 36px;
}

.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.auth-card.wide {
  width: min(760px, 100%);
}

.auth-head,
.panel-head,
.topbar,
.modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.auth-head {
  margin-bottom: 22px;
}

.auth-head h2,
.panel-head h2,
.topbar h1,
.modal-head h2 {
  margin: 0;
}

.form-stack,
.form-grid,
.inline-form,
.filter-bar {
  display: grid;
  gap: 14px;
}

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

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

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 25px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
}

select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #166534 50%),
    linear-gradient(135deg, #166534 50%, transparent 50%),
    linear-gradient(180deg, #f8fbf8, #eef7ef);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%,
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    34px 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

select:hover {
  border-color: #b7c9ba;
  background-color: #fbfdfb;
}

select:focus {
  background-image:
    linear-gradient(45deg, #166534 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, #166534 50%),
    linear-gradient(180deg, #f5fbf6, #e7f4e9);
}

select:disabled {
  cursor: not-allowed;
  color: #8a968f;
  background-color: #f3f6f3;
  background-image:
    linear-gradient(45deg, transparent 50%, #94a39a 50%),
    linear-gradient(135deg, #94a39a 50%, transparent 50%),
    linear-gradient(180deg, #f3f6f3, #edf1ee);
}

select option {
  color: var(--text);
  background: #fff;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.select-shell {
  position: relative;
  width: 100%;
}

.select-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.select-button:hover {
  border-color: #b7c9ba;
  background: #ffffff;
}

.select-button:focus-visible,
.select-shell.open .select-button {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.select-button:disabled {
  color: #8a968f;
  background: #f3f6f3;
  cursor: not-allowed;
}

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

.select-arrow {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #edf8ef;
  position: relative;
}

.select-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.select-shell.open .select-arrow::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

.select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cfdcd1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.select-shell.open .select-menu {
  display: grid;
  gap: 2px;
}

.select-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.select-option::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.select-option::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  display: none;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(-45deg);
}

.select-option:hover,
.select-option.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.select-option.selected {
  color: var(--primary-dark);
  font-weight: 700;
}

.select-option.selected::after {
  display: block;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.button,
.link-button,
.icon-button {
  cursor: pointer;
}

.button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  white-space: nowrap;
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary);
  border-color: var(--line);
  background: var(--primary-soft);
}

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

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.button::before,
.mini-button::before,
.account-logout::before,
.top-icon-button::before,
.icon-button::before {
  content: "";
  display: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
  mask: var(--button-icon) center / contain no-repeat;
}

.top-icon-button::before,
.icon-button::before {
  margin: 0;
}

#refreshBtn::before,
[data-close-dialog]::before,
#logoutBtn::before,
.filter-bar .button[type="submit"]::before,
#sendCodeForm .button[type="submit"]::before,
#loginForm .button[type="submit"]::before,
#adminLoginForm .button[type="submit"]::before,
#adminInitForm .button[type="submit"]::before,
#registerForm .button[type="submit"]::before,
#newProductBtn::before,
#productForm .button[type="submit"]::before,
#profileForm .button[type="submit"]::before,
#passwordForm .button[type="submit"]::before,
#shipForm .button[type="submit"]::before,
#inputDialogForm .button[type="submit"]::before,
[id$="PrevBtn"]::before,
[id$="NextBtn"]::before,
.mini-button.primary::before,
.mini-button.danger::before {
  display: block;
}

#refreshBtn {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4a8 8 0 0 1 7.4 5H22l-4 4-4-4h3.2A6 6 0 1 0 18 14h2a8 8 0 1 1-8-10'/%3E%3C/svg%3E");
}

[data-close-dialog] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4z'/%3E%3C/svg%3E");
}

#logoutBtn {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3h9v2H6v14h7v2H4zm11.6 5.4L17 7l5 5-5 5-1.4-1.4 2.6-2.6H10v-2h8.2z'/%3E%3C/svg%3E");
}

.filter-bar .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.9 12.1l4.2 4.3-1.4 1.4-4.3-4.2A7.5 7.5 0 1 1 10.5 3m0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11'/%3E%3C/svg%3E");
}

#sendCodeForm .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h18v14H3zm2 2v1.2l7 4.2 7-4.2V7zm14 9.8V10.5l-7 4.2-7-4.2v6.3z'/%3E%3C/svg%3E");
}

#loginForm .button[type="submit"],
#adminLoginForm .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3h9v18h-9v-2h7V5h-7zm1.6 5.4L14 7l5 5-5 5-1.4-1.4 2.6-2.6H4v-2h11.2z'/%3E%3C/svg%3E");
}

#adminInitForm .button[type="submit"],
#registerForm .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E");
}

#newProductBtn {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E");
}

#productForm .button[type="submit"],
#profileForm .button[type="submit"],
#passwordForm .button[type="submit"],
#inputDialogForm .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3h12l2 2v16H5zm2 2v14h10V7.8L16.2 7H15v5H8V5zm3 0v5h3V5zm-1 10h6v2H9z'/%3E%3C/svg%3E");
}

#shipForm .button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h12v4h3l3 4v5h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.6 0H3zm2 2v9h.2a3 3 0 0 1 4.6 0H13V7zm10 4v5h.2a3 3 0 0 1 4.1.4V14l-2-3zm-8 6.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
}

[id$="PrevBtn"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m15.4 5 1.4 1.4L11.2 12l5.6 5.6-1.4 1.4-7-7z'/%3E%3C/svg%3E");
}

[id$="NextBtn"] {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.6 19 7.2 17.6l5.6-5.6-5.6-5.6L8.6 5l7 7z'/%3E%3C/svg%3E");
}

.mini-button.primary {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.6 4.4 19.6 8 9.8 18H6v-3.8zM14.2 5.8l-6.2 6.3V16h.9l6.4-6.5zM5 20h14v2H5z'/%3E%3C/svg%3E");
}

.mini-button.danger {
  --button-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 3h6l1 2h5v2H3V5h5zm-4 6h14l-1 12H6zm3 2 .6 8h6.8l.6-8z'/%3E%3C/svg%3E");
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #102417;
  background: #fff;
  font-size: 0;
  line-height: 1;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.icon-button::before {
  width: 16px;
  height: 16px;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #cfe4d3;
  color: #14532d;
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.1);
  outline: none;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.merchant-auth-page,
.merchant-login-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 163, 74, 0.12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(234, 179, 8, 0.1), transparent 28%),
    linear-gradient(135deg, #f7fbf7 0%, #ffffff 48%, #fbfaf5 100%);
}

.merchant-login-shell {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.95fr);
  min-height: calc(100vh - 56px);
}

.merchant-auth-page .auth-hero,
.merchant-login-page .auth-hero {
  position: relative;
  gap: 0;
  padding: 70px 7vw;
  border-right: 0;
  background: transparent;
  overflow: hidden;
}

.merchant-auth-page .auth-hero::before,
.merchant-login-page .auth-hero::before {
  content: "";
  position: absolute;
  inset: 64px auto auto 7vw;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: #16a34a;
}

.merchant-login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  width: fit-content;
  margin-top: 34px;
}

.merchant-login-logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fffdf4;
  box-shadow:
    0 18px 38px rgba(22, 101, 52, 0.12),
    inset 0 0 0 8px rgba(250, 250, 245, 0.9);
}

.merchant-login-logo .brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.merchant-login-brand > span:last-child {
  display: grid;
  gap: 5px;
}

.merchant-login-brand strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
}

.merchant-login-brand > span:last-child span {
  color: #16733a;
  font-size: 13px;
  font-weight: 700;
}

.merchant-auth-page .auth-hero h1,
.merchant-login-page .auth-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 46px 0 16px;
  color: #111827;
  font-size: 46px;
  letter-spacing: 0;
}

.merchant-auth-page .auth-hero p,
.merchant-login-page .auth-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #52605a;
  font-size: 16px;
}

.merchant-auth-page .hero-stats,
.merchant-login-page .hero-stats {
  position: relative;
  z-index: 1;
  gap: 12px;
  margin-top: 36px;
}

.merchant-auth-page .hero-stats span,
.merchant-login-page .hero-stats span {
  border-color: #dce7df;
  color: #14532d;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.merchant-auth-page .auth-panel,
.merchant-login-page .auth-panel {
  align-items: center;
  padding: 52px 7vw 52px 44px;
}

.merchant-auth-page .auth-card,
.merchant-login-page .auth-card {
  width: min(500px, 100%);
  padding: 32px;
  border-color: #dce7df;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.merchant-auth-page .auth-head,
.merchant-login-page .auth-head {
  margin-bottom: 26px;
}

.merchant-auth-page .auth-head h2,
.merchant-login-page .auth-head h2 {
  margin-top: 4px;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
}

.merchant-auth-page .auth-head a,
.merchant-login-page .auth-head a,
.merchant-auth-page .hero-link {
  padding: 8px 12px;
  border: 1px solid #dce7df;
  border-radius: 999px;
  color: #14532d;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 700;
}

.merchant-auth-page .auth-head a:hover,
.merchant-auth-page .auth-head a:focus-visible,
.merchant-auth-page .hero-link:hover,
.merchant-auth-page .hero-link:focus-visible,
.merchant-login-page .auth-head a:hover,
.merchant-login-page .auth-head a:focus-visible {
  border-color: #16a34a;
  background: #dcfce7;
  outline: none;
}

.merchant-auth-page .eyebrow,
.merchant-login-page .eyebrow {
  color: #16733a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.merchant-auth-page .form-stack,
.merchant-login-page .form-stack {
  gap: 16px;
}

.merchant-auth-page label,
.merchant-login-page label {
  color: #52605a;
  font-weight: 700;
}

.merchant-auth-page input,
.merchant-auth-page textarea,
.merchant-login-page input {
  min-height: 48px;
  border-color: #dce7df;
  background: #fff;
}

.merchant-auth-page input:focus,
.merchant-auth-page textarea:focus,
.merchant-login-page input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.merchant-auth-page .button.primary,
.merchant-login-page #loginForm .button[type="submit"] {
  min-height: 48px;
  margin-top: 2px;
  border-color: #14532d;
  background: #14532d;
  font-size: 16px;
  font-weight: 800;
}

.merchant-auth-page .button.primary:hover,
.merchant-login-page #loginForm .button[type="submit"]:hover {
  border-color: #052e16;
  background: #052e16;
}

.merchant-auth-page .button.secondary {
  min-height: 48px;
  border-color: #dce7df;
  color: #14532d;
  background: #f0fdf4;
  font-weight: 800;
}

.merchant-auth-page .button.secondary:hover {
  border-color: #16a34a;
  background: #dcfce7;
}

.merchant-register-shell {
  grid-template-columns: minmax(360px, 0.82fr) minmax(620px, 1.18fr);
  min-height: calc(100vh - 56px);
}

.merchant-register-page .auth-card.wide {
  width: min(820px, 100%);
}

.merchant-register-page .inline-form {
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f8fcf9;
}

.merchant-register-page .form-grid {
  gap: 16px;
}

.admin-login-shell {
  grid-template-columns: minmax(420px, 1fr) minmax(460px, 0.95fr);
  min-height: calc(100vh - 56px);
}

.admin-login-page .auth-card {
  width: min(540px, 100%);
}

.admin-login-page .divider {
  margin: 26px 0;
  background: #dce7df;
}

.admin-login-page #adminInitForm {
  padding: 18px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f8fcf9;
}

.admin-login-page #adminInitForm h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(22, 101, 52, 0.04), transparent 34%),
    linear-gradient(180deg, #f7faf7 0%, #ffffff 52%, #f8faf8 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 34px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid rgba(223, 231, 223, 0.75);
  text-align: center;
}

.sidebar-brand .brand-mark {
  width: 92px;
  height: 92px;
  padding: 8px;
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 50%;
  background: #fffdf4;
  box-shadow:
    0 14px 34px rgba(22, 101, 52, 0.1),
    inset 0 0 0 8px rgba(250, 250, 245, 0.9);
}

.sidebar-brand span {
  max-width: 170px;
  color: #102417;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.side-nav {
  display: grid;
  gap: 9px;
}

.nav-link {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px 11px 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #52605a;
  background: transparent;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: #cfe4d3;
  background: #f7fcf8;
  transform: translateX(2px);
}

.nav-link.active {
  color: #0f3d24;
  border-color: #b9dec1;
  background: linear-gradient(180deg, #f0fbf2 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.08);
  font-weight: 800;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 3px;
  border-radius: 999px;
  background: #16a34a;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 17px;
  height: 17px;
  background: currentColor;
  transform: translateY(-50%);
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}

.nav-link[data-view="dashboard"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E");
}

.nav-link[data-view="products"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2 8 4.5v9L12 22l-8-6.5v-9zm0 2.3L6.3 7.5 12 10.7l5.7-3.2zm-6 5v5.2l5 4.1v-5.8zm12 0-5 3.5v5.8l5-4.1z'/%3E%3C/svg%3E");
}

.nav-link[data-view="orders"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h10a2 2 0 0 1 2 2v16l-3-2-2 2-2-2-2 2-2-2-3 2V5a2 2 0 0 1 2-2m0 2v12.3l1-.7 2 2 2-2 2 2 2-2 1 .7V5zm2 4h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");
}

.nav-link[data-view="profile"],
.nav-link[data-view="merchants"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10V7l7-4 7 4v3h1v11h-6v-6h-4v6H4V10zm2-1h10V8.2l-5-2.8-5 2.8zm-1 3v7h2v-6h8v6h2v-7z'/%3E%3C/svg%3E");
}

.nav-link[data-view="settings"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m19.4 13.5.1-1.5-.1-1.5 2-1.5-2-3.5-2.4 1a8 8 0 0 0-2.6-1.5L14 2h-4l-.4 3a8 8 0 0 0-2.6 1.5l-2.4-1-2 3.5 2 1.5-.1 1.5.1 1.5-2 1.5 2 3.5 2.4-1a8 8 0 0 0 2.6 1.5l.4 3h4l.4-3a8 8 0 0 0 2.6-1.5l2.4 1 2-3.5zm-7.4 1.8A3.3 3.3 0 1 1 12 8.7a3.3 3.3 0 0 1 0 6.6'/%3E%3C/svg%3E");
}

.nav-link[data-view="users"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8m0 2c4 0 7 2 7 5v2H2v-2c0-3 3-5 7-5m8-1a3.5 3.5 0 0 1 0-7 3.5 3.5 0 0 1 0 7m.4 2c2.8.2 4.6 1.8 4.6 4v2h-4v-2c0-1.5-.6-2.8-1.7-3.8z'/%3E%3C/svg%3E");
}

.nav-link[data-view="logs"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h10l4 4v16H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m9 2H6v16h12V7h-3zM8 9h8v2H8zm0 4h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E");
}

.main {
  min-height: 100vh;
  padding: 28px 24px 36px;
  min-width: 0;
}

.topbar {
  margin-bottom: 22px;
  padding: 0 2px;
}

.topbar h1 {
  color: #07130b;
  font-size: 32px;
  line-height: 1.15;
}

.topbar .eyebrow {
  color: #5f7567;
  font-weight: 700;
  letter-spacing: 0;
}

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

.account-actions {
  gap: 10px;
  justify-content: flex-end;
}

.top-icon-button,
.account-avatar {
  display: inline-grid;
  place-items: center;
  border: 1px solid #dce7df;
  background: #fff;
  cursor: pointer;
}

.top-icon-button {
  overflow: hidden;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 0;
  font-weight: 700;
  box-shadow: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.top-icon-button::before {
  width: 18px;
  height: 18px;
}

.top-icon-button:hover,
.top-icon-button:focus-visible {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.1);
  outline: none;
}

.account-menu {
  position: relative;
  display: inline-flex;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #0f3d24;
  background: linear-gradient(180deg, #f7faf7, #eef8ef);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.account-avatar:hover,
.account-avatar:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.account-avatar.large {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-color: var(--line);
  box-shadow: none;
  font-size: 16px;
}

.account-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 270px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.account-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  width: 100%;
  height: 10px;
}

.account-menu:hover .account-card,
.account-menu:focus-within .account-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-card-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-card-head > div strong,
.account-card-head > div span {
  display: block;
  overflow: hidden;
  max-width: 166px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card-head > div strong {
  color: var(--text);
  font-size: 15px;
}

.account-card-head > div span {
  color: var(--muted);
  font-size: 12px;
}

.account-meta {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.account-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.account-meta dt,
.account-meta dd {
  margin: 0;
  font-size: 13px;
}

.account-meta dt {
  color: var(--muted);
}

.account-meta dd {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.account-logout:hover,
.account-logout:focus-visible {
  border-color: #fecaca;
  color: var(--danger);
  background: #fef2f2;
  outline: none;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #334155;
  background: var(--primary-soft);
  font-size: 13px;
}

.tag {
  min-height: 24px;
  color: #475569;
  background: #f1f5f2;
  font-size: 12px;
  padding: 4px 9px;
  font-weight: 700;
}

.tag.success {
  color: #166534;
  background: #f0fdf4;
}

.tag.warning {
  color: var(--warning);
  background: #fffbeb;
}

.tag.danger {
  color: var(--danger);
  background: #fef2f2;
}

.tag.role {
  color: #395142;
  background: #eef6f0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card,
.panel {
  border: 1px solid rgba(223, 231, 223, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  padding: 18px 76px 17px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  --card-icon: var(--icon-box);
  --card-icon-bg: #eef8ef;
  --card-icon-border: #d8eadc;
  --card-icon-color: #166534;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--card-icon-border);
  border-radius: 8px;
  background: var(--card-icon-bg);
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 27px;
  width: 20px;
  height: 20px;
  background: var(--card-icon-color);
  -webkit-mask: var(--card-icon) center / contain no-repeat;
  mask: var(--card-icon) center / contain no-repeat;
}

.metric-users {
  --card-icon: var(--icon-users);
}

.metric-merchants {
  --card-icon: var(--icon-store);
  --card-icon-bg: #fff7ed;
  --card-icon-border: #fed7aa;
  --card-icon-color: #c2410c;
}

.metric-products {
  --card-icon: var(--icon-box);
}

.metric-orders {
  --card-icon: var(--icon-receipt);
  --card-icon-bg: #eff6ff;
  --card-icon-border: #bfdbfe;
  --card-icon-color: #2563eb;
}

.metric-on-sale {
  --card-icon: var(--icon-check);
}

.metric-off-sale {
  --card-icon: var(--icon-down);
  --card-icon-bg: #f8fafc;
  --card-icon-border: #e2e8f0;
  --card-icon-color: #64748b;
}

.metric-amount {
  --card-icon: var(--icon-wallet);
  --card-icon-bg: #fffbeb;
  --card-icon-border: #fde68a;
  --card-icon-color: #b7791f;
}

.metric-today {
  --card-icon: var(--icon-calendar);
  --card-icon-bg: #eff6ff;
  --card-icon-border: #bfdbfe;
  --card-icon-color: #2563eb;
}

.metric-shipping {
  --card-icon: var(--icon-truck);
  --card-icon-bg: #eff6ff;
  --card-icon-border: #bfdbfe;
  --card-icon-color: #2563eb;
}

.metric-card span {
  color: #52605a;
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: #07130b;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel {
  padding: 20px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head .button {
  flex: 0 0 auto;
}

.panel-head h2 {
  color: #07130b;
  font-size: 22px;
  line-height: 1.25;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.narrow-panel {
  max-width: 760px;
}

.filter-bar {
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  margin-bottom: 16px;
}

.filter-bar.compact {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.filter-bar.compact label {
  width: min(260px, 100%);
}

.filter-bar.compact .button {
  width: auto;
  min-width: 96px;
  padding-inline: 18px;
}

.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #dbe9de;
  border-radius: 8px;
  background: #f4fbf6;
}

.batch-bar span {
  color: #14532d;
  font-size: 14px;
  font-weight: 700;
}

.batch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-check {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #cbd8cf;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.row-check::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -1px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
}

.row-check:hover:not(:disabled) {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.row-check:checked,
.row-check:indeterminate {
  border-color: #15803d;
  background: #15803d;
}

.row-check:checked::after {
  transform: rotate(-45deg) scale(1);
}

.row-check:indeterminate::after {
  width: 8px;
  height: 2px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  transform: none;
}

.row-check:disabled {
  border-color: #d9e2dc;
  background: #f3f6f4;
  cursor: not-allowed;
  opacity: 0.72;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #52605a;
  background: #f7faf7;
  font-size: 13px;
  font-weight: 800;
}

td {
  font-size: 14px;
  height: 56px;
  line-height: 1.35;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfdfb;
}

.user-table {
  min-width: 1120px;
}

.user-table th:nth-child(1),
.user-table td:nth-child(1) {
  width: 44px;
  padding-inline: 8px;
  text-align: center;
}

.user-table tbody tr:has(.user-row-check:checked) td {
  background: #f2fbf4;
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
  width: 56px;
  text-align: center;
}

.user-table th:nth-child(3),
.user-table td:nth-child(3) {
  width: 19%;
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
  width: 26%;
}

.user-table th:nth-child(5),
.user-table td:nth-child(5) {
  width: 140px;
}

.user-table th:nth-child(6),
.user-table td:nth-child(6) {
  width: 116px;
}

.user-table th:nth-child(7),
.user-table td:nth-child(7) {
  width: 86px;
  white-space: nowrap;
}

.user-table th:nth-child(8),
.user-table td:nth-child(8),
.user-table th:nth-child(9),
.user-table td:nth-child(9) {
  width: 118px;
  white-space: nowrap;
}

.user-table th:nth-child(10),
.user-table td:nth-child(10) {
  width: 78px;
  text-align: center;
}

.merchant-table {
  min-width: 1084px;
}

.merchant-table th:nth-child(1),
.merchant-table td:nth-child(1) {
  width: 44px;
  padding-inline: 8px;
  text-align: center;
}

.merchant-table tbody tr:has(.merchant-row-check:checked) td {
  background: #f2fbf4;
}

.merchant-table th:nth-child(2),
.merchant-table td:nth-child(2) {
  width: 26%;
}

.merchant-table th:nth-child(3),
.merchant-table td:nth-child(3) {
  width: 14%;
}

.merchant-table th:nth-child(4),
.merchant-table td:nth-child(4) {
  width: 12%;
}

.merchant-table th:nth-child(5),
.merchant-table td:nth-child(5) {
  width: 132px;
}

.merchant-table th:nth-child(6),
.merchant-table td:nth-child(6) {
  width: 16%;
}

.merchant-table th:nth-child(7),
.merchant-table td:nth-child(7) {
  width: 86px;
}

.merchant-table th:nth-child(8),
.merchant-table td:nth-child(8) {
  width: 118px;
}

.merchant-table th:nth-child(9),
.merchant-table td:nth-child(9) {
  width: 78px;
  text-align: center;
}

.product-table {
  min-width: 840px;
}

.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  width: 38%;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 112px;
}

.product-table th:nth-child(3),
.product-table td:nth-child(3) {
  width: 82px;
}

.product-table th:nth-child(4),
.product-table td:nth-child(4) {
  width: 92px;
}

.product-table th:nth-child(5),
.product-table td:nth-child(5) {
  width: 86px;
}

.product-table th:nth-child(6),
.product-table td:nth-child(6) {
  width: 78px;
  text-align: center;
}

.admin-product-table {
  min-width: 920px;
}

.admin-product-table th:nth-child(1),
.admin-product-table td:nth-child(1) {
  width: 32%;
}

.admin-product-table th:nth-child(2),
.admin-product-table td:nth-child(2) {
  width: 20%;
}

.admin-product-table th:nth-child(3),
.admin-product-table td:nth-child(3) {
  width: 112px;
}

.admin-product-table th:nth-child(4),
.admin-product-table td:nth-child(4),
.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5) {
  width: 82px;
}

.admin-product-table th:nth-child(6),
.admin-product-table td:nth-child(6) {
  width: 86px;
}

.admin-product-table th:nth-child(7),
.admin-product-table td:nth-child(7) {
  width: 78px;
  text-align: center;
}

.admin-order-table {
  min-width: 940px;
}

.admin-order-table th:nth-child(1),
.admin-order-table td:nth-child(1) {
  width: 28%;
}

.admin-order-table th:nth-child(2),
.admin-order-table td:nth-child(2),
.admin-order-table th:nth-child(3),
.admin-order-table td:nth-child(3) {
  width: 17%;
}

.admin-order-table th:nth-child(4),
.admin-order-table td:nth-child(4) {
  width: 112px;
}

.admin-order-table th:nth-child(5),
.admin-order-table td:nth-child(5) {
  width: 94px;
}

.admin-order-table th:nth-child(6),
.admin-order-table td:nth-child(6) {
  width: 118px;
}

.admin-order-table th:nth-child(7),
.admin-order-table td:nth-child(7) {
  width: 78px;
  text-align: center;
}

.merchant-order-table {
  min-width: 840px;
}

.merchant-order-table th:nth-child(1),
.merchant-order-table td:nth-child(1) {
  width: 32%;
}

.merchant-order-table th:nth-child(2),
.merchant-order-table td:nth-child(2) {
  width: 24%;
}

.merchant-order-table th:nth-child(3),
.merchant-order-table td:nth-child(3) {
  width: 112px;
}

.merchant-order-table th:nth-child(4),
.merchant-order-table td:nth-child(4) {
  width: 94px;
}

.merchant-order-table th:nth-child(5),
.merchant-order-table td:nth-child(5) {
  width: 118px;
}

.merchant-order-table th:nth-child(6),
.merchant-order-table td:nth-child(6) {
  width: 78px;
  text-align: center;
}

.log-table {
  min-width: 1040px;
}

.log-table th:nth-child(1),
.log-table td:nth-child(1) {
  width: 118px;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
  width: 14%;
}

.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  width: 136px;
}

.log-table th:nth-child(4),
.log-table td:nth-child(4) {
  width: 15%;
}

.log-table th:nth-child(5),
.log-table td:nth-child(5) {
  width: 28%;
}

.log-table th:nth-child(6),
.log-table td:nth-child(6) {
  width: 22%;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2),
.product-table th:nth-child(3),
.product-table td:nth-child(3),
.product-table th:nth-child(4),
.product-table td:nth-child(4),
.product-table th:nth-child(5),
.product-table td:nth-child(5),
.admin-product-table th:nth-child(3),
.admin-product-table td:nth-child(3),
.admin-product-table th:nth-child(4),
.admin-product-table td:nth-child(4),
.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5),
.admin-product-table th:nth-child(6),
.admin-product-table td:nth-child(6),
.admin-order-table th:nth-child(4),
.admin-order-table td:nth-child(4),
.admin-order-table th:nth-child(5),
.admin-order-table td:nth-child(5),
.merchant-order-table th:nth-child(3),
.merchant-order-table td:nth-child(3),
.merchant-order-table th:nth-child(4),
.merchant-order-table td:nth-child(4),
.merchant-table th:nth-child(7),
.merchant-table td:nth-child(7),
.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  text-align: center;
}

.table-text,
.table-time,
.id-text,
.user-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-name {
  color: var(--text);
  font-size: 14px;
}

.id-text {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.table-time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.table-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-stack strong,
.table-stack span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-stack strong {
  color: var(--text);
  font-size: 14px;
}

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

.product-cell,
.order-cell {
  display: grid;
  gap: 6px;
}

.product-cell {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.product-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-id-badge {
  display: inline-flex;
  min-width: 52px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  color: #0f3d24;
  background: #eef8ef;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-cell strong,
.order-cell strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell span,
.order-cell span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-text,
.stock-text,
.source-text {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--text);
  font-weight: 650;
  line-height: 1;
}

.money-text {
  color: #14532d;
}

.source-text {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

td > .money-text,
td > .stock-text,
td > .source-text {
  max-width: 100%;
}

.actions-cell {
  text-align: right;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-table .tag,
.merchant-table .tag,
.admin-product-table .tag,
.admin-order-table .tag,
.merchant-order-table .tag,
.log-table .tag,
.product-table .tag {
  max-width: 100%;
  justify-content: center;
}

.user-table .row-actions,
.merchant-table .row-actions,
.admin-product-table .row-actions,
.admin-order-table .row-actions,
.merchant-order-table .row-actions,
.product-table .row-actions {
  flex-wrap: nowrap;
  justify-content: center;
}

.mini-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dce7df;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.user-table .mini-button,
.merchant-table .mini-button,
.admin-product-table .mini-button,
.admin-order-table .mini-button,
.merchant-order-table .mini-button,
.product-table .mini-button {
  width: 66px;
  min-height: 30px;
  padding-inline: 0;
}

.mini-button.primary {
  color: #14532d;
  border-color: #cfe4d3;
  background: #f0fdf4;
}

.mini-button.danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fef2f2;
}

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--muted);
}

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

.empty-state {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfb;
}

.empty-state::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: #9aa8a0;
  -webkit-mask: var(--icon-empty) center / contain no-repeat;
  mask: var(--icon-empty) center / contain no-repeat;
}

.order-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.order-card::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: #166534;
  -webkit-mask: var(--icon-receipt) center / contain no-repeat;
  mask: var(--icon-receipt) center / contain no-repeat;
}

.status-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-tab {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 72px;
  overflow: hidden;
  padding: 13px 54px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  --status-icon: var(--icon-receipt);
  --status-icon-bg: #eef8ef;
  --status-icon-border: #d8eadc;
  --status-icon-color: #166534;
}

.status-tab::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--status-icon-border);
  border-radius: 8px;
  background: var(--status-icon-bg);
}

.status-tab::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 21px;
  width: 16px;
  height: 16px;
  background: var(--status-icon-color);
  -webkit-mask: var(--status-icon) center / contain no-repeat;
  mask: var(--status-icon) center / contain no-repeat;
}

.status-all {
  --status-icon: var(--icon-receipt);
}

.status-pending {
  --status-icon: var(--icon-clock);
  --status-icon-bg: #fffbeb;
  --status-icon-border: #fde68a;
  --status-icon-color: #b7791f;
}

.status-paid {
  --status-icon: var(--icon-wallet);
  --status-icon-bg: #eff6ff;
  --status-icon-border: #bfdbfe;
  --status-icon-color: #2563eb;
}

.status-shipped {
  --status-icon: var(--icon-truck);
  --status-icon-bg: #eff6ff;
  --status-icon-border: #bfdbfe;
  --status-icon-color: #2563eb;
}

.status-completed {
  --status-icon: var(--icon-circle-check);
}

.status-canceled {
  --status-icon: var(--icon-circle-x);
  --status-icon-bg: #fef2f2;
  --status-icon-border: #fecaca;
  --status-icon-color: #b91c1c;
}

.status-tab span {
  color: var(--muted);
  font-size: 13px;
}

.status-tab strong {
  color: #07130b;
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.modal {
  width: min(720px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.modal.large {
  width: min(900px, calc(100vw - 28px));
}

.modal.small {
  width: min(460px, calc(100vw - 28px));
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.modal-card {
  padding: 20px;
}

.modal-card.large {
  width: 100%;
  max-width: min(900px, calc(100vw - 28px));
}

.modal-head {
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.action-picker {
  display: grid;
  gap: 10px;
}

.action-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: #9bcba8;
  background: #fbfdfb;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.08);
  outline: none;
}

.action-card strong {
  color: #07130b;
  font-size: 15px;
}

.action-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.action-card.danger {
  border-color: #fecaca;
  background: #fffafa;
}

.action-card.danger strong {
  color: var(--danger);
}

.action-card.danger:hover,
.action-card.danger:focus-visible {
  border-color: #fca5a5;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.product-upload-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.product-upload-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-upload-button {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.product-upload-button:hover {
  background: var(--primary-dark);
}

.product-upload-button:focus-within {
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.16);
}

.product-upload-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-down) center / contain no-repeat;
  mask: var(--icon-down) center / contain no-repeat;
}

.product-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.product-upload-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-preview {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

#orderDetailBody h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 12px;
  color: #07130b;
  font-size: 17px;
}

#orderDetailBody h3::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background: #166534;
  -webkit-mask: var(--icon-box) center / contain no-repeat;
  mask: var(--icon-box) center / contain no-repeat;
}

#orderDetailBody h3:nth-of-type(2)::before {
  -webkit-mask: var(--icon-clock) center / contain no-repeat;
  mask: var(--icon-clock) center / contain no-repeat;
}

.detail-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-item strong {
  overflow-wrap: anywhere;
}

.account-edit-layout {
  display: grid;
  gap: 14px;
}

.account-edit-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.account-edit-section h3 {
  margin: 0;
  color: #07130b;
  font-size: 16px;
}

.account-edit-section.danger-zone {
  border-color: #fecaca;
  background: #fffafa;
}

.delete-impact-root {
  display: grid;
  gap: 14px;
}

.delete-impact-root[hidden] {
  display: none;
}

.delete-impact {
  display: grid;
  gap: 14px;
}

.delete-impact h3 {
  margin: 4px 0 0;
  color: #07130b;
  font-size: 16px;
}

.danger-note {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--danger);
  background: #fef2f2;
}

.danger-note span {
  color: #7f1d1d;
  font-size: 13px;
}

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

.impact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.impact-row strong,
.impact-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impact-row span,
.impact-row time {
  color: var(--muted);
  font-size: 13px;
}

.delete-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.delete-scope li {
  padding: 6px 9px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff7f7;
  font-size: 13px;
}

.danger-actions {
  display: flex;
  justify-content: flex-end;
}

.ship-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ship-form .button {
  min-width: 150px;
  align-self: end;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.toast.error {
  color: var(--danger);
  border-color: #fecaca;
  background: #fef2f2;
}

.toast.success {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.user-auth-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 163, 74, 0.1), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(135deg, #f7fbf7 0%, #ffffff 48%, #f7fbff 100%);
}

.user-auth-page .auth-hero {
  position: relative;
  gap: 0;
  padding: 70px 7vw;
  border-right: 0;
  background: transparent;
  overflow: hidden;
}

.user-auth-page .auth-hero::before {
  content: "";
  position: absolute;
  inset: 64px auto auto 7vw;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: #16a34a;
}

.user-auth-page .auth-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 46px 0 16px;
  color: #111827;
  font-size: 46px;
  letter-spacing: 0;
}

.user-auth-page .auth-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #52605a;
  font-size: 16px;
}

.user-auth-page .auth-panel {
  align-items: center;
  padding: 52px 7vw 52px 44px;
}

.user-auth-page .auth-card {
  width: min(500px, 100%);
  padding: 32px;
  border-color: #dce7df;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.user-register-page .auth-card.wide {
  width: min(720px, 100%);
}

.user-auth-page .auth-head h2 {
  margin-top: 4px;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
}

.user-auth-page .auth-head a,
.user-auth-page .hero-link {
  padding: 8px 12px;
  border: 1px solid #dce7df;
  border-radius: 999px;
  color: #14532d;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 700;
}

.user-auth-page .eyebrow {
  color: #16733a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.user-auth-page label {
  color: #52605a;
  font-weight: 700;
}

.user-auth-page input {
  min-height: 48px;
  border-color: #dce7df;
}

.user-auth-page .button.primary {
  min-height: 48px;
  margin-top: 2px;
  border-color: #14532d;
  background: #14532d;
  font-size: 16px;
  font-weight: 800;
}

.user-register-page .inline-form {
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f8fcf9;
}

.user-shop-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(22, 101, 52, 0.035), transparent 36%),
    linear-gradient(180deg, #f7faf7 0%, #ffffff 52%, #f8faf8 100%);
}

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

.user-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-brand .brand-mark {
  width: 50px;
  height: 50px;
  padding: 4px;
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 50%;
  background: #fffdf4;
}

.user-brand span {
  display: grid;
  gap: 3px;
}

.user-brand strong {
  color: #102417;
  font-size: 17px;
  line-height: 1.1;
}

.user-brand span span {
  color: #66756e;
  font-size: 12px;
  font-weight: 600;
}

.user-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.user-nav a {
  min-width: 74px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #52605a;
  font-weight: 700;
  text-align: center;
}

.user-nav a:hover,
.user-nav a:focus-visible,
.user-nav a.active {
  border-color: #b9dec1;
  color: #0f3d24;
  background: #f0fbf2;
  outline: none;
}

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

.user-name-chip {
  display: inline-flex;
  min-height: 34px;
  max-width: 150px;
  align-items: center;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid #dce7df;
  border-radius: 999px;
  color: #14532d;
  background: #f8fcf9;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 24px 40px;
}

.user-hero {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(223, 231, 223, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.96));
  box-shadow: var(--shadow);
}

.user-hero h1 {
  margin: 4px 0 8px;
  color: #07130b;
  font-size: 36px;
  line-height: 1.12;
}

.user-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.user-filter-bar {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
}

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

.user-product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.user-product-media {
  display: block;
  color: inherit;
}

.user-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f7f1;
}

.user-product-image-empty {
  position: relative;
  display: grid;
  place-items: center;
}

.user-product-image-empty::before {
  content: "";
  width: 42px;
  height: 42px;
  background: #8aa294;
  -webkit-mask: var(--icon-box) center / contain no-repeat;
  mask: var(--icon-box) center / contain no-repeat;
}

.user-product-content {
  display: grid;
  gap: 14px;
  padding: 15px;
}

.user-product-content h3 {
  margin: 10px 0 7px;
  color: #07130b;
  font-size: 18px;
  line-height: 1.3;
}

.user-product-content p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.user-product-meta,
.user-order-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.user-product-meta strong,
.user-order-card-meta strong {
  color: #14532d;
  font-size: 20px;
}

.user-product-meta span,
.user-order-card-meta span {
  color: var(--muted);
  font-size: 13px;
}

.user-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.user-detail-media,
.user-detail-info {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-detail-media .large {
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
}

.user-detail-info {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.user-detail-info h1 {
  margin: 0;
  color: #07130b;
  font-size: 34px;
  line-height: 1.18;
}

.user-detail-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.user-detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
}

.user-detail-meta strong {
  color: #14532d;
  font-size: 30px;
}

.user-detail-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfdfb;
  font-size: 13px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.user-address-list,
.user-order-list,
.user-order-items,
.user-status-logs {
  display: grid;
  gap: 12px;
}

.user-address-card,
.user-order-card,
.user-order-item,
.user-status-log {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.user-address-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.user-address-title,
.user-order-card-main {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.user-address-title strong,
.user-order-card-main strong,
.user-order-item strong {
  color: #07130b;
}

.user-address-title span,
.user-address-card p,
.user-order-card-main span,
.user-order-item span,
.user-status-log span {
  color: var(--muted);
  line-height: 1.55;
}

.user-address-card p {
  margin: 4px 0 0;
}

.user-order-card-main {
  justify-content: space-between;
}

.user-order-card-main > div {
  display: grid;
  gap: 5px;
}

.user-order-card-main strong {
  font-size: 16px;
}

.user-order-card .row-actions {
  justify-content: flex-start;
}

.user-order-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.user-section-title {
  margin: 20px 0 12px;
  color: #07130b;
  font-size: 18px;
}

.user-status-log {
  grid-template-columns: 160px minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
}

.user-order-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .entry-brand,
  .entry-card,
  .entry-card-arrow {
    transition: none;
  }

  .entry-brand:hover,
  .entry-brand:focus-visible,
  .entry-card:hover,
  .entry-card:focus-visible,
  .entry-card:hover .entry-card-arrow,
  .entry-card:focus-visible .entry-card-arrow {
    transform: none;
  }
}

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

  .merchant-login-shell {
    grid-template-columns: 1fr;
  }

  .merchant-register-shell,
  .admin-login-shell {
    grid-template-columns: 1fr;
  }

  .merchant-auth-page .auth-hero,
  .merchant-login-page .auth-hero {
    padding: 44px 34px 30px;
  }

  .merchant-auth-page .auth-hero::before,
  .merchant-login-page .auth-hero::before {
    inset: 34px auto auto 34px;
  }

  .merchant-login-brand {
    margin-top: 22px;
  }

  .merchant-auth-page .auth-panel,
  .merchant-login-page .auth-panel {
    padding: 18px 34px 44px;
  }

  .merchant-auth-page .auth-card,
  .merchant-login-page .auth-card {
    width: min(560px, 100%);
  }

  .merchant-register-page .auth-card.wide {
    width: min(820px, 100%);
  }

  .auth-hero {
    min-height: auto;
    padding: 34px;
  }

  .auth-hero h1 {
    font-size: 32px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 12px;
    height: auto;
    align-self: stretch;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
  }

  .sidebar-brand {
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 0;
    text-align: left;
  }

  .sidebar-brand .brand-mark {
    width: 44px;
    height: 44px;
  }

  .sidebar-brand span {
    max-width: none;
  }

  .side-nav {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    width: auto;
    min-width: max-content;
    padding-right: 14px;
  }

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

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

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .auth-panel,
  .main {
    padding: 16px;
    min-width: 0;
  }

  .merchant-auth-page .auth-hero,
  .merchant-login-page .auth-hero {
    padding: 28px 18px 22px;
    border-bottom: 0;
  }

  .merchant-auth-page .auth-hero::before,
  .merchant-login-page .auth-hero::before {
    display: none;
  }

  .merchant-login-brand {
    gap: 12px;
    margin-top: 0;
  }

  .merchant-login-logo {
    width: 70px;
    height: 70px;
    box-shadow:
      0 14px 28px rgba(22, 101, 52, 0.1),
      inset 0 0 0 7px rgba(250, 250, 245, 0.9);
  }

  .merchant-login-logo .brand-mark {
    width: 56px;
    height: 56px;
  }

  .merchant-login-brand strong {
    font-size: 18px;
  }

  .merchant-auth-page .auth-hero h1,
  .merchant-login-page .auth-hero h1 {
    margin: 24px 0 10px;
    font-size: 32px;
  }

  .merchant-auth-page .auth-hero p,
  .merchant-login-page .auth-hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .merchant-auth-page .hero-stats,
  .merchant-login-page .hero-stats {
    gap: 8px;
    margin-top: 18px;
  }

  .merchant-auth-page .hero-stats span,
  .merchant-login-page .hero-stats span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .merchant-auth-page .auth-panel,
  .merchant-login-page .auth-panel {
    padding: 10px 16px 24px;
  }

  .merchant-auth-page .auth-card,
  .merchant-login-page .auth-card {
    padding: 20px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
  }

  .merchant-auth-page .auth-head,
  .merchant-login-page .auth-head {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
  }

  .merchant-auth-page .auth-head h2,
  .merchant-login-page .auth-head h2 {
    font-size: 25px;
  }

  .merchant-register-page .inline-form,
  .admin-login-page #adminInitForm {
    padding: 14px;
  }

  .merchant-register-page .form-grid {
    gap: 14px;
  }

  .auth-card,
  .panel,
  .metric-card {
    padding: 16px;
  }

  .metric-card {
    padding: 16px 68px 16px 16px;
  }

  .topbar,
  .panel-head,
  .auth-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .top-actions,
  .account-actions {
    width: 100%;
    justify-content: space-between;
  }

  .side-nav,
  .metric-grid,
  .form-grid,
  .inline-form,
  .filter-bar,
  .filter-bar.compact,
  .ship-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 14px;
  }

  .auth-hero {
    gap: 12px;
    padding: 26px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-hero h1 {
    margin: 14px 0 8px;
    font-size: 28px;
  }

  .auth-hero p {
    line-height: 1.65;
  }

  .hero-stats {
    margin-top: 18px;
  }

  .auth-card {
    width: 100%;
    border-radius: 8px;
  }

  .auth-card.wide {
    width: 100%;
  }

  .button,
  .filter-bar.compact .button {
    width: 100%;
  }

  .filter-bar.compact {
    display: grid;
    align-items: stretch;
  }

  .filter-bar.compact label {
    width: 100%;
  }

  .table-wrap {
    margin: 0 -2px;
    border-radius: 8px;
    max-width: calc(100vw - 28px);
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 8px 10px;
  }

  .pager {
    justify-content: stretch;
  }

  .pager .button {
    flex: 1 1 0;
  }

  .pager span {
    display: grid;
    min-width: 96px;
    place-items: center;
    text-align: center;
  }

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

  .modal,
  .modal.large,
  .modal.small {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .modal-card,
  .modal-card.large {
    width: 100%;
    padding: 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .ship-form .button {
    width: 100%;
    min-width: 0;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .entry-shell {
    min-height: calc(100vh - 56px);
    padding: 24px 16px 30px;
    place-items: start stretch;
  }

  .entry-hero {
    padding-top: 0;
  }

  .entry-brand {
    padding: 0;
  }

  .entry-logo-frame {
    width: 96px;
    height: 96px;
    box-shadow:
      0 13px 28px rgba(22, 101, 52, 0.1),
      inset 0 0 0 7px rgba(250, 250, 245, 0.9);
  }

  .entry-logo-frame .brand-mark {
    width: 82px;
    height: 82px;
  }

  .entry-brand-text strong {
    font-size: 27px;
  }

  .entry-hero h1 {
    font-size: 34px;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 14px 16px 18px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .entry-shell {
    min-height: auto;
    padding-top: 28px;
  }

  .entry-hero {
    gap: 22px;
    padding-top: 0;
  }

  .entry-hero h1 {
    font-size: 32px;
  }

  .entry-card {
    min-height: 112px;
    padding: 16px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .entry-brand {
    gap: 9px;
  }

  .entry-logo-frame {
    width: 86px;
    height: 86px;
    box-shadow:
      0 12px 24px rgba(22, 101, 52, 0.1),
      inset 0 0 0 6px rgba(250, 250, 245, 0.9);
  }

  .entry-logo-frame::before {
    inset: -8px;
  }

  .entry-logo-frame .brand-mark {
    width: 74px;
    height: 74px;
  }

  .entry-brand-text strong {
    font-size: 25px;
  }

  .entry-brand-text span {
    font-size: 12px;
  }

  .entry-card-arrow,
  .entry-badge {
    grid-column: 2;
    justify-self: start;
  }

  .auth-shell,
  .register-shell {
    min-height: auto;
  }

  .auth-hero {
    padding: 20px 16px;
  }

  .auth-hero h1 {
    font-size: 24px;
  }

  .auth-panel {
    align-items: start;
    padding: 14px;
  }

  .auth-card,
  .panel,
  .metric-card {
    padding: 14px;
  }

  .metric-card {
    padding: 14px 66px 14px 14px;
  }

  .main {
    padding: 14px;
  }

  .metric-grid,
  .status-tabs {
    gap: 10px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .status-tab {
    min-height: 64px;
    padding: 10px 48px 10px 10px;
  }

  .status-tab strong {
    font-size: 21px;
  }

  .sidebar {
    padding: 10px 14px;
  }

  .side-nav {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .nav-link {
    min-height: 40px;
    padding: 9px 12px 9px 40px;
    font-size: 14px;
  }

  .nav-link::after {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .nav-link.active::before {
    top: 9px;
    bottom: 9px;
  }

  .account-card {
    right: -2px;
    width: min(270px, calc(100vw - 28px));
  }

  .product-cell {
    gap: 8px;
  }

  .product-id-badge {
    min-width: 46px;
    padding-inline: 6px;
  }

  .mini-button::before {
    width: 14px;
    height: 14px;
  }
}
