:root {
  --ink: #172238;
  --muted: #728098;
  --line: #e6eaf0;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --blue: #1265e6;
  --blue-dark: #0d51ba;
  --orange: #ff9f2d;
  --green: #18a775;
  --shadow: 0 18px 50px rgba(27, 39, 67, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f7fb;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid #e1e5ee;
  border-radius: 16px;
  background: white;
  box-shadow: 0 20px 60px rgba(40, 52, 84, .12);
}

.auth-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: #6578e8;
  font-size: 26px;
  font-weight: 700;
}

.auth-card p, .auth-card h1 { margin: 0; }
.auth-card p { color: #9aa3b4; font-size: 10px; letter-spacing: .16em; }
.auth-card label { display: grid; gap: 7px; color: #596377; font-size: 13px; }
.auth-card input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  font: inherit;
}
.auth-card small { color: #9aa3b4; line-height: 1.6; }
.auth-message { min-height: 18px; color: #cf4f4f; font-size: 12px; }
.admin-user-actions { display: flex; align-items: center; gap: 8px; }
.admin-user-actions span { color: #6d778a; font-size: 12px; }
.account-page {
  min-height: calc(100vh - 72px);
  background: #f7f8fb;
}
.account-page-tabs {
  display: flex;
  gap: 8px;
  margin: 0 32px 22px;
  padding: 6px;
  border: 1px solid #e2e6ed;
  border-radius: 11px;
  background: white;
}
.account-page-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #778195;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.account-page-tabs button.active {
  color: #586ce3;
  background: #eef1ff;
  font-weight: 600;
}
.account-page-content {
  width: min(1120px, calc(100% - 64px));
  display: grid;
  gap: 18px;
  margin: 0 auto 50px;
}
.account-page-content.narrow { width: min(620px, calc(100% - 64px)); }
.account-action-card {
  padding: 20px;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  background: #fff;
}
.account-action-card h3, .account-action-card p { margin: 0; }
.account-action-card p { color: #8a94a7; font-size: 12px; }
.account-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.account-section-heading h3 { margin-bottom: 4px; font-size: 16px; }
.account-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #5267df;
  background: #eef1ff;
  font-weight: 700;
}
.account-section-icon.invite { color: #9c6c18; background: #fff5dd; }
.account-section-icon.customer { color: #16845f; background: #e7f8f1; }
.account-field { display: grid; gap: 7px; margin-bottom: 10px; }
.account-field span { color: #626c80; font-size: 12px; font-weight: 600; }
.account-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  font: inherit;
}
.account-field select,
.staff-edit-grid select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  background: white;
  font: inherit;
}
.add-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.account-inline-status {
  min-height: 18px;
  margin-top: 6px;
  color: #6d7688;
  font-size: 12px;
}
.account-inline-status.success { color: #14865f; }
.account-inline-status.error { color: #c03333; }
.account-full-button { width: 100%; margin-top: 8px; }
.account-divider { height: 1px; margin: 18px 0; background: #e9ecf2; }
.generated-result { margin-top: 12px; color: #45506a; line-height: 1.8; }
.invitation-list { display: grid; gap: 7px; margin-top: 14px; }
.invitation-row,
.new-invitation-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f6f7fb;
}
.invitation-row > div,
.new-invitation-result > div { display: grid; gap: 2px; }
.new-invitation-result { border: 1px solid #d9dfff; background: #f5f6ff; }
.new-invitation-result span { color: #8a94a7; font-size: 10px; }
.invitation-status { color: #16845f; font-size: 10px; }
.invitation-status.used { color: #9aa2b1; }
.copy-code-button {
  min-width: 68px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ccd4ff;
  border-radius: 7px;
  color: #5368df;
  background: white;
  cursor: pointer;
}
.copy-code-button:disabled { color: #a4a9b4; border-color: #e0e3e9; cursor: not-allowed; }
.collector-key-actions { display: flex; gap: 8px; }
.collector-key-actions .button { flex: 1; }
.customer-new-password {
  height: 40px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  font: inherit;
}
.customer-management-list,
.staff-management-list { display: grid; gap: 9px; }
.customer-management-row {
  padding: 16px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fafbfc;
}
.staff-management-row {
  padding: 16px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fafbfc;
}
.staff-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 1fr;
  gap: 8px;
  margin-top: 14px;
}
.staff-edit-grid input {
  height: 42px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  font: inherit;
}
.superadmin-lock {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #8b6a25;
  background: #fff6df;
  font-size: 12px;
}
.customer-card-header { display: flex; align-items: center; gap: 11px; }
.customer-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #6578e8;
  font-weight: 700;
}
.customer-details { display: grid; gap: 3px; }
.customer-details span { color: #626d82; font-size: 12px; }
.customer-details small, .customer-card-footer small { color: #98a1b1; font-size: 10px; }
.customer-password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.customer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e8ebf1;
}
.customer-delete-button {
  border: 0;
  color: #d34848;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .staff-edit-grid { grid-template-columns: 1fr 1fr; }
  .account-page-tabs { overflow-x: auto; }
  .account-page-tabs button { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .account-page-tabs { margin-inline: 16px; }
  .account-page-content,
  .account-page-content.narrow { width: calc(100% - 32px); }
  .customer-password-row { grid-template-columns: 1fr; }
  .new-invitation-result { align-items: stretch; flex-direction: column; }
  .add-user-grid, .staff-edit-grid { grid-template-columns: 1fr; }
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 22px;
  color: #d9e4f8;
  background:
    radial-gradient(circle at 15% 5%, rgba(35, 110, 230, 0.26), transparent 30%),
    #101b30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 28px;
  color: white;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(18, 101, 230, 0.42);
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  color: #9babc5;
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.nav-icon {
  width: 19px;
  font-size: 19px;
  text-align: center;
}

.storage-card {
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.storage-icon {
  margin-bottom: 8px;
  color: #6ca5ff;
  font-size: 24px;
}

.storage-card strong {
  color: white;
  font-size: 13px;
}

.storage-card p,
.storage-card small {
  color: #8596b2;
  font-size: 11px;
  line-height: 1.55;
}

.storage-meter {
  height: 4px;
  margin: 13px 0 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #27364e;
}

.storage-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #3c82ef;
  transition: width 0.3s ease;
}

.sidebar-footer {
  padding: 22px 5px 0;
  color: #71819b;
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #37c992;
}

.main {
  min-width: 0;
  padding: 38px clamp(28px, 5vw, 72px) 70px;
}

.topbar,
.toolbar,
.editor-heading,
.form-actions,
.split-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 7px;
  color: #9aa5b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(18, 101, 230, 0.2);
}

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

.button.ghost {
  color: #5d6980;
  border-color: var(--line);
  background: white;
}

.button.danger {
  color: #d34848;
  background: #fff1f1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 35px 0 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}

.accent-blue { --accent: var(--blue); }
.accent-orange { --accent: var(--orange); }
.accent-green { --accent: var(--green); }

.stat-label {
  display: flex;
  justify-content: space-between;
  color: #68758b;
  font-size: 12px;
  font-weight: 600;
}

.stat-label span {
  color: var(--accent);
}

.stat-card strong {
  display: block;
  margin: 10px 0 1px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.stat-card small {
  color: #a2abba;
  font-size: 10px;
}

.workspace {
  min-height: 400px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.toolbar {
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  width: min(390px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search-box span {
  color: #9ba7b8;
  font-size: 21px;
}

.search-box input,
.field input,
.field textarea {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.search-box input {
  height: 41px;
  font-size: 12px;
}

select {
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: #68758b;
  background: white;
  font-size: 12px;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd8ea;
  box-shadow: var(--shadow);
}

.product-image {
  height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f7f9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.image-placeholder {
  color: #c3cad5;
  font-size: 38px;
}

.product-body {
  padding: 15px;
}

.product-sku {
  color: #9ba5b4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.product-body h3 {
  height: 42px;
  margin: 7px 0 12px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 18px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 5px;
}

.icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #66748a;
  background: white;
}

.icon-button:hover {
  color: var(--blue);
  border-color: #b8cef1;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-illustration {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #7fa9e7;
  background: #eaf2ff;
  font-size: 31px;
}

.empty-state h2 {
  margin-bottom: 7px;
  font-size: 18px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 32, 0.58);
  backdrop-filter: blur(5px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 31px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 30px 90px rgba(8, 16, 30, 0.3);
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  color: #8490a3;
  background: transparent;
  font-size: 24px;
}

.modal h2 {
  margin-bottom: 9px;
  font-size: 23px;
}

.modal-intro {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field > span {
  color: #556177;
  font-size: 11px;
  font-weight: 600;
}

.field > span small {
  float: right;
  color: #98a3b4;
  font-weight: 500;
}

.field b {
  color: #e44d4d;
}

.field > input,
.field textarea,
.sku-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.field > input {
  height: 43px;
  padding: 0 12px;
}

.field textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.field > input:focus,
.field textarea:focus,
.sku-input:focus-within {
  border-color: #8eb6f2;
  box-shadow: 0 0 0 3px rgba(18, 101, 230, 0.08);
}

.sku-input {
  display: flex;
  align-items: center;
}

.sku-input span {
  padding: 0 12px;
  color: var(--blue);
  border-right: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
}

.sku-input input {
  height: 46px;
  padding: 0 12px;
}

.form-actions {
  gap: 9px;
  justify-content: flex-end;
  margin-top: 25px;
}

.editor-modal {
  width: min(860px, 100%);
}

.batch-modal {
  width: min(620px, 100%);
}

.batch-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.batch-status {
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.batch-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.batch-status-heading strong,
.batch-status-heading small,
.batch-metrics strong,
.batch-metrics small {
  display: block;
}

.batch-status-heading small,
.batch-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.batch-progress {
  height: 7px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e8f0;
}

.batch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.3s ease;
}

.batch-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.batch-metrics div {
  padding: 11px;
  border-radius: 8px;
  background: white;
  text-align: center;
}

.batch-current {
  min-height: 18px;
  margin-top: 13px;
  color: #65738a;
  font-size: 11px;
}

.editor-heading {
  margin-bottom: 23px;
}

.editor-heading h2 {
  margin-bottom: 0;
}

.local-badge {
  padding: 6px 10px;
  border-radius: 99px;
  color: #14865f;
  background: #e9f8f2;
  font-size: 10px;
  font-weight: 700;
}

.editor-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 25px;
}

.image-preview {
  height: 240px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px dashed #cbd3df;
  border-radius: 10px;
  color: #9ca7b7;
  background: #f7f8fa;
  font-size: 12px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 13px;
}

.detail-modal {
  width: min(790px, 100%);
  padding: 0;
  overflow: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 430px;
}

.detail-gallery {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #f5f6f8;
}

.detail-image {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 25px;
}

.detail-image img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  justify-content: center;
  gap: 10px;
  padding: 0 20px 22px;
}

.detail-image-stats {
  margin: -12px 0 18px;
  color: #8791a4;
  font-size: 11px;
}

.detail-thumbnail {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.detail-thumbnail.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(71, 104, 255, 0.14);
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.table-detail-trigger {
  cursor: pointer;
}

.table-title.table-detail-trigger:hover {
  color: var(--blue);
  text-decoration: underline;
}

.detail-info {
  padding: 43px 36px 32px;
}

.detail-info h2 {
  margin: 12px 0 18px;
  font-size: 24px;
  line-height: 1.35;
}

.detail-price {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 700;
}

.detail-description {
  color: #66748a;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.detail-buttons {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  padding: 11px 18px;
  border-radius: 8px;
  color: white;
  background: #18243a;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    min-height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
  }
  .brand { padding: 0; }
  .nav { display: flex; margin-left: auto; }
  .storage-card, .sidebar-footer { display: none; }
  .main { padding: 25px 18px 50px; }
  .stats { grid-template-columns: 1fr; }
  .editor-layout, .detail-layout { grid-template-columns: 1fr; }
  .detail-image img { height: 240px; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .topbar-actions .ghost { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  select { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .editor-layout { gap: 10px; }
  .split-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-actions > div { display: flex; gap: 8px; }
}

/* Screenshot-matched product list */
.app-shell {
  display: block;
  background: #fff;
}

.main {
  padding: 22px 8px 60px;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 24px 20px;
  border-bottom: 1px solid #e6eaf0;
}

.module-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #28344b;
}

.module-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: #7783ff;
  font-weight: 700;
}

.module-nav {
  display: flex;
  gap: 8px;
}

.module-nav-item {
  height: 42px;
  padding: 0 21px;
  border: 0;
  border-radius: 7px;
  color: #727b8d;
  background: transparent;
}

.module-nav-link {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 21px;
  border-radius: 7px;
  color: #6775f3;
  background: #f4f5ff;
  font-size: 13px;
  text-decoration: none;
}

.module-nav-item.active {
  color: #6574f7;
  background: #eef0ff;
  font-weight: 600;
}

.module-page {
  display: none;
}

.module-page.active {
  display: block;
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 32px 22px;
}

.module-title p {
  margin-bottom: 5px;
  color: #9aa4b5;
  font-size: 10px;
  letter-spacing: .18em;
}

.module-title h1 {
  font-size: 25px;
}

.collector-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
  padding: 10px 32px;
}

.collector-option {
  padding: 28px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: white;
}

.collector-option-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  color: #6878fa;
  background: #eef0ff;
  font-size: 22px;
}

.collector-option h2 {
  margin-bottom: 9px;
  font-size: 17px;
}

.collector-option p {
  min-height: 45px;
  color: #7d8799;
  font-size: 12px;
  line-height: 1.7;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
  gap: 15px;
  padding: 0 32px 24px;
}

.order-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px 18px;
  flex-wrap: wrap;
}

.inline-order-search {
  padding: 0;
}

.gift-order-search-inline {
  margin-left: 0;
  flex: 1 1 620px;
  justify-content: flex-start;
  gap: 12px;
  min-width: 520px;
  padding: 14px 16px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: white;
}

.b-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 32px 24px;
  flex-wrap: wrap;
}

.b-order-summary-inline {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 0;
  flex: 0 0 auto;
}

.b-order-summary-inline > div {
  min-width: 180px;
}

.b-order-search-inline {
  margin-left: 0;
  flex: 1 1 620px;
  justify-content: flex-start;
  gap: 12px;
  min-width: 520px;
  padding: 14px 16px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: white;
}

.order-search-bar input {
  width: min(520px, 100%);
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 9px;
  outline: 0;
  color: #354056;
  background: white;
}

.inline-order-search input {
  width: 100%;
  flex: 1 1 420px;
}

.order-search-bar input:focus {
  border-color: #7783ff;
  box-shadow: 0 0 0 2px rgba(119, 131, 255, .12);
}

.order-batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px 16px;
  flex-wrap: wrap;
}

.gift-order-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.order-batch-actions > span {
  margin-right: 4px;
  color: #7b8597;
  font-size: 12px;
}

.order-summary div {
  padding: 19px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: white;
}

.order-summary strong,
.order-summary small {
  display: block;
}

.order-summary strong {
  font-size: 24px;
}

.order-summary small {
  margin-top: 3px;
  color: #8f99aa;
}

.order-table-wrap {
  margin: 0 32px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.order-table {
  width: 100%;
  min-width: 2050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.order-checkbox-cell {
  width: 52px;
  min-width: 52px;
}

.order-checkbox-cell input {
  width: 16px;
  height: 16px;
  accent-color: #7783ff;
}

.order-table th,
.order-table td {
  padding: 15px;
  border-bottom: 1px solid #e8ebf0;
  text-align: center;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.order-table-wrap::-webkit-scrollbar {
  height: 12px;
}

.order-table-wrap::-webkit-scrollbar-track {
  background: #f1f3f7;
}

.order-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #f1f3f7;
  border-radius: 999px;
  background: #aeb7c8;
}

.order-table th {
  color: #576176;
  background: #f7f8fa;
}

.order-table td img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.order-product-title {
  width: 220px;
  min-width: 220px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: left !important;
  white-space: normal !important;
}

.b-order-image-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.b-order-image-button:hover {
  box-shadow: 0 0 0 2px rgba(71, 104, 255, 0.2);
}

.b-order-image-modal {
  width: min(860px, 100%);
  text-align: center;
}

.b-order-large-image {
  display: grid;
  min-height: 420px;
  max-height: 70vh;
  place-items: center;
  overflow: hidden;
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: #f6f7f9;
}

.b-order-large-image img {
  width: 100%;
  max-height: calc(70vh - 36px);
  object-fit: contain;
}

.b-order-image-number {
  margin: 14px 0 0;
  color: #778297;
  font-size: 13px;
}

.order-address {
  width: 240px;
  min-width: 240px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: left !important;
  white-space: normal !important;
}

.order-input-cell {
  width: 170px;
  min-width: 170px;
}

.amazon-order-cell {
  width: 240px;
  min-width: 240px;
}

.order-edit-field {
  display: grid;
  gap: 8px;
}

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

.order-edit-field.locked .order-field-edit-trigger {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.order-edit-field.locked:hover .order-field-edit-trigger,
.order-edit-field.locked:focus-within .order-field-edit-trigger {
  opacity: 1;
  pointer-events: auto;
}

.order-edit-field.editing .order-field-edit-trigger,
.order-edit-field.editing .order-field-save-trigger,
.order-edit-field.editing .order-field-cancel-trigger[hidden],
.order-edit-field.editing .order-field-confirm-trigger[hidden] {
  display: none;
}

.order-edit-field.editing .order-field-confirm-trigger,
.order-edit-field.editing .order-field-cancel-trigger {
  display: inline-flex !important;
}

.amazon-order-input,
.order-inline-input {
  width: 100%;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccd5e2;
  border-radius: 8px;
  outline: 0;
  color: #354056;
  background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.order-edit-field.locked input {
  color: #556077;
  background: #f7f9fc;
  cursor: default;
}

.order-edit-field.saving input {
  opacity: .7;
}

.amazon-order-input:focus,
.order-inline-input:focus {
  border-color: #7783ff;
  box-shadow: 0 0 0 2px rgba(119, 131, 255, .12);
  background: white;
}

.order-channel-input {
  min-width: 120px;
}

.amazon-order-input::placeholder,
.order-inline-input::placeholder {
  color: #9aa4b5;
}

.order-status-cell {
  min-width: 100px;
}

.order-status-cell span {
  display: block;
  width: max-content;
  margin: 3px auto;
}

.payment-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.payment-status.unpaid {
  color: #b66a12;
  background: #fff4dd;
}

.payment-status.paid {
  color: #078a50;
  background: #e6f8ef;
}

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

.b-order-admin-table th:nth-child(1),
.b-order-admin-table td:nth-child(1) { width: 180px; }
.b-order-admin-table th:nth-child(2),
.b-order-admin-table td:nth-child(2) { width: 150px; }
.b-order-admin-table th:nth-child(3),
.b-order-admin-table td:nth-child(3) { width: 180px; }
.b-order-admin-table th:nth-child(4),
.b-order-admin-table td:nth-child(4) { width: 120px; }
.b-order-admin-table th:nth-child(5),
.b-order-admin-table td:nth-child(5) { width: 320px; }
.b-order-admin-table th:nth-child(6),
.b-order-admin-table td:nth-child(6) { width: 90px; }
.b-order-admin-table th:nth-child(7),
.b-order-admin-table td:nth-child(7) { width: 150px; }
.b-order-admin-table th:nth-child(8),
.b-order-admin-table td:nth-child(8) { width: 160px; }
.b-order-admin-table th:nth-child(9),
.b-order-admin-table td:nth-child(9) { width: 150px; }

.b-order-mskus {
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: left !important;
  white-space: normal !important;
}

.table-action-button {
  min-width: 120px;
  padding: 9px 14px;
  border: 1px solid #cfd7ff;
  border-radius: 8px;
  color: #6578e8;
  background: #f5f7ff;
  font: inherit;
  cursor: pointer;
}

.table-action-button:hover:not(:disabled) {
  border-color: #8796ef;
  background: #edf0ff;
}

.table-action-button:disabled {
  color: #a2a8bd;
  background: #f3f4f7;
  cursor: not-allowed;
}

.b-order-reviews-modal {
  width: min(860px, 100%);
}

.review-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.review-modal-toolbar span {
  color: #788398;
  font-size: 13px;
}

.b-order-review-list {
  display: grid;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}

.b-order-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fbfcfe;
}

.b-order-review-item strong {
  display: block;
  margin-bottom: 8px;
  color: #354056;
}

.b-order-review-item p {
  margin: 0;
  color: #5f6a7d;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.export-orders-modal {
  width: min(760px, 100%);
}

.export-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.export-field-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  color: #46536a;
  background: #fbfcfe;
  font-size: 13px;
}

.export-field-option input {
  width: 16px;
  height: 16px;
  accent-color: #6878fa;
}

.empty-inline {
  margin: 0;
  padding: 18px;
  color: #7d8799;
  text-align: center;
}

.order-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 99px;
}

.order-status.pending {
  color: #d9901a;
  background: #fff6df;
}

.order-status.completed {
  color: #159567;
  background: #e8f8f1;
}

.orders-empty {
  padding: 70px 20px;
  color: #8e98a9;
  text-align: center;
}

.list-page {
  min-width: 1120px;
}

.sku-search-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 0 122px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.sku-search-bar label {
  color: #50596b;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.sku-search-bar textarea {
  width: 570px;
  height: 52px;
  padding: 14px 18px;
  resize: none;
  border: 1px solid #cfd4de;
  border-radius: 6px;
  outline: none;
  color: #515968;
  background: white;
  line-height: 22px;
}

.sku-search-bar textarea:focus {
  border-color: #7783ff;
  box-shadow: 0 0 0 2px rgba(119, 131, 255, .1);
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 10px 0;
}

.list-button {
  height: 48px;
  padding: 0 27px;
  border: 1px solid;
  border-radius: 5px;
  background: white;
  font-size: 14px;
}

.list-button.search { color: white; border-color: #7783ff; background: #7783ff; }
.list-button.reset { color: #616978; border-color: #d7dbe3; }
.list-button.add { color: #6978ff; border-color: #cbd0ff; background: #f4f5ff; }
.list-button.modify { color: #49c98c; border-color: #bfeeda; background: #eafbf3; }
.list-button.delete { color: #ff7272; border-color: #ffd0d0; background: #fff1f1; }
.list-button.export { color: #eaa91f; border-color: #f5d681; background: #fff9e9; }
.list-button.import { color: #8b929f; border-color: #d3d6dc; background: #f7f7f8; }
.list-button.share { color: #a4adff; border-color: #dce0ff; background: #f4f5ff; }

.selection-count {
  margin-left: 0;
  padding-right: 20px;
  color: #9199aa;
  font-size: 12px;
}

.product-total-count {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #cdd8ff;
  border-radius: 8px;
  color: #3158d6;
  background: #f2f5ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.product-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #60656f;
}

.product-table th {
  height: 74px;
  padding: 0 16px;
  border-bottom: 1px solid #dde3ec;
  color: #4b566b;
  background: #f7f8fa;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.product-table td {
  height: 150px;
  padding: 18px 16px;
  border-bottom: 1px solid #dde3ec;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}

.product-table tbody tr:nth-child(odd) {
  background: #f7f8fa;
}

.product-table tbody tr.selected-row {
  background: #f0f3ff;
}

.product-table th:nth-child(1), .product-table td:nth-child(1) { width: 55px; }
.product-table th:nth-child(2), .product-table td:nth-child(2) { width: 120px; }
.product-table th:nth-child(3), .product-table td:nth-child(3) { width: 240px; }
.product-table th:nth-child(4), .product-table td:nth-child(4) {
  width: 170px;
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
}
.product-table th:nth-child(5), .product-table td:nth-child(5) { width: 125px; }
.product-table th:nth-child(6), .product-table td:nth-child(6) { width: 140px; }
.product-table th:nth-child(7), .product-table td:nth-child(7) { width: 135px; }
.product-table th:nth-child(8), .product-table td:nth-child(8) { width: 145px; }
.product-table th:nth-child(9), .product-table td:nth-child(9) { width: 150px; }
.product-table th:nth-child(10), .product-table td:nth-child(10) { width: 185px; }
.product-table th:nth-child(11), .product-table td:nth-child(11) { width: 150px; }

.checkbox-cell input,
.row-select {
  width: 16px;
  height: 16px;
  accent-color: #7783ff;
}

.table-image {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: white;
}

.table-title,
.table-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-align: left;
}

.table-title { -webkit-line-clamp: 2; }
.table-sku {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #46536a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-msku { color: #536078; font-weight: 600; }
.table-note { -webkit-line-clamp: 2; }

.source-tag,
.stock-tag {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid #bcefd7;
  border-radius: 5px;
  color: #05ba5d;
  background: #e9fbf2;
}

.table-action {
  border: 0;
  color: #7181ff;
  background: transparent;
  font-size: 13px;
}

.share-link-row {
  display: flex;
  gap: 10px;
}

.share-link-row input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-modal { width: min(650px, 100%); }

.order-editor-modal {
  width: min(620px, 100%);
}

.delete-action {
  color: #d34848;
}
.share-preview-link { display: inline-grid; place-items: center; text-decoration: none; }

@media (max-width: 900px) {
  .main { overflow-x: auto; }
  .sku-search-bar { padding-left: 20px; }
}
