/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 */
/* Hallmark · macrostructure: Red Sun Poster Login · tone: cinematic poster · anchor hue: sun-red / gold */
.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--window-radius);
}

.screen[hidden] {
  display: none;
}

/* ================= 登录页：北境赤日 ================= */
/* 基准画面 1440 × 900（窗口宽 1440 时 1cqw = 14.4px）：横向尺寸一律用 cqw，纵向用 %/cqw，
   窗口自行缩放时整幅画面等比缩放，面板本身保持 px 尺寸，保证文字不随窗口缩水 */
.login-screen {
  --lgn-gold: #ffc42e;
  --lgn-gold-light: #ffe7a0;
  --lgn-gold-deep: #c9860c;
  --lgn-gold-ink: #2a1403;
  --lgn-text-1: #fff6e6;
  --lgn-text-2: rgba(255, 240, 214, .74);
  --lgn-text-3: rgba(255, 214, 150, .52);
  --lgn-line: rgba(255, 196, 74, .2);
  --lgn-danger: #ff6b4a;
  --lgn-font-display: "Arial Black", "Segoe UI Black", Impact, "Microsoft YaHei UI", sans-serif;
  --lgn-font-mono: "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--window-radius);
  background: #050506;
  container-type: inline-size;
  isolation: isolate;
  -webkit-app-region: drag;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.login-screen[hidden] {
  display: none;
}

.login-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 天空 ---------- */
.login-sky {
  position: absolute;
  inset: 0 0 55.6% 0;
  background:
    radial-gradient(53cqw 44cqw at 36% 38%, rgba(255, 236, 176, .55), transparent 58%),
    linear-gradient(180deg, #ffd64e 0%, #ffb02e 20%, #ff8a1e 46%, #f2591b 74%, #de3912 100%);
}

.login-sky::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(120, 22, 4, .22) 100%),
    linear-gradient(180deg, rgba(255, 226, 140, .35) 0%, transparent 22%);
}

/* ---------- 红日 + 城市剪影（下缘压在水平线上，底部一段由倒影层盖住） ---------- */
.login-art {
  position: absolute;
  inset: 0 0 44.4% 0;
  z-index: 1;
  overflow: hidden;
}

.login-sun {
  position: absolute;
  bottom: -10.56cqw;
  left: 14.72cqw;
  width: 43.06cqw;
  height: 43.06cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #ff4a1e 0%, #f01b0c 48%, #d61006 100%);
  box-shadow: 0 0 10.4cqw 3.5cqw rgba(255, 88, 20, .32), 0 0 3cqw .7cqw rgba(255, 120, 40, .26);
  animation: lgn-sun-breathe 11s ease-in-out infinite;
}

@keyframes lgn-sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

.login-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 37.5cqw;
}

/* ---------- 水面 ---------- */
.login-water {
  position: absolute;
  inset: 44.4% 0 0 0;
  z-index: 0;
  background:
    radial-gradient(52.8cqw 29.2cqw at 36% 0%, rgba(255, 110, 30, .17), transparent 66%),
    linear-gradient(180deg, #07070b 0%, #030305 46%, #010102 100%);
}

.login-glint {
  position: absolute;
  top: calc(44.4% - 3px);
  right: 0;
  left: 0;
  z-index: 4;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(255, 240, 200, 0) 0%, rgba(255, 214, 150, .34) 20%, rgba(255, 240, 200, .72) 36%,
    rgba(255, 214, 150, .26) 58%, rgba(255, 236, 190, .1) 76%, rgba(255, 214, 150, 0) 100%);
  filter: blur(1.6px);
}

.login-waves {
  position: absolute;
  top: 44.6%;
  right: 0;
  left: 0;
  z-index: 4;
  height: 5.14cqw;
  opacity: .5;
  background: repeating-linear-gradient(180deg,
    rgba(255, 226, 170, .11) 0 1px, rgba(255, 226, 170, 0) 1px 5px,
    rgba(255, 226, 170, .05) 5px 6px, rgba(255, 226, 170, 0) 6px 13px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

/* ---------- 倒影 ---------- */
.login-refl {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-refl-city {
  z-index: 1;
  clip-path: inset(44.4% 0 0 0);
  -webkit-mask-image: repeating-linear-gradient(178deg, rgba(0, 0, 0, .96) 0 5px, rgba(0, 0, 0, .5) 5px 8px, rgba(0, 0, 0, .86) 8px 12px);
  mask-image: repeating-linear-gradient(178deg, rgba(0, 0, 0, .96) 0 5px, rgba(0, 0, 0, .5) 5px 8px, rgba(0, 0, 0, .86) 8px 12px);
  animation: lgn-ripple 5.6s linear infinite;
}

/* 只映城墙、塔楼与松树：日轮不参与倒影，避免水里出现悬空红盘 */
.login-refl-city > .login-art {
  transform: translateY(80%) scaleY(-1);
  opacity: .62;
  filter: blur(3px) saturate(1.06);
}

.login-refl-type {
  z-index: 3;
  clip-path: inset(44.4% 0 0 0);
  -webkit-mask-image: repeating-linear-gradient(178deg, rgba(0, 0, 0, .98) 0 6px, rgba(0, 0, 0, .72) 6px 12px);
  mask-image: repeating-linear-gradient(178deg, rgba(0, 0, 0, .98) 0 6px, rgba(0, 0, 0, .72) 6px 12px);
  animation: lgn-ripple 4.2s linear infinite reverse;
}

.login-refl-type > .login-logotype {
  transform: translateY(calc(100% + .83cqw)) scaleY(-1);
  opacity: .44;
  filter: blur(2.2px);
}

@keyframes lgn-ripple {
  to {
    -webkit-mask-position: 0 12px;
    mask-position: 0 12px;
  }
}

.login-water-fade {
  position: absolute;
  inset: 44.4% 0 0 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(3, 3, 4, 0) 0%, rgba(3, 3, 4, .12) 30%, rgba(3, 3, 4, .6) 66%, rgba(3, 3, 4, .94) 100%);
}

/* ---------- 金色立体字 BEIJINGYUN ---------- */
.login-logotype {
  position: absolute;
  bottom: 21.53cqw;
  left: 0;
  z-index: 5;
  width: 69.44cqw;
  height: 4.58cqw;
  font-family: var(--lgn-font-display);
  font-size: 6.25cqw;
  line-height: .74;
  letter-spacing: .004em;
  text-align: center;
  white-space: nowrap;
  animation: lgn-type-in 620ms cubic-bezier(.16, 1, .3, 1) both 120ms;
}

/* back 撑开字宽并做挤压侧面，face 叠在其上做金色渐变面 */
.login-logotype-inner {
  position: relative;
  display: inline-block;
}

.login-logotype-face {
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd24a 36%, #f5b01a 70%, #d28a07 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.login-logotype-back {
  color: #8c1b06;
  text-shadow:
    0 3px 0 #7c1605, 0 6px 0 #6e1304, 0 9px 0 #601003,
    0 12px 0 #520d03, 0 15px 0 #440a02, 0 18px 0 #380801,
    0 21px 0 #2c0601, 0 26px 20px rgba(0, 0, 0, .5);
}

@keyframes lgn-type-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 窗口按钮 ---------- */
.login-window-actions {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 30;
  display: flex;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.login-window-actions .win-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(58, 16, 4, .14);
  color: #4a1b07;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.login-window-actions .win-btn svg {
  width: 12px;
  height: 12px;
}

.login-window-actions .win-btn:hover {
  background: rgba(58, 16, 4, .3);
}

.login-window-actions .win-btn.is-close:hover {
  background: #d61006;
  color: #fff3e2;
}

/* ---------- 水面落款 ---------- */
.login-sign {
  position: absolute;
  bottom: 3.06cqw;
  left: 4.44cqw;
  z-index: 5;
  font-family: var(--lgn-font-mono);
  font-size: max(9px, .76cqw);
  letter-spacing: .26em;
  color: rgba(255, 214, 150, .34);
}

/* ---------- 登录面板 ---------- */
.login-panel {
  position: absolute;
  top: 47.2%;
  right: 7.92%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 380px;
  padding: 32px 34px 28px;
  border: 1px solid var(--lgn-line);
  border-radius: 24px;
  background: linear-gradient(168deg, rgba(20, 12, 8, .74) 0%, rgba(8, 6, 6, .86) 46%, rgba(3, 3, 4, .9) 100%);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, .46),
    0 0 0 1px rgba(0, 0, 0, .3) inset,
    0 1px 0 rgba(255, 214, 120, .18) inset;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  /* 面板在 drag 区域之上，必须 no-drag，否则输入框点不进去 */
  -webkit-app-region: no-drag;
  animation: lgn-panel-in 560ms cubic-bezier(.16, 1, .3, 1) both;
}

.login-panel::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 120, .85) 46%, transparent);
  content: "";
}

@keyframes lgn-panel-in {
  from { opacity: 0; transform: translateY(calc(-50% + 18px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

.login-panel-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.login-panel-brand-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-panel-brand-name b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lgn-text-1);
}

.login-panel-brand-name small {
  font-family: var(--lgn-font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--lgn-text-3);
}

.login-stamp {
  margin-left: auto;
  font-family: var(--lgn-font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .12em;
  color: var(--lgn-text-3);
  text-align: right;
  white-space: nowrap;
}

.login-stamp b {
  display: block;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--lgn-gold);
}

.login-rule {
  height: 1px;
  margin: 20px 0 18px;
  background: linear-gradient(90deg, transparent, var(--lgn-line) 18%, var(--lgn-line) 82%, transparent);
}

.login-eyebrow {
  font-family: var(--lgn-font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(255, 214, 150, .6);
}

.login-title {
  margin: 9px 0 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--lgn-text-1);
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 24px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field-label {
  font-family: var(--lgn-font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--lgn-text-3);
}

.login-field-shell {
  position: relative;
  display: block;
}

.login-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(255, 214, 150, .55);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid rgba(255, 196, 74, .16);
  border-radius: 12px;
  background: rgba(255, 236, 196, .055);
  color: var(--lgn-text-1);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .04em;
  outline: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.login-field input::placeholder {
  color: rgba(255, 230, 200, .3);
  letter-spacing: .06em;
}

@media (hover: hover) {
  .login-field input:hover {
    border-color: rgba(255, 196, 74, .3);
  }
}

.login-field input:focus {
  border-color: var(--lgn-gold);
  background: rgba(255, 236, 196, .085);
  box-shadow: 0 0 0 3px rgba(255, 196, 74, .14);
}

.login-field:focus-within .login-field-icon {
  stroke: #ffd77a;
}

/* 输入框自绘样式已接管，去掉浏览器自动填充的浅色底 */
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lgn-text-1);
  -webkit-box-shadow: 0 0 0 40px #1b1109 inset;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--lgn-text-2);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.login-remember-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 196, 74, .38);
  border-radius: 5px;
  background: rgba(255, 236, 196, .04);
  transition: background .16s var(--ease), border-color .16s var(--ease);
}

.login-remember-box svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--lgn-gold-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .14s var(--ease);
}

.login-remember input:checked + .login-remember-box {
  border-color: transparent;
  background: linear-gradient(180deg, #ffde72, #f0a81a);
}

.login-remember input:checked + .login-remember-box svg {
  opacity: 1;
}

.login-remember input:focus-visible + .login-remember-box {
  box-shadow: 0 0 0 3px rgba(255, 196, 74, .2);
}

.login-forgot {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 214, 150, .7);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .16s var(--ease);
}

@media (hover: hover) {
  .login-forgot:hover {
    color: var(--lgn-gold-light);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.login-forgot:focus-visible {
  outline: 2px solid rgba(255, 196, 74, .6);
  outline-offset: 3px;
  border-radius: 4px;
}

.login-error {
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--lgn-danger);
}

.login-error:not(:empty) {
  margin-top: 12px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe07a 0%, #f5b41e 55%, #e29a08 100%);
  box-shadow: 0 12px 28px rgba(240, 160, 20, .3), 0 1px 0 rgba(255, 255, 255, .55) inset;
  color: var(--lgn-gold-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), filter .18s var(--ease), box-shadow .18s var(--ease);
}

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (hover: hover) {
  .login-submit:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 18px 34px rgba(240, 160, 20, .38), 0 1px 0 rgba(255, 255, 255, .6) inset;
    transform: translateY(-1px);
  }
}

.login-submit:active:not(:disabled) {
  filter: brightness(.96);
  transform: translateY(0);
}

.login-submit:focus-visible {
  outline: 2px solid rgba(255, 214, 120, .8);
  outline-offset: 3px;
}

.login-submit:disabled {
  cursor: default;
  filter: saturate(.72) brightness(.86);
  transform: none;
}

.login-fine {
  margin-top: 17px;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  color: rgba(255, 214, 150, .6);
}

@media (prefers-reduced-motion: reduce) {
  .login-sun,
  .login-refl-city,
  .login-refl-type {
    animation: none;
  }

  .login-panel,
  .login-logotype {
    animation-duration: 150ms;
  }
}
/* 主壳：毛玻璃顶栏（自绘标题栏）+ 板块切换 + 内容区 */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 0 0 16px;
  border-bottom: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  -webkit-app-region: drag;
}

.topbar-brand {
  display: flex;
  align-items: center;
  padding-right: 4px;
}

.topbar-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .2px;
}

/* 板块切换：胶囊滑块跟随选中项 */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(16, 21, 38, .04), 0 20px 40px -24px rgba(16, 21, 38, .18);
  -webkit-app-region: no-drag;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s cubic-bezier(.22, 1, .36, 1), color .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s cubic-bezier(.22, 1, .36, 1);
}

.nav-item:hover {
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(16, 21, 38, .06), 0 8px 18px -10px rgba(16, 21, 38, .5);
}

.nav-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 95, 255, .32);
}

.account-menu {
  position: absolute;
  top: 9px;
  right: calc(3 * 44px + 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.account-btn {
  height: 28px;
  padding: 0 13px;
  border: 1px solid var(--glass-edge);
  border-radius: 7px;
  background: rgba(255, 255, 255, .76);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}

.account-btn:hover {
  border-color: rgba(16, 21, 38, .14);
  background: #fff;
  color: var(--ink);
}

.account-popover {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 50;
  display: grid;
  width: 220px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.account-popover[hidden] {
  display: none;
}

.account-popover-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-popover-row span {
  color: var(--ink-4);
  font-size: 12px;
}

.account-popover-row b {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 窗口控制：自绘三键 */
.win-controls {
  display: flex;
  align-self: stretch;
  margin-left: auto;
  -webkit-app-region: no-drag;
}

.win-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .14s var(--ease), color .14s var(--ease);
  /* 无边框窗口父级若是 drag，按钮自身必须 no-drag，否则点击会被当成拖拽 */
  -webkit-app-region: no-drag;
}

.win-btn:hover {
  background: rgba(16, 21, 38, .06);
  color: var(--ink);
}

.win-btn.is-close:hover {
  background: #e5484d;
  color: #fff;
}

.win-btn svg {
  width: 11px;
  height: 11px;
}

.platform-mac .win-controls,
.platform-mac .login-window-actions {
  display: none;
}

.platform-mac .topbar {
  padding-left: 88px;
}

.platform-mac .account-menu {
  right: 16px;
}

.shell-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.view {
  position: absolute;
  inset: 0;
  padding: 14px;
}

.view[hidden] {
  display: none;
}

/* 采集箱：列表 / 详情 */
.workbench {
  display: grid;
  height: 100%;
  gap: 12px;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
}

.workflow-board {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.gap-dashboard,
.gap-panel {
  height: 100%;
  min-width: 0;
}

.gap-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gap-toolbar {
  display: grid;
  flex: none;
  gap: 8px;
  grid-template-columns: 110px 110px 130px 150px minmax(220px, 1fr) auto;
  padding: 10px;
  border-bottom: 1px solid var(--glass-edge);
}

.gap-toolbar label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12px;
}

.gap-toolbar .input {
  height: 32px;
  font-size: 13px;
}

.gap-check {
  display: inline-flex !important;
  align-items: end;
  justify-content: center;
  grid-auto-flow: column;
  gap: 5px !important;
  padding-bottom: 7px;
  white-space: nowrap;
}

.gap-check input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.gap-meta {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--glass-edge);
  color: var(--ink-4);
  font-size: 12px;
}

.gap-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding: 10px;
}

.gap-row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 54px minmax(220px, 1.1fr) 100px 82px 120px minmax(260px, 1fr);
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
  user-select: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.gap-row.is-selected {
  border-color: rgba(47, 95, 255, .42);
  background: rgba(244, 248, 255, .96);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.gap-thumb {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
  color: var(--ink-4);
  font-size: 12px;
}

.gap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gap-main {
  min-width: 0;
}

.gap-title,
.gap-sub,
.gap-category {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.gap-code-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.gap-code-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-copy-btn {
  flex: none;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(47, 95, 255, .18);
  border-radius: 6px;
  background: rgba(47, 95, 255, .08);
  color: var(--accent-deep);
  font-size: 11px;
  cursor: pointer;
}

.gap-copy-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.gap-sub,
.gap-category {
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 12px;
}

.gap-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gap-metric span {
  color: var(--ink-4);
  font-size: 11px;
}

.gap-metric b {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-missing {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.gap-missing span {
  max-width: 180px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 183, 77, .16);
  color: #8a4c00;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-missing em {
  color: var(--ink-4);
  font-size: 12px;
  font-style: normal;
}

.gap-pager {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid var(--glass-edge);
}

/* 选品大屏 */
.selection-dashboard {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.selection-status {
  flex: none;
  min-width: 260px;
  padding: 5px 9px;
  border: 1px solid var(--glass-edge);
  border-radius: 9px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.selection-tabs {
  display: grid;
  flex: none;
  gap: 4px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 5px 11px;
  border-bottom: 1px solid var(--glass-edge);
}

.selection-tab {
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid rgba(47, 95, 255, .24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(47, 95, 255, .09), rgba(47, 95, 255, .03));
  color: var(--ink-2);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.selection-tab b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-deep);
  font-size: 13px;
}

.selection-tab.is-active {
  border-color: rgba(47, 95, 255, .65);
  background: linear-gradient(180deg, rgba(47, 95, 255, .25), rgba(47, 95, 255, .14));
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.store-filter-tabs {
  display: grid;
  flex: none;
  gap: 6px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 8px 10px;
  border-bottom: 1px solid var(--glass-edge);
}

.store-filter-tab {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(47, 95, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.store-filter-tab b,
.store-filter-tab span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-filter-tab b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.store-filter-tab span {
  margin-top: 1px;
  color: var(--ink-4);
  font-size: 11px;
}

.store-filter-tab.is-active {
  border-color: rgba(47, 95, 255, .38);
  background: linear-gradient(180deg, rgba(47, 95, 255, .16), rgba(47, 95, 255, .07));
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.selection-form {
  display: grid;
  flex: none;
  gap: 6px 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
  padding: 8px 11px;
  border-bottom: 1px solid var(--glass-edge);
}

.selection-form[hidden] {
  display: none;
}

.selection-filter-controls {
  display: grid;
  align-items: center;
  gap: 8px 12px;
  grid-column: 1 / -1;
  grid-template-columns: auto auto;
}

.selection-variant-merge,
.checkbox-pills label,
.tiny-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.selection-variant-merge input,
.checkbox-pills input,
.tiny-check input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.selection-variant-merge {
  cursor: pointer;
  white-space: nowrap;
}

.selection-variant-merge input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selection-switch-ui {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: #d8deea;
  box-shadow: inset 0 0 0 1px rgba(106, 124, 156, .2);
  transition: background .16s ease, box-shadow .16s ease;
}

.selection-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(34, 49, 78, .24);
  transition: transform .16s ease;
}

.selection-variant-merge input:checked + .selection-switch-ui {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(47, 95, 255, .1);
}

.selection-variant-merge input:checked + .selection-switch-ui::after {
  transform: translateX(16px);
}

.selection-variant-merge b {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.selection-variant-merge em {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(106, 124, 156, .14);
  color: var(--ink-4);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.selection-level-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(47, 95, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
}

.selection-level-toggle button {
  height: 28px;
  min-width: 58px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.selection-level-toggle button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 95, 255, .22);
}

.selection-filter {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.selection-filter.wide {
  grid-column: 1 / -1;
}

.selection-filter-category {
  grid-column: span 2;
}

.selection-filter > span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

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

.category-filter-control,
.match-text-control {
  display: grid;
  align-items: center;
  gap: 5px;
}

.category-filter-control {
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-filter-control.has-level {
  grid-template-columns: 92px minmax(0, 1fr);
}

.category-filter-control.has-exclude {
  grid-template-columns: minmax(0, 1fr) auto;
}

.match-text-control {
  grid-template-columns: 76px minmax(0, 1fr);
}

.selection-category-picker {
  position: relative;
  min-width: 0;
}

.selection-category-trigger {
  display: flex;
  width: 100%;
  height: 30px;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.selection-category-placeholder {
  overflow: hidden;
  color: var(--ink-4);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-category-chip {
  display: inline-flex;
  max-width: 45%;
  height: 21px;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  white-space: nowrap;
}

.selection-category-chip i {
  color: var(--ink-3);
  font-style: normal;
  line-height: 1;
}

.selection-category-count {
  flex: none;
  color: var(--ink-3);
  font-size: 12px;
}

.selection-category-menu {
  position: absolute;
  z-index: 60;
  top: 34px;
  left: 0;
  width: min(780px, 86vw);
  max-width: calc(100vw - 48px);
  padding: 8px;
  border: 1px solid rgba(47, 95, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(35, 48, 76, .18);
}

.selection-category-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 58px;
  margin-bottom: 6px;
}

.selection-category-actions button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.selection-category-cascade {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-category-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.selection-category-column-title {
  height: 28px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
  line-height: 28px;
}

.selection-category-column-body {
  height: 292px;
  overflow: auto;
  padding: 4px;
}

.selection-category-cascade-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
}

.selection-category-cascade-item:hover,
.selection-category-cascade-item.is-active {
  background: rgba(47, 95, 255, .08);
}

.selection-category-cascade-item input[type="checkbox"] {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0 0 0 6px;
  cursor: pointer;
}

.selection-category-cascade-item button {
  display: flex;
  min-width: 0;
  flex: 1;
  height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 6px 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.selection-category-cascade-item span,
.selection-category-search-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-category-cascade-item i {
  flex: none;
  color: var(--ink-4);
  font-style: normal;
}

.selection-category-search-results {
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.selection-category-search-result {
  display: grid;
  align-items: center;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 48px;
  padding: 5px 6px;
  border-bottom: 1px solid #f2f4f8;
}

.selection-category-search-result:last-child {
  border-bottom: 0;
}

.selection-category-search-result button,
.selection-category-footer button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.selection-category-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.selection-category-footer span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-category-footer .primary {
  border-color: rgba(47, 95, 255, .32);
  background: var(--accent);
  color: #fff;
}

.selection-category-empty {
  padding: 12px 8px;
  color: var(--ink-4);
  font-size: 12px;
  text-align: center;
}

.selection-filter .input,
.range-inputs .input,
.category-filter-control .input,
.match-text-control .input {
  height: 30px;
  padding: 0 9px;
  font-size: 13px;
}

.range-inputs .input,
.category-filter-control .input,
.match-text-control .input {
  min-width: 0;
}

.range-inputs em {
  color: var(--ink-4);
  font-style: normal;
  font-size: 13px;
}

.checkbox-pills {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 9px;
}

.selection-actions {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--glass-edge);
}

.selection-actions .selection-status {
  margin-right: auto;
}

.selection-pager {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.selection-page-input {
  width: 58px;
  height: 28px;
  padding: 0 7px;
  text-align: center;
}

.selection-page-size {
  width: 92px;
  height: 28px;
  padding: 0 26px 0 8px;
  font-size: 13px;
}

.selection-page-total {
  color: var(--ink-4);
  font-size: 13px;
  white-space: nowrap;
}

.selection-result {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, .48);
}

.selection-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.selection-table th,
.selection-table td {
  overflow: hidden;
  padding: 7px 6px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(255, 255, 255, .8);
  color: var(--ink-2);
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.selection-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  color: var(--ink-3);
  font-weight: 650;
}

.selection-table tr:hover td {
  background: #fff;
}

.rank-col {
  width: 42px;
  color: var(--ink-4);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.selection-trend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.selection-trend-main {
  color: var(--ink-2);
}

.selection-trend-rate {
  font-size: 11px;
  color: var(--ink-4);
}

.selection-trend-rate.is-up {
  color: #16a34a;
}

.selection-trend-rate.is-down {
  color: #dc2626;
}

.selection-name {
  width: 270px;
  white-space: normal;
}

.selection-product-cell {
  display: grid;
  align-items: center;
  gap: 4px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.selection-product-cell b,
.selection-link {
  display: block;
  max-width: 210px;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.selection-link:hover,
.selection-url:hover {
  color: var(--accent-deep);
}

.selection-product-cell span,
.muted-inline {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-thumb {
  width: 38px;
  height: 38px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
  object-fit: cover;
}

.selection-thumb.empty {
  display: block;
}

.selection-image-preview {
  position: fixed;
  z-index: 1800;
  width: min(340px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid rgba(121, 136, 164, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(23, 32, 55, .24);
  pointer-events: none;
}

.selection-image-preview[hidden] {
  display: none;
}

.selection-image-preview img {
  display: block;
  width: 100%;
  max-height: min(520px, calc(100vh - 24px));
  border-radius: 6px;
  object-fit: contain;
}

.selection-url {
  max-width: 260px;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.selection-row-actions {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.selection-row-actions button {
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(47, 95, 255, .18);
  border-radius: 6px;
  background: rgba(47, 95, 255, .08);
  color: var(--accent-deep);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.selection-row-actions button:hover {
  background: rgba(47, 95, 255, .14);
}

.selection-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.selection-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink-4);
  font-size: 8px;
  line-height: 7px;
}

.selection-sort-arrows .on {
  color: var(--accent);
}

.selection-empty {
  height: 180px;
  color: var(--ink-4);
  text-align: center;
}

.selection-modal {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.selection-modal-panel {
  display: flex;
  width: min(1120px, calc(100vw - 68px));
  max-height: calc(100vh - 68px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  background: var(--solid);
  box-shadow: var(--shadow-lg);
}

.selection-modal-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--solid-line);
}

.selection-modal-title {
  font-weight: 650;
}

.selection-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.selection-detail-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.selection-detail-gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
}

.selection-detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  object-fit: contain;
}

.selection-detail-gallery img.main {
  grid-column: 1 / -1;
}

.selection-detail-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.selection-detail-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: var(--ink-3);
  font-size: 13px;
}

.selection-detail-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.selection-detail-metric {
  padding: 9px 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
}

.selection-detail-metric span {
  display: block;
  color: var(--ink-4);
  font-size: 12px;
}

.selection-detail-metric b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-detail-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.selection-detail-sections h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.selection-detail-table-wrap {
  overflow: auto;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
}

.selection-detail-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.selection-detail-table th,
.selection-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--solid-line);
  text-align: left;
}

.selection-detail-table th {
  background: var(--solid-quiet);
  color: var(--ink-3);
}

.selection-detail-empty {
  padding: 24px;
  color: var(--ink-4);
  text-align: center;
}

.column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.column-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--glass-edge);
}

.workbench .column-head {
  height: 42px;
  padding: 0 12px;
}

.column-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.1px;
}

.column-count {
  color: var(--ink-4);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.workflow-retention-tip {
  color: var(--ink-4);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.column-head-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.product-refresh-action {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.product-refresh-count {
  position: absolute;
  top: -7px;
  right: -3px;
  z-index: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border: 1px solid var(--solid);
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.column-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.column-foot {
  flex: none;
  padding: 11px 12px;
  border-top: 1px solid var(--glass-edge);
}

.product-filters {
  display: grid;
  flex: none;
  align-items: end;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  padding: 7px 8px;
  border-bottom: 1px solid var(--glass-edge);
}

.product-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-filters span {
  color: var(--ink-3);
  font-size: 12px;
}

.product-filters .input {
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 13px;
}

.product-sku-filter {
  align-content: start;
}

.product-variant-filter-buttons {
  display: flex;
  gap: 4px;
  width: 100%;
}

.product-variant-filter-buttons .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 4px;
  font-size: 12px;
}

.folder-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.folder-filter-label {
  color: var(--ink-3);
  font-size: 12px;
}

.folder-filter-levels {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.folder-filter-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.folder-filter-row-label {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 28px;
}

.folder-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.folder-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.folder-chip:hover {
  border-color: rgba(15, 159, 156, .35);
  color: var(--ink-1);
}

.folder-chip.is-active {
  border-color: rgba(15, 159, 156, .55);
  background: rgba(15, 159, 156, .12);
  color: #0b7f7c;
  font-weight: 600;
}

.folder-filter-empty {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 28px;
}

.characteristic-value-input {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 14px;
}

.characteristic-row .data-value {
  min-width: 0;
}

.workflow-mode-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(15, 159, 156, .12);
  color: #0b7f7c;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

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

.confirm-modal-panel {
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
}

.confirm-modal-title {
  color: var(--ink-1);
  font-size: 16px;
  font-weight: 700;
}

.confirm-modal-text {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.image-workflow-model-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink-1);
  font-size: 14px;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.selection-template-modal {
  z-index: 910;
}

.selection-template-panel {
  width: min(520px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.selection-template-save-panel {
  width: min(440px, calc(100vw - 48px));
}

.selection-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.selection-template-head div {
  display: grid;
  gap: 3px;
}

.selection-template-head b {
  color: var(--ink-1);
  font-size: 16px;
}

.selection-template-head span {
  color: var(--ink-3);
  font-size: 13px;
}

.selection-template-body {
  display: grid;
  max-height: calc(100vh - 160px);
  gap: 8px;
  overflow: auto;
  padding: 14px 16px 16px;
}

.selection-template-item {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.selection-template-item:hover {
  border-color: rgba(47, 95, 255, .32);
  background: var(--accent-wash);
}

.selection-template-item b {
  overflow: hidden;
  color: var(--ink-1);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-template-item span,
.selection-template-empty,
.selection-template-name span {
  color: var(--ink-3);
  font-size: 13px;
}

.selection-template-empty {
  padding: 22px 10px;
  text-align: center;
}

.selection-template-name {
  display: grid;
  gap: 6px;
}

.selection-template-name .input {
  height: 34px;
}

.selection-template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

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

.update-modal-panel {
  width: min(460px, 100%);
  padding: 18px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-lg);
}

.update-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.update-modal-kicker {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.update-modal-title {
  margin-top: 3px;
  color: var(--ink-1);
  font-size: 18px;
  font-weight: 800;
}

.update-modal-text {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.update-modal-reminder {
  margin-top: 10px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.update-progress {
  margin-top: 14px;
}

.update-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.update-progress-row b {
  color: var(--ink-1);
  font-size: 13px;
}

.update-progress-bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
}

.update-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transition: width .18s ease;
}

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

.buyer-message-panel {
  width: min(520px, 100%);
}

.buyer-message-sub {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.4;
}

.buyer-message-textarea {
  width: 100%;
  min-height: 130px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink-1);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.buyer-message-textarea:focus {
  border-color: rgba(47, 109, 246, .62);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12);
}

.content-optimization-confirm {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.content-optimization-confirm-panel {
  width: min(460px, 100%);
  padding: 18px 18px 16px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-lg);
}

.content-optimization-field-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.content-optimization-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
  color: var(--ink-1);
  font-size: 14px;
}

.content-optimization-field input {
  width: 15px;
  height: 15px;
}

.publish-shop-confirm-panel {
  width: min(520px, 100%);
}

.publish-shop-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.publish-shop-count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
}

.publish-shop-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent, #3b82f6) 55%, var(--solid-line));
  background: color-mix(in srgb, var(--accent, #3b82f6) 8%, var(--solid-quiet));
}

.publish-shop-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-top: 14px;
  overflow: auto;
}

.publish-shop-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
  cursor: pointer;
}

.publish-shop-option input {
  width: 16px;
  height: 16px;
}

.publish-shop-option span,
.publish-shop-option b,
.publish-shop-option i {
  min-width: 0;
}

.publish-shop-option span {
  display: grid;
  gap: 3px;
}

.publish-shop-option b {
  color: var(--ink-1);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-shop-option i {
  color: var(--ink-3);
  font-size: 14px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 采集箱商品列表：表格密度优先，首图固定 3:4 完整展示 */
.product-list {
  height: auto;
  min-width: 0;
  min-height: 100%;
  padding: 0;
}

.product-table-wrap {
  height: auto;
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.product-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.product-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid var(--solid-line);
  background: #f4f7fc;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.product-table th:nth-child(1),
.product-table td.product-check-cell {
  width: 38px;
  text-align: center;
}

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

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

.product-table th:nth-child(5) {
  width: 96px;
  text-align: center;
}

.product-table th:nth-child(3),
.product-table td.product-time-cell,
.product-table th:nth-child(5),
.product-table td.product-publish-log-cell {
  text-align: center;
}

.product-check-cell,
.product-check-col {
  vertical-align: middle;
}

.product-row-check {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.product-row {
  height: 60px;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: background .16s var(--ease), box-shadow .16s var(--ease);
  animation: rise .3s var(--ease) both;
}

.product-row:hover {
  background: #fff;
}

.product-row.is-active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.product-row.is-all-variant {
  background: color-mix(in srgb, var(--accent-wash) 42%, #fff);
}

.product-row.is-all-variant:hover,
.product-row.is-all-variant.is-active {
  background: #fff;
}

.product-group-child {
  background: rgba(248, 250, 255, .86);
}

.product-group-child:hover {
  background: #fff;
}

.product-group-child.is-active,
.product-group-child.is-active:hover {
  background: var(--accent-wash);
}

.product-group-child td:nth-child(2) {
  padding-left: 18px;
}

.product-group-toggle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--solid-line);
  border-radius: 6px;
  background: var(--solid-quiet);
  color: var(--accent-deep);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.product-group-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.product-group-check {
  width: 13px;
  height: 13px;
  margin: 0;
  cursor: pointer;
}

.product-group-toggle:hover,
.product-group-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.product-row td {
  min-width: 0;
  height: 60px;
  padding: 5px 7px;
  box-sizing: border-box;
  vertical-align: middle;
}

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

.product-info-meta,
.product-time-cell,
.product-change-empty {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 三行定高：不足 3 条用空行占位，行高不随修改条数变化 */
.product-change-cell {
  display: grid;
  gap: 0;
  min-width: 0;
  grid-template-rows: repeat(3, 14px);
}

.product-change-line {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--ink-3);
  font-size: 11px;
  font-style: normal;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-change-line:first-child {
  color: var(--ink-2);
  font-weight: 600;
}

.product-change-line.is-blank::after {
  content: '';
}

.product-change-empty {
  align-self: center;
  grid-row: 2;
}

.product-info-cell {
  display: grid;
  align-items: center;
  gap: 6px;
  grid-template-columns: 36px minmax(0, 1fr);
  height: 50px;
  min-width: 0;
}

.product-table-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 36px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--solid-line);
  border-radius: 7px;
  background: #fff;
}

.product-table-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumb-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ink-4);
  font-size: 11px;
}

.product-title {
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: calc(1.35em * 2);
}

.product-info-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  height: 14px;
  min-width: 0;
  overflow: hidden;
  margin-top: 0;
}

.product-info-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sku-hint {
  color: var(--ink-2);
  font-family: Consolas, "SF Mono", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.product-info-price {
  color: #d94a24;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-price {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-old-price {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-variant-count {
  color: var(--accent-deep);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.product-num-cell {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.product-row-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.product-row-actions .btn {
  width: 100%;
  padding: 0 8px;
}

.product-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.product-pager-meta {
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
}

/* 采集箱商品组：父级展示逻辑商品，展开后展示各个 SKU */
.product-list-groups {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-group-card,
.product-single-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--solid-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 14px rgba(30, 45, 82, .06);
  animation: rise .3s var(--ease) both;
}

.product-single-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--solid-line));
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.product-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border-bottom: 1px solid var(--solid-line);
  background: #fff;
  cursor: pointer;
}

.product-group-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.product-group-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-group-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-group-count {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-size: 11px;
  white-space: nowrap;
}

.product-group-meta,
.product-group-source {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-group-source {
  color: var(--ink-2);
}

.product-list-columns,
.product-group-columns,
.product-row {
  display: grid;
  align-items: center;
  min-width: 0;
  grid-template-columns: 24px 42px minmax(0, 1fr) 52px 92px 52px 74px minmax(90px, 112px) minmax(78px, 96px);
  gap: 8px;
}

/* 多变体列表只展示组级信息，避免把首个 SKU 的数值误认为整组数据 */
.product-list-columns.is-multi,
.product-row.is-multi {
  grid-template-columns: 24px 42px minmax(0, 1fr) 74px minmax(110px, 1fr);
}

.product-row.product-group-parent:not(.is-multi) {
  grid-template-columns: 24px 42px minmax(0, 1fr) 52px 92px 52px 74px minmax(90px, 112px) minmax(185px, 215px);
}

.product-row.product-group-parent.is-multi {
  grid-template-columns: 24px 42px minmax(0, 1fr) 74px minmax(210px, 1fr);
}

.product-batch-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--glass-edge);
  background: rgba(246, 249, 255, .72);
}

.product-batch-actions[hidden] {
  display: none;
}

.product-batch-selected-count {
  margin-right: auto;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.product-list-columns {
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: #f5f7fc;
  color: var(--ink-3);
  font-size: 11px;
}

.product-group-child-columns {
  border-radius: 0;
  border-top: 0;
}

.product-group-columns {
  min-height: 27px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--solid-line);
  background: #f5f7fc;
  color: var(--ink-3);
  font-size: 11px;
}

.product-list-columns span,
.product-group-columns span,
.product-row > div {
  min-width: 0;
}

.product-list-columns span:nth-child(4),
.product-list-columns span:nth-child(5),
.product-list-columns span:nth-child(6),
.product-stock-cell,
.product-logistics-cell,
.product-variant-count-cell {
  text-align: center;
}

.product-row {
  height: 58px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--solid-line);
  background: #fff;
  cursor: pointer;
}

.product-row.product-group-parent,
.product-row.product-group-parent:hover {
  background: color-mix(in srgb, var(--accent-wash) 64%, #fff);
}

.product-row.product-group-parent.is-active {
  background: color-mix(in srgb, var(--accent-wash) 78%, #fff);
}

.product-group-children .product-row:last-child {
  border-bottom: 0;
}

.product-group-child:hover,
.product-row.is-active {
  background: var(--accent-wash);
  box-shadow: inset 3px 0 0 var(--accent);
}

.product-check-cell {
  display: grid;
  place-items: center;
}

.product-row-check,
.product-group-check {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.product-table-thumb {
  width: 36px;
  height: 46px;
  aspect-ratio: auto;
}

.product-category-cell {
  display: grid;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.product-category-cell > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.product-category-warning {
  display: block;
  overflow: hidden;
  color: #d14343;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-stock-cell,
.product-logistics-cell {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-logistics-cell {
  display: grid;
  gap: 1px;
  line-height: 13px;
}

.product-logistics-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-variant-count-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-group-child {
  height: 48px;
  padding: 4px 10px;
  background: rgba(248, 250, 255, .86);
}

.product-group-child:hover {
  background: #fff;
}

.product-group-child .product-table-thumb {
  width: 30px;
  height: 38px;
  margin-left: 12px;
}

.product-group-child .product-category-cell {
  padding-left: 12px;
}

.product-group-child .product-category-cell > strong,
.product-group-child .product-stock-cell,
.product-group-child .product-logistics-cell,
.product-group-child .product-price-cell strong,
.product-group-child .product-variant-count-cell {
  font-size: 11px;
}

.product-group-child .product-price-cell del {
  font-size: 10px;
}

.product-group-child .product-change-cell {
  grid-template-rows: repeat(3, 12px);
}

.product-group-child .product-change-line {
  font-size: 10px;
  line-height: 12px;
}

.product-group-child .product-publish-log-item,
.product-group-child .product-status {
  font-size: 10px;
}

.product-price-cell {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.product-price-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price-cell del {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-count {
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.product-change-cell {
  display: grid;
  align-content: center;
  gap: 0;
  min-width: 0;
  grid-template-rows: repeat(3, 14px);
}

.product-publish-status-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.product-group-parent .product-publish-status-cell {
  justify-content: space-between;
  gap: 6px;
}

.product-group-parent .product-publish-status-list {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.product-group-publish-btn {
  flex: none;
  white-space: nowrap;
}

.product-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.product-status-mint {
  background: rgba(16, 179, 154, .12);
  color: #0a7f6d;
}

.product-status-blue {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.product-status-amber {
  background: rgba(245, 158, 11, .14);
  color: #9a5b00;
}

.product-status-slate {
  background: rgba(143, 153, 177, .14);
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .product-group-summary {
    align-items: flex-start;
  }

  .product-list-columns,
  .product-group-columns,
  .product-row {
    grid-template-columns: 14px 20px minmax(32px, 1fr) 22px 36px 40px 34px 42px 36px;
    gap: 3px;
  }

  .product-row.product-group-parent:not(.is-multi) {
    grid-template-columns: 14px 20px minmax(32px, 1fr) 22px 36px 40px 34px 42px minmax(100px, 120px);
  }

  .product-row.product-group-parent.is-multi {
    grid-template-columns: 14px 20px minmax(32px, 1fr) 40px minmax(100px, 1fr);
  }

  .product-group-parent .product-publish-status-list {
    display: none;
  }

  .product-list-columns {
    padding-inline: 4px;
    font-size: 10px;
  }

  .product-row {
    padding-inline: 4px;
  }

  .product-table-thumb {
    width: 20px;
    height: 28px;
  }

  .product-group-child .product-table-thumb {
    width: 20px;
    height: 28px;
    margin-left: 0;
  }

  .product-group-child .product-category-cell {
    padding-left: 4px;
  }
}

.characteristic-hint {
  margin-bottom: 8px;
}

.folder-cascade-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .34);
}

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

.folder-cascade-dialog {
  width: min(920px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
}

.folder-cascade-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--solid-line);
}

.folder-cascade-head strong {
  font-size: 14px;
  color: var(--ink);
}

.folder-cascade-hint {
  color: var(--ink-3);
  font-size: 12px;
}

.folder-cascade-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--solid-line);
}

.folder-cascade-column {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--solid-line);
}

.folder-cascade-column:last-child {
  border-right: 0;
}

.folder-cascade-column-title {
  flex: none;
  padding: 10px 12px 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  background: rgba(248, 250, 252, .9);
  border-bottom: 1px solid var(--solid-line);
}

.folder-cascade-column-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px;
}

.folder-cascade-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.folder-cascade-item:hover {
  background: rgba(15, 159, 156, .08);
}

.folder-cascade-item.is-active {
  background: rgba(15, 159, 156, .12);
}

.folder-cascade-item input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0f9f9c;
}

.folder-cascade-item-text {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-cascade-item-arrow {
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1;
}

.folder-cascade-empty {
  padding: 18px 10px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.folder-cascade-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.folder-cascade-path {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-cascade-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.folder-assign-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

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

.folder-assign-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.folder-editor {
  display: grid;
  gap: 8px;
}

.folder-split {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 10px;
  min-height: 260px;
  align-items: stretch;
}

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

.folder-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  overflow: hidden;
}

.folder-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(255, 255, 255, .72);
}

.folder-pane-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.folder-pane-note {
  color: var(--ink-4);
  font-size: 11px;
}

.folder-l1-list,
.folder-l2-list,
.folder-branch-list,
.folder-l3-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  align-content: start;
  max-height: 360px;
}

.folder-l1-item,
.folder-l2-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.folder-l1-item.is-active,
.folder-l2-item.is-active {
  border-color: rgba(16, 179, 154, .35);
  background: rgba(16, 179, 154, .08);
  box-shadow: inset 3px 0 0 var(--mint);
}

.folder-l1-select,
.folder-l2-select {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.folder-l1-name,
.folder-l2-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.folder-l1-meta,
.folder-l2-meta {
  flex: none;
  color: var(--ink-4);
  font-size: 11px;
}

.folder-l1-input,
.folder-l2-input {
  height: 30px;
  min-width: 0;
}

.folder-pane-actions {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--solid-line);
  background: rgba(255, 255, 255, .6);
}

.folder-l2-block {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.folder-row {
  display: grid;
  gap: 6px;
  align-items: center;
}

.folder-row-l2 {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.folder-row-l3 {
  grid-template-columns: minmax(0, 1fr) auto;
}

.folder-empty {
  padding: 18px 12px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.folder-empty.quiet {
  padding: 12px;
}

.folder-empty .empty-title {
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.folder-l3-empty {
  padding: 2px 0 0;
}

.shop-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.shop-board {
  display: grid;
  min-height: 0;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.shop-table-wrap {
  min-width: 0;
  overflow: auto;
}

.shop-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.shop-table th {
  height: 42px;
  padding: 0 12px;
  background: rgba(241, 246, 255, .84);
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.shop-table td {
  height: 58px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-2);
  font-size: 14px;
  vertical-align: middle;
}

.shop-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-name-cell b {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  color: var(--ink-1);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-name-cell span,
.shop-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-name-cell span {
  background: #eaf1ff;
  color: var(--primary);
}

.shop-status.tone-mint {
  background: #eaf8ee;
  color: #128447;
}

.shop-status.tone-amber {
  background: #fff7df;
  color: #a56700;
}

.shop-status.tone-rose {
  background: #fff0f0;
  color: #e55445;
}

.shop-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.shop-empty {
  height: 120px !important;
  color: var(--ink-3) !important;
  text-align: center;
}

.order-query-spinner {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.order-query-error button {
  margin-top: 8px;
}

.online-products-page {
  height: 100%;
  min-width: 0;
  padding: 14px;
}

.online-products {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
}

.online-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--solid-line);
}

.online-toolbar > .field {
  flex: 0 0 140px;
  min-width: 0;
}

.online-toolbar > .field.online-query {
  flex: 0 0 auto;
  width: auto;
}

.online-toolbar > #loadOnlineProductsBtn {
  flex: none;
  white-space: nowrap;
}

.online-query-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.online-query-controls .input,
.online-query-controls .btn {
  flex: none;
  height: 36px;
}

.online-query-controls #onlineQueryTypeSelect {
  width: 72px;
}

.online-query-controls #onlineQueryInput {
  width: 132px;
}

.online-query-controls .btn {
  padding-inline: 10px;
  white-space: nowrap;
}

.online-toolbar-actions {
  display: flex;
  flex: 1 0 auto;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
  margin-left: auto;
}

.online-toolbar-actions .btn {
  flex: none;
  white-space: nowrap;
}

.online-toolbar-actions #startOnlineAttributeFillBtn {
  min-width: 0;
}

.online-status-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(246, 249, 255, .72);
  overflow-x: auto;
}

.online-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.online-status-tab.is-active {
  border-color: var(--primary);
  color: var(--ink-1);
}

.online-status-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 20px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: #2f6df6;
  font-size: 12px;
  font-weight: 800;
}

.online-table-wrap {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.online-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

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

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

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

.online-table th:nth-child(4),
.online-table td:nth-child(4),
.online-table th:nth-child(5),
.online-table td:nth-child(5) {
  width: 64px;
}

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

.online-table th:nth-child(7),
.online-table td:nth-child(7),
.online-table th:nth-child(8),
.online-table td:nth-child(8) {
  width: 82px;
}

.online-table th:nth-child(9),
.online-table td:nth-child(9) {
  width: 100px;
}

.online-table th:nth-child(10),
.online-table td:nth-child(10) {
  width: 126px;
}

.online-table th {
  height: 44px;
  padding: 0 8px;
  background: rgba(241, 246, 255, .84);
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.online-sort-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.online-sort-head b {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.online-sort-head:hover b {
  color: var(--accent-deep);
}

.online-table td {
  min-height: 82px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-2);
  font-size: 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.online-product-row,
.online-product-row td {
  height: 96px;
}

.online-table-spacer td {
  padding: 0;
  border: 0;
}

.online-product-row.is-selected td {
  background: rgba(47, 109, 246, .05);
}

.online-info-cell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.online-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 14px;
}

.online-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-info-main,
.online-title,
.online-basic {
  min-width: 0;
}

.online-title {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.42;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-basic {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-rating {
  --online-rating-color: #f0a82e;
  --online-rating-soft: rgba(240, 168, 46, .14);
  display: inline-grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--online-rating-color);
  cursor: default;
}

.online-rating-cell {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.online-rating-refresh {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--solid-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.online-rating-refresh:hover {
  border-color: rgba(47, 109, 246, .45);
  color: var(--primary);
}

.online-rating-refresh:disabled {
  cursor: wait;
  opacity: .7;
}

.online-rating span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(var(--online-rating-color) var(--online-rating-progress, 0%), #e8edf7 0) border-box;
  border: 3px solid transparent;
  font-size: 14px;
  font-weight: 800;
}

.online-rating em {
  margin-top: 2px;
  color: var(--online-rating-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.online-rating-low {
  --online-rating-color: #ef5b50;
  --online-rating-soft: rgba(239, 91, 80, .14);
}

.online-rating-base {
  --online-rating-color: #f0a82e;
  --online-rating-soft: rgba(240, 168, 46, .14);
}

.online-rating-high {
  --online-rating-color: #22a06b;
  --online-rating-soft: rgba(34, 160, 107, .14);
}

.online-rating-empty {
  --online-rating-color: #8b96ad;
  --online-rating-soft: rgba(139, 150, 173, .14);
}

.online-rating-popover {
  position: fixed;
  z-index: 90;
  padding: 14px;
  border: 1px solid rgba(188, 204, 232, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(28, 47, 89, .18);
  color: var(--ink-2);
}

.online-rating-popover[hidden] {
  display: none;
}

.online-rating-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--solid-line);
}

.online-rating-popover-head b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #aee5ff;
  border-radius: 999px;
  color: #f0a82e;
  font-size: 16px;
}

.online-rating-popover-head span {
  color: var(--ink-1);
  font-size: 18px;
  font-weight: 800;
}

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

.online-rating-popover-groups section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(248, 251, 255, .9);
}

.online-rating-popover-groups section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.online-rating-popover-groups div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.online-rating-popover-groups b {
  color: var(--ink-1);
  font-size: 14px;
}

.online-rating-popover-groups span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.online-rating-popover-groups ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 16px;
}

.online-rating-popover-groups li,
.online-rating-popover-groups p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.online-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.online-actions .btn {
  min-width: 0;
  padding-inline: 8px;
}

.online-row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.online-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--solid-line);
  color: var(--ink-3);
  font-size: 14px;
}

.online-page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-page {
  height: 100%;
  min-width: 0;
  padding: 14px;
}

.orders-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 128px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid var(--solid-line);
}

.orders-sync-time {
  align-self: center;
  color: var(--ink-3);
  font-size: 13px;
  text-align: right;
}

.order-status-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(246, 249, 255, .72);
  overflow-x: auto;
}

.order-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.order-status-tab.is-active {
  border-color: var(--primary);
  color: var(--ink-1);
}

.order-status-tab b {
  color: #2f6df6;
  font-size: 12px;
  font-weight: 800;
}

.orders-table-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.orders-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

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

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

.orders-table th:nth-child(3),
.orders-table td:nth-child(3),
.orders-table th:nth-child(7),
.orders-table td:nth-child(7),
.orders-table th:nth-child(8),
.orders-table td:nth-child(8),
.orders-table th:nth-child(10),
.orders-table td:nth-child(10) {
  width: 88px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4),
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
  width: 120px;
}

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

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

.orders-table th:nth-child(11),
.orders-table td:nth-child(11) {
  width: 126px;
}

.orders-table.is-awaiting-packaging {
  min-width: 1428px;
}

.orders-table.is-awaiting-packaging th:nth-child(6),
.orders-table.is-awaiting-packaging td:nth-child(6) {
  width: 320px;
}

.orders-table.is-awaiting-packaging th:nth-child(10),
.orders-table.is-awaiting-packaging td:nth-child(10) {
  width: 160px;
}

.orders-table.is-awaiting-packaging th:nth-child(6) {
  white-space: normal;
  line-height: 1.35;
}

.orders-table.is-awaiting-packaging .order-product-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-table.is-awaiting-packaging td:nth-child(10) {
  overflow-wrap: break-word;
}

.orders-table.is-delivering th:nth-child(1),
.orders-table.is-delivering td:nth-child(1) {
  width: 30px;
}

.orders-table.is-delivering th:nth-child(2),
.orders-table.is-delivering td:nth-child(2) {
  width: 128px;
}

.orders-table.is-delivering th:nth-child(3),
.orders-table.is-delivering td:nth-child(3),
.orders-table.is-delivering th:nth-child(11),
.orders-table.is-delivering td:nth-child(11),
.orders-table.is-delivering th:nth-child(12),
.orders-table.is-delivering td:nth-child(12) {
  width: 76px;
}

.orders-table.is-delivering th:nth-child(4),
.orders-table.is-delivering td:nth-child(4),
.orders-table.is-delivering th:nth-child(5),
.orders-table.is-delivering td:nth-child(5),
.orders-table.is-delivering th:nth-child(9),
.orders-table.is-delivering td:nth-child(9) {
  width: 96px;
}

.orders-table.is-delivering th:nth-child(6),
.orders-table.is-delivering td:nth-child(6) {
  width: 24%;
}

.orders-table.is-delivering th:nth-child(7),
.orders-table.is-delivering td:nth-child(7),
.orders-table.is-delivering th:nth-child(8),
.orders-table.is-delivering td:nth-child(8) {
  width: 104px;
}

.orders-table.is-delivering th:nth-child(10),
.orders-table.is-delivering td:nth-child(10),
.orders-table.is-delivering th:nth-child(13),
.orders-table.is-delivering td:nth-child(13) {
  width: 128px;
}

.orders-table.is-delivering th:nth-child(14),
.orders-table.is-delivering td:nth-child(14) {
  width: 94px;
}

.orders-table.is-transport-detail {
  min-width: 1580px;
}

.orders-table.is-delivering {
  min-width: 1680px;
}

.orders-table.is-transport-detail th.order-col-check,
.orders-table.is-transport-detail td.order-col-check {
  width: 34px;
}

.orders-table.is-transport-detail th.order-col-posting,
.orders-table.is-transport-detail td.order-col-posting {
  width: 136px;
}

.orders-table.is-transport-detail th.order-col-status,
.orders-table.is-transport-detail td.order-col-status {
  width: 86px;
}

.orders-table.is-transport-detail th.order-col-photo,
.orders-table.is-transport-detail td.order-col-photo {
  width: 70px;
}

.orders-table.is-transport-detail th.order-col-product,
.orders-table.is-transport-detail td.order-col-product {
  width: 156px;
}

.orders-table.is-transport-detail th.order-col-tracking,
.orders-table.is-transport-detail td.order-col-tracking {
  width: 122px;
}

.orders-table.is-transport-detail th.order-col-price,
.orders-table.is-transport-detail td.order-col-price {
  width: 88px;
}

.orders-table.is-transport-detail th.order-col-weight,
.orders-table.is-transport-detail td.order-col-weight {
  width: 84px;
}

.orders-table.is-transport-detail th.order-col-warehouse,
.orders-table.is-transport-detail td.order-col-warehouse {
  width: 86px;
}

.orders-table.is-transport-detail th.order-col-service,
.orders-table.is-transport-detail td.order-col-service {
  width: 146px;
}

.orders-table.is-transport-detail th.order-col-date,
.orders-table.is-transport-detail td.order-col-date {
  width: 118px;
}

.orders-table.is-transport-detail th.order-col-plan,
.orders-table.is-transport-detail td.order-col-plan {
  width: 146px;
}

.orders-table.is-transport-detail th.order-col-actions,
.orders-table.is-transport-detail td.order-col-actions {
  width: 96px;
}

.orders-table th {
  height: 44px;
  padding: 0 8px;
  background: rgba(241, 246, 255, .84);
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.orders-table td {
  padding: 8px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-2);
  font-size: 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.order-product-cell {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.order-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border: 1px solid var(--solid-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-4);
  font-size: 12px;
  overflow: hidden;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-photo-cell {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--solid-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-4);
  font-size: 12px;
  overflow: hidden;
}

.order-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-main {
  min-width: 0;
}

.order-product-count {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.order-product-title,
.order-sub {
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.order-actions .btn {
  min-width: 0;
  padding-inline: 8px;
}

.online-detail-modal {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 18, 38, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.online-detail-drawer {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.online-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--solid-line);
}

.online-detail-head h3 {
  margin: 0 0 5px;
  color: var(--ink-1);
  font-size: 16px;
}

.online-detail-head span {
  color: var(--ink-3);
  font-size: 14px;
}

.online-detail-scroll {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.online-detail-section {
  display: grid;
  gap: 8px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--solid-line);
}

.online-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.online-detail-section > b,
.online-detail-section-head b {
  color: var(--ink-1);
  font-size: 14px;
}

.online-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}

.online-detail-images button {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.online-detail-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-detail-images span {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(13, 22, 46, .72);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
}

.online-detail-grid,
.online-attr-list {
  display: grid;
  gap: 8px;
}

.online-detail-form-section label,
.online-detail-readonly {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

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

.online-detail-form-section > b,
.online-detail-form-section label:first-of-type,
.online-detail-form-section .online-detail-readonly {
  grid-column: 1 / -1;
}

.online-detail-form-section .input {
  min-height: 30px;
  height: 30px;
  padding: 0 8px;
}

.online-detail-grid {
  grid-template-columns: 86px minmax(0, 1fr);
}

.online-detail-grid span,
.online-attr-list span,
.online-detail-form-section label span,
.online-detail-readonly span {
  color: var(--ink-3);
  font-size: 14px;
}

.online-detail-grid strong,
.online-attr-list strong,
.online-detail-readonly strong {
  min-width: 0;
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.online-attr-list > div,
.online-attr-list label {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.online-attr-list textarea {
  min-height: 46px;
  resize: vertical;
}

.online-input-panel {
  width: min(420px, 100%);
}

.online-input-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* 价格复核：随窗口变大自适应放大，小窗仍紧凑、全屏不显小 */
.online-price-review-modal {
  --pr-pad-x: clamp(14px, 1.4vw, 28px);
  --pr-pad-y: clamp(12px, 1.2vw, 24px);
  --pr-gap: clamp(8px, .9vw, 16px);
  --pr-field-gap: clamp(6px, .7vw, 12px);
  --pr-title: clamp(15px, 1.15vw, 22px);
  --pr-sub: clamp(11px, .85vw, 14px);
  --pr-label: clamp(11px, .8vw, 13px);
  --pr-input: clamp(13px, .95vw, 16px);
  --pr-input-h: clamp(30px, 2.4vw, 40px);
  --pr-metric: clamp(13px, 1.05vw, 18px);
  --pr-note: clamp(11px, .8vw, 13px);
  --pr-radius: clamp(12px, 1vw, 18px);
}

.online-price-review-modal .online-price-review-panel {
  width: min(max(480px, 46vw), 820px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
  padding: var(--pr-pad-y) var(--pr-pad-x);
  border-radius: var(--pr-radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
}

.online-price-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pr-gap);
  margin-bottom: var(--pr-gap);
}

.online-price-review-head .confirm-modal-title {
  margin: 0;
  font-size: var(--pr-title);
  line-height: 1.25;
}

.online-price-review-product {
  margin-top: 2px;
  max-width: min(52vw, 520px);
  color: var(--ink-4, #94a3b8);
  font-size: var(--pr-sub);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-price-review-badge {
  flex: 0 0 auto;
  padding: clamp(3px, .35vw, 6px) clamp(8px, .7vw, 12px);
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  font-size: var(--pr-label);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.online-price-review-body {
  display: grid;
  gap: var(--pr-gap);
}

.online-price-review-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--pr-field-gap);
}

.online-price-review-fields .price-field {
  gap: clamp(2px, .3vw, 5px);
}

.online-price-review-fields .price-field span {
  font-size: var(--pr-label);
  color: var(--ink-4, #94a3b8);
  letter-spacing: .01em;
}

.online-price-review-fields .price-field .input {
  height: var(--pr-input-h);
  padding: 0 clamp(8px, .7vw, 12px);
  font-size: var(--pr-input);
  border-radius: clamp(7px, .55vw, 10px);
}

.online-price-review-summary .cost-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, .55vw, 10px);
  margin: 0;
  padding: clamp(6px, .65vw, 12px);
  border: 1px solid var(--solid-line, #e5e7eb);
  border-radius: clamp(8px, .7vw, 12px);
  background: rgba(248, 250, 252, .9);
}

.online-price-review-summary .cost-summary div {
  display: grid;
  gap: clamp(2px, .25vw, 4px);
  min-width: 0;
  padding: clamp(4px, .45vw, 8px) clamp(6px, .55vw, 10px);
  border-radius: clamp(6px, .5vw, 10px);
  background: #fff;
}

.online-price-review-summary .cost-summary span {
  color: var(--ink-4, #94a3b8);
  font-size: var(--pr-label);
  line-height: 1.2;
}

.online-price-review-summary .cost-summary span small {
  display: none;
}

.online-price-review-summary .cost-summary b {
  color: var(--ink, #0f172a);
  font-size: var(--pr-metric);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.online-price-review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pr-gap);
  margin-top: var(--pr-gap);
  padding-top: clamp(8px, .8vw, 14px);
  border-top: 1px solid rgba(148, 163, 184, .28);
}

.online-price-review-note {
  margin: 0;
  color: var(--ink-4, #94a3b8);
  font-size: var(--pr-note);
  line-height: 1.3;
}

.online-price-review-foot .confirm-modal-actions {
  margin: 0;
  gap: clamp(6px, .55vw, 10px);
}

.online-price-review-foot .btn {
  min-height: var(--pr-input-h);
  padding-inline: clamp(12px, 1vw, 18px);
  font-size: var(--pr-input);
}

@media (max-width: 720px) {
  .online-price-review-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .online-price-review-summary .cost-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .online-price-review-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 1440px) {
  .online-price-review-modal .online-price-review-panel {
    width: min(max(560px, 42vw), 880px, calc(100vw - 64px));
  }
}

@media (min-width: 1800px) {
  .online-price-review-modal .online-price-review-panel {
    width: min(max(640px, 38vw), 960px, calc(100vw - 80px));
  }
}

@media (max-width: 980px) {
  .folder-split,
  .folder-split-3 {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .folder-l1-list,
  .folder-l2-list,
  .folder-branch-list,
  .folder-l3-list {
    max-height: 220px;
  }
}

.publish-log-board {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.publish-log-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.publish-batch-card {
  padding: 12px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: var(--solid-quiet);
  font-size: 14px;
}

.publish-batch-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-batch-head > span {
  flex: 1;
  color: var(--ink-2);
}

.publish-batch-details {
  margin-top: 8px;
}

.publish-batch-details summary {
  cursor: pointer;
  color: var(--accent-deep);
}

.publish-batch-items {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.publish-batch-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) 70px minmax(180px, 2fr);
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-top: 1px solid var(--solid-line);
}

.publish-batch-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-log-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1.3fr) 164px minmax(118px, 148px) minmax(0, 1.1fr);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.publish-log-cover,
.publish-log-cover img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.publish-log-cover {
  overflow: hidden;
  border: 1px solid var(--solid-line);
  background: var(--solid);
}

.publish-log-main {
  min-width: 0;
}

.publish-log-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.publish-log-result {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--solid);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.publish-log-result.tone-mint {
  color: #4d7b74;
}

.publish-log-result.tone-amber {
  color: #8a7045;
}

.publish-log-result.tone-rose {
  color: #a2685e;
}

.publish-log-result.tone-blue {
  color: #5a6c9b;
}

.publish-log-task {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: start;
}

.publish-log-task-label {
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.2;
}

.publish-log-task-value {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-family: Consolas, "SF Mono", monospace;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.publish-log-task-value:hover {
  text-decoration: underline;
}

.publish-log-task-value:focus-visible {
  outline: 2px solid rgba(47, 95, 255, .35);
  outline-offset: 2px;
  border-radius: 4px;
}

.publish-log-task-empty {
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.35;
}

.publish-log-message {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: normal;
}

.product-card-readonly {
  height: 202px;
}

.product-store-foot {
  margin-top: auto;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 详情区：ERP 分组面板 */
.detail-head {
  display: flex;
  flex: none;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--glass-edge);
}

.detail-cover {
  overflow: hidden;
  flex: none;
  width: 76px;
  height: 76px;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
}

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

.detail-headline {
  min-width: 0;
  flex: 1;
}

.detail-title {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-title-link {
  color: inherit;
  text-decoration: none;
}

.detail-title-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.detail-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.detail-meta-line del {
  color: var(--ink-4);
}

.detail-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
}

.detail-actions .btn {
  min-width: 58px;
}

.section {
  border-bottom: 1px solid var(--glass-edge);
}

.section:last-child {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px 6px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: default;
}

.section-collapsible > .section-head {
  cursor: pointer;
  list-style: none;
}

.section-collapsible > .section-head::-webkit-details-marker {
  display: none;
}

.section-collapsible > .section-head::after {
  content: "展开";
  flex: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.section-collapsible[open] > .section-head::after {
  content: "收起";
}

.section-caret {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--ink-4);
  transition: transform .22s var(--ease);
}

.section.is-open .section-caret {
  transform: rotate(90deg);
}

.section-name {
  font-size: 14px;
  font-weight: 620;
}

.section-badge {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

.section-head-actions .section-badge {
  margin-left: 0;
}

.section-head-actions .btn {
  flex: none;
}

@media (max-width: 720px) {
  .detail-head {
    align-items: flex-start;
  }

  .detail-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .section-head-actions {
    flex-wrap: wrap;
  }
}

.section-action {
  margin-left: 0;
}

.section-body {
  display: block;
  padding: 0 12px 12px;
}

/* 数据表格：实底不套玻璃，斑马纹保可读性 */
.data-table {
  overflow: hidden;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
}

.data-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 7px 10px;
  border-bottom: 1px solid #f0f2f8;
}

.data-row:nth-child(even) {
  background: var(--solid-quiet);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-key {
  min-width: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.data-key-origin {
  display: block;
  color: var(--ink-4);
  font-size: 12px;
  word-break: break-word;
}

.data-value {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  word-break: break-word;
}

.data-value.is-num {
  font-variant-numeric: tabular-nums;
}

.data-value.is-mono {
  font-family: Consolas, "SF Mono", monospace;
  font-size: 13px;
}

.workbench #detailColumn .data-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workbench #detailColumn .data-row {
  min-width: 0;
  border-right: 1px solid #f0f2f8;
}

.workbench #detailColumn .data-row:nth-of-type(even) {
  border-right: 0;
}

.workbench #detailColumn .price-editor-main {
  gap: 6px 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workbench #detailColumn .price-field {
  gap: 4px;
}

.workbench #detailColumn .price-field span {
  font-size: 12px;
}

.workbench #detailColumn .price-field .input {
  height: 32px;
}

@media (max-width: 1180px) {
  .workbench #detailColumn .price-editor-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .workbench #detailColumn .data-table,
  .workbench #detailColumn .price-editor-main {
    grid-template-columns: 1fr;
  }

  .workbench #detailColumn .data-row {
    border-right: 0;
  }
}

.price-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.price-collection-hint {
  color: var(--ink-3);
  font-size: 14px;
}

.price-editor {
  display: grid;
  align-items: end;
  gap: 8px 10px;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(138px, 1.2fr);
}

.price-editor-main {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(138px, 1.2fr);
}

@media (max-width: 720px) {
  .price-editor,
  .price-editor-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.price-field span {
  color: var(--ink-3);
  font-size: 13px;
}

.price-field small {
  margin-left: 4px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 500;
}

.price-field .input {
  width: 100%;
  min-width: 0;
  height: 34px;
}

.price-editor .btn {
  min-width: 0;
  align-self: end;
}

.cost-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cost-editor-collapsible {
  padding: 10px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(248, 250, 252, .72);
}

.cost-editor-collapsible > summary {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 620;
  cursor: default;
  list-style: none;
}

.cost-editor-collapsible > summary::-webkit-details-marker {
  display: none;
}

.cost-editor-collapsible > summary::after {
  content: "";
}

.cost-editor-collapsible[open] > summary {
  margin-bottom: 8px;
}

.cost-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cost-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px;
  border: 1px solid #e8ecf5;
  border-radius: 8px;
  background: #fbfcff;
}

.cost-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cost-summary span {
  color: var(--ink-3);
  font-size: 12px;
}

.cost-summary b {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.editable-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f2f8;
}

.editable-field:last-child {
  border-bottom: 0;
}

.editable-field span {
  color: var(--ink-3);
  font-size: 13px;
}

.translation-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.translate-field-actions, .translate-inline-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.translate-inline-confirm[hidden] { display: none; }

.translate-field-button {
  border: 1px solid var(--line, #dce3ef);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--accent, #315df4);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 6px 9px;
}

.translate-field-button:hover:not(:disabled) { border-color: var(--accent, #315df4); }
.translate-field-button:disabled { cursor: wait; opacity: .65; }
.translate-confirm-button { background: var(--accent, #315df4); color: #fff; }

.editable-field .input {
  width: 100%;
}

.editable-field-wide {
  grid-column: 1 / -1;
}

.content-edit-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 1px;
}

.content-edit-grid > .rich-box {
  margin: 8px 12px;
}

.common-info-table {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.common-info-table .data-row {
  min-width: 0;
  align-items: start;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.common-info-table .data-key,
.common-info-table .data-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .common-info-table {
    grid-template-columns: 1fr !important;
  }
}

.common-info-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 1px 8px;
}

.common-info-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  height: 84px;
  min-width: 0;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid var(--solid-line);
  border-radius: 9px;
  background: var(--solid-quiet);
}

.common-info-card-label {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-info-card-value {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
  scrollbar-gutter: stable;
}

.variant-attribute-list,
.same-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.variant-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}

.variant-switch span,
.variant-switch b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-switch span {
  color: var(--ink-2);
  font-size: 12px;
}

.variant-switch b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.variant-switch:hover,
.variant-switch.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.detail-plain-value {
  padding: 2px 0;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.editable-textarea {
  min-height: 92px;
  padding-top: 9px;
  resize: vertical;
  line-height: 1.45;
}

.editable-textarea.compact {
  min-height: 58px;
}

.image-url-editor {
  margin-top: 8px;
  padding: 0;
  border-bottom: 0;
}

/* 图片墙 */
.image-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.image-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: var(--solid);
  cursor: zoom-in;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.image-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.02);
}

.image-cell.is-dragging {
  opacity: .55;
  transform: scale(.96);
}

.image-cell.is-drag-over {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 21, 38, .72);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s var(--ease), background .15s var(--ease);
}

.image-cell:hover .image-remove,
.image-cell:focus-within .image-remove {
  opacity: 1;
  pointer-events: auto;
}

.image-remove:hover {
  background: rgba(220, 38, 38, .92);
}

.image-index {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(16, 21, 38, .6);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.image-primary {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--lemon);
  color: #2c3500;
  font-size: 11px;
  font-weight: 600;
}

.image-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 840;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 21, 38, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.image-editor-dialog {
  width: min(1180px, calc(100vw - 56px));
  height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--solid-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
  animation: rise .24s var(--ease) both;
}

.image-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--solid-line);
}

.image-editor-head h3 {
  margin: 0 0 4px;
  color: var(--ink-1);
  font-size: 18px;
  line-height: 1.2;
}

.image-editor-head span {
  display: block;
  max-width: 760px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-editor-body {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 132px minmax(360px, 1.25fr);
  gap: 14px;
  min-height: 0;
  padding: 14px;
  background: var(--solid-quiet);
}

.image-editor-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--solid-line);
  border-radius: 12px;
  background: var(--solid);
}

.image-editor-pane-title {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -12px -12px 12px;
  padding: 12px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(255, 255, 255, .96);
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 700;
}

.image-editor-pane-title b {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}

.image-editor-pane-actions {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.image-editor-pane-actions .btn {
  flex: none;
}

.image-editor-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.image-editor-source,
.image-editor-generated {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: var(--solid-quiet);
  cursor: zoom-in;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}

.image-editor-source {
  aspect-ratio: 3 / 4;
}

.image-editor-generated {
  aspect-ratio: 3 / 4;
}

.image-editor-source:hover,
.image-editor-generated:hover {
  border-color: rgba(59, 111, 255, .42);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.image-editor-source img,
.image-editor-generated img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--solid);
}

.image-editor-source span {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(16, 21, 38, .68);
  color: var(--solid);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.image-editor-tools {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--solid-line);
  border-radius: 12px;
  background: var(--solid);
}

.image-editor-tools .btn {
  width: 100%;
}

.image-editor-gallery {
  display: grid;
  gap: 12px;
}

.image-editor-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 111, 255, .1);
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.image-editor-generated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}

.image-editor-generated-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.image-editor-generated-card.failed {
  border-color: rgba(185, 28, 28, .28);
}

.image-editor-generated-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 148px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .92);
  color: var(--ink-3);
  text-align: center;
}

.image-editor-generated-empty b {
  color: var(--ink);
  font-size: 12px;
}

.image-editor-generated-empty span {
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.45;
}

.image-editor-fail-ids {
  color: #b45309;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
}


.image-editor-generated-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.image-editor-generated-actions .btn {
  min-width: 0;
  height: 28px;
  padding: 0 2px;
  font-size: 14px;
  white-space: nowrap;
}

.image-editor-generated span {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 8px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.image-editor-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--solid-line);
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.content-editor-dialog {
  width: min(980px, calc(100vw - 56px));
  height: min(620px, calc(100vh - 56px));
}

.content-editor-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: var(--solid-quiet);
}

.content-editor-title-row {
  position: static;
  margin: 0;
  background: var(--solid);
}

.content-editor-scroll {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.content-editor-compare {
  gap: 12px;
}

.content-editor-compare .workflow-content-column {
  padding: 12px;
}

.content-editor-compare .workflow-content-block + .workflow-content-block {
  margin-top: 10px;
}

.content-editor-compare .workflow-content-text {
  max-height: 220px;
  overflow: auto;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.video-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(244, 247, 255, .7);
}

.video-link {
  flex: 1;
  min-width: 0;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-link:hover {
  text-decoration: underline;
}

/* 工作台 */
.workflow-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--solid-line);
  border-radius: 9px;
  background: rgba(244, 247, 255, .9);
}

.workflow-tab {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.workflow-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 45, 84, .12);
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.image-tool-studio {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 12px;
}

.image-tool-studio *,
.image-tool-studio *::before,
.image-tool-studio *::after {
  box-sizing: border-box;
}

#imageToolStudioRoot {
  height: 100%;
  min-height: 0;
}

.image-tool-studio-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 12px;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
}

.image-tool-settings,
.image-tool-stage-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--solid-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 36px rgba(31, 45, 84, .08);
}

.image-tool-settings {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  padding: 12px;
}

.image-tool-mode-select {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

.image-tool-mode-select > span,
.image-tool-stage-head span,
.image-tool-watermark-type > span {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.image-tool-mode-select > div {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--solid-line);
  border-radius: 12px;
  background: rgba(244, 247, 255, .9);
}

.image-tool-mode-button {
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.image-tool-mode-button:hover {
  background: rgba(47, 95, 255, .07);
  color: var(--ink);
}

.image-tool-mode-button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 95, 255, .2);
}

.image-tool-mode-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 95, 255, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
}

.image-tool-mode-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.image-tool-mode-panel-head b {
  color: var(--ink);
  font-size: 15px;
}

.image-tool-mode-panel-head span {
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.image-tool-panel-body {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.image-tool-upscale-note {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(47, 95, 255, .07);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

.image-tool-global-status {
  min-height: 18px;
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.image-tool-panel-body .image-tool-status {
  font-size: 14px;
}

.image-tool-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 8px;
  border: 1px dashed rgba(47, 95, 255, .34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 248, 255, .94), rgba(255, 255, 255, .74));
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.image-tool-small-drop {
  min-height: 54px;
}

.image-tool-drop b,
.image-tool-empty b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.image-tool-drop span,
.image-tool-empty span,
.image-tool-status {
  display: block;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.image-tool-watermark-type {
  display: grid;
  gap: 5px;
}

.image-tool-watermark-type > div,
.image-tool-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.image-tool-type-button {
  min-height: 32px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.image-tool-type-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 95, 255, .18);
}

.image-tool-field {
  display: grid;
  gap: 4px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 650;
}

.image-tool-field input[type="range"] {
  width: 100%;
  height: 16px;
}

.image-tool-settings .input {
  height: 32px;
  min-height: 32px;
  font-size: 14px;
}

.image-tool-file-input {
  display: none;
}

.image-tool-compact-row {
  align-items: end;
}

.image-tool-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.image-tool-actions .btn {
  height: 32px;
  padding: 0 10px;
}

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

.image-tool-stage-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
}

.image-tool-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
}

.image-tool-stage-head b {
  color: var(--ink);
  font-size: 16px;
}

.image-tool-image-box {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px dashed var(--solid-line);
  border-radius: 14px;
  background: rgba(248, 250, 255, .74);
  cursor: pointer;
}

.image-tool-image-box.is-result {
  border-style: solid;
  background: rgba(255, 255, 255, .72);
}

.image-tool-preview-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(31, 45, 84, .12);
}

.image-tool-empty {
  display: grid;
  gap: 8px;
  max-width: 320px;
  text-align: center;
}

@media (max-width: 1280px) {
  .image-tool-studio-layout {
    grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .image-tool-studio-layout {
    overflow: auto;
    grid-template-columns: minmax(280px, 1fr);
  }

  .image-tool-stage-card {
    min-height: 520px;
  }
}

/* ===== 工作台工作流（生图/优化/补齐日志行） ===== */
/* class 的 display 会盖掉原生 hidden，切 tab 时必须显式隐藏 */
.workflow-list[hidden],
.publish-log-list[hidden] {
  display: none;
}

.batch-workflow-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 95, 255, .3);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 248, 255, .98), rgba(255, 255, 255, .9));
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.batch-workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.batch-workflow-head > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.batch-workflow-head strong {
  color: var(--ink);
  font-size: 15px;
}

.batch-workflow-head > div > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.batch-workflow-head em {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-workflow-id {
  flex: none;
  color: var(--ink-4);
  font-family: Consolas, "SF Mono", monospace;
  font-size: 12px;
}

.batch-workflow-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-workflow-progress > span,
.batch-workflow-meta {
  color: var(--ink-4);
  font-size: 14px;
}

.batch-workflow-progress > span {
  flex: none;
}

.batch-workflow-items {
  display: grid;
  max-height: 220px;
  gap: 5px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
}

.batch-workflow-item {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) auto auto minmax(100px, 1fr);
  min-height: 28px;
  padding: 3px 5px;
}

.batch-workflow-item-title,
.batch-workflow-item-sku,
.batch-workflow-item-error {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-workflow-item-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.batch-workflow-item-sku,
.batch-workflow-item-error {
  color: var(--ink-4);
  font-size: 14px;
}

.batch-workflow-item-error {
  color: var(--coral);
}

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

.workflow-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) auto;
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.workflow-row.is-content {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr) auto;
  align-items: stretch;
}

.workflow-row.workflow-fill-log {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) auto;
}

.workflow-row:hover,
.workflow-row.is-focused {
  border-color: rgba(47, 95, 255, .32);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.workflow-product {
  display: grid;
  min-width: 0;
  gap: 9px;
  grid-template-columns: 54px minmax(0, 1fr);
}

.workflow-card-thumb {
  overflow: hidden;
  width: 54px;
  height: 54px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
}

.workflow-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-card-main {
  min-width: 0;
}

.workflow-card-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-card-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.workflow-card-sub span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-mini-progress {
  overflow: hidden;
  flex: 1;
  min-width: 60px;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 21, 38, .08);
}

.workflow-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transition: width .3s var(--ease);
}

.workflow-progress-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.workflow-progress-inline span {
  flex: none;
  color: var(--ink-4);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.workflow-credit-cost {
  margin-top: 4px;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-ticket-line {
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-4);
  font-size: 11px;
  font-family: Consolas, "SF Mono", monospace;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-source-strip {
  display: flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 7px;
  padding-bottom: 1px;
}

.workflow-source-thumb {
  overflow: hidden;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--solid-line);
  border-radius: 5px;
  background: var(--solid);
  cursor: zoom-in;
}

.workflow-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-row-gallery {
  display: flex;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
}

.workflow-fill-log-main {
  display: grid;
  min-width: 0;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-fill-log-main div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: rgba(248, 250, 255, .86);
}

.workflow-fill-log-main span {
  display: block;
  color: var(--ink-4);
  font-size: 12px;
}

.workflow-fill-log-main b {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-content-compare {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-attribute-fill {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.workflow-content-column {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 9px;
  background: rgba(248, 250, 255, .86);
}

.workflow-content-column.is-optimized {
  border-color: rgba(47, 95, 255, .22);
  background: rgba(245, 248, 255, .96);
}

.workflow-content-column-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.workflow-content-block {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.workflow-content-block + .workflow-content-block {
  margin-top: 6px;
}

.workflow-content-block-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-4);
  font-size: 12px;
}

.workflow-content-block-head b {
  flex: none;
  font-weight: 500;
}

.workflow-content-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.workflow-attribute-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1.2fr);
  padding: 5px 0;
  border-bottom: 1px solid rgba(201, 210, 231, .58);
}

.workflow-attribute-head {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1.2fr);
  padding: 0 0 4px;
  color: var(--ink-4);
  font-size: 11px;
}

.workflow-attribute-row:last-child {
  border-bottom: 0;
}

.workflow-attribute-row b {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  word-break: break-word;
}

.workflow-attribute-row span {
  min-width: 0;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
  word-break: break-word;
}

.workflow-gallery-empty {
  display: grid;
  place-items: center;
  min-width: 240px;
  height: 76px;
  border: 1px dashed var(--solid-line);
  border-radius: 9px;
  color: var(--ink-4);
  font-size: 13px;
}

.workflow-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-shot {
  flex: 0 0 74px;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--solid-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
}

.workflow-shot-thumb {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--solid-line);
  border-radius: 7px;
  background: var(--solid);
  cursor: zoom-in;
}

.workflow-shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-shot-placeholder {
  padding: 6px;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.workflow-shot-meta {
  margin-top: 5px;
}

.workflow-shot-meta b,
.workflow-shot-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-shot-meta b {
  color: var(--ink);
  font-size: 11px;
}

.workflow-shot-meta span {
  color: var(--ink-4);
  font-size: 11px;
}

.workflow-shot-ids {
  font-family: Consolas, "SF Mono", monospace;
}

.workflow-shot-actions {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.workflow-shot-actions .btn {
  width: 100%;
}

.btn-xs {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.workflow-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 2px 0 6px;
}

/* ===== 设置页 ===== */
.settings {
  height: 100%;
  overflow-y: auto;
  padding: 0;
}

.settings-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 12px;
}

.settings-hero {
  margin-bottom: 8px;
  padding: 10px 12px;
}

.settings-hero h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.3px;
}

.settings-hero p {
  margin: 4px 0 0;
  max-width: none;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.settings-card {
  margin-bottom: 8px;
  padding: 10px 12px 11px;
  border-left: 3px solid var(--settings-accent, var(--accent));
}

.settings-card[data-settings-tone="folders"] { --settings-accent: var(--mint); }
.settings-card[data-settings-tone="ozon"] { --settings-accent: var(--accent); }
.settings-card[data-settings-tone="ai"] { --settings-accent: #7b5cff; }
.settings-card[data-settings-tone="collect"] { --settings-accent: var(--amber); }
.settings-card[data-settings-tone="image"] { --settings-accent: var(--coral); }
.settings-card[data-settings-tone="brand"] { --settings-accent: var(--ink-2); }
.settings-card[data-settings-tone="publish"] { --settings-accent: var(--accent-deep); }
.settings-card[data-settings-tone="extension"] { --settings-accent: var(--ink-3); }
.settings-card[data-settings-tone="diagnose"] { --settings-accent: #0f9f9c; }

.settings-card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-card-title {
  color: var(--settings-accent, var(--ink));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.1px;
}

.settings-card-note {
  color: var(--ink-4);
  font-size: 12px;
}

.settings-grid {
  display: grid;
  gap: 7px 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.settings-card .field {
  gap: 4px;
}

.settings-card .field-label {
  font-size: 12px;
}

.settings-card .field-hint {
  font-size: 11px;
}

.settings-card .input,
.settings-card select.input {
  height: 32px;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--glass-edge);
}

.settings-actions .field-hint {
  margin-left: auto;
}

/* 独立成行的保存按钮：不是卡片内 footer，去掉分割线 */
.settings-page-actions {
  margin: 2px 0 8px;
  padding-top: 0;
  border-top: 0;
}

/* ===== 个人中心 ===== */
#viewPersonalCenter > #personalCenterRoot {
  height: 100%;
  min-height: 0;
}

.personal-center {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.personal-center-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 14px;
}

.personal-center-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
  padding: 16px 20px;
}

.personal-center-kicker {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.personal-center-hero h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.personal-center-hero p {
  margin: 5px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

.personal-center-balance {
  display: grid;
  min-width: 190px;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  column-gap: 8px;
}

.personal-center-balance span {
  color: var(--ink-3);
  font-size: 14px;
  text-align: right;
}

.personal-center-balance-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.personal-center-balance strong {
  color: var(--accent-deep);
  font-size: 32px;
  line-height: 1.1;
}

.personal-center-balance em {
  color: var(--ink-3);
  font-size: 14px;
  font-style: normal;
}

.personal-center-refresh-btn {
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
}

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

.personal-center-card {
  min-width: 0;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
}

.personal-center-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
}

.personal-center-card-head h3 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 700;
}

.personal-center-card-head span {
  color: var(--ink-4);
  font-size: 14px;
}

.personal-center-rule-list {
  display: grid;
  gap: 9px;
}

.personal-center-rule-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--glass-edge);
}

.personal-center-rule-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.personal-center-rule-list span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.personal-center-rule-list b {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.personal-center-recharge-card {
  border-left-color: var(--mint);
}

.personal-center-recharge {
  display: grid;
  min-height: 206px;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.personal-center-qr-box {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(10, 177, 104, .25);
  border-radius: 12px;
  background: #fff;
}

.personal-center-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.personal-center-recharge-copy h4 {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.personal-center-recharge-copy p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.8;
}

.personal-center-tier-card {
  border-left-color: var(--amber);
}

.personal-center-tier-table-wrap {
  overflow-x: auto;
}

.personal-center-tier-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-2);
  font-size: 14px;
  text-align: center;
}

.personal-center-tier-table th,
.personal-center-tier-table td {
  padding: 9px 12px;
  border: 1px solid var(--glass-edge);
}

.personal-center-tier-table th {
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-weight: 700;
}

.personal-center-tier-table td {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .personal-center-grid {
    grid-template-columns: 1fr;
  }

  .personal-center-recharge {
    grid-template-columns: 190px minmax(0, 1fr);
  }

}

@media (min-width: 1100px) and (min-height: 800px) {
  .personal-center-inner {
    padding-bottom: 0;
  }

  .personal-center-hero {
    margin-bottom: 8px;
    padding: 12px 18px;
  }

  .personal-center-balance strong {
    font-size: 30px;
  }

  .personal-center-grid {
    gap: 8px;
  }

  .personal-center-card {
    margin-bottom: 8px;
    padding: 10px 14px;
  }

  .personal-center-card-head {
    gap: 8px;
    margin-bottom: 7px;
  }

  .personal-center-recharge {
    min-height: 0;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
  }

  .personal-center-qr-box {
    width: 160px;
    height: 160px;
    padding: 6px;
  }

  .personal-center-recharge-copy p {
    line-height: 1.55;
  }

  .personal-center-tier-table th,
  .personal-center-tier-table td {
    padding: 6px 10px;
    line-height: 1.35;
  }
}

/* 固定尾图 */
.fixed-tail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 260px));
}

.fixed-tail-slot {
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 8px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.fixed-tail-preview {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 72px;
  height: 96px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  background: var(--solid-quiet);
}

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

.fixed-tail-empty {
  color: var(--ink-4);
  font-size: 12px;
}

.fixed-tail-meta {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
}

.fixed-tail-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.fixed-tail-name {
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-tail-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* 扩展安装步骤 */
.steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.step {
  display: grid;
  gap: 11px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
}

.step-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-text {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.step-text code {
  padding: 1px 6px;
  border: 1px solid var(--solid-line);
  border-radius: 5px;
  background: var(--solid);
  font-family: Consolas, monospace;
  font-size: 12px;
}

/* 网络诊断 */
.diag-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 6px;
  color: var(--ink-3);
  font-size: 12px;
}

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

.diag-row {
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.diag-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.diag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.diag-ok {
  color: #066a4c;
  background: rgba(16, 185, 129, .14);
}

.diag-bad {
  color: #9f1239;
  background: rgba(244, 63, 94, .12);
}

.diag-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.diag-cost,
.diag-status {
  color: var(--ink-3);
  font-size: 12px;
}

.diag-target,
.diag-message,
.diag-auth {
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.diag-auth {
  color: var(--ink-3);
}

/* 设置页内日志框 */
.log-box {
  max-height: 300px;
  overflow: auto;
  padding: 11px 13px;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
  font-family: Consolas, "SF Mono", monospace;
  font-size: 12px;
  line-height: 1.75;
}

.log-line {
  display: grid;
  gap: 9px;
  grid-template-columns: 148px minmax(0, 1fr);
  padding: 2px 0;
  border-bottom: 1px solid #f4f6fa;
}

.log-line:last-child {
  border-bottom: 0;
}

.log-time {
  color: var(--ink-4);
}

.log-text {
  color: var(--ink-2);
  word-break: break-word;
}

/* ===== 店铺中心：默认徽章 + 仓库弹窗 ===== */
.shop-name-cell .shop-default-badge {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.shop-warehouse-empty {
  color: var(--ink-4);
}

.shop-warehouse-count {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.shop-warehouse-count:hover {
  text-decoration: underline;
}

.shop-warehouse-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.shop-warehouse-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.shop-warehouse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.shop-warehouse-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.shop-warehouse-head span {
  color: var(--ink-4);
  font-size: 12px;
}

.shop-warehouse-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
}

.shop-warehouse-empty-hint {
  padding: 24px 0;
  text-align: center;
}

.shop-warehouse-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-warehouse-table th {
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(241, 246, 255, .84);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.shop-warehouse-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-2);
  font-size: 13px;
  vertical-align: middle;
}

.shop-warehouse-id {
  font-family: Consolas, "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.shop-warehouse-address {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 图片灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 46px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fade .2s var(--ease) both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 92px);
  max-height: calc(100vh - 92px);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: rise .28s var(--ease) both;
}

.lightbox-menu {
  position: fixed;
  z-index: 1400;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
}

.lightbox-menu[hidden] {
  display: none;
}

.lightbox-menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.lightbox-menu-item:hover {
  background: var(--accent-wash);
}

@media (max-width: 1180px) {
  .settings-grid,
  .settings-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== 采集箱详情：变体块 / 富文本 / 提示条 / 类目候选 ===== */
.variant-card {
  padding: 8px 10px;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
}

.variant-card + .variant-card {
  margin-top: 6px;
}

.variant-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.variant-sku {
  color: var(--ink-3);
  font-family: Consolas, monospace;
  font-size: 13px;
}

.variant-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-thumbs {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.variant-thumbs img {
  overflow: hidden;
  width: 34px;
  height: 34px;
  border: 1px solid var(--solid-line);
  border-radius: 7px;
  object-fit: cover;
}

.image-tool-settings textarea.input.image-tool-prompt {
  min-height: 112px;
  padding: 9px 10px;
  line-height: 1.5;
  resize: vertical;
}

.variant-video-list {
  margin-top: 7px;
}

/* 富文本预览：外部内容隔离在容器里 */
.rich-box {
  max-height: 340px;
  overflow: auto;
  padding: 13px 15px;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.rich-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rich-box :is(h1, h2, h3) {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.rich-box p {
  margin: 0 0 9px;
}

.rich-box ul {
  margin: 0 0 9px;
  padding-left: 19px;
}

.text-box {
  max-height: 260px;
  overflow: auto;
  padding: 13px 15px;
  border: 1px solid var(--solid-line);
  border-radius: var(--r-md);
  background: var(--solid);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notice {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 167, 44, .3);
  border-radius: var(--r-md);
  background: rgba(240, 167, 44, .08);
  color: #7a5109;
  font-size: 13px;
  line-height: 1.65;
}

.notice-ok {
  border-color: rgba(16, 179, 154, .26);
  background: rgba(16, 179, 154, .08);
  color: #0a6d5e;
}

.notice-error {
  border-color: rgba(255, 106, 77, .3);
  background: rgba(255, 106, 77, .08);
  color: #a83519;
}

.notice-mark {
  flex: none;
  font-weight: 700;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.candidate {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 11px;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
  background: var(--solid);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.candidate:hover {
  border-color: rgba(47, 95, 255, .3);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.candidate-label {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}

.candidate-ids {
  color: var(--ink-4);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.candidate-translation {
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.45;
}

/* 上架店铺选项带仓库下拉 */
.publish-shop-option.publish-shop-option-with-warehouse {
  align-items: start;
}

.publish-shop-warehouse {
  margin-top: 6px;
  height: 30px;
  font-size: 12px;
}

.price-editor-action {
  margin-top: 8px;
}

/* ===== 采集箱列表：上架记录列 ===== */
.product-publish-log-cell {
  min-width: 96px;
}

.product-publish-log-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 4px;
  max-height: 48px;
  overflow: hidden;
}

.candidate-choice {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.candidate-choice-input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.category-choice-hint {
  margin: -2px 0 8px;
}

.category-choice-confirm {
  margin-top: 9px;
}

.product-publish-log-item {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(16, 179, 154, .1);
  color: #0a7f6d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-publish-log-item.is-blocked {
  background: rgba(245, 158, 11, .14);
  color: #9a5b00;
}

.product-publish-status-cell .product-publish-status-list {
  display: grid;
  align-content: center;
  gap: 3px;
  width: 100%;
  max-height: 48px;
  overflow: hidden;
}

.product-publish-status-cell .product-publish-log-item {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.product-publish-log-empty {
  color: var(--ink-4);
  font-size: 12px;
}

/* ===== 促销管理 ===== */
.promo-page {
  height: 100%;
  min-width: 0;
  padding: 14px;
}

.promo-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.promo-page .promo-panel {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: var(--r-lg);
}

.promo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.promo-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.promo-head span {
  color: var(--ink-4);
  font-size: 12px;
}

.promo-toolbar {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.promo-scope {
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 36px;
  color: var(--ink-2);
  font-size: 14px;
}

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

.promo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-3);
  font-size: 12px;
}

.promo-meta-msg {
  color: #96620a;
}

.promo-table-wrap {
  min-height: 0;
  overflow: auto;
  padding: 4px 16px;
}

.promo-table {
  width: 100%;
  border-collapse: collapse;
}

.promo-table th {
  position: sticky;
  top: -4px;
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--solid-line);
  background: rgba(241, 246, 255, .98);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.promo-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--solid-line);
  color: var(--ink-2);
  font-size: 13px;
  vertical-align: middle;
}

.promo-empty {
  padding: 24px 0;
  text-align: center;
}

.promo-product-cell {
  min-width: 0;
}

.promo-product-cell > span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-product-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.promo-product-title-row b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-a-badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(240, 167, 44, .2);
  color: #96620a;
  font-size: 11px;
  font-weight: 700;
}

.promo-a-badge-lg {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.promo-mode.is-manual {
  color: var(--ink-4);
}

.promo-pending-date {
  white-space: nowrap;
}

.promo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--solid-line);
}

.promo-foot-hint {
  display: grid;
  gap: 2px;
  color: var(--ink-4);
  font-size: 12px;
}

.promo-foot-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

/* ===== 选品大屏：店铺详情弹窗 / 类目层级 ===== */
.selection-detail-main {
  min-width: 0;
}

.category-level-select {
  width: 100%;
  min-width: 0;
  padding: 0 6px;
  font-size: 12px;
}

.selection-store-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 21, 38, .34);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

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

.selection-store-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.selection-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.selection-store-title {
  min-width: 0;
}

.selection-store-title b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.selection-store-title span {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 12px;
}

.selection-store-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.selection-store-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--solid-line);
  border-radius: 8px;
  object-fit: cover;
}

.selection-store-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--solid-line);
}

.selection-store-metrics span {
  display: block;
  color: var(--ink-4);
  font-size: 11px;
}

.selection-store-metrics b {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.selection-store-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
}

.selection-store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.selection-store-toolbar > b {
  color: var(--ink);
  font-size: 13px;
}

.selection-store-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
}

.selection-store-table-wrap {
  overflow: auto;
  border: 1px solid var(--solid-line);
  border-radius: 10px;
}

.selection-store-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.selection-store-open:hover b {
  color: var(--accent-deep);
}

.selection-store-panel {
  width: min(1480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.selection-store-table {
  width: max-content;
  min-width: 3200px;
  table-layout: auto;
}

.selection-store-table .rank-col {
  width: 56px;
  min-width: 56px;
}

.selection-store-table .selection-name {
  width: 320px;
  min-width: 320px;
  max-width: 360px;
}

.selection-store-table .category-col {
  width: 140px;
  min-width: 140px;
  max-width: 160px;
}

.selection-store-table th:not(.selection-name):not(.category-col):not(.rank-col),
.selection-store-table td:not(.selection-name):not(.category-col):not(.rank-col) {
  min-width: 112px;
}

.selection-store-table .selection-product-cell {
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.selection-store-table img.selection-thumb {
  width: 48px;
  height: 48px;
  cursor: zoom-in;
}

.publish-log-stock-status { margin-top: 4px; }
.publish-log-stock-status.tone-rose { color: #a2685e; }
.publish-log-stock-status.tone-amber { color: #8a7045; }
.publish-log-stock-status.tone-mint { color: #4d7b74; }

/* 登录与仪表盘沿用整合版视觉，主导航仍由现有板块路由控制。 */
.ethereal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07080b;
  -webkit-app-region: no-drag;
}

.login-screen {
  display: block;
  background: #07080b;
}

.login-window-actions .win-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #edeff3;
}

.login-window-actions .win-btn:hover { background: rgba(255, 255, 255, .18); }

.nav-rail {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 250px);
  min-width: 0;
  margin: 0 auto;
  -webkit-app-region: no-drag;
}

.topbar .nav {
  position: relative;
  left: auto;
  flex: 1;
  min-width: 0;
  margin: 0;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  transform: none;
  scrollbar-width: none;
}

.topbar .nav::-webkit-scrollbar { display: none; }
.topbar .nav-item { flex: none; padding: 0 10px; }
.nav-step {
  flex: none;
  width: 24px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(16, 21, 38, .06);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.nav-step:disabled { opacity: .3; cursor: default; }
.nav-step:not(:disabled):hover { color: var(--ink); background: rgba(16, 21, 38, .12); }
.view-dashboard { padding: 0; }

.dashboard-theme-toggle { display: none; }
body.is-ethereal .dashboard-theme-toggle {
  position: relative;
  display: block;
  flex: none;
  width: 42px;
  height: 24px;
  margin: 0 4px 0 2px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  -webkit-app-region: no-drag;
}

body.is-ethereal .dashboard-theme-toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  content: '';
  transition: transform .35s ease;
}

body.is-ethereal.dashboard-light .dashboard-theme-toggle::after { transform: translateX(18px); }
body.is-ethereal .topbar { border-bottom-color: rgba(255, 255, 255, .075); background: #07080b; box-shadow: none; }
body.is-ethereal .topbar-name { color: #edeff3; }
body.is-ethereal .nav { border-color: rgba(255, 255, 255, .075); background: rgba(255, 255, 255, .05); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
body.is-ethereal .nav-item { color: #8e93a0; }
body.is-ethereal .nav-item:hover { color: #edeff3; }
body.is-ethereal .nav-item.is-active { background: #fff; color: #0b0c10; }
body.is-ethereal .nav-step { background: rgba(255, 255, 255, .07); color: #c9ced8; }
body.is-ethereal .nav-step:not(:disabled):hover { background: rgba(255, 255, 255, .13); color: #fff; }
body.is-ethereal .account-btn { border-color: rgba(255, 255, 255, .075); background: rgba(255, 255, 255, .07); color: #edeff3; }
body.is-ethereal .account-btn:hover { background: rgba(255, 255, 255, .13); }
body.is-ethereal .win-btn { color: #c9ced8; }
body.is-ethereal .win-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.is-ethereal .win-btn.is-close:hover { background: #e5484d; }

body.is-ethereal.dashboard-light .topbar { border-bottom-color: rgba(15, 18, 25, .08); background: #eceef3; }
body.is-ethereal.dashboard-light .topbar-name { color: #14161c; }
body.is-ethereal.dashboard-light .nav { border-color: rgba(15, 18, 25, .08); background: rgba(255, 255, 255, .7); }
body.is-ethereal.dashboard-light .nav-item { color: #6e7480; }
body.is-ethereal.dashboard-light .nav-item:hover { color: #14161c; }
body.is-ethereal.dashboard-light .nav-item.is-active { background: #12141a; color: #fff; }
body.is-ethereal.dashboard-light .nav-step { background: rgba(15, 18, 25, .06); color: #6e7480; }
body.is-ethereal.dashboard-light .nav-step:not(:disabled):hover { background: rgba(15, 18, 25, .11); color: #14161c; }
body.is-ethereal.dashboard-light .dashboard-theme-toggle { border-color: rgba(15, 18, 25, .08); background: rgba(15, 18, 25, .06); }
body.is-ethereal.dashboard-light .dashboard-theme-toggle::after { background: #12141a; }
body.is-ethereal.dashboard-light .account-btn { border-color: rgba(15, 18, 25, .08); background: rgba(255, 255, 255, .7); color: #14161c; }
body.is-ethereal.dashboard-light .win-btn { color: #3a3f4b; }

body.is-guest .topbar { background: rgba(255, 255, 255, .9); }
body.is-guest .nav { background: #fff; }
body.is-guest .nav-item:disabled { color: #a3a9b5; cursor: not-allowed; }
body.is-guest .nav-item:disabled:hover { color: #a3a9b5; }
body.is-guest .dashboard-theme-toggle { display: none; }
body.is-guest .account-btn:disabled { border-radius: 999px; background: #fff; color: #777f8d; cursor: default; }
body.is-guest .view-dashboard { overflow: hidden; background: #eceef3; }
body.is-guest .view-dashboard .ethereal-frame { filter: blur(7px); opacity: .62; transform: scale(1.015); pointer-events: none; }
body.is-guest .view-dashboard::after { position: absolute; inset: 0; background: rgba(241, 243, 247, .24); content: ''; pointer-events: none; }

@media (max-width: 1100px) {
  #viewWorkbench { overflow-y: auto; }
  .workbench { height: auto; min-height: 100%; grid-template-columns: minmax(0, 1fr); }
  .workbench > .column { min-height: 520px; }
}

@media (max-height: 700px) {
  #viewSelection { overflow-y: auto; }
  .selection-dashboard { height: auto; min-height: 100%; overflow: visible; }
  .selection-result { flex: none; min-height: 320px; max-height: 60vh; overflow: auto; }
}

.guest-login { position: absolute; z-index: 2; inset: 0; display: grid; align-items: safe center; justify-items: center; padding: 24px; overflow-y: auto; }
.guest-login[hidden] { display: none; }
.guest-login-card { width: min(430px, 100%); padding: 30px 32px 27px; border: 1px solid rgba(255, 255, 255, .96); border-radius: 27px; background: rgba(255, 255, 255, .97); box-shadow: 0 30px 95px rgba(39, 46, 68, .18), 0 2px 8px rgba(39, 46, 68, .045), inset 0 1px 0 #fff; font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif; -webkit-app-region: no-drag; }
.guest-login-top { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.guest-login-top:has(.guest-login-back) { justify-content: space-between; }
.guest-login-state { display: flex; align-items: center; gap: 6px; color: #6e7684; font-size: 14px; }
.guest-login-state i { width: 6px; height: 6px; border-radius: 50%; background: #b9f86a; box-shadow: 0 0 0 4px rgba(185, 248, 106, .18); }
.guest-login-card label { display: block; margin: 0 0 9px; color: #3d434e; font-size: 14px; font-weight: 650; }
.guest-login-field { display: flex; align-items: center; height: 49px; margin-bottom: 20px; border: 1px solid #e1e5eb; border-radius: 12px; background: #f8f9fb; transition: border-color .18s, box-shadow .18s, background .18s; }
.guest-login-field:focus-within { border-color: #a9c97e; background: #fff; box-shadow: 0 0 0 4px rgba(185, 248, 106, .16); }
.guest-login-field input { width: 100%; height: 100%; padding: 0 15px; border: 0; outline: 0; background: transparent; color: #1e232b; font-size: 14px; }
.guest-login-field input::placeholder { color: #a8adb6; }
.guest-login-field button { flex: none; height: 100%; padding: 0 14px; border: 0; background: transparent; color: #79818d; font-size: 14px; cursor: pointer; }
.guest-login-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 24px; }
.guest-login-help button { padding: 0; border: 0; background: transparent; color: #505966; font-size: 14px; cursor: pointer; }
.guest-login-help button:hover,.guest-login-back:hover { color: #1b1d24; text-decoration: underline; text-underline-offset: 4px; }
.guest-login-back { padding: 3px 0; border: 0; background: transparent; color: #505966; font-size: 14px; cursor: pointer; }
.guest-login-card .guest-login-title { margin: -2px 0 7px; color: #1e232b; font-size: 24px; line-height: 1.4; letter-spacing: -.5px; }
.guest-login-description { margin: 0 0 22px; color: #69717f; font-size: 14px; line-height: 1.65; }
.guest-login-help-panel { display: grid; gap: 8px; margin: 0 0 22px; padding: 15px; border: 1px solid #e5e8ee; border-radius: 12px; background: #f8f9fb; color: #69717f; font-size: 14px; line-height: 1.65; }
.guest-login-help-panel strong { color: #303844; font-weight: 650; }
.guest-login-copy-status { min-height: 0; margin-top: -14px; color: #527d30; font-size: 14px; line-height: 1.5; }
.guest-login-copy-status:not(:empty) { margin-bottom: 16px; }
.guest-login-field button:disabled { color: #8b929e; cursor: not-allowed; }
.guest-login-error { color: #b83e44; font-size: 14px; text-align: center; }
.guest-login-error:not(:empty) { margin: -8px 0 12px; }
.guest-login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: #1b1d24; color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: 0 12px 25px rgba(21, 24, 32, .18); transition: transform .18s, background .18s; }
.guest-login-submit:hover:not(:disabled) { transform: translateY(-1px); background: #2a2d35; }
.guest-login-submit:disabled { opacity: .7; cursor: wait; }
.guest-login-submit span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #b9f86a; color: #1b1d24; font-size: 17px; font-weight: 500; line-height: 1; }
.guest-login-foot { margin-top: 22px; color: #9ca3ad; font-size: 14px; text-align: center; }
.account-btn.has-update { border-color: rgba(220, 38, 38, .28); background: #fff1f2; color: #b42318; font-size: 14px; }
body.is-ethereal .account-btn.has-update { border-color: rgba(248, 113, 113, .35); background: rgba(127, 29, 29, .2); color: #fecaca; }
body.is-ethereal.dashboard-light .account-btn.has-update { border-color: rgba(220, 38, 38, .25); background: #fff1f2; color: #b42318; }
