:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e6e8eb;
  --line-strong: #d7dce2;
  --text: #28303a;
  --muted: #7e8793;
  --header: #5b636d;
  --header-accent: #f2c43f;
  --primary: #409eff;
  --primary-dark: #2f83db;
  --success: #77bf57;
  --danger: #f08080;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
}

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

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

.page {
  height: 100vh;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

#app-panel:not(.hidden) {
  height: calc(100vh - 32px);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.auth-panel {
  display: flex;
  min-height: calc(100vh - 32px);
  align-items: center;
  justify-content: center;
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

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

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form,
.dialog-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

#register-username::placeholder {
  color: var(--muted);
  opacity: 1;
}

button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  line-height: 1.35;
}

button.primary {
  border-color: var(--primary-dark);
  background: var(--primary);
  color: #fff;
}

button[data-submitting="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  pointer-events: none;
  white-space: nowrap;
}

button[data-submitting="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: buttonSubmittingSpin 0.7s linear infinite;
}

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

button.danger {
  color: #f26d6d;
}

button.danger.primary,
button.danger:not(.ghost) {
  border-color: #f2b5b5;
  background: #fff7f7;
}

button.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

button.ghost {
  background: #f8fafc;
  color: #526071;
}

.promotion-image-cell {
  width: 68px;
  min-width: 68px;
  text-align: center;
}

.promotion-data-panel.promotion-module-wujie-unit .store-table th.promotion-col-owner,
.promotion-data-panel.promotion-module-wujie-unit .store-table td.promotion-col-owner {
  width: 72px;
  min-width: 72px !important;
  max-width: 72px;
  padding-right: 6px;
  padding-left: 6px;
}

.promotion-data-panel.promotion-module-wujie-unit .store-table th.promotion-col-image,
.promotion-data-panel.promotion-module-wujie-unit .store-table td.promotion-col-image,
.promotion-data-panel.promotion-module-wujie-unit .store-table td.promotion-image-cell {
  width: 76px;
  min-width: 76px !important;
  max-width: 76px;
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
}

.promotion-data-panel.promotion-module-wujie-unit .store-table th.promotion-col-product-name,
.promotion-data-panel.promotion-module-wujie-unit .store-table td.promotion-col-product-name {
  width: 150px;
  min-width: 150px !important;
  max-width: 150px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.promotion-thumb {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
  cursor: zoom-in;
}

.promotion-product-id-drilldown {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  -webkit-user-select: text;
  user-select: text;
  cursor: pointer;
}

.promotion-product-id-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.promotion-product-id-copy {
  min-width: 0;
  min-height: 0;
  padding: 1px 3px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.promotion-product-id-copy:hover,
.promotion-product-id-copy:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.promotion-product-id-drilldown:hover,
.promotion-product-id-drilldown:focus-visible {
  color: var(--primary-dark);
  text-decoration-style: solid;
}

.promotion-product-id-drilldown:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.promotion-mixed-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9a3412;
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

.promotion-mixed-thumb-top {
  display: block;
  font-size: 18px;
}

.promotion-mixed-thumb-bottom {
  display: flex;
  width: 30px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.image-preview-popover {
  position: fixed;
  z-index: 5000;
  pointer-events: none;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.image-preview-popover img {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.promotion-status-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.promotion-status-button,
.promotion-status-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.promotion-status-button.is-active,
.promotion-status-static.is-active {
  border: 1px solid #bde7ba;
  background: #eff9eb;
  color: #2fa421;
}

.promotion-status-button.is-paused,
.promotion-status-static.is-paused {
  border: 1px solid #ffc6c6;
  background: #fff0f0;
  color: #df2f2f;
}

.promotion-status-button {
  cursor: pointer;
}

.promotion-status-button.pending {
  border-color: #f4d58d;
  background: #fff8df;
  color: #a96800;
  cursor: wait;
}

.promotion-status-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 120;
  min-width: 72px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.promotion-status-menu button {
  width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.promotion-status-menu button.is-active {
  color: #2fa421;
}

.promotion-status-menu button.is-paused {
  color: #f04444;
}

.promotion-status-menu button.is-active:hover {
  background: #eff9eb;
}

.promotion-status-menu button.is-paused:hover {
  background: #fff1f1;
}

.promotion-row-actions {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.promotion-row-actions button {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}

.promotion-note-cell {
  min-width: 220px;
}

.promotion-note-editor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 220px;
}

.promotion-note-editor input {
  width: 150px;
  min-width: 0;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.promotion-note-editor input:focus {
  border-color: #3b82f6;
  outline: 2px solid rgba(59, 130, 246, 0.14);
}

.promotion-note-editor button {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.promotion-adjust-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.promotion-adjust-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.promotion-bid-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promotion-edit-icon {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #fff;
  color: #3b82f6;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.promotion-edit-icon:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.embedded-mode .page {
  padding: 0;
}

html.embedded-mode #app-panel:not(.hidden) {
  height: 100vh;
}

html.embedded-mode .app-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

html.embedded-mode .sidebar,
html.embedded-mode .auth-theme-toggle,
html.embedded-mode #setup-panel,
html.embedded-mode #login-panel,
html.embedded-mode #user-center-panel,
html.embedded-mode #cards-center-panel,
html.embedded-mode #jd-panel {
  display: none !important;
}

html.embedded-mode .content-area {
  width: 100%;
}

.sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex-shrink: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--header);
  color: #fff;
}

.sidebar-brand {
  display: grid;
  gap: 10px;
}

.sidebar-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.6;
}

.permission-guide {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 196, 63, 0.45);
  border-radius: 8px;
  background: rgba(242, 196, 63, 0.12);
  color: #fff6d8;
}

.permission-guide strong {
  font-size: 13px;
}

.permission-guide p {
  font-size: 12px;
  line-height: 1.6;
}

.content-area {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.permission-empty {
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.permission-empty-image {
  width: min(520px, 72vw);
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.permission-empty h2 {
  margin: 0;
  color: #111827;
  font-size: 38px;
  font-weight: 800;
}

.permission-empty p {
  max-width: 760px;
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.permission-empty .guest-slogan {
  max-width: none;
  white-space: nowrap;
}

.home-schedule-toggle-btn {
  min-width: 46px;
  min-height: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.home-schedule-anchor {
  position: relative;
  justify-self: start;
}

.home-schedule-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 3000;
  display: none;
  width: min(210px, calc(100vw - 32px));
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
  text-align: left;
}

.home-schedule-anchor:hover .home-schedule-panel,
.home-schedule-anchor.pinned .home-schedule-panel {
  display: block;
}

.home-schedule-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.home-schedule-item:last-child {
  border-bottom: none;
}

.home-schedule-item strong {
  color: var(--text);
  font-size: 14px;
}

.home-schedule-item span,
.home-schedule-item small,
.home-schedule-empty {
  color: var(--muted);
  font-size: 12px;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #4f5760;
  font-weight: 700;
}

.sidebar-brand-logo {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.tabs {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 0;
  height: 100%;
  padding-right: 4px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tabs::-webkit-scrollbar,
.fixed-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tabs::-webkit-scrollbar-thumb,
.fixed-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(91, 99, 109, 0.32);
  background-clip: padding-box;
}

.tabs::-webkit-scrollbar-track,
.fixed-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.fixed-table-wrap,
.fixed-table-wrap .store-table td {
  user-select: text;
}

.fixed-table-wrap button,
.fixed-table-wrap input,
.fixed-table-wrap select,
.fixed-table-wrap textarea {
  user-select: none;
}

.fixed-table-wrap button.promotion-product-id-drilldown {
  -webkit-user-select: text;
  user-select: text;
}

.tab {
  justify-content: start;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 11px 14px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.tab.active {
  border-color: var(--header-accent);
  background: rgba(255, 255, 255, 0.06);
  color: var(--header-accent);
}

.tab-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-nav-toggle {
  min-height: 50px;
  padding: 0;
  border-color: transparent;
  overflow: hidden;
}

.platform-nav-logo {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 50px;
  overflow: hidden;
  border-radius: 6px;
}

.platform-nav-logo-taobao {
  background: #ff5f00;
}

.platform-nav-logo-jd {
  background: #c91423;
}

.user-platform-nav-toggle,
.platform-nav-logo-user {
  min-height: 50px;
  height: 50px;
}

.platform-nav-logo-user {
  background: #f4f4f4;
}

.platform-nav-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-nav-logo-user img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: fill;
}

.tab-arrow {
  transition: transform 0.18s ease;
}

.tab-collapsible.expanded .tab-arrow {
  transform: rotate(180deg);
}

.sidebar-group {
  display: grid;
  gap: 5px;
  margin-top: -2px;
  padding: 8px 0 8px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-group.nested {
  margin-top: 0;
  padding: 5px 0 8px 12px;
  border-left-color: rgba(255, 255, 255, 0.1);
}

.sidebar-group.collapsed {
  display: none;
}

.tab-section-toggle {
  margin-top: 3px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.subnav-section-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.subnav-section-logo {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.tab-section-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-section-title {
  padding: 8px 10px 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.tab.tab-sub {
  min-height: 32px;
  padding: 5px 10px;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
}

.tab.tab-sub.active {
  border-color: rgba(242, 196, 63, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-accent);
}

.tab-panel {
  display: none;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.user-bar {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.user-status-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px 58px;
  gap: 8px;
  align-items: center;
}

.user-identity-block {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#current-user-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-status-light {
  position: relative;
  top: -7px;
  display: inline-block;
  width: 11px;
  height: 11px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.agent-status-light.online {
  background: #28d17c;
  box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.58), 0 0 12px rgba(40, 209, 124, 0.65);
  animation: agentStatusBreath 1.7s ease-in-out infinite;
}

.agent-status-light.starting {
  background: #f6c453;
  box-shadow: 0 0 0 0 rgba(246, 196, 83, 0.55), 0 0 12px rgba(246, 196, 83, 0.6);
  animation: agentStatusBreath 1.2s ease-in-out infinite;
}

.agent-status-light.offline {
  background: rgba(148, 163, 184, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  animation: none;
}

.agent-mini-progress-stack {
  display: grid;
  min-width: 58px;
  gap: 3px;
}

.agent-mini-progress {
  position: relative;
  height: 10px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.agent-mini-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: left center;
  transform: scaleX(0.22);
  transition: transform 0.24s ease, background 0.24s ease;
  overflow: hidden;
}

.agent-mini-progress.idle .agent-mini-progress-fill {
  background: rgba(255, 255, 255, 0.24);
  transform: scaleX(0.18);
}

.agent-mini-progress.active .agent-mini-progress-fill {
  background: linear-gradient(90deg, #409eff, #7dd3fc, #409eff);
  background-size: 180% 100%;
  transform: scaleX(1);
  animation: agentMiniProgressMove 1.2s linear infinite;
}

.agent-mini-progress.done .agent-mini-progress-fill {
  background: linear-gradient(90deg, #5fbf7a, #8cd39d);
  transform: scaleX(1);
}

.agent-mini-progress.error .agent-mini-progress-fill {
  background: linear-gradient(90deg, #ef6b6b, #f5a0a0);
  transform: scaleX(1);
}

.agent-mini-progress-text {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.agent-download-box {
  display: grid;
  gap: 5px;
}

.agent-download-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  grid-template-areas: "download start stop";
  gap: 6px;
  align-items: stretch;
}

.agent-download-actions:has(.agent-update-btn:not(.hidden)) {
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  grid-template-areas:
    "download start stop"
    "update update update";
}

.agent-download-link {
  grid-area: download;
}

.agent-update-btn {
  grid-area: update;
}

.agent-start-btn {
  grid-area: start;
}

.agent-stop-btn {
  grid-area: stop;
}

.agent-download-link,
.agent-update-btn,
.agent-start-btn,
.agent-stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(64, 158, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.agent-stop-btn {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.agent-start-btn {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.agent-update-btn {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.agent-download-link:hover,
.agent-download-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.56);
  background: rgba(64, 158, 255, 0.28);
  color: #fff;
}

.agent-stop-btn:hover,
.agent-stop-btn:focus-visible {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.22);
  color: #fff;
}

.agent-start-btn:hover,
.agent-start-btn:focus-visible {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(34, 197, 94, 0.24);
  color: #fff;
}

.agent-update-btn:hover,
.agent-update-btn:focus-visible {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

.agent-stop-btn:disabled,
.agent-update-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.agent-download-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.agent-download-version-badge.update {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.18);
  color: #ffe8a3;
}

.agent-download-version-badge.error {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.agent-mini-progress-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 3000;
  display: none;
  width: 210px;
  height: min(320px, calc(100vh - 120px));
  overflow: auto;
  box-sizing: border-box;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
}

.agent-mini-progress:hover .agent-mini-progress-panel,
.agent-mini-progress:focus-within .agent-mini-progress-panel,
.agent-mini-progress.pinned .agent-mini-progress-panel {
  display: block;
}

.agent-mini-progress-title {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.agent-mini-progress-list {
  display: grid;
  gap: 6px;
}

.agent-mini-progress-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 7px 8px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #f8fafc;
}

.agent-mini-progress-item span,
.agent-mini-progress-item em,
.agent-mini-progress-item small,
.agent-mini-progress-error {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mini-progress-item span {
  font-size: 12px;
  font-weight: 700;
}

.agent-mini-progress-item strong {
  color: #2563eb;
  font-size: 12px;
}

.agent-mini-progress-item em,
.agent-mini-progress-item small,
.agent-mini-progress-empty {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.agent-mini-progress-error {
  grid-column: 1 / -1;
  color: #df2f2f;
  font-size: 11px;
}

@keyframes agentMiniProgressMove {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 180% 50%;
  }
}

@keyframes agentStatusBreath {
  0%,
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.45), 0 0 10px rgba(40, 209, 124, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(40, 209, 124, 0), 0 0 16px rgba(40, 209, 124, 0.8);
  }
}

.user-bar button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.message {
  position: fixed;
  /* Keep transient notices in the page's top gutter, above the filter row. */
  top: 0;
  left: 50%;
  z-index: 1000;
  min-width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  margin: 0;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  line-height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.message.success {
  color: #2f8b51;
  border-color: #bfe1cc;
  background: #f2fbf6;
}

.message.error {
  color: #c25454;
  border-color: #f3c8c8;
  background: #fff5f5;
}

.panel {
  padding: 16px;
  margin-bottom: 6px;
  width: 100%;
  min-width: 0;
}

.sticky-panel {
  margin-bottom: 6px;
  position: sticky;
  z-index: 4;
  top: var(--sticky-top, 16px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.admin-table-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.promotion-action-panel {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 6px;
  padding: 5px 16px;
  background: #fbfcfe;
}

.promotion-action-panel.is-empty {
  display: none;
}

.promotion-action-panel .toolbar {
  align-items: center;
  min-height: 32px;
}

.action-panel .toolbar button,
.action-panel .toolbar .toolbar-link-button,
#taobao-placeholder-actions button {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 14px;
  line-height: 1.25;
}

.toolbar-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-dark);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.toolbar-link-button:hover {
  border-color: var(--primary-dark);
  color: #fff;
}

.action-panel {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #fbfcfe;
}

.action-panel.promotion-action-panel {
  min-height: 46px;
}

#promotion-search-panel,
#account-center-panel > .search-panel,
#shop-realtime-panel > .search-panel,
#yesterday-data-panel > .search-panel,
#fund-statistics-panel > .search-panel,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel {
  gap: 10px;
  min-height: 50px;
  padding: 10px 16px;
}

#promotion-search-panel .search-grid,
#account-center-panel > .search-panel .search-grid,
#shop-realtime-panel > .search-panel .search-grid,
#yesterday-data-panel > .search-panel .search-grid,
#fund-statistics-panel > .search-panel .search-grid,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-grid,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-grid {
  gap: 6px;
}

#promotion-search-panel .search-grid label,
#account-center-panel > .search-panel .search-grid label,
#shop-realtime-panel > .search-panel .search-grid label,
#yesterday-data-panel > .search-panel .search-grid label,
#fund-statistics-panel > .search-panel .search-grid label,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-grid label,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-grid label {
  min-height: 32px;
}

#promotion-search-panel .search-grid input,
#promotion-search-panel .search-grid select,
#account-center-panel > .search-panel .search-grid input,
#account-center-panel > .search-panel .search-grid select,
#shop-realtime-panel > .search-panel .search-grid input,
#shop-realtime-panel > .search-panel .search-grid select,
#yesterday-data-panel > .search-panel .search-grid input,
#yesterday-data-panel > .search-panel .search-grid select,
#fund-statistics-panel > .search-panel .search-grid input,
#fund-statistics-panel > .search-panel .search-grid select,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-grid input,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-grid select,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-grid input,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-grid select {
  height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}

#promotion-search-panel .search-actions,
#account-center-panel > .search-panel .search-actions,
#shop-realtime-panel > .search-panel .search-actions,
#yesterday-data-panel > .search-panel .search-actions,
#fund-statistics-panel > .search-panel .search-actions,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-actions,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-actions {
  align-self: center;
  row-gap: 6px;
}

#promotion-search-panel .search-actions button,
#account-center-panel > .search-panel .search-actions button,
#shop-realtime-panel > .search-panel .search-actions button,
#yesterday-data-panel > .search-panel .search-actions button,
#fund-statistics-panel > .search-panel .search-actions button,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .search-panel .search-actions button,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .search-panel .search-actions button {
  height: 32px;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.action-panel.promotion-action-panel,
#account-center-panel > .action-panel,
#shop-realtime-panel > .action-panel,
#yesterday-data-panel > .action-panel,
#fund-statistics-panel > .action-panel,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .action-panel,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .action-panel {
  min-height: 46px;
  margin-bottom: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.promotion-action-panel .toolbar,
#account-center-panel > .action-panel .toolbar,
#shop-realtime-panel > .action-panel .toolbar,
#yesterday-data-panel > .action-panel .toolbar,
#fund-statistics-panel > .action-panel .toolbar,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .action-panel .toolbar,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .action-panel .toolbar {
  gap: 8px;
  row-gap: 6px;
}

.promotion-action-panel .toolbar button,
.promotion-action-panel .toolbar .toolbar-link-button,
#account-center-panel > .action-panel .toolbar button,
#shop-realtime-panel > .action-panel .toolbar button,
#yesterday-data-panel > .action-panel .toolbar button,
#fund-statistics-panel > .action-panel .toolbar button,
#taobao-placeholder-panel[data-placeholder-type="product-management"] > .action-panel .toolbar button,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .action-panel .toolbar button {
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.action-panel.promotion-action-panel {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  margin: 0 0 4px;
  padding: 5px 16px;
  overflow: hidden;
}

.promotion-action-panel .toolbar {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  row-gap: 0;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.promotion-action-panel .toolbar::-webkit-scrollbar {
  display: none;
}

.promotion-action-panel .toolbar button,
.promotion-action-panel .toolbar .toolbar-link-button {
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

#promotion-search-panel.left-action-filter-panel {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  align-items: center;
  overflow: visible;
}

#promotion-search-panel.left-action-filter-panel .search-grid {
  align-items: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  overflow: visible;
}

#promotion-search-panel.left-action-filter-panel .search-grid label {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}

#promotion-search-panel.left-action-filter-panel .search-actions {
  align-self: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  row-gap: 0;
}

#promotion-search-panel.left-action-filter-panel .search-actions button {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}

.jd-jzt-chain-panel {
  margin-top: 10px;
  min-height: 38px;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--header);
  background: #fbfcfe;
}

.jd-jzt-chain-panel .toolbar {
  gap: 10px;
}

.jd-settings-dialog {
  width: min(920px, calc(100vw - 24px));
}

.dialog.promotion-columns-dialog {
  width: min(1180px, calc(100vw - 20px));
}

#promotion-columns-form {
  max-height: calc(100vh - 28px);
  padding: 14px;
}

#promotion-columns-form .dialog-head {
  margin-bottom: 2px;
}

#promotion-columns-form .dialog-head h3 {
  font-size: 16px;
}

#promotion-columns-form .dialog-hint {
  margin: 0 0 8px;
  font-size: 12px;
}

.promotion-columns-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 10px;
}

.promotion-columns-pane {
  display: grid;
  gap: 5px;
}

.promotion-columns-pane-title {
  color: #1f2a44;
  font-size: 12px;
  font-weight: 700;
}

.promotion-columns-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-height: none;
  overflow: auto;
}

.promotion-columns-selected {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
}

.promotion-column-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 27px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  font-size: 12px;
  line-height: 1.15;
}

.promotion-column-check {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.promotion-column-check span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-column-check input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
}

.promotion-column-label-input {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
}

.promotion-column-label-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent);
}

.promotion-columns-table-field {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.promotion-columns-table-field.hidden {
  display: none;
}

.promotion-columns-table-field select {
  width: 100%;
  min-width: 0;
}

.promotion-column-item-draggable {
  grid-template-columns: 13px minmax(0, 1fr);
  cursor: grab;
}

.promotion-column-item-draggable.dragging {
  opacity: 0.55;
}

.promotion-column-drag-handle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.promotion-column-selected-label {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#promotion-columns-form .dialog-actions {
  margin-top: 10px;
}

#jd-settings-form {
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.jd-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px 14px;
}

.jd-setting-section-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #1f2a44;
  font-size: 14px;
  font-weight: 700;
}

.jd-setting-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.jd-setting-field span {
  color: var(--header);
  font-size: 13px;
  line-height: 1.35;
}

.jd-setting-field input[type="number"],
.jd-setting-field input[type="text"] {
  min-width: 0;
  height: 32px;
}

.jd-setting-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.jd-setting-field.jd-setting-compact {
  grid-template-columns: 18px minmax(0, 1fr);
}

.jd-setting-field.jd-setting-range {
  grid-column: span 2;
  grid-template-columns: 132px minmax(70px, 1fr) auto minmax(70px, 1fr) auto;
}

.jd-setting-field.jd-setting-range em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.jd-setting-field.jd-setting-wide {
  grid-column: 1 / -1;
  grid-template-columns: 132px minmax(0, 1fr);
}

.jd-setting-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 12px;
}

.sticky-panel + .table-panel,
.sticky-panel + .build-car-input-panel {
  margin-top: 16px;
}

#promotion-batch-car-content,
#promotion-add-products-content,
#promotion-keyword-car-content,
#promotion-roi-car-content,
#promotion-placeholder-content {
  margin-top: 16px;
}

#promotion-keyword-car-content,
#promotion-roi-car-content,
#promotion-placeholder-content,
#jd-panel > section:not(.sticky-panel) {
  flex: 0 0 auto;
}

#promotion-batch-car-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

#promotion-add-products-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

#promotion-batch-car-content > .panel + .panel {
  margin-top: 6px;
}

#promotion-add-products-content > .panel + .panel {
  margin-top: 6px;
}

#promotion-batch-car-content > .panel {
  flex: 0 0 auto;
  min-height: 0;
}

#promotion-add-products-content > .panel {
  flex: 0 0 auto;
  min-height: 0;
}

#promotion-batch-car-content > .panel:last-child {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.add-products-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.add-products-workspace > .panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.add-products-plan-panel {
  flex: 0 0 min(50%, 680px);
}

.add-products-product-panel {
  flex: 1 1 0;
}

#promotion-batch-car-content > .panel:only-child .promotion-summary-wrap {
  flex: 1;
  max-height: none;
  min-height: 0;
}

.promotion-summary-wrap {
  max-height: 220px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.promotion-summary-wrap .store-table {
  width: 100%;
  min-width: 800px;
  table-layout: fixed;
}

.promotion-summary-wrap .store-table th,
.promotion-summary-wrap .store-table td {
  min-width: 0;
  padding: 9px 8px;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(1),
.promotion-summary-wrap .store-table td:nth-child(1) {
  width: 170px;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(2),
.promotion-summary-wrap .store-table td:nth-child(2) {
  width: 72px;
  text-align: center;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(3),
.promotion-summary-wrap .store-table td:nth-child(3) {
  width: 84px;
  text-align: center;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(4),
.promotion-summary-wrap .store-table td:nth-child(4) {
  width: 132px;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(5),
.promotion-summary-wrap .store-table td:nth-child(5) {
  width: 70px;
  text-align: center;
}

.promotion-summary-wrap .store-table thead tr:not(.table-title-row) th:nth-child(7),
.promotion-summary-wrap .store-table td:nth-child(7) {
  width: 88px;
  text-align: center;
}

.promotion-product-dialog {
  width: min(1180px, calc(100vw - 24px));
  height: min(820px, calc(100vh - 40px));
}

.promotion-product-dialog-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
}

.promotion-product-wrap {
  flex: 1;
  min-height: 220px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.promotion-product-dialog .promotion-product-wrap {
  min-height: 0;
  overflow: auto;
}

.promotion-product-wrap .store-table {
  min-width: 1040px;
}

.promotion-product-wrap .store-table th:first-child,
.promotion-product-wrap .store-table td:first-child {
  min-width: 120px;
}

.promotion-product-wrap .store-table th:nth-child(3),
.promotion-product-wrap .store-table td:nth-child(3) {
  min-width: 320px;
}

.search-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, max-content));
  gap: 8px 6px;
}

.search-grid label {
  display: grid;
  grid-template-columns: 56px 150px;
  align-items: center;
  gap: 2px;
}

.search-grid label:has(input[data-taobao-store-suggest="true"]),
.search-grid label:has(input[data-jd-store-suggest="true"]),
.search-grid label:has(input[data-alipay-account-suggest="true"]),
.search-grid label:has(select.alipay-store-filter-select),
.search-grid label:has(select.alipay-owner-filter-select),
.search-grid label:has(select.alipay-mark-filter-select) {
  grid-template-columns: 56px 220px;
}

.search-grid label:has(input[data-responsible-suggest="true"]) {
  grid-template-columns: 56px 120px;
}

#jd-bulk-login-search-panel .search-grid label,
#jd-data-search-panel .search-grid label {
  grid-template-columns: 64px 260px;
}

#jd-bulk-login-search-panel .search-grid input,
#jd-bulk-login-search-panel .search-grid select,
#jd-data-search-panel .search-grid input,
#jd-data-search-panel .search-grid select {
  max-width: 260px;
}

.search-grid label span {
  font-size: 13px;
  color: var(--header);
  white-space: nowrap;
}

.search-grid input,
.search-grid select {
  min-width: 0;
  max-width: 150px;
  height: 36px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.search-grid select.alipay-store-filter-select,
.search-grid select.alipay-owner-filter-select,
.search-grid select.alipay-mark-filter-select {
  width: 220px;
  max-width: 220px;
}

.store-filter-field {
  position: relative;
  display: block;
  width: 150px;
  max-width: 150px;
}

.store-filter-field:has(input[data-taobao-store-suggest="true"]),
.store-filter-field:has(input[data-jd-store-suggest="true"]),
.store-filter-field:has(input[data-alipay-account-suggest="true"]) {
  width: 220px;
  max-width: 220px;
}

.store-filter-field:has(input[data-responsible-suggest="true"]) {
  width: 120px;
  max-width: 120px;
}

.store-filter-field input {
  width: 100%;
  max-width: none;
  padding-right: 24px;
}

.store-filter-field select {
  width: 100%;
  max-width: none;
}

.alipay-month-filter-field input,
.alipay-range-filter-field input,
.alipay-status-filter-field input {
  padding-right: 28px;
  background: #fff;
  cursor: pointer;
}

.alipay-month-filter-field::after,
.alipay-range-filter-field::after,
.alipay-status-filter-field::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  color: #667085;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.alipay-date-filter-input {
  width: 150px;
  max-width: 150px;
}

.realtime-dialog-filters .store-filter-field {
  width: 100%;
  max-width: none;
}

.store-filter-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #e8edf3;
  color: #5f6b7a;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  box-sizing: border-box;
}

.store-filter-clear:hover,
.store-filter-clear:focus {
  background: #d8e8f8;
  color: #1f5f99;
}

.store-filter-clear.hidden {
  display: none;
}

.store-suggest {
  position: fixed;
  z-index: 3000;
  min-width: 220px;
  max-width: min(440px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 180px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(40, 48, 58, 0.16);
}

dialog .store-suggest {
  position: absolute;
  max-height: min(420px, calc(100vh - 240px));
}

.store-suggest button {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  word-break: break-all;
}

.store-suggest button:hover,
.store-suggest button:focus {
  background: #eaf4ff;
  color: var(--text);
}

.store-suggest button:disabled {
  color: #9aa4b2;
  background: #f5f7fa;
  cursor: not-allowed;
}

.search-actions,
.toolbar,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 8px;
}

.toolbar {
  gap: 10px;
}

#bulk-start-login-btn,
#bulk-stop-login-btn {
  min-width: 96px;
}

#users-section,
#cards-section {
  padding: 12px 16px;
}

#users-section .panel-head,
#cards-section .panel-head {
  margin-bottom: 8px;
}

#users-section .panel-head h2,
#cards-section .panel-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

#users-section .panel-head p,
#cards-section .panel-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

#users-section .admin-table-filter-panel,
#cards-section .admin-table-filter-panel {
  min-height: 48px;
  margin-bottom: 6px;
  padding: 8px 10px;
}

#users-section .admin-table-filter-panel .search-grid,
#cards-section .admin-table-filter-panel .search-grid {
  gap: 6px;
}

#users-section .admin-table-filter-panel .search-grid label,
#cards-section .admin-table-filter-panel .search-grid label {
  min-height: 32px;
}

#users-section .admin-table-filter-panel .search-grid input,
#users-section .admin-table-filter-panel .search-grid select,
#cards-section .admin-table-filter-panel .search-grid input,
#cards-section .admin-table-filter-panel .search-grid select {
  height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}

#users-section .admin-table-filter-panel .search-actions button,
#cards-section .admin-table-filter-panel .search-actions button {
  height: 32px;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.store-table .action-row button {
  min-width: 64px;
}

.store-table .admin-action-row {
  flex-wrap: nowrap;
  min-width: max-content;
  white-space: nowrap;
}

[data-table-wrap="user-center"] .store-table th,
[data-table-wrap="user-center"] .store-table td,
[data-table-wrap="cards-center"] .store-table th,
[data-table-wrap="cards-center"] .store-table td {
  padding-top: 7px;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 7px;
  font-size: 13px;
  line-height: 1.25;
}

[data-table-wrap="user-center"] .store-table {
  width: max-content;
  min-width: 760px;
}

[data-table-wrap="cards-center"] .store-table {
  width: max-content;
  min-width: 850px;
}

[data-table-wrap="user-center"] .store-table th:nth-child(1),
[data-table-wrap="user-center"] .store-table td:nth-child(1) {
  width: 132px;
  min-width: 132px;
}

[data-table-wrap="user-center"] .store-table th:nth-child(2),
[data-table-wrap="user-center"] .store-table td:nth-child(2) {
  width: 88px;
  min-width: 88px;
}

[data-table-wrap="user-center"] .store-table th:nth-child(3),
[data-table-wrap="user-center"] .store-table td:nth-child(3),
[data-table-wrap="user-center"] .store-table th:nth-child(4),
[data-table-wrap="user-center"] .store-table td:nth-child(4),
[data-table-wrap="user-center"] .store-table th:nth-child(5),
[data-table-wrap="user-center"] .store-table td:nth-child(5) {
  width: 66px;
  min-width: 66px;
  text-align: center;
}

[data-table-wrap="user-center"] .store-table th:nth-child(6),
[data-table-wrap="user-center"] .store-table td:nth-child(6) {
  width: 104px;
  min-width: 104px;
}

[data-table-wrap="user-center"] .store-table th:nth-child(7),
[data-table-wrap="user-center"] .store-table td:nth-child(7) {
  width: 132px;
  min-width: 132px;
}

[data-table-wrap="user-center"] .store-table th:last-child,
[data-table-wrap="user-center"] .store-table td:last-child {
  width: 104px;
  min-width: 104px;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(1),
[data-table-wrap="cards-center"] .store-table td:nth-child(1) {
  width: 150px;
  min-width: 150px;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(2),
[data-table-wrap="cards-center"] .store-table td:nth-child(2),
[data-table-wrap="cards-center"] .store-table th:nth-child(3),
[data-table-wrap="cards-center"] .store-table td:nth-child(3) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(4),
[data-table-wrap="cards-center"] .store-table td:nth-child(4) {
  width: 96px;
  min-width: 96px;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(5),
[data-table-wrap="cards-center"] .store-table td:nth-child(5) {
  width: 92px;
  min-width: 92px;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(6),
[data-table-wrap="cards-center"] .store-table td:nth-child(6) {
  width: 128px;
  min-width: 128px;
}

[data-table-wrap="cards-center"] .store-table th:nth-child(7),
[data-table-wrap="cards-center"] .store-table td:nth-child(7) {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-table-wrap="cards-center"] .store-table th:last-child,
[data-table-wrap="cards-center"] .store-table td:last-child {
  width: 112px;
  min-width: 112px;
  text-align: center;
  white-space: nowrap;
}

.search-actions {
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.search-actions button {
  height: 36px;
  min-height: 36px;
  padding: 7px 14px;
  line-height: 1.2;
}

.admin-table-filter-panel .search-actions {
  flex-wrap: nowrap;
}

.left-action-filter-panel {
  grid-template-columns: max-content auto;
  justify-content: start;
  column-gap: 10px;
}

.left-action-filter-panel .search-grid {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.left-action-filter-panel .search-grid label {
  flex: 0 0 auto;
}

.left-action-filter-panel .search-actions {
  justify-content: flex-start;
  align-self: end;
  flex-wrap: nowrap;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.build-car-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(140px, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 0;
}

.build-car-form label {
  gap: 4px;
}

.build-car-form label span,
.build-car-form .settings-check span {
  font-size: 12px;
  line-height: 1.2;
}

.build-car-form input,
.build-car-form select {
  height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 1.2;
}

.build-car-form input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
}

.add-products-form {
  grid-template-columns: 420px 96px 124px 220px 90px 128px 120px 112px;
  gap: 8px;
  justify-content: start;
  overflow-x: auto;
}

.add-products-form label {
  min-width: 0;
}

.add-products-form select,
.add-products-form input {
  padding-right: 6px;
  padding-left: 7px;
}

.add-products-form > button {
  width: 100%;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}

.add-products-checkline {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.add-products-checkline input {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.compact-toolbar {
  align-items: center;
  margin-top: 4px;
}

.compact-toolbar .form-hint {
  margin-top: 0;
}

.add-products-update-toolbar {
  margin-top: 0;
  margin-bottom: 6px;
}

.add-products-build-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #f8fbff;
}

.add-products-build-row {
  display: grid;
  grid-column: 2;
  grid-template-columns: 104px 315px 360px 136px 128px;
  gap: 6px 8px;
  align-items: center;
  min-width: 1075px;
  margin-bottom: 6px;
}

.add-products-build-row label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.add-products-build-row label span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-products-build-row label:nth-of-type(3) {
  grid-template-columns: 56px 72px;
}

.add-products-build-row label:nth-of-type(4) {
  grid-template-columns: 56px 64px;
}

.add-products-build-row label:nth-of-type(3) input {
  width: 72px;
}

.add-products-build-row label:nth-of-type(4) input {
  width: 64px;
}

.add-products-build-row:last-child {
  margin-bottom: 0;
}

.add-products-build-btn {
  width: 104px;
  height: 32px;
  min-height: 32px;
  min-width: 104px;
  padding-top: 5px;
  padding-bottom: 5px;
  align-self: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.add-products-build-both-btn {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: stretch;
}

.add-products-plan-panel h3,
.build-task-panel h3 {
  margin-bottom: 10px;
  color: var(--header);
}

.add-products-plan-wrap {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.add-products-plan-wrap .store-table {
  width: 100%;
  min-width: 600px;
  table-layout: fixed;
}

.add-products-plan-wrap .store-table th,
.add-products-plan-wrap .store-table td {
  min-width: 0;
  padding-top: 9px;
  padding-right: 8px;
  padding-bottom: 9px;
  padding-left: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.add-products-plan-wrap .store-table th:nth-child(1),
.add-products-plan-wrap .store-table td:nth-child(1) {
  width: 44px;
  min-width: 44px !important;
}

.add-products-plan-wrap .store-table th:nth-child(2),
.add-products-plan-wrap .store-table td:nth-child(2) {
  width: 112px;
}

.add-products-plan-wrap .store-table th:nth-child(3),
.add-products-plan-wrap .store-table td:nth-child(3) {
  width: 176px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-products-plan-wrap .store-table th:nth-child(4),
.add-products-plan-wrap .store-table td:nth-child(4) {
  width: 92px;
}

.add-products-plan-wrap .store-table th:nth-child(5),
.add-products-plan-wrap .store-table td:nth-child(5) {
  width: 64px;
}

.add-products-plan-wrap .store-table th:nth-child(6),
.add-products-plan-wrap .store-table td:nth-child(6) {
  width: 72px;
}

.add-products-plan-name {
  max-width: 176px;
}

.add-products-product-panel .promotion-product-wrap {
  flex: 1;
  min-height: 0;
}

.add-products-product-panel .promotion-product-wrap .store-table th,
.add-products-product-panel .promotion-product-wrap .store-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.45;
}

.add-products-product-panel .promotion-product-wrap .store-table th:nth-child(3),
.add-products-product-panel .promotion-product-wrap .store-table td:nth-child(3) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding-right: 6px;
  padding-left: 6px;
}

.add-products-plan-row.is-selected {
  background: #edf7ff;
}

.add-products-plan-select {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .add-products-workspace {
    flex-direction: column;
  }

  .add-products-build-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .add-products-build-row {
    grid-template-columns: 86px repeat(4, minmax(120px, 1fr));
  }

  .add-products-build-btn {
    width: 86px;
    min-width: 86px;
  }

  .add-products-plan-panel {
    flex: 0 0 auto;
    max-height: 280px;
  }
}

.build-car-action-panel {
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 6px 16px;
}

.build-car-input-panel {
  padding: 8px 12px;
  margin-bottom: 4px;
}

.build-car-input-panel .toolbar {
  gap: 8px;
  row-gap: 4px;
  min-height: 32px;
}

.build-car-input-panel button,
.build-car-input-panel .toolbar button {
  height: 32px;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.build-car-input-panel .form-hint {
  margin-top: 4px;
  line-height: 1.35;
}

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

.summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(64, 158, 255, 0.08), rgba(64, 158, 255, 0.01)),
    #fff;
}

.summary-card strong {
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

.summary-card p {
  color: var(--muted);
  line-height: 1.6;
}

.summary-label {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.fixed-table-wrap {
  --table-title-row-height: 42px;
  --table-header-row-height: 44px;
  --table-summary-row-height: 38px;
  width: 100%;
  height: var(--table-max-height, calc(100vh - 250px));
  max-height: var(--table-max-height, calc(100vh - 250px));
  min-height: var(--table-max-height, calc(100vh - 250px));
  position: relative;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

.fixed-table-wrap .store-table {
  border-collapse: separate;
  border-spacing: 0;
}

.store-table {
  display: table;
  width: max-content;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}

.store-table-compact {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.store-table-compact th,
.store-table-compact td {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.store-table th,
.store-table td {
  box-sizing: border-box;
  min-width: 108px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.store-table th:first-child,
.store-table td:first-child {
  min-width: 96px;
  padding-left: 6px;
}

.store-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #667085;
  font-weight: 700;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 var(--line-strong), 0 1px 0 rgba(215, 220, 226, 0.55);
}

.summary-row td {
  position: sticky;
  top: var(--table-header-row-height, 45px);
  z-index: 4;
  height: var(--table-summary-row-height, 38px);
  min-height: var(--table-summary-row-height, 38px);
  background: #fffdf0;
  font-weight: 700;
  color: #7a4a05;
  box-shadow: inset 0 -1px 0 #efd8a9, inset 0 1px 0 #fff3cf;
}

.titled-table .table-title-row th {
  top: 0;
  z-index: 6;
  min-width: 0;
  height: var(--table-title-row-height, 42px);
  min-height: var(--table-title-row-height, 42px);
  padding: 10px 12px;
  color: #344054;
  font-size: 15px;
  text-align: left;
  background: #f4f7fb;
}

.titled-table thead tr:nth-child(2) th {
  top: var(--table-title-row-height, 42px);
  z-index: 5;
  height: var(--table-header-row-height, 44px);
  min-height: var(--table-header-row-height, 44px);
}

.titled-table .summary-row td {
  top: calc(var(--table-title-row-height, 42px) + var(--table-header-row-height, 44px));
}

.check-col {
  width: 40px;
  min-width: 40px !important;
}

.store-table th:nth-child(1),
.store-table td:nth-child(1) {
  min-width: 96px;
}

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

[data-table-wrap="account-center"] .store-status-col,
[data-table-wrap="account-center"] .store-table th.store-status-col,
[data-table-wrap="account-center"] .store-table td.store-status-col {
  width: 72px;
  min-width: 72px !important;
  max-width: 72px;
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

[data-table-wrap="account-center"] .store-table {
  min-width: 1120px;
  font-size: 13px;
}

[data-table-wrap="account-center"][data-account-role="sub"] .store-table {
  min-width: 1120px;
}

[data-table-wrap="account-center"] .store-table th,
[data-table-wrap="account-center"] .store-table td {
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.25;
}

[data-table-wrap="account-center"] .account-index-col {
  width: 48px;
  min-width: 48px !important;
  max-width: 48px;
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
}

[data-table-wrap="account-center"] .account-login-status-col,
[data-table-wrap="account-center"] .account-collect-status-col {
  width: 70px;
  min-width: 70px !important;
  max-width: 70px;
  padding-right: 6px;
  padding-left: 6px;
}

[data-table-wrap="account-center"] .account-store-col {
  width: 210px;
  min-width: 210px !important;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-table-wrap="account-center"] .account-owner-col {
  width: 100px;
  min-width: 100px !important;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-table-wrap="account-center"] .account-login-time-col,
[data-table-wrap="account-center"] .account-created-col {
  width: 120px;
  min-width: 120px !important;
  max-width: 120px;
}

[data-table-wrap="account-center"] .account-count-col {
  width: 60px;
  min-width: 60px !important;
  max-width: 60px;
  text-align: center;
}

[data-table-wrap="account-center"] .account-action-col {
  width: 226px;
  min-width: 226px !important;
  max-width: 226px;
}

[data-table-wrap="account-center"] .account-action-col .action-row {
  flex-wrap: nowrap;
  gap: 6px;
}

[data-table-wrap="account-center"] .account-action-col .action-row button {
  min-width: 60px;
  min-height: 28px;
  padding: 3px 8px;
}

.taobao-placeholder-table {
  min-width: 1180px;
  font-size: 13px;
}

.taobao-placeholder-table th,
.taobao-placeholder-table td {
  box-sizing: border-box;
  min-width: 92px;
  padding: 9px 8px;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .taobao-placeholder-table {
  min-width: 1080px;
  font-size: 13px;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .taobao-placeholder-table th,
#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .taobao-placeholder-table td {
  min-width: 84px;
  padding: 7px 7px;
  line-height: 1.25;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .store-table.taobao-placeholder-table .table-title-row th {
  height: 36px;
  padding: 7px 10px;
  font-size: 14px;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .titled-table thead tr:nth-child(2) th {
  top: 36px;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] .titled-table .summary-row td {
  top: 70px;
}

.store-table.taobao-placeholder-table .table-title-row th {
  left: 0;
  z-index: 12;
  white-space: nowrap;
}

.store-table.taobao-placeholder-table .table-title-sticky-label {
  position: sticky;
  left: 12px;
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.store-table.taobao-placeholder-table .expense-category-header {
  width: 100px;
  min-width: 100px !important;
  max-width: 100px;
  padding-left: 6px;
  padding-right: 6px;
}

.store-table.taobao-placeholder-table .expense-category-cell {
  width: 100px;
  min-width: 100px !important;
  max-width: 100px;
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-table.taobao-placeholder-table .expense-category-header span,
.store-table.taobao-placeholder-table .alipay-sort-button > span:first-child {
  display: block;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-table.taobao-placeholder-table .alipay-sort-button {
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  overflow: hidden;
}

.alipay-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  border: none;
  padding: 0;
  background: transparent;
  color: #1d6fdc;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.alipay-detail-link:hover {
  text-decoration: underline;
}

.dialog.alipay-expense-detail-dialog {
  width: min(1500px, calc(100vw - 24px));
  height: min(860px, calc(100vh - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
}

.dialog.alipay-expense-detail-dialog.alipay-expense-summary-dialog {
  width: min(1100px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 24px));
}

.dialog.alipay-expense-detail-dialog .dialog-form {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  margin-top: 0;
}

.alipay-expense-detail-table-wrap {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
}

.alipay-expense-detail-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 14px;
}

.alipay-expense-detail-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(76, 91, 112, 0.65);
  background-clip: padding-box;
}

.alipay-expense-detail-table-wrap::-webkit-scrollbar-track {
  background: rgba(219, 227, 238, 0.45);
}

.alipay-expense-horizontal-controls {
  display: none !important;
}

.alipay-expense-horizontal-controls.hidden {
  display: none;
}

.alipay-expense-horizontal-controls span {
  color: var(--muted);
  font-size: 12px;
}

.alipay-expense-horizontal-controls button {
  min-width: 74px;
  padding: 6px 10px;
}

.alipay-expense-detail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.alipay-expense-summary-dialog .alipay-expense-detail-table {
  min-width: 0;
}

.alipay-expense-detail-table th,
.alipay-expense-detail-table td {
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(1),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(1) {
  width: 5%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(2),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(2) {
  width: 14%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(3),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(3) {
  width: 14%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(4),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(4) {
  width: 10%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(5),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(5) {
  width: 14%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(6),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(6) {
  width: 17%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(7),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(7) {
  width: 8%;
}

.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table th:nth-child(8),
.alipay-expense-detail-dialog:not(.alipay-expense-summary-dialog) .alipay-expense-detail-table td:nth-child(8) {
  width: 18%;
}

.alipay-expense-summary-dialog .alipay-expense-detail-table th,
.alipay-expense-summary-dialog .alipay-expense-detail-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.taobao-placeholder-table th:nth-child(1),
.taobao-placeholder-table td:nth-child(1) {
  width: 40px;
  min-width: 40px !important;
}

.store-table.taobao-placeholder-table th:nth-child(2),
.store-table.taobao-placeholder-table td:nth-child(2) {
  width: 56px;
  min-width: 56px !important;
  text-align: center;
}

.store-table.taobao-placeholder-table thead tr:not(.table-title-row) th:nth-child(1),
.store-table.taobao-placeholder-table tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.store-table.taobao-placeholder-table thead tr:not(.table-title-row) th:nth-child(2),
.store-table.taobao-placeholder-table tbody td:nth-child(2) {
  position: sticky;
  left: 40px;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.store-table.taobao-placeholder-table thead tr:not(.table-title-row) th:nth-child(3),
.store-table.taobao-placeholder-table tbody td:nth-child(3) {
  position: sticky;
  left: 96px;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.store-table.taobao-placeholder-table thead tr:not(.table-title-row) th:nth-child(-n + 3) {
  z-index: 7;
  background: #f8fafc;
}

.store-table.taobao-placeholder-table .summary-row td:nth-child(-n + 3) {
  z-index: 5;
  background: #fffdf0;
}

.store-table.taobao-placeholder-table .alipay-summary-row .summary-label-cell {
  min-width: 220px !important;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

#taobao-placeholder-panel[data-placeholder-type="product-management"] .fixed-table-wrap {
  --table-title-row-height: 36px;
  --table-header-row-height: 34px;
  --table-summary-row-height: 34px;
}

#taobao-placeholder-panel[data-placeholder-type="product-management"] .titled-table .table-title-row th {
  height: var(--table-title-row-height, 36px);
  min-height: var(--table-title-row-height, 36px);
  padding-top: 7px;
  padding-bottom: 7px;
}

#taobao-placeholder-panel[data-placeholder-type="product-management"] .titled-table thead tr:nth-child(2) th {
  top: var(--table-title-row-height, 36px);
  height: var(--table-header-row-height, 34px);
  min-height: var(--table-header-row-height, 34px);
}

#taobao-placeholder-panel[data-placeholder-type="product-management"] .titled-table .summary-row td {
  top: calc(var(--table-title-row-height, 36px) + var(--table-header-row-height, 34px));
  height: var(--table-summary-row-height, 34px);
  min-height: var(--table-summary-row-height, 34px);
}

.store-table.taobao-placeholder-table th:nth-child(3),
.store-table.taobao-placeholder-table td:nth-child(3) {
  width: 256px;
  min-width: 256px !important;
  max-width: 256px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-table.taobao-placeholder-table th:nth-child(4),
.store-table.taobao-placeholder-table td:nth-child(4) {
  width: 112px;
  min-width: 112px !important;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#taobao-placeholder-panel:not([data-placeholder-type="alipay-expense"]):not([data-placeholder-type="alipay-bill"]) .store-table.taobao-placeholder-table th:nth-child(10),
#taobao-placeholder-panel:not([data-placeholder-type="alipay-expense"]):not([data-placeholder-type="alipay-bill"]) .store-table.taobao-placeholder-table td:nth-child(10) {
  min-width: 240px;
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(6),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(6),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(7),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(7),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(8),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(8),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(9),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(9),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(10),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(10) {
  width: 122px;
  min-width: 122px !important;
  max-width: 122px;
  white-space: nowrap;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(11),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(11) {
  width: 156px;
  min-width: 156px !important;
  max-width: 156px;
  white-space: nowrap;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table th:nth-child(3),
#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table td:nth-child(3) {
  width: 156px;
  min-width: 156px !important;
  max-width: 156px;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table th:nth-child(4),
#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table td:nth-child(4) {
  width: 132px;
  min-width: 132px !important;
  max-width: 132px;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table th:nth-child(5),
#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table td:nth-child(5) {
  width: 96px;
  min-width: 96px !important;
  max-width: 96px;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table th:nth-child(6),
#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table td:nth-child(6) {
  width: 76px;
  min-width: 76px !important;
  max-width: 76px;
  text-align: center;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table th:nth-child(7),
#taobao-placeholder-panel[data-placeholder-type="alipay-accounts"] .store-table.taobao-placeholder-table td:nth-child(7) {
  width: 138px;
  min-width: 138px !important;
  max-width: 138px;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(4),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(4) {
  width: 82px;
  min-width: 82px !important;
  max-width: 82px;
  text-align: center;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(5),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(5) {
  width: 104px;
  min-width: 104px !important;
  max-width: 104px;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(6),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(6) {
  width: 76px;
  min-width: 76px !important;
  max-width: 76px;
  text-align: center;
}

#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table th:nth-child(7),
#taobao-placeholder-panel[data-placeholder-type="alipay-balance"] .store-table.taobao-placeholder-table td:nth-child(7) {
  width: 110px;
  min-width: 110px !important;
  max-width: 110px;
}

.product-margin-rate-input {
  width: 72px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 8px;
  text-align: right;
  color: #1f2937;
  background: #fff;
}

.product-margin-rate-input:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.14);
}

.product-margin-rate-input:disabled {
  color: #64748b;
  background: #f8fafc;
}

.store-table td:nth-child(2),
.store-table td:nth-child(3),
.store-table td:nth-child(4),
.store-table td:last-child {
  white-space: normal;
  word-break: break-word;
}

.task-output {
  max-width: 520px;
  max-height: 220px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.5 "SFMono-Regular", Consolas, monospace;
  color: #2a3442;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: #f0f2f5;
  color: var(--muted);
}

.status.online {
  background: #eff9eb;
  color: var(--success);
}

.status.disabled {
  background: #f0f2f5;
  color: #6b7280;
}

.status.logging_in {
  background: #fff7e6;
  color: #d08d20;
}

.status.login_required,
.status.error {
  background: #fff2f2;
  color: var(--danger);
}

.status.user-status-toggle {
  min-width: 54px;
  min-height: 24px;
  border: 0;
  cursor: pointer;
}

.status.user-status-toggle:hover:not(:disabled),
.status.user-status-toggle:focus:not(:disabled) {
  filter: brightness(0.97);
}

.status.user-status-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 26px 10px;
}

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

.note-list p {
  color: var(--muted);
  line-height: 1.7;
}

.dialog {
  width: min(860px, calc(100vw - 24px));
  border: none;
  border-radius: 10px;
  padding: 0;
}

.dialog:not([open]) {
  display: none;
}

.dialog[open] {
  display: block;
}

.dialog-fallback .dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

body.dialog-fallback-active::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(24, 30, 40, 0.32);
  content: "";
}

#user-dialog {
  width: min(680px, calc(100vw - 24px));
}

.dialog::backdrop {
  background: rgba(24, 30, 40, 0.32);
}

.dialog-form {
  padding: 18px;
}

.dialog-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-form .checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.dialog-form .checkbox-line span {
  color: var(--header);
}

.store-collect-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
}

.store-collect-modules legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.store-collect-modules .checkbox-line {
  min-width: 0;
}

.store-collect-modules .checkbox-line span {
  font-size: 12px;
}

.store-collect-modules input:disabled + span {
  color: var(--muted);
}

.login-order-dialog {
  width: min(640px, calc(100vw - 32px));
}

.login-order-form {
  max-height: min(760px, calc(100vh - 64px));
}

.login-order-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding: 4px;
}

.login-order-item {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) minmax(80px, 140px) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  cursor: grab;
}

.login-order-item.dragging {
  opacity: 0.55;
  border-color: #6aa3ff;
  background: #eef6ff;
}

.login-order-rank {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-weight: 700;
}

.login-order-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-order-note {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-order-actions {
  display: inline-flex;
  gap: 6px;
}

.login-order-actions button {
  padding: 5px 8px;
}

.realtime-single-dialog {
  width: min(820px, calc(100vw - 24px));
  height: min(820px, calc(100vh - 40px));
  border-radius: 4px;
}

.realtime-single-form {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  padding: 20px;
}

.realtime-single-form.has-build-settings-open {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.realtime-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.realtime-dialog-head h3 {
  color: #5f6672;
  font-size: 15px;
  font-weight: 500;
}

#realtime-single-close-btn {
  border: none;
  background: transparent;
  color: #7b8491;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
}

.realtime-dialog-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.realtime-dialog-filters label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.realtime-dialog-filters label span {
  text-align: right;
  color: #5f6672;
}

.realtime-dialog-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.realtime-dialog-actions span,
.realtime-dialog-footer {
  color: #4b5563;
  font-size: 14px;
}

.single-build-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
}

.single-build-settings label {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.single-build-settings label span {
  text-align: right;
}

.single-build-settings input {
  min-height: 32px;
  padding: 6px 9px;
}

.realtime-single-table-wrap {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--line);
}

.realtime-single-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.realtime-single-table th,
.realtime-single-table td {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.realtime-single-table th:nth-child(2),
.realtime-single-table td:nth-child(2) {
  width: 34%;
}

.realtime-single-table th:nth-child(3),
.realtime-single-table td:nth-child(3) {
  width: 28%;
}

.realtime-single-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

#user-form {
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.wujie-settings-dialog {
  width: min(780px, calc(100vw - 24px));
}

#wujie-settings-form {
  max-height: calc(100vh - 56px);
  overflow: hidden;
  padding-bottom: 0;
}

.wujie-settings-scroll {
  overflow: auto;
  max-height: calc(100vh - 170px);
  padding-right: 2px;
}

.transfer-sitewide-dialog {
  width: min(620px, calc(100vw - 24px));
}

#transfer-sitewide-form {
  max-height: calc(100vh - 56px);
  overflow: hidden;
  padding-bottom: 0;
}

.transfer-sitewide-scroll {
  overflow: auto;
  max-height: calc(100vh - 210px);
  padding-right: 2px;
}

.transfer-sitewide-option-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.transfer-sitewide-option-row > span {
  color: var(--header);
  font-size: 13px;
  line-height: 1.35;
}

.transfer-sitewide-roi-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.transfer-sitewide-roi-mode label,
.transfer-sitewide-check {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px;
}

.transfer-sitewide-roi-mode input,
.transfer-sitewide-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.transfer-sitewide-disabled-check {
  opacity: 0.7;
}

.transfer-sitewide-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
}

.settings-section {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.settings-section:first-child {
  margin-top: 0;
}

.settings-section label {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.settings-section label span {
  color: var(--header);
  font-size: 13px;
  line-height: 1.35;
}

.settings-section input[type="number"],
.settings-section input[type="text"],
.settings-section input[type="time"] {
  min-width: 0;
  height: 30px;
  padding: 5px 9px;
}

.settings-section input[type="number"] {
  max-width: 112px;
}

.settings-section input[type="time"] {
  max-width: 140px;
}

.settings-input-suffix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-input-suffix em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.settings-input-suffix input {
  flex: 0 0 auto;
}

.settings-logic-row .settings-input-suffix input {
  max-width: 64px;
}

.settings-logic-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.settings-logic-row > span,
.settings-logic-row > em {
  color: var(--header);
  font-size: 13px;
  line-height: 1.35;
}

.settings-logic-word {
  color: var(--muted);
  font-style: normal;
}

.settings-logic-roi-row {
  padding-left: 18px;
}

.settings-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-range-row {
  grid-template-columns: 104px minmax(0, 1fr) !important;
}

.settings-section:first-child label {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
}

.settings-section:first-child .settings-range-row {
  grid-template-columns: 84px minmax(0, 1fr) !important;
}

.settings-section:first-child .settings-inline-number-row {
  grid-template-columns: max-content 76px !important;
  justify-content: start;
  gap: 8px;
}

.settings-inline-number-row span {
  white-space: nowrap;
}

.settings-inline-number-row input[type="number"] {
  width: 76px;
}

.settings-range-inputs {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) auto minmax(68px, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.settings-range-inputs em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

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

.settings-inline-grid-wide {
  grid-template-columns: 1fr 1fr;
}

.settings-check {
  grid-template-columns: 16px minmax(0, 1fr) !important;
  justify-content: start;
}

.settings-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#batch-pause-unit-filter,
#batch-pause-product-filter {
  max-width: none;
  width: 100%;
}

.settings-schedule-label {
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: center;
}

.schedule-store-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-store-picker > button {
  height: 32px;
  padding: 0 12px;
}

.schedule-store-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.schedule-store-dialog {
  width: min(540px, calc(100vw - 28px));
}

.schedule-store-dialog-form {
  gap: 12px;
  max-height: min(620px, calc(100vh - 56px));
  overflow: hidden;
}

#realtime-schedule-dialog,
#jd-schedule-dialog,
#yesterday-schedule-dialog,
#login-heartbeat-schedule-dialog {
  width: min(680px, calc(100vw - 28px));
}

#realtime-schedule-form,
#jd-schedule-form,
#yesterday-schedule-form,
#login-heartbeat-schedule-form {
  max-height: min(720px, calc(100vh - 56px));
  max-height: min(720px, calc(100dvh - 56px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#realtime-schedule-form .settings-section,
#jd-schedule-form .settings-section,
#yesterday-schedule-form .settings-section,
#login-heartbeat-schedule-form .settings-section {
  margin-top: 0;
}

#realtime-schedule-form .schedule-store-list,
#jd-schedule-form .schedule-store-list,
#yesterday-schedule-form .schedule-store-list,
#login-heartbeat-schedule-form .schedule-store-list {
  max-height: min(320px, calc(100vh - 340px));
  max-height: min(320px, calc(100dvh - 340px));
}

#realtime-schedule-form .dialog-actions,
#jd-schedule-form .dialog-actions,
#yesterday-schedule-form .dialog-actions,
#login-heartbeat-schedule-form .dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -2px -2px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -10px 18px rgba(24, 30, 40, 0.08);
}

.schedule-store-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.schedule-store-panel-head strong {
  color: var(--header);
  font-size: 13px;
}

.schedule-store-panel-head div {
  display: flex;
  gap: 6px;
}

.schedule-store-panel-head button {
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.schedule-store-list {
  display: grid;
  gap: 6px;
  max-height: min(420px, calc(100vh - 210px));
  overflow: auto;
  padding-right: 2px;
}

.schedule-store-option {
  grid-template-columns: 16px minmax(130px, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fafbfc;
}

.schedule-store-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.schedule-store-option small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-store-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

#wujie-settings-form .dialog-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
  padding-bottom: 2px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.dialog-head {
  margin-bottom: 4px;
}

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

.permission-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.permission-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.permission-group-title {
  color: var(--header);
  font-size: 13px;
  font-weight: 700;
}

.permission-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  cursor: pointer;
}

.permission-group-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.permission-list {
  display: grid;
  gap: 8px;
  padding: 2px 0 4px;
}

.permission-list label {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  column-gap: 8px;
  color: var(--text);
  min-height: 24px;
  line-height: 1.35;
  white-space: nowrap;
}

.permission-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  min-height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 1.35;
}

.permission-section-compact .permission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.permission-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.permission-note {
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fb;
  color: var(--muted);
  line-height: 1.7;
}

.permission-section-muted .permission-group-title {
  color: var(--muted);
}

.table-panel {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.jd-account-table-panel {
  flex: 1.35;
}

.jd-account-table-panel .fixed-table-wrap {
  height: var(--table-max-height, calc(100vh - 210px));
  max-height: var(--table-max-height, calc(100vh - 210px));
  min-height: 420px;
}

.jd-secondary-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

.jd-secondary-panel .table-wrap {
  max-height: 220px;
}

.placeholder-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.product-thumb {
  display: block;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  object-fit: cover;
}

.promotion-data-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.promotion-summary-top-host {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-bottom: 6px;
  overflow: visible;
}

.promotion-summary-top-host:has(.wujie-summary-scope.has-store-summary:focus-within) {
  z-index: 100;
}

.promotion-summary-sticky-panel {
  position: relative;
  top: auto !important;
  margin-bottom: 0;
  background: transparent;
  z-index: 4;
  overflow: visible;
}

.promotion-summary-sticky-panel:has(.wujie-summary-scope.has-store-summary:focus-within) {
  z-index: 80;
}

.wujie-summary-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  overflow: visible;
}

.wujie-summary-head,
.wujie-summary-scope {
  min-width: 0;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  background: #ffffff;
}

.wujie-summary-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
}

.wujie-summary-head span,
.wujie-summary-scope-title,
.wujie-summary-metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.wujie-summary-head strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.wujie-summary-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  position: relative;
  outline: none;
}

.wujie-summary-scope-title {
  flex: 0 0 auto;
  font-weight: 700;
}

.wujie-summary-scope.has-store-summary {
  cursor: pointer;
}

.wujie-summary-scope.has-store-summary:hover,
.wujie-summary-scope.has-store-summary:focus-within {
  position: relative;
  z-index: 3;
  border-color: #8ec5ff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.wujie-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 6px;
}

.wujie-summary-metric {
  min-width: 0;
}

.wujie-summary-metric strong {
  display: inline-block;
  margin-top: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promotion-store-summary-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 90;
  width: min(700px, 82vw);
  max-width: calc(100vw - 48px);
  border: 1px solid #cdd8e6;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 48, 72, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.promotion-store-summary-popover.is-cumulative {
  right: 0;
  left: auto;
}

.wujie-summary-scope.has-store-summary:focus-within .promotion-store-summary-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.promotion-store-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border-bottom: 1px solid #e3e9f0;
  background: #f7f9fc;
}

.promotion-store-summary-head strong {
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.promotion-store-summary-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.promotion-store-summary-scroll {
  height: 260px;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}

.promotion-store-summary-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.promotion-store-summary-table th,
.promotion-store-summary-table td {
  height: 30px;
  padding: 4px 6px;
  border-bottom: 1px solid #edf0f4;
  text-align: right;
  white-space: nowrap;
}

.promotion-store-summary-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #5a6677;
  background: #f7f9fc;
  font-weight: 600;
}

.promotion-store-summary-table th:first-child,
.promotion-store-summary-table td:first-child {
  width: 180px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promotion-store-summary-table tbody tr:hover {
  background: #f5f9ff;
}

@media (max-width: 1180px) {
  .wujie-summary-panel {
    grid-template-columns: 1fr;
  }

  .promotion-store-summary-popover,
  .promotion-store-summary-popover.is-cumulative {
    right: auto;
    left: 0;
    width: min(720px, 88vw);
  }
}

.promotion-title-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 13px;
}

.promotion-data-panel.promotion-summary-column-fixed .promotion-title-tabs {
  position: sticky;
  left: 12px;
  z-index: 7;
  width: max-content;
  padding-right: 12px;
  background: #f4f7fb;
}

.promotion-table-tab {
  min-height: 28px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4b5a6d;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.promotion-table-tab:hover {
  border-color: #cdd8e6;
  background: #f4f7fb;
  color: #2f7de1;
}

.promotion-table-tab.active {
  border-color: #8ec5ff;
  background: #eaf4ff;
  color: #1d6fdc;
  box-shadow: inset 0 -2px 0 #409eff;
}

.promotion-data-panel {
  padding: 0;
  overflow: hidden;
}

.promotion-data-panel .fixed-table-wrap {
  --table-title-row-height: 36px;
  --table-header-row-height: 34px;
  --table-summary-row-height: 34px;
}

.promotion-data-panel .store-table {
  font-size: 13px;
}

.promotion-data-panel .store-table th,
.promotion-data-panel .store-table td {
  padding: 7px 8px;
  line-height: 1.25;
}

.promotion-data-panel .store-table th.promotion-number-cell,
.promotion-data-panel .store-table td.promotion-number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.promotion-data-panel .store-table th.promotion-number-cell .promotion-sort-button,
.promotion-data-panel .store-table td.promotion-number-cell .promotion-adjust-value {
  justify-content: flex-end;
}

.promotion-data-panel .store-table th:first-child,
.promotion-data-panel .store-table td:first-child {
  padding-left: 6px;
}

.promotion-data-panel .titled-table .table-title-row th {
  height: var(--table-title-row-height, 36px);
  min-height: var(--table-title-row-height, 36px);
  padding: 7px 10px;
  font-size: 14px;
}

.promotion-data-panel .titled-table thead tr:nth-child(2) th {
  top: var(--table-title-row-height, 36px);
  height: var(--table-header-row-height, 34px);
  min-height: var(--table-header-row-height, 34px);
}

.promotion-data-panel .titled-table .summary-row td {
  top: calc(var(--table-title-row-height, 36px) + var(--table-header-row-height, 34px));
}

.promotion-unit-delete-selectable .check-col {
  width: 40px;
  min-width: 40px !important;
  max-width: 40px;
  text-align: center;
}

.promotion-unit-delete-select-col {
  width: 36px;
  min-width: 36px !important;
  max-width: 36px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center !important;
}

.promotion-unit-delete-selectable {
  --promotion-select-column-width: 36px;
  --promotion-store-column-width: 148px;
}

.promotion-unit-delete-selectable .promotion-unit-delete-select-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.promotion-unit-delete-selectable .promotion-col-store {
  position: sticky;
  left: var(--promotion-select-column-width);
  z-index: 3;
  width: var(--promotion-store-column-width);
  min-width: var(--promotion-store-column-width) !important;
  max-width: var(--promotion-store-column-width);
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.promotion-unit-delete-selectable .titled-table thead tr:nth-child(2) th.promotion-unit-delete-select-col {
  z-index: 8;
  background: #f8fafc;
}

.promotion-unit-delete-selectable .titled-table thead tr:nth-child(2) th.promotion-col-store {
  z-index: 7;
  background: #f8fafc;
}

.promotion-unit-delete-selectable .summary-row td.promotion-unit-delete-select-col {
  z-index: 7;
  background: #fffdf0;
}

.promotion-unit-delete-selectable .summary-row td.promotion-col-store {
  z-index: 6;
  background: #fffdf0;
}

.promotion-unit-delete-select-col input {
  margin: 0;
}

#promotion-placeholder-content {
  margin-bottom: 0;
  padding-bottom: 0;
}

#promotion-placeholder-content .promotion-data-stack {
  margin-bottom: 0;
}

.promotion-table-pagination {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #f8fafc;
  color: #4b5a6d;
  font-size: 13px;
}

.promotion-data-panel > .promotion-table-pagination:last-child,
.table-panel > .promotion-table-pagination:last-child {
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.pagination-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.promotion-table-pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  margin-left: auto;
}

.promotion-table-pagination button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #26364a;
  font-weight: 700;
}

.promotion-table-pagination button:disabled {
  cursor: not-allowed;
  color: #9aa7b7;
  background: #eef2f7;
}

.promotion-table-pagination strong {
  color: #1f2d3d;
  white-space: nowrap;
}

.pagination-page-size-control,
.alipay-page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #4b5a6d;
  font-weight: 700;
  white-space: nowrap;
}

.pagination-page-size-control select,
.alipay-page-size-control select {
  height: 28px;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  flex: 0 0 112px;
  box-sizing: border-box;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  color: #26364a;
  font: inherit;
  font-weight: 700;
}

.admin-page-size-select,
.table-page-size-select {
  height: 30px;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  flex: 0 0 112px;
  box-sizing: border-box;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  color: #26364a;
  font: inherit;
  font-weight: 700;
}

.promotion-data-panel.promotion-store-fixed .store-table th:first-child,
.promotion-data-panel.promotion-store-fixed .store-table td:first-child,
.promotion-data-panel.promotion-summary-column-fixed .store-table th:first-child,
.promotion-data-panel.promotion-summary-column-fixed .store-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.promotion-data-panel.promotion-store-fixed .store-table thead th:first-child,
.promotion-data-panel.promotion-summary-column-fixed .store-table thead th:first-child {
  z-index: 5;
  background: #f8fafc;
}

.promotion-data-panel.promotion-store-fixed .titled-table .table-title-row th:first-child,
.promotion-data-panel.promotion-summary-column-fixed .titled-table .table-title-row th:first-child {
  left: 0;
  z-index: 6;
  background: #f4f7fb;
}

.promotion-data-panel.promotion-store-fixed .summary-row td:first-child,
.promotion-data-panel.promotion-summary-column-fixed .summary-row td:first-child {
  z-index: 4;
  background: #fffdf0;
}

[data-table-wrap="shop-realtime"] .store-table th:first-child,
[data-table-wrap="shop-realtime"] .store-table td:first-child,
[data-table-wrap="yesterday-data"] .store-table th:first-child,
[data-table-wrap="yesterday-data"] .store-table td:first-child,
[data-table-wrap="fund-statistics"] .store-table th:first-child,
[data-table-wrap="fund-statistics"] .store-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 138px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

[data-table-wrap="shop-realtime"] .store-table thead tr:nth-child(2) th:first-child,
[data-table-wrap="yesterday-data"] .store-table thead tr:nth-child(2) th:first-child,
[data-table-wrap="fund-statistics"] .store-table thead tr:nth-child(2) th:first-child {
  z-index: 6;
  background: #f8fafc;
}

[data-table-wrap="shop-realtime"] .titled-table .table-title-row th,
[data-table-wrap="yesterday-data"] .titled-table .table-title-row th,
[data-table-wrap="fund-statistics"] .titled-table .table-title-row th {
  z-index: 7;
  background: #f4f7fb;
}

.store-data-title-sticky {
  position: sticky;
  left: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding-right: 12px;
  background: #f4f7fb;
}

[data-table-wrap="shop-realtime"] .summary-row td:first-child,
[data-table-wrap="yesterday-data"] .summary-row td:first-child,
[data-table-wrap="fund-statistics"] .summary-row td:first-child {
  z-index: 5;
  background: #fffdf0;
}

[data-table-wrap="shop-realtime"] .store-table,
[data-table-wrap="yesterday-data"] .store-table,
[data-table-wrap="fund-statistics"] .store-table {
  min-width: 1160px;
  font-size: 13px;
}

[data-table-wrap="shop-realtime"],
[data-table-wrap="yesterday-data"],
[data-table-wrap="fund-statistics"] {
  --table-title-row-height: 36px;
  --table-header-row-height: 34px;
  --table-summary-row-height: 34px;
}

[data-table-wrap="shop-realtime"] .titled-table .table-title-row th,
[data-table-wrap="yesterday-data"] .titled-table .table-title-row th,
[data-table-wrap="fund-statistics"] .titled-table .table-title-row th {
  height: var(--table-title-row-height, 36px);
  min-height: var(--table-title-row-height, 36px);
  padding-top: 7px;
  padding-bottom: 7px;
}

[data-table-wrap="shop-realtime"] .titled-table thead tr:nth-child(2) th,
[data-table-wrap="yesterday-data"] .titled-table thead tr:nth-child(2) th,
[data-table-wrap="fund-statistics"] .titled-table thead tr:nth-child(2) th {
  top: var(--table-title-row-height, 36px);
  height: var(--table-header-row-height, 34px);
  min-height: var(--table-header-row-height, 34px);
}

[data-table-wrap="shop-realtime"] .titled-table .summary-row td,
[data-table-wrap="yesterday-data"] .titled-table .summary-row td,
[data-table-wrap="fund-statistics"] .titled-table .summary-row td {
  top: calc(var(--table-title-row-height, 36px) + var(--table-header-row-height, 34px));
  height: var(--table-summary-row-height, 34px);
  min-height: var(--table-summary-row-height, 34px);
}

[data-table-wrap="shop-realtime"] .store-table th,
[data-table-wrap="shop-realtime"] .store-table td,
[data-table-wrap="yesterday-data"] .store-table th,
[data-table-wrap="yesterday-data"] .store-table td,
[data-table-wrap="fund-statistics"] .store-table th,
[data-table-wrap="fund-statistics"] .store-table td {
  min-width: 92px;
  padding: 7px 8px;
  line-height: 1.3;
}

[data-table-wrap="shop-realtime"] .store-table tbody tr:not(.summary-row) td,
[data-table-wrap="yesterday-data"] .store-table tbody tr:not(.summary-row) td,
[data-table-wrap="fund-statistics"] .store-table tbody tr:not(.summary-row) td {
  padding-top: 6px;
  padding-bottom: 6px;
}

[data-table-wrap="shop-realtime"] .summary-row td,
[data-table-wrap="yesterday-data"] .summary-row td,
[data-table-wrap="fund-statistics"] .summary-row td {
  padding-top: 7px;
  padding-bottom: 7px;
}

[data-table-wrap="shop-realtime"] .store-table th:first-child,
[data-table-wrap="shop-realtime"] .store-table td:first-child,
[data-table-wrap="yesterday-data"] .store-table th:first-child,
[data-table-wrap="yesterday-data"] .store-table td:first-child,
[data-table-wrap="fund-statistics"] .store-table th:first-child,
[data-table-wrap="fund-statistics"] .store-table td:first-child {
  width: 146px;
  min-width: 146px !important;
  max-width: 186px;
}

[data-table-wrap="shop-realtime"] .store-table th:nth-child(2),
[data-table-wrap="shop-realtime"] .store-table td:nth-child(2),
[data-table-wrap="yesterday-data"] .store-table th:nth-child(2),
[data-table-wrap="yesterday-data"] .store-table td:nth-child(2),
[data-table-wrap="fund-statistics"] .store-table th:nth-child(2),
[data-table-wrap="fund-statistics"] .store-table td:nth-child(2) {
  width: 74px;
  min-width: 74px !important;
  max-width: 96px;
}

.store-data-account-cell {
  display: inline-grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: nowrap;
}

.store-data-account-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-data-state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.78);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.store-data-state-dot.success {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.16);
}

.store-data-state-dot.running {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.store-data-state-dot.failed {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.promotion-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.promotion-sort-button:hover,
.promotion-sort-button.active {
  color: #2f7de1;
}

.promotion-sort-icon {
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
}

.promotion-sort-button.active .promotion-sort-icon {
  color: #2f7de1;
}

.muted-cell {
  color: #667085;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .search-panel,
  .admin-table-filter-panel,
  .split {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-grid label {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .jd-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-two-col,
  .settings-inline-grid {
    grid-template-columns: 1fr;
  }

  .promotion-columns-layout,
  .promotion-columns-list {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
    max-height: none;
  }

}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .search-grid label {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
  }

  .fixed-table-wrap {
    max-height: var(--table-max-height, calc(100vh - 250px));
  }

  .add-products-build-card {
    grid-template-columns: 1fr;
  }

  .add-products-build-both-btn {
    grid-column: 1;
    grid-row: auto;
  }

  .add-products-build-row {
    grid-column: 1;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .add-products-build-btn {
    width: 100%;
    min-width: 0;
  }
}

#account-center-panel .search-panel {
  grid-template-columns: max-content auto;
  justify-content: start;
  column-gap: 10px;
  align-items: end;
}

#account-center-panel .search-grid {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

#account-center-panel .search-grid label {
  flex: 0 0 auto;
  grid-template-columns: 56px 150px;
}

#account-center-panel .search-grid label:has(input[data-taobao-store-suggest="true"]),
#account-center-panel .search-grid label:has(input[data-jd-store-suggest="true"]),
#account-center-panel .search-grid label:has(input[data-alipay-account-suggest="true"]) {
  grid-template-columns: 56px 220px;
}

#account-center-panel .search-grid label:has(input[data-responsible-suggest="true"]) {
  grid-template-columns: 56px 120px;
}

#account-center-panel .search-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Keep account pagination below the table scroller so it never covers rows. */
#account-center-panel.active {
  overflow-y: hidden;
}

#account-center-panel > .table-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  height: 0;
  min-height: 0;
  padding: 0;
  border-color: var(--line-strong);
  isolation: isolate;
  overflow: hidden;
}

#account-center-panel > .table-panel > .fixed-table-wrap {
  flex: 1 1 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0;
  border-radius: 0;
  contain: paint;
}

#account-center-panel > .table-panel > .promotion-table-pagination {
  position: relative;
  bottom: auto;
  z-index: 10;
  flex: 0 0 34px;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  flex-wrap: nowrap;
  border-bottom: 0;
  box-shadow: none;
}

#account-center-panel > .table-panel > .promotion-table-pagination.hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

/* Keep store-data pagination outside the table scroller. */
#shop-realtime-panel.active,
#yesterday-data-panel.active,
#fund-statistics-panel.active {
  overflow-y: hidden;
}

#shop-realtime-panel > .table-panel,
#yesterday-data-panel > .table-panel,
#fund-statistics-panel > .table-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  height: 0;
  min-height: 0;
  padding: 0;
  border-color: var(--line-strong);
  isolation: isolate;
}

#shop-realtime-panel > .table-panel > .fixed-table-wrap,
#yesterday-data-panel > .table-panel > .fixed-table-wrap,
#fund-statistics-panel > .table-panel > .fixed-table-wrap {
  flex: 1 1 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0;
  border-radius: 0;
  contain: paint;
}

#shop-realtime-panel > .table-panel > .promotion-table-pagination,
#yesterday-data-panel > .table-panel > .promotion-table-pagination,
#fund-statistics-panel > .table-panel > .promotion-table-pagination {
  position: relative;
  bottom: auto;
  z-index: 10;
  flex: 0 0 34px;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  flex-wrap: nowrap;
  border-bottom: 0;
  box-shadow: none;
}

#shop-realtime-panel > .table-panel > .promotion-table-pagination.hidden,
#yesterday-data-panel > .table-panel > .promotion-table-pagination.hidden,
#fund-statistics-panel > .table-panel > .promotion-table-pagination.hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

/* Alipay pages use the same compact fixed-footer viewport. */
#taobao-placeholder-panel[data-placeholder-type^="alipay-"].active {
  overflow-y: hidden;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .table-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-strong);
  isolation: isolate;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .table-panel > .fixed-table-wrap {
  flex: 1 1 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0;
  border-radius: 0;
  contain: paint;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .table-panel > .promotion-table-pagination {
  position: relative;
  bottom: auto;
  z-index: 10;
  flex: 0 0 34px;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  flex-wrap: nowrap;
  border-bottom: 0;
  box-shadow: none;
}

#taobao-placeholder-panel[data-placeholder-type^="alipay-"] > .table-panel > .promotion-table-pagination.hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

/* Keep Wujie, smart-plan, and sitewide-plan results in one stable viewport. */
#promotion-panel.tab-panel.active {
  overflow: hidden;
}

#promotion-panel > .sticky-panel {
  flex: 0 0 auto;
}

#promotion-placeholder-content:not(.hidden) {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

#promotion-placeholder-content > .promotion-data-stack {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

#promotion-placeholder-content .promotion-summary-sticky-panel {
  flex: 0 0 auto;
}

#promotion-placeholder-content .promotion-data-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

#promotion-placeholder-content .promotion-data-panel > .fixed-table-wrap {
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 0;
  max-height: none;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

#promotion-placeholder-content .promotion-data-panel > .promotion-table-pagination {
  position: relative;
  bottom: auto;
  z-index: 5;
  flex: 0 0 34px;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
  flex-wrap: nowrap;
  border-top: 1px solid var(--line-strong);
  background: #f8fafc;
  box-shadow: none;
}

/* Theme switch */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-btn:focus-visible {
  outline: 3px solid rgba(64, 158, 255, 0.3);
  outline-offset: 2px;
}

.theme-toggle-glyph {
  width: 18px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

#app-panel:not(.hidden) ~ .auth-theme-toggle {
  display: none;
}

.user-bar .sidebar-theme-toggle {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.user-bar .sidebar-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

body,
.panel,
.auth-card,
input,
textarea,
select,
button,
.fixed-table-wrap,
.dialog {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Dark theme */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111b2e;
  --line: #25344b;
  --line-strong: #34465f;
  --text: #e7eef8;
  --muted: #9aa9bd;
  --header: #0e1728;
  --header-accent: #f2c94c;
  --primary: #5aa9ff;
  --primary-dark: #78b9ff;
  --success: #76cf87;
  --danger: #ff8a8a;
  --dark-surface: #162238;
  --dark-surface-raised: #1a2942;
  --dark-surface-soft: #131f33;
  --dark-highlight: #24324a;
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .sidebar {
  background: var(--header);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .brand-mark {
  border: 1px solid var(--line-strong);
  background: var(--dark-surface-raised);
  color: #f3f7fc;
}

html[data-theme="dark"] :is(.auth-card, .panel, .dialog) {
  border-color: var(--line);
  background-color: var(--panel);
  color: var(--text);
}

html[data-theme="dark"] :is(input, textarea, select) {
  border-color: var(--line-strong);
  background: var(--dark-surface);
  color: var(--text);
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
  color: #7889a1;
}

html[data-theme="dark"] button:not(.primary):not(.tab):not(.home-schedule-toggle-btn):not(.sidebar-theme-toggle):not(.agent-update-btn):not(.agent-start-btn):not(.agent-stop-btn) {
  border-color: var(--line-strong);
  background: var(--dark-surface);
  color: var(--text);
}

html[data-theme="dark"] button:not(.primary):not(:disabled):hover {
  border-color: #4d6a8f;
}

html[data-theme="dark"] button.ghost {
  background: var(--dark-surface-soft);
  color: #c3cede;
}

html[data-theme="dark"] button.danger:not(.primary) {
  border-color: #6f3e48;
  background: #311b26;
  color: #ff9a9a;
}

html[data-theme="dark"] :is(.permission-empty h2, .permission-empty p) {
  color: var(--text);
}

html[data-theme="dark"] :is(
  .jd-jzt-chain-panel,
  .jd-setting-field span,
  .search-grid label span,
  .add-products-plan-panel h3,
  .build-task-panel h3,
  .dialog-form .checkbox-line span,
  .transfer-sitewide-option-row > span,
  .settings-section label span,
  .settings-logic-row > span,
  .settings-logic-row > em,
  .schedule-store-panel-head strong,
  .permission-group-title
) {
  color: #c7d3e3;
}

html[data-theme="dark"] .search-grid label span {
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] :is(.wujie-summary-head span, .wujie-summary-scope-title, .wujie-summary-metric span) {
  color: #afbed2;
}

html[data-theme="dark"] :is(
  .image-preview-popover,
  .home-schedule-panel,
  .promotion-status-menu,
  .agent-mini-progress-panel,
  .message,
  .admin-table-filter-panel,
  .promotion-action-panel,
  .action-panel,
  .jd-jzt-chain-panel,
  .promotion-column-item,
  .jd-setting-field,
  .store-suggest,
  .store-suggest button,
  .add-products-build-card,
  .fixed-table-wrap,
  .store-collect-modules,
  .login-order-item,
  .single-build-settings,
  .settings-section,
  .schedule-store-option,
  .permission-note,
  .wujie-summary-panel,
  .wujie-summary-scope,
  .promotion-store-summary-popover,
  .promotion-table-pagination,
  .promotion-table-pagination button,
  .store-data-title-sticky,
  .task-output,
  #jd-schedule-form .dialog-actions,
  #login-heartbeat-schedule-form .dialog-actions,
  #wujie-settings-form .dialog-actions,
  #promotion-placeholder-content .promotion-data-panel > .promotion-table-pagination
) {
  border-color: var(--line);
  background: var(--dark-surface-soft);
  color: var(--text);
}

html[data-theme="dark"] :is(.promotion-thumb, .image-preview-popover img, .placeholder-thumb, .product-thumb) {
  border-color: var(--line);
  background: var(--dark-surface);
}

html[data-theme="dark"] .summary-card {
  background:
    linear-gradient(180deg, rgba(90, 169, 255, 0.12), rgba(90, 169, 255, 0.02)),
    var(--dark-surface-soft);
}

html[data-theme="dark"] :is(.store-table th, .promotion-store-summary-table th) {
  border-color: var(--line);
  background: var(--dark-highlight);
  color: #b8c5d8;
}

html[data-theme="dark"] .store-table td,
html[data-theme="dark"] .promotion-store-summary-table td {
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] :is(.titled-table .table-title-row th, .promotion-store-summary-head, .promotion-data-panel.promotion-summary-column-fixed .promotion-title-tabs) {
  background: #1d2b43;
  color: #d7e1ef;
}

html[data-theme="dark"] :is(.summary-row td, .store-table.taobao-placeholder-table .summary-row td:nth-child(-n + 3)) {
  background: #302a1c;
  color: #f1cf78;
}

html[data-theme="dark"] .store-table.taobao-placeholder-table tbody td:nth-child(-n + 3),
html[data-theme="dark"] .promotion-unit-delete-selectable :is(.promotion-unit-delete-select-col, .promotion-col-store),
html[data-theme="dark"] .promotion-data-panel.promotion-summary-column-fixed .store-table td:first-child,
html[data-theme="dark"] [data-table-wrap="shop-realtime"] .store-table td:first-child,
html[data-theme="dark"] [data-table-wrap="yesterday-data"] .store-table td:first-child,
html[data-theme="dark"] [data-table-wrap="fund-statistics"] .store-table td:first-child {
  background: var(--panel);
}

html[data-theme="dark"] .store-table.taobao-placeholder-table thead tr:not(.table-title-row) th:nth-child(-n + 3),
html[data-theme="dark"] .promotion-unit-delete-selectable .titled-table thead tr:nth-child(2) :is(th.promotion-unit-delete-select-col, th.promotion-col-store),
html[data-theme="dark"] .promotion-data-panel.promotion-summary-column-fixed .store-table thead th:first-child,
html[data-theme="dark"] [data-table-wrap="shop-realtime"] .store-table thead tr:nth-child(2) th:first-child,
html[data-theme="dark"] [data-table-wrap="yesterday-data"] .store-table thead tr:nth-child(2) th:first-child,
html[data-theme="dark"] [data-table-wrap="fund-statistics"] .store-table thead tr:nth-child(2) th:first-child {
  background: var(--dark-highlight);
}

html[data-theme="dark"] [data-table-wrap="shop-realtime"] .summary-row td:first-child,
html[data-theme="dark"] [data-table-wrap="yesterday-data"] .summary-row td:first-child,
html[data-theme="dark"] [data-table-wrap="fund-statistics"] .summary-row td:first-child {
  background: #302a1c;
  color: #f1cf78;
}

html[data-theme="dark"] :is(.promotion-columns-pane-title, .jd-setting-section-title, .login-order-rank, .promotion-table-pagination strong) {
  color: #dce6f3;
}

html[data-theme="dark"] :is(
  .agent-mini-progress-panel,
  .agent-mini-progress-title,
  .agent-mini-progress-item,
  .task-output,
  .product-margin-rate-input,
  .promotion-table-tab,
  .promotion-table-pagination,
  .promotion-table-pagination button,
  .alipay-page-size-control,
  .alipay-page-size-control select,
  .table-page-size-select,
  .muted-cell
) {
  color: #c0ccdc;
}

html[data-theme="dark"] .agent-mini-progress-item {
  background: var(--dark-surface-raised);
}

html[data-theme="dark"] :is(.store-filter-clear, .store-suggest button:disabled, .product-margin-rate-input:disabled, .login-order-note, .realtime-dialog-head h3, .realtime-dialog-filters label span, .realtime-dialog-footer, #realtime-single-close-btn, .promotion-sort-icon) {
  color: var(--muted);
}

html[data-theme="dark"] :is(.store-filter-clear, .store-suggest button:disabled, .product-margin-rate-input:disabled, .promotion-table-pagination button:disabled) {
  background: #1b283c;
}

html[data-theme="dark"] :is(.status, .status.disabled) {
  background: #202c3f;
  color: #aab7c9;
}

html[data-theme="dark"] :is(.promotion-status-static.is-active, .status.online) {
  background: #153524;
  color: #7ee29a;
}

html[data-theme="dark"] :is(.promotion-status-static.is-paused, .status.error, .message.error) {
  background: #3a2029;
  color: #ff9b9b;
}

html[data-theme="dark"] :is(.promotion-status-button.pending, .status.logging_in) {
  background: #3a3019;
  color: #f4c864;
}

html[data-theme="dark"] .message.success {
  background: #173526;
  color: #87dea0;
}

html[data-theme="dark"] .promotion-store-summary-table tbody tr:hover,
html[data-theme="dark"] .add-products-plan-row.is-selected,
html[data-theme="dark"] .store-suggest button:focus {
  background: #1d3554;
}

html[data-theme="dark"] .promotion-mixed-thumb {
  border-color: #7a4c24;
  background: linear-gradient(180deg, #3a2919 0%, #2d2118 100%);
  color: #ffc078;
}

html[data-theme="dark"] .promotion-edit-icon {
  border-color: var(--line-strong);
  background: var(--dark-surface);
  color: #78b9ff;
}

html[data-theme="dark"] .promotion-table-tab {
  border-color: #30425d;
  background: #17243a;
  color: #9eacc0;
}

html[data-theme="dark"] .promotion-table-tab:hover {
  border-color: #4e6d94;
  background: #203452;
  color: #cfe6ff;
}

html[data-theme="dark"] .promotion-table-tab.active,
html[data-theme="dark"] .promotion-table-tab.active:hover {
  border-color: #78bdff;
  background: linear-gradient(180deg, #2d83cc 0%, #1e609c 100%);
  color: #fff;
  box-shadow: inset 0 -2px 0 #9fd2ff, 0 0 0 1px rgba(90, 169, 255, 0.12), 0 4px 12px rgba(5, 15, 30, 0.28);
}

html[data-theme="dark"] .dialog::backdrop,
html[data-theme="dark"] body.dialog-fallback-active::before {
  background: rgba(2, 6, 15, 0.72);
}

html[data-theme="dark"] .auth-theme-toggle {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

@media (max-width: 640px) {
  .auth-theme-toggle {
    top: 12px;
    right: 12px;
    min-width: 40px;
    width: 40px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .auth-theme-toggle .theme-toggle-label {
    display: none;
  }
}
