:root {
  --teal: #009995;
  --teal-dark: #008480;
  --ink: #171719;
  --muted: #88888b;
  --line: #e5e5e7;
  --bg: #f5f5f5;
  --sidebar: 220px;
  --header: 60px;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: var(--teal);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
input,
select,
textarea {
  color: var(--ink);
  background: white;
  border: 1px solid #d6d6d9;
  border-radius: 4px;
  min-height: 34px;
  padding: 8px 12px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #b1b1b5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 2px #0099950f;
}
input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 0;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 14px;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.text-teal {
  color: var(--teal-dark);
}
.text-red {
  color: #df4a4f;
}
.text-right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
.boot {
  padding: 20vh 24px;
  text-align: center;
  color: var(--muted);
}
.topbar {
  height: var(--header);
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  gap: 16px;
  white-space: nowrap;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 0.95;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand-mark img {
  height: 33px;
  width: 28px;
}
.brand-mark b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.7px;
}
.brand-mark span {
  font-size: 15px;
  font-weight: 400;
}
.brand-divider {
  height: 16px;
  background: #6a6a6a;
  width: 1px;
}
.merchant-title {
  font-size: 20px;
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-action {
  background: none;
  border: 0;
  color: white;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
}
.header-separator {
  height: 18px;
  width: 1px;
  background: #777;
}
.notification-dot {
  position: absolute;
  right: -4px;
  top: 0;
  background: #ef4747;
  border: 1px solid white;
  border-radius: 50%;
  font-size: 10px;
  padding: 1px 4px;
}
.account-button {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 24px;
  background: #303030;
  color: white;
  gap: 8px;
  padding: 3px 14px 3px 3px;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d0d0d0;
  background: #fafafa;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: #727272;
  font-family: Georgia, serif;
}
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header);
  bottom: 0;
  width: var(--sidebar);
  background: #fff;
  overflow-y: auto;
  padding: 16px 8px 30px;
  z-index: 35;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.nav-group {
  padding: 9px 0;
  border-top: 1px solid #d9d9dc;
}
.nav-group:first-child {
  padding: 0 0 11px;
  border-top: 0;
}
.nav-item {
  color: #202124;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 9px;
  line-height: 20px;
  border-radius: 4px;
  font-size: 14px;
}
.nav-item:hover {
  background: #f5f5f5;
  color: #222;
}
.nav-item.active {
  background: #eee;
  color: #319a97;
}
.nav-item.active svg {
  fill: #00999514;
}
.nav-sub {
  color: #777;
  padding: 10px 12px 10px 32px;
  min-height: 40px;
  display: block;
  line-height: 20px;
}
.nav-sub:hover,
.nav-sub.active {
  color: var(--teal-dark);
  background: #f6fbfa;
}
.main {
  margin-left: var(--sidebar);
  padding: 24px 16px 48px;
  margin-top: var(--header);
  min-height: calc(100vh - var(--header));
  position: relative;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  min-height: 36px;
}
.page-heading .muted {
  margin: 8px 0 0;
}
.button-group,
.toolbar,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid transparent;
  background: #eeeef0;
  color: #151518;
  border-radius: 4px;
  min-height: 34px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 20px;
  white-space: nowrap;
  font-weight: 500;
}
.btn:hover {
  background: #e4e4e8;
}
.btn.primary {
  background: var(--teal);
  color: white;
}
.btn.primary:hover {
  background: var(--teal-dark);
}
.btn.outline {
  background: #fff;
  border-color: #d6d6d9;
}
.btn.outline:hover {
  border-color: #999;
}
.btn.link {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  padding: 4px 0;
  min-height: 24px;
}
.btn.danger {
  color: #dc474b;
  background: #fff3f4;
}
.btn.icon {
  padding: 6px;
  min-width: 32px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-heading h2,
.card-heading h3 {
  margin: 0;
}
.card-heading .muted {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
}
.more {
  color: #a2a2a7;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #d9d9dc;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  color: #151518;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0 15px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.tab.active {
  border-bottom-color: #309d99;
}
.tab span {
  font-weight: 400;
  color: #888;
}
.tabs.large {
  margin-bottom: 16px;
  border: 0;
  gap: 32px;
}
.tabs.large .tab {
  font-size: 16px;
}
.toolbar {
  margin-bottom: 16px;
  gap: 8px;
}
.toolbar .spacer {
  flex: 1;
}
.search-input {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 352px;
  min-width: 180px;
}
.search-input svg {
  position: absolute;
  right: 12px;
  color: #777;
  pointer-events: none;
}
.search-input input {
  width: 100%;
  padding-right: 38px;
}
.search-input input::-webkit-search-cancel-button {
  margin-right: 16px;
}
.table-wrap {
  overflow-x: auto;
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: #f5f5f5;
  font-weight: 500;
  color: #222;
  padding: 14px 12px;
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
td .muted {
  font-size: 12px;
  margin: 5px 0 0;
}
.table-empty {
  min-height: 280px;
}
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: #999;
}
.empty-state strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin-top: 14px;
}
.empty-state p {
  font-size: 13px;
  margin: 8px 0 20px;
}
.empty-art {
  position: relative;
  color: #c7cbce;
}
.empty-art::before {
  content: "";
  background: #f7f7f8;
  border-radius: 50%;
  height: 76px;
  width: 96px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 0;
}
.empty-art svg {
  position: relative;
  z-index: 1;
  opacity: 0.8;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 18px;
  color: #777;
  font-size: 12px;
}
.pagination button {
  border: 0;
  background: none;
  padding: 5px;
  color: #999;
}
.pagination .current {
  background: #e9f6f5;
  color: var(--teal);
  padding: 4px 8px;
  border-radius: 4px;
}
.pagination select {
  font-size: 12px;
  min-height: 30px;
}
.notice {
  background: #eef6ff;
  border: 1px solid #d6e8ff;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  line-height: 1.65;
  margin-bottom: 16px;
  color: #333;
}
.notice svg {
  color: #488ef0;
  margin-top: 2px;
}
.notice p {
  margin: 0;
}
.notice strong {
  display: block;
  margin-bottom: 3px;
}
.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f2;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.tag.green {
  background: #dff6e5;
  color: #419565;
}
.tag.red {
  background: #ffe8e8;
  color: #e45258;
}
.tag.blue {
  background: #e8efff;
  color: #4488e4;
}
.tag.teal {
  background: #e5f6f4;
  color: #199b95;
}
.status-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32a254;
  margin-right: 5px;
}
.status-dot.rejected::before {
  background: #ed5a57;
}
.status-dot.draft::before,
.status-dot.deactivated::before {
  background: #aaa;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.field > span {
  font-weight: 500;
}
.field small {
  font-weight: 400;
  color: #999;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  max-width: 1000px;
  margin: 0 auto;
}
.form-section .card {
  padding: 24px 32px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}
.required {
  color: #e75359;
  margin-right: 4px;
}
.product-image {
  height: 72px;
  width: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
  background: #fafafa;
}
.product-cell {
  display: flex;
  gap: 10px;
  max-width: 300px;
  min-width: 190px;
}
.product-name {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.product-cell .product-image {
  height: 44px;
  width: 44px;
}
.product-row td {
  border-bottom-style: dashed;
  padding-top: 14px;
  padding-bottom: 14px;
}
.sku-row td {
  padding: 12px 18px 12px 40px;
  color: #888;
}
.sku-row button {
  float: right;
}
.sku-detail {
  background: #fafbfb;
}
.sku-detail td {
  padding: 12px;
}
.list-count {
  font-size: 12px;
  color: #888;
}
.hero-suggestions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.suggestion {
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  line-height: 1.5;
}
.suggestion .btn {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-label {
  color: #858588;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-label svg {
  color: #aaa;
}
.stat-value {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
}
.stat-change {
  color: #888;
  margin: 5px 0 0;
  font-size: 14px;
}
.home-main {
  padding-top: 66px;
}
.home-main:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(125deg, #000 66%, #e7e7e7 66%);
  z-index: -1;
}
.home-layout {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 776px) 248px;
  gap: 16px;
}
.home-primary {
  min-width: 0;
}
.home-layout .card {
  padding: 24px;
}
.home-metrics {
  min-height: 174px;
}
.home-metrics .card-heading {
  margin-bottom: 22px;
}
.date-button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 0;
  font-weight: 500;
}
.home-metrics .stats-grid {
  gap: 18px;
  padding: 0 8px;
}
.home-metrics .stat-value {
  font-size: 25px;
}
.home-aside {
  margin-top: -16px;
}
.health-score {
  font-size: 30px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 26px 0 10px;
}
.health-score .tag {
  font-size: 14px;
  font-weight: 400;
}
.health-card p {
  font-size: 12px;
  margin: 0 0 24px;
  color: #888;
  line-height: 1.6;
}
.health-card .card-heading {
  margin: 0;
}
.health-card h2 {
  font-size: 20px;
}
.policy-card {
  margin-top: 32px;
}
.policy-row {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 20px 0;
}
.policy-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.todo-box {
  border-radius: 8px;
  background: #f8f8f8;
  padding: 8px 16px;
}
.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #222;
  min-height: 36px;
  white-space: nowrap;
}
.todo-item > span:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.todo-item svg {
  color: #888;
}
.home-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.home-product {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.home-product .product-image {
  width: 108px;
  height: 108px;
}
.home-product .product-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
}
.home-product .product-name {
  max-width: 220px;
  -webkit-line-clamp: 1;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-product .inline-actions {
  gap: 5px;
  margin: 10px 0 auto;
}
.home-product .tag {
  font-size: 11px;
  border-radius: 12px;
  white-space: nowrap;
}
.home-campaigns {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 16px;
}
.campaign-overview {
  background: #f8f8f8;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.campaign-list {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}
.campaign-mini {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.campaign-mini:last-child {
  margin-bottom: 0;
}
.campaign-cover {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  padding: 9px;
  line-height: 1.1;
}
.campaign-cover.holiday {
  background: #fc244d;
  border: 5px solid #004b36;
  outline: 1px solid #eee;
  border-radius: 7px;
  font-size: 11px;
}
.campaign-copy p {
  margin-bottom: 4px;
  line-height: 1.5;
}
.campaign-copy .muted {
  font-size: 12px;
}
.opportunities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.opportunity {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.opportunity-art {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff, #f4eeee);
}
.opportunity .product-image {
  height: 90px;
  width: 90px;
  border: 0;
}
.opportunity-body {
  padding: 10px;
  line-height: 1.5;
}
.opportunity-body p {
  margin: 0 0 6px;
}
.opportunity-body .btn {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}
.video-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 8px;
  gap: 20px;
}
.video-promo p {
  color: #888;
  font-size: 12px;
}
.video-illustration {
  color: #009995;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 108px;
  background: #f0f8f7;
  border-radius: 40%;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid .feature {
  padding: 12px 8px;
}
.feature-grid p {
  font-size: 12px;
  color: #999;
  min-height: 36px;
  line-height: 1.7;
}
.feature-grid h3 {
  margin: 14px 0 8px;
}
.floating-help {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 30;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 12px 0 0 12px;
  padding: 10px;
  box-shadow: 0 3px 18px #00999522;
}
.pending-bar {
  background: #f7f7f8;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}
.pending-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.pending-grid {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.pending-metric {
  background: none;
  border: 0;
  display: flex;
  gap: 20px;
  padding: 0;
}
.pending-metric b {
  font-size: 16px;
}
.order-search {
  min-width: 360px;
}
.order-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.order-banner .badge-3day {
  font-size: 16px;
  line-height: 1.25;
  font-weight: bold;
  color: #559ca0;
  border: 3px solid #559ca0;
  border-radius: 40% 50% 40% 40%;
  padding: 22px;
  white-space: nowrap;
  transform: rotate(-7deg);
}
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: #0006;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog {
  border: 0;
  border-radius: 8px;
  background: #fff;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 12px 48px #0003;
  outline: none;
}
.dialog-head {
  padding: 22px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-body {
  padding: 24px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
}
.dialog .error {
  color: #d63845;
  margin: 0 0 16px;
}
.dialog .btn.close {
  border: 0;
  background: none;
  padding: 0;
  color: #777;
}
.dropdown-panel {
  position: fixed;
  right: 16px;
  top: 64px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 24px #0002;
  z-index: 60;
  min-width: 240px;
  padding: 8px;
}
.dropdown-panel h3 {
  padding: 10px;
  margin: 0;
}
.dropdown-panel button,
.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 10px;
  color: #333;
  border: 0;
  background: none;
  text-align: left;
}
.dropdown-panel button:hover,
.dropdown-panel a:hover {
  background: #f5f5f5;
}
.dropdown-panel p {
  font-size: 12px;
  padding: 0 10px;
  color: #999;
  line-height: 1.6;
}
#toast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 4px 24px #0002;
  z-index: 150;
  display: none;
  max-width: 90vw;
  font-size: 14px;
  line-height: 1.6;
}
#toast.show {
  display: block;
}
.login-page {
  min-height: 100vh;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}
.login-header {
  background: #000;
  color: white;
  height: 70px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
}
.login-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  width: 440px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ececee;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 40px #00004;
}
.login-card h1 {
  font-size: 24px;
  margin-bottom: 12px;
}
.login-card p {
  color: #888;
  line-height: 1.7;
  margin-bottom: 28px;
}
.login-card .btn {
  width: 100%;
  margin-top: 8px;
}
.login-card .login-error {
  color: #d83c46;
  margin: 10px 0;
  min-height: 22px;
}
.login-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}
.mobile-nav-toggle {
  display: none;
}
.mobile-nav-cover {
  display: none;
}
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.admin-page .field {
  margin-bottom: 16px;
}
.admin-page pre {
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow: auto;
}
.admin-page textarea.json-editor {
  font: 12px/1.8 monospace;
  width: 100%;
  min-height: 350px;
}
.admin-page .notice {
  background: #f2faf9;
  border-color: #ccebe8;
}
.save-indicator {
  color: #888;
  font-size: 12px;
}
.admin-page .sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.admin-data-table input {
  width: 110px;
}
.admin-data-table .wide-input {
  width: 260px;
}
.admin-data-table textarea {
  min-height: 50px;
}
.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fafafa;
  border: 1px dashed #ccc;
  min-height: 105px;
  border-radius: 5px;
  color: #777;
}
.upload-box img {
  height: 80px;
  width: 80px;
  object-fit: cover;
}
.form-subnav {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-subnav span {
  color: #888;
}
.editor-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  max-width: 1150px;
  margin: auto;
}
.editor-steps {
  padding: 20px 0;
  position: sticky;
  top: 84px;
  align-self: start;
}
.editor-steps a {
  display: block;
  margin-bottom: 22px;
  color: #777;
}
.editor-steps a:first-child {
  color: var(--teal);
}
.editor-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 10;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.product-info-block {
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.product-info-block p {
  margin-bottom: 4px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
  margin: 12px 0;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.section-gap {
  margin-top: 24px;
}
.image-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1700px) {
  .home-main {
    padding-top: 66px;
  }
  .home-layout {
    max-width: 1040px;
  }
}
@media (max-width: 1280px) {
  :root {
    --sidebar: 200px;
  }
  .header-actions {
    gap: 18px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .home-layout .card {
    padding: 20px;
  }
  .home-metrics .stats-grid {
    padding: 0;
    gap: 12px;
  }
  .home-metrics .stat-value {
    font-size: 23px;
  }
  .todo-grid {
    gap: 10px;
  }
  .todo-box {
    padding: 8px;
  }
  .todo-item {
    font-size: 12px;
  }
  .home-products {
    gap: 20px;
  }
  .home-product .product-image {
    width: 80px;
    height: 80px;
  }
  .home-campaigns {
    grid-template-columns: 160px 1fr;
  }
  .hero-suggestions {
    gap: 12px;
  }
  .suggestion {
    font-size: 12px;
    padding: 14px;
  }
  .merchant-title {
    font-size: 18px;
  }
  .header-actions .assistant-action {
    display: none;
  }
  .opportunities {
    gap: 10px;
  }
}
@media (max-width: 1050px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 0;
  }
  .home-aside .card {
    margin: 0;
  }
  .policy-row {
    margin: 10px 0;
  }
  .home-aside .health-score {
    margin: 16px 0;
  }
  .home-layout {
    max-width: 900px;
  }
  .topbar .header-actions {
    gap: 16px;
  }
  .header-actions .desktop-label {
    display: none;
  }
  .header-separator {
    display: none;
  }
  .hero-suggestions {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    align-items: flex-start;
  }
  .admin-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --header: 56px;
    --sidebar: 0px;
  }
  .topbar {
    padding: 0 12px;
  }
  .mobile-nav-toggle {
    display: flex;
    background: none;
    color: white;
    border: 0;
    padding: 5px;
  }
  .brand {
    gap: 9px;
  }
  .brand-divider,
  .merchant-title {
    display: none;
  }
  .brand-mark {
    font-size: 15px;
  }
  .brand-mark b {
    font-size: 14px;
  }
  .brand-mark span {
    font-size: 13px;
  }
  .brand-mark img {
    height: 29px;
    width: 25px;
  }
  .header-actions {
    gap: 16px !important;
  }
  .header-actions > .top-action:not(.bell-action) {
    display: none;
  }
  .account-button {
    padding-right: 8px;
    font-size: 12px;
    gap: 5px;
  }
  .account-button .avatar {
    width: 26px;
    height: 26px;
    font-size: 20px;
  }
  .account-button .account-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .mobile-nav-cover {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    background: #0005;
    z-index: 34;
  }
  .main {
    padding: 20px 12px 32px;
  }
  .main.home-main {
    padding-top: 30px;
  }
  .home-main:before {
    height: 115px;
  }
  .home-layout {
    gap: 0;
    display: block;
  }
  .home-layout .card {
    padding: 18px;
    margin-bottom: 12px;
  }
  .home-layout .card-heading {
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .home-layout .card-heading h2 {
    font-size: 18px;
  }
  .card-heading .muted {
    margin-left: 0;
    display: block;
    font-size: 11px;
  }
  .home-metrics .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .home-metrics {
    min-height: 245px;
  }
  .stat-label {
    font-size: 12px;
    margin-bottom: 7px;
  }
  .home-metrics .stat-value {
    font-size: 25px;
  }
  .stat-change {
    font-size: 12px;
  }
  .home-aside {
    display: block;
  }
  .home-aside .health-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .home-aside .health-card .card-heading {
    margin: 0;
  }
  .health-card h2 {
    font-size: 18px;
  }
  .health-score {
    font-size: 25px !important;
    margin: 0 !important;
  }
  .health-card p {
    margin: 0;
    flex-basis: 100%;
  }
  .health-card .more {
    display: none;
  }
  .home-aside .policy-card {
    display: none;
  }
  .todo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .todo-box {
    padding: 2px 12px;
    display: flex;
    gap: 20px;
  }
  .todo-item {
    width: 50%;
    font-size: 12px;
    white-space: normal;
    gap: 4px;
  }
  .todo-item > span:last-child {
    gap: 3px;
  }
  .home-products {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-product .product-image {
    width: 80px;
    height: 80px;
  }
  .home-product .product-copy {
    flex: 1;
  }
  .home-product .product-name {
    max-width: 100%;
  }
  .home-campaigns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .campaign-overview {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .campaign-list {
    padding: 12px;
  }
  .campaign-cover {
    width: 60px;
    height: 60px;
  }
  .campaign-copy {
    font-size: 12px;
  }
  .campaign-copy .muted {
    font-size: 10px;
  }
  .opportunities {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .opportunity-art {
    height: 100px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid .feature {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
  }
  .feature-grid .feature svg {
    width: 30px;
  }
  .feature-grid h3 {
    margin: 0;
    font-size: 14px;
  }
  .feature-grid p {
    grid-column: 2;
    margin: 0;
    min-height: 0;
  }
  .feature-grid .feature .btn {
    grid-column: 3;
    grid-row: 1/3;
  }
  .video-promo {
    padding: 0;
    gap: 10px;
  }
  .video-illustration {
    min-width: 70px;
    height: 80px;
  }
  .video-illustration svg {
    width: 44px;
  }
  .video-promo h3 {
    font-size: 14px;
  }
  .video-promo p {
    font-size: 11px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading .button-group {
    gap: 5px;
  }
  .page-heading .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 5px 10px;
  }
  .card {
    padding: 16px;
  }
  .tabs {
    gap: 22px;
  }
  .tab {
    font-size: 13px;
  }
  .hero-suggestions {
    gap: 10px;
    margin: 12px 0;
  }
  .suggestion {
    min-height: 100px;
    gap: 12px;
    padding: 12px;
  }
  .toolbar .search-input {
    flex: 1 1 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .toolbar .spacer {
    display: none;
  }
  .product-table {
    min-width: 1000px;
  }
  .order-table {
    min-width: 950px;
  }
  .order-search {
    min-width: 0;
    flex-basis: 100%;
  }
  .order-banner .badge-3day {
    display: none;
  }
  .pending-grid {
    gap: 16px 24px;
  }
  .pending-metric {
    font-size: 12px;
    gap: 15px;
  }
  .pending-metric b {
    font-size: 14px;
  }
  .tabs.large {
    gap: 24px;
  }
  .tabs.large .tab {
    font-size: 15px;
  }
  .dialog-overlay {
    padding: 12px;
  }
  .dialog {
    max-height: 94vh;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-body {
    padding: 20px 18px;
  }
  .dialog-footer {
    padding: 0 18px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin-bottom: 16px;
  }
  .editor-layout {
    display: block;
  }
  .editor-steps {
    display: none;
  }
  .form-section .card {
    padding: 20px 16px;
  }
  .editor-actions {
    margin: 0 -12px -32px;
    padding: 12px;
  }
  .editor-actions .btn {
    font-size: 12px;
  }
  .admin-page {
    padding: 22px 12px;
  }
  .admin-header {
    flex-wrap: wrap;
  }
  .admin-header h1 {
    font-size: 23px;
  }
  .admin-metric-grid {
    gap: 0 12px;
  }
  .admin-page .sticky-actions {
    gap: 12px;
    padding: 12px;
  }
  .admin-page .sticky-actions .muted {
    font-size: 11px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 22px;
  }
  .floating-help {
    padding: 8px;
    top: auto;
    bottom: 32px;
  }
  .floating-help svg {
    width: 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dropdown-panel {
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .table-wrap {
    overscroll-behavior-x: contain;
  }
  .home-metrics .date-button {
    font-size: 13px;
  }
  .login-header {
    height: 60px;
    padding: 16px;
  }
}
.campaign-cover-image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.create-wide .sidebar {
  display: none;
}
.create-wide .main {
  margin-left: 0;
}
.create-wide .mobile-nav-toggle {
  display: none;
}
@media (max-width: 760px) {
  .campaign-cover-image {
    width: 60px;
    height: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
