/* ==========================================================
   自动改价系统 · 真锐数字科技 · 视觉系统
   ========================================================== */

:root {
  --bg: #f1f4fa;
  --bg-deep: #e9eef7;
  --panel: #ffffff;
  --ink: #0b1422;
  --ink-2: #27364b;
  --muted: #6f7e93;
  --muted-2: #96a3b6;
  --line: #e6ecf5;
  --line-strong: #d4ddec;
  --brand: #355df0;
  --brand-ink: #1b3ec6;
  --brand-soft: #eef3ff;
  --green: #0b9157;
  --green-soft: #e6f7ee;
  --amber: #c07a08;
  --amber-soft: #fdf3e1;
  --red: #d93a3a;
  --red-soft: #fdecec;
  --purple: #6a52d4;
  --purple-soft: #f0ecff;
  --radius: 15px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 34, .05), 0 1px 1px rgba(11, 20, 34, .03);
  --shadow: 0 1px 2px rgba(11, 20, 34, .04), 0 12px 30px rgba(11, 20, 34, .07);
  --shadow-lg: 0 18px 50px rgba(11, 20, 34, .14);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --font-ui: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(53, 93, 240, .08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(11, 145, 87, .06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.58;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

/* ---------------------------- 侧边栏 ---------------------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 14px;
  background:
    radial-gradient(120% 82% at 0% 0%, rgba(96, 132, 255, .48), transparent 56%),
    radial-gradient(115% 85% at 100% 104%, rgba(132, 88, 255, .34), transparent 58%),
    linear-gradient(170deg, #20317a 0%, #1b2a63 44%, #151e4a 76%, #111939 100%);
  color: #a9b8d6;
  box-shadow: 1px 0 0 rgba(255,255,255,.06), 14px 0 40px rgba(17, 27, 72, .18);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
}
.brand-mark {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #3f7bff, #1e42c9);
  box-shadow: 0 6px 16px rgba(47, 98, 245, .35);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #f2f6ff; font-size: 14.5px; letter-spacing: .2px; }
.brand-text span { font-size: 11px; color: #93a5cc; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.nav-label {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8698c4;
  padding: 14px 10px 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: #b3c2dd;
  font-size: 13px;
  transition: background .16s ease, color .16s ease;
}
.nav-item svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
  flex: none;
}
.nav-item:hover { background: rgba(255,255,255,.10); color: #f2f6ff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(255,255,255,.20), rgba(255,255,255,.06));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26), 0 6px 16px rgba(9,16,44,.28);
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  width: 3px; height: 18px;
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  background: #4b83ff;
  box-shadow: 0 0 12px rgba(75,131,255,.9);
}
.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  color: #b9c7dc;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.18); color: #fff; }

.dot-live {
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,.14);
  font-style: normal;
}
.dot-live.off { background: #f0a72f; box-shadow: 0 0 0 3px rgba(240,167,47,.14); }

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 12px 8px 2px;
}
.sy-session {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  font-size: 11.5px; color: #a9bade;
  font-family: var(--mono);
}
.sy-session b { color: #cfdcf0; font-weight: 500; }
.sy-session .dot-live { margin: 0; }
.sy-session .sy-login { display: flex; align-items: center; gap: 6px; color: #a9bcd6; }
.sy-session .sy-shop { color: #6d809b; font-size: 10.5px; padding-left: 13px; }
.sy-note { font-size: 10.5px; color: #4f5f78; margin-top: 6px; }

/* ---------------------------- 主区域 ---------------------------- */

.main {
  margin-left: 226px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tb-title { display: flex; flex-direction: column; min-width: 190px; }
.tb-title h1 { font-size: 16.5px; font-weight: 500; letter-spacing: -.2px; }
.tb-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.tb-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 7px;
  background: #f4f7fc;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.pill.green { background: var(--green-soft); border-color: #ccecdb; color: #0b7c46; }
.pill.green b { color: #0b7c46; }
.pill.amber { background: var(--amber-soft); border-color: #f5e2bd; color: #9a6106; }
.pill.amber b { color: #9a6106; }
.pill.blue { background: var(--brand-soft); border-color: #d5e1ff; color: var(--brand-ink); }
.pill.blue b { color: var(--brand-ink); }
.pill.red { background: #fdeeee; border-color: #f4d4d4; color: #b32b2b; }
.pill.red b { color: #b32b2b; }
.pill-btn { cursor: pointer; background: var(--brand-soft); border-color: #d5e1ff; color: var(--brand-ink); font-family: inherit; transition: filter .15s; }
.pill-btn:hover { filter: brightness(.97); }
.pill-btn:disabled { opacity: .6; cursor: default; }

.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.countdown {
  display: flex; flex-direction: column; align-items: flex-end;
  padding-right: 6px;
  line-height: 1.2;
}
.cd-label { font-size: 10px; color: var(--muted-2); letter-spacing: .4px; }
.countdown b {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  letter-spacing: .4px;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn:hover { border-color: #b9c7dd; background: #f8fafd; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #3a6dfb, #2b5ae8);
  border-color: #2b5ae8; color: #fff;
  box-shadow: 0 4px 12px rgba(47,98,245,.28);
}
.btn.primary:hover { background: linear-gradient(180deg, #4d7cff, #2f62f5); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.view { padding: 18px 22px 26px; flex: 1; }

.page-foot {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted-2);
}
.foot-warn { margin-left: auto; color: #a38a5e; }

/* ---------------------------- 通用面板 ---------------------------- */

.notice {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef4ff, #f7faff 60%, #ffffff);
  border: 1px solid #dce7fb;
  font-size: 12px;
  color: #40567a;
}
.notice .n-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(47,98,245,.14);
  flex: none;
}
.notice .n-text { flex: 1; }
.notice .n-text b { color: var(--brand-ink); font-weight: 500; }
.notice .n-right {
  display: inline-flex; align-items: center; gap: 6px;
  color: #0b7c46; font-size: 11.5px;
  padding: 2px 8px; border-radius: 6px; background: var(--green-soft);
  border: 1px solid #ccecdb;
}
.notice .n-right.warn { color: #9a6106; background: var(--amber-soft); border-color: #f5e2bd; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  opacity: .9;
}
.card.amber::after { background: var(--amber); }
.card.green::after { background: var(--green); }
.card.purple::after { background: var(--purple); }
.card-label {
  font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.card-value {
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.5px;
  margin-top: 6px;
  line-height: 1.15;
  color: var(--ink);
}
.card-value small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 11px; color: var(--muted);
  gap: 8px;
}
.bar {
  position: relative;
  height: 4px; border-radius: 4px;
  background: #eef2f8;
  overflow: hidden;
  flex: 1;
  max-width: 110px;
}
.bar > i {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #4d7cff, #7aa0ff);
}
.card.amber .bar > i { background: linear-gradient(90deg, #e8a021, #f3c266); }
.card.green .bar > i { background: linear-gradient(90deg, #17a862, #5dd39a); }
.card.blue::after { background: #2f7fe0; }

/* 总览：今日店铺销售 + 运行状态 */
.dash-top .card-foot { justify-content: flex-start; }
.dash-section-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 10px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.dash-hint { font-size: 11px; font-weight: 400; color: var(--muted-2); }
.dash-sales .sale-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
  overflow: hidden; min-height: 218px;
  display: flex; align-items: stretch; gap: 14px;
}
.dash-sales .sale-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--green); opacity: .9;
}
.dash-sales .sale-card:nth-child(2)::after { background: #2f7fe0; }
.dash-sales .sc-head { display: flex; align-items: center; justify-content: space-between; }
.dash-sales .sc-name { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.dash-sales .sc-live { font-size: 10.5px; color: #1a9c5b; }
.dash-sales .sc-amount {
  font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.5px;
  color: var(--ink); margin: 10px 0 4px; line-height: 1.1;
}
.dash-sales .sc-amount small { font-size: 13px; font-weight: 400; color: var(--muted); }
.dash-sales .ds-delta { font-size: 11.5px; font-weight: 500; }
.dash-sales .ds-delta.up { color: #d8452f; }
.dash-sales .ds-delta.down { color: #159a5a; }
.dash-sales .sc-foot { margin-top: 9px; font-size: 11.5px; color: var(--muted-2); }
.dash-sales .sc-foot b { color: var(--ink-2); font-family: var(--mono); font-weight: 500; }

/* 今日订单/销售额分布饼图 */
.dash-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mix-panel {
  padding: 16px 18px; min-height: 218px;
  display: flex; flex-direction: column; justify-content: center;
}
.mix-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.mix-title small { font-size: 11px; font-weight: 400; color: var(--muted-2); margin-left: 8px; }
.pie-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pie {
  width: 180px; height: 180px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .14);
}
.pie-hole {
  width: 116px; height: 116px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pie-hole b { font-family: var(--mono); font-size: 20px; color: var(--ink); }
.pie-hole small { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.pie-legend { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.pl-item { display: flex; align-items: center; gap: 10px; }
.pl-item i { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; }
.pl-item b { font-family: var(--mono); color: var(--ink); margin-left: 6px; font-size: 12.5px; }

.dash-run { margin-top: 16px; }
.run-status-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.run-status-row .run-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.run-status-row .run-done { font-size: 11.5px; color: var(--muted); }
.run-progress { height: 6px; margin: 0 16px 10px; border-radius: 6px; background: #eef2f8; overflow: hidden; }
.run-progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #17a862, #5dd39a); }
.run-logs {
  max-height: 260px; overflow: auto; margin: 0 16px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe;
}
.run-log { display: flex; gap: 12px; padding: 6px 12px; font-size: 11.5px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.run-log:last-child { border-bottom: 0; }
.run-log time { font-family: var(--mono); color: var(--muted-2); flex: none; }
.run-log span { color: var(--ink-2); }
.run-log.ok span::before { content: "✓ "; color: #1a9c5b; font-weight: 500; }
.run-log.err span::before { content: "✕ "; color: #d8452f; font-weight: 500; }
.run-log-empty { padding: 20px; text-align: center; color: var(--muted-2); font-size: 12px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel + .panel { margin-top: 14px; }
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}
.panel-head h2 { font-size: 13px; font-weight: 500; }
.panel-head .ph-sub { font-size: 11px; color: var(--muted); }
.panel-head .ph-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-head .ph-right .switch { white-space: nowrap; flex-shrink: 0; }

/* ---------------------------- 筛选栏 ---------------------------- */

.filters {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
  flex-wrap: wrap;
}

.select, .input {
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  padding: 0 9px;
  outline: none;
  transition: .15s;
}
.select { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8595ab 50%), linear-gradient(135deg, #8595ab 50%, transparent 50%); background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.select:focus, .input:focus { border-color: #9db6f5; box-shadow: 0 0 0 3px rgba(47,98,245,.1); }
.input { width: 180px; }
.input::placeholder { color: #a9b6c8; }

.switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  cursor: pointer; user-select: none;
  padding-left: 4px;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 34px; height: 19px; border-radius: 20px;
  background: #d8e0ec;
  position: relative;
  transition: .18s;
  flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: .18s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(15px); }

.filter-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-count { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

/* ---------------------------- 表格 ---------------------------- */

.table-wrap { max-height: calc(100vh - 400px); min-height: 260px; overflow: auto; }
/* 不显示底部横向滑块，仍可用 Shift+滚轮横向滚动 */
.table-wrap::-webkit-scrollbar { width: 8px; height: 0; }
.table-wrap::-webkit-scrollbar-thumb { background: #c9d3e2; border-radius: 8px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap.tall { max-height: calc(100vh - 300px); }

table.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

table.grid thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f7fafd;
  color: #66748a;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .3px;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.grid thead th.num { text-align: right; }
table.grid thead th.sortable { cursor: pointer; }
table.grid thead th.sortable:hover { color: var(--brand); }
table.grid thead th .arrow { font-size: 9px; margin-left: 3px; opacity: .5; }
table.grid thead th.sorted .arrow { opacity: 1; color: var(--brand); }

table.grid tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5fa;
  color: var(--ink-2);
  vertical-align: middle;
  white-space: nowrap;
}
table.grid tbody tr:hover td { background: #fafcff; }
table.grid td.num { text-align: right; font-family: var(--mono); font-size: 12px; }
table.grid td.strong { color: var(--ink); font-weight: 500; }
table.grid td.server { font-weight: 500; color: var(--ink); letter-spacing: .2px; }

.group-row td {
  background: #f5f8fd;
  color: #334155;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid #eef3fa;
}

.race {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
}
.race::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--brand);
}
.race.elyos { color: #1e6fd9; }
.race.elyos::before { background: #3d8bfd; }
.race.asmodian { color: #7b46c9; }
.race.asmodian::before { background: #8b5cf6; }
.race.alliance { color: #1e6fd9; }
.race.alliance::before { background: #3d8bfd; }
.race.horde { color: #c23b2b; }
.race.horde::before { background: #e5533d; }
.race.chaos { color: #8a6d1f; }
.race.chaos::before { background: #c9a227; }
.race.divine { color: #0f9d58; }
.race.divine::before { background: #35b57c; }

.usd { color: #0b7c46; font-weight: 500; }
.dim { color: var(--muted); }
.stockbar {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
}
.stockbar .sb-track {
  display: inline-block;
  width: 44px; height: 4px; border-radius: 4px; background: #edf1f7; overflow: hidden;
}
.stockbar .sb-track i { display: block; height: 100%; background: #35b57c; border-radius: 4px; }
.stockbar.low .sb-track i { background: #e5a022; }
.stockbar.out .sb-track i { background: #d54545; width: 2px !important; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { color: #0b7c46; background: var(--green-soft); border-color: #cfeddd; }
.badge.warn { color: #9a6106; background: var(--amber-soft); border-color: #f4e3c2; }
.badge.err { color: #b32b2b; background: var(--red-soft); border-color: #f6d5d5; }
.badge.info { color: var(--brand-ink); background: var(--brand-soft); border-color: #d8e3ff; }
.badge.mute { color: #6b7a90; background: #f2f5fa; border-color: #e4eaf3; }
.badge.purple { color: #5b41c4; background: var(--purple-soft); border-color: #e2dbff; }
.badge.plain::before { display: none; }

.empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
  font-size: 11.5px; color: var(--muted);
}
.pager .pg-btns { display: flex; gap: 4px; }
.pg-btn {
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 6px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); font-size: 11.5px; cursor: pointer;
}
.pg-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-btn:hover:not(.active):not([disabled]) { background: #f5f8fd; }

/* ---------------------------- 图表 ---------------------------- */

.chart-card { padding: 6px 6px 0; }
.chart-legend { display: flex; gap: 14px; padding: 2px 10px 8px; font-size: 11px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 86px; padding: 0 4px;
}
.bars .b {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6f95ff, #cfdcff);
  position: relative; min-height: 3px;
  transition: .2s;
}
.bars .b:hover { background: linear-gradient(180deg, #2f62f5, #8ea9ff); }
.bars .b span {
  position: absolute; bottom: -17px; left: 0; right: 0;
  text-align: center; font-size: 9px; color: var(--muted-2);
}

/* ---------------------------- 统计块 ---------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.stat .s-label { font-size: 11px; color: var(--muted); }
.stat .s-value { font-family: var(--mono); font-size: 19px; font-weight: 500; margin-top: 3px; letter-spacing: -.3px; }
.stat .s-value small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.stat .s-foot { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat.green .s-value { color: #0b7c46; }
.stat.amber .s-value { color: #9a6106; }
.stat.blue .s-value { color: var(--brand-ink); }

/* ---------------------------- 双列布局 ---------------------------- */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; padding: 14px 16px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.kv dd.plain { font-family: inherit; font-size: 12.5px; }

.timeline { padding: 6px 16px 14px; }
.tl-item {
  display: flex; gap: 10px; padding: 7px 0;
  border-bottom: 1px dashed #eef2f8;
  font-size: 12px;
}
.tl-item:last-child { border-bottom: 0; }
.tl-time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); flex: none; width: 86px; padding-top: 1px; }
.tl-body { color: var(--ink-2); }
.tl-body b { color: var(--ink); }

.store-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
}
.store-logo {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2b3145, #171b26);
  color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .5px;
  flex: none;
}
.store-logo.eld { background: linear-gradient(145deg, #4a2b7a, #2a1747); }
.store-meta h3 { font-size: 14.5px; font-weight: 500; }
.store-meta p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.store-meta a { color: var(--brand); }
.store-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------------------------- 表单 ---------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; color: var(--muted); }
.field .hint { font-size: 10.5px; color: var(--muted-2); }
.field .input, .field .select { width: 100%; height: 33px; font-family: var(--mono); font-size: 12.5px; }
.field .switch { height: 33px; }

.section-title {
  grid-column: 1 / -1;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

.form-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
}
.form-foot .spacer { flex: 1; }
.form-foot .save-tip { font-size: 11.5px; color: var(--muted); }

/* ---------------------------- 日志 ---------------------------- */

.log-list { max-height: calc(100vh - 320px); overflow: auto; font-family: var(--mono); font-size: 11.5px; }
.log-item {
  display: grid;
  grid-template-columns: 148px 74px 62px 1fr;
  gap: 10px;
  padding: 7px 16px;
  border-bottom: 1px solid #f2f5fa;
  align-items: baseline;
}
.log-item:hover { background: #fafcff; }
.log-item .lt { color: var(--muted-2); }
.log-item .lm { color: var(--brand-ink); }
.log-item .ll { font-weight: 500; }
.log-item .ll.info { color: #2a76d2; }
.log-item .ll.warn { color: #b07808; }
.log-item .ll.error { color: #c03535; }
.log-item .msg { color: var(--ink-2); font-family: -apple-system, "Microsoft YaHei", sans-serif; font-size: 12px; }

/* ---------------------------- 导入面板 ---------------------------- */

.import-panel {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #fcfdff);
  padding: 12px 14px 13px;
}
.import-panel[hidden] { display: none; }
.ip-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.ip-head b { font-size: 12.5px; color: var(--ink); }
.ip-head span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.import-panel textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}
.import-panel textarea::placeholder { color: #adb9ca; }
.import-panel textarea:focus { border-color: #9db6f5; box-shadow: 0 0 0 3px rgba(47,98,245,.1); }
.ip-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.ip-foot .hint { flex: 1; font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.ocr-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.ocr-upload .hint { font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.ocr-result {
  margin-bottom: 9px; padding: 8px 11px; border: 1px solid #bfe3c8; border-radius: 8px;
  background: #f2fbf5; font-size: 11.5px; color: var(--ink-2); line-height: 1.7;
}
.ocr-result[hidden] { display: none; }
.ocr-result b { color: var(--ink); }
.ocr-result .warn-text, .warn-text { color: #c0392b; }

.panel-note { padding: 13px 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.95; }
.panel-note p + p { margin-top: 6px; }
.panel-note .dim { color: var(--muted); font-size: 11.5px; }
.panel-note code {
  font-family: var(--mono);
  font-size: 11px;
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: #35507a;
}

.diff-up { color: #b07808; font-family: var(--mono); }
.diff-down { color: #0b7c46; font-family: var(--mono); }

/* ---------------------------- Toast / Modal ---------------------------- */

.toast {
  position: fixed; right: 22px; bottom: 22px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 90;
  pointer-events: none;
}
.toast .t {
  background: #101a2c;
  color: #e9f0fb;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 12.5px;
  box-shadow: 0 10px 26px rgba(12,22,40,.28);
  animation: toastIn .22s ease;
  border-left: 3px solid #4b83ff;
  max-width: 340px;
}
.toast .t.ok { border-left-color: #2fc97f; }
.toast .t.warn { border-left-color: #efb13c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 右下角「正在写入」提醒：固定视口右下，切换页面/重绘都不消失，直到写入结束 */
.job-badge { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: flex; align-items: center; gap: 9px;
  background: #101a2c; color: #e9f0fb; border-radius: 10px; padding: 10px 14px; font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(12,22,40,.30); border-left: 3px solid #4b83ff; max-width: 430px; pointer-events: none; }
.job-badge .jb-spin { width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 2px solid rgba(107,154,255,.35); border-top-color: #6b9aff; animation: jbSpin .8s linear infinite; }
.job-badge .jb-time { font-family: var(--mono); font-size: 11px; color: #9fb6d6; font-weight: 600; }
body.has-job .toast { bottom: 78px; }
@keyframes jbSpin { to { transform: rotate(360deg); } }

/* G2G 新消息提醒：右下角绿色圆角条，贴近平台原生通知 */
.g2g-alerts {
  position: fixed; right: 22px; bottom: 74px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 88; pointer-events: none;
}
.g2g-alerts .ga-item {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 360px;
  padding: 10px 14px;
  background: #e8f7ee; color: #16653c;
  border: 1px solid #b8e6cb; border-radius: 22px;
  box-shadow: 0 8px 22px rgba(20,90,55,.16);
  pointer-events: auto;
  animation: gaIn .25s ease;
}
.g2g-alerts .ga-icon { font-size: 17px; line-height: 1; flex: none; }
.g2g-alerts .ga-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g2g-alerts .ga-body b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g2g-alerts .ga-body span { font-size: 11.5px; color: #2c7d54; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes gaIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
/* 新订单提醒：蓝色，位于消息提醒上方 */
#orderAlerts { bottom: 142px; }
#orderAlerts .ga-item { background: #eaf1ff; color: #1e4fa3; border-color: #bcd0f7; box-shadow: 0 8px 22px rgba(30,79,163,.16); }
#orderAlerts .ga-body span { color: #3f66ad; }

.modal {
  position: fixed; inset: 0;
  background: rgba(12, 22, 40, .42);
  display: grid; place-items: center;
  z-index: 300; /* 高于订单详情/聊天窗口(.od-overlay 100)与凭证预览(.pf-overlay 200)，避免确认框被遮住 */
  backdrop-filter: blur(2px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: 380px; max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(12,22,40,.3);
}
.modal-card h3 { font-size: 15px; margin-bottom: 8px; }
.modal-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }


/* ---------------------------- 参数页标签 & 开关行 ---------------------------- */

.tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
  overflow-x: auto;
}
.tab {
  appearance: none; border: 1px solid transparent; background: transparent;
  padding: 8px 13px; border-radius: 8px 8px 0 0;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
  font-family: inherit;
}
.tab:hover { color: var(--ink-2); background: #f2f6fd; }
.tab.active { color: var(--brand-ink); font-weight: 500; border-bottom-color: var(--brand); background: #fff; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.status-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px dashed var(--line);
  background: #fcfeff;
}

.sw-row {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.sw-row .sw-text { flex: 1; min-width: 0; }
.sw-row .sw-text b { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.sw-row .sw-text span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.55; }
.sw-row .switch { flex: none; padding-top: 1px; }
.sw-row:has(input:checked) { border-color: #d7e5ff; background: #f8fbff; }

.field.full { grid-column: 1 / -1; }

.run-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.run-row .hint { font-size: 11px; color: var(--muted); }

/* ---------------------------- 多游戏行情 ---------------------------- */

.game-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.gtab {
  text-align: left; cursor: pointer;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  transition: .15s;
}
.gtab b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.gtab span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.gtab:hover { border-color: #cfdffb; transform: translateY(-1px); }
.gtab.active { border-color: #b9cffb; background: linear-gradient(180deg, #f4f8ff, #fff); box-shadow: 0 0 0 1px #dbe8ff inset; }
.gtab.active b { color: var(--brand-ink); }

/* ---------------------------- 响应式 ---------------------------- */

@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
  /* 统计标签信息需完整可见，tb-badges 已 flex-wrap，窄屏自动换行而非隐藏 */
}
@media (max-width: 980px) {
  .sidebar { width: 64px; padding: 14px 8px; }
  .brand-text, .nav-item span, .nav-label, .sidebar-foot, .nav-badge, .dot-live { display: none; }
  .nav-item { justify-content: center; }
  .main { margin-left: 64px; }
  .tb-badges { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row, .stat-row.four, .stat-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------- G2G 买家沟通 ---------------------------- */

.nav-badge.red { background: var(--red); color: #fff; }
.nav-item.active .nav-badge.red { background: var(--red); color: #fff; }

.chat-shell {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  height: clamp(440px, calc(100vh - 420px), 640px);
  min-height: 430px;
  background: #fbfcff;
}

.chat-list {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
  min-height: 0;
}

.cl-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.cl-search {
  display: flex; align-items: center; gap: 7px;
  height: 31px; padding: 0 9px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fbfcfe;
}
.cl-search svg { width: 14px; height: 14px; fill: none; stroke: #93a2b7; stroke-width: 1.8; flex: none; }
.cl-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 12px; color: var(--ink-2); font-family: inherit;
}
.cl-search input::placeholder { color: #a9b6c8; }

.cl-tabs { display: flex; gap: 2px; margin-top: 8px; }
.cl-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: transparent; border-radius: 6px;
  padding: 5px 0; font-size: 10.5px; color: var(--muted);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.cl-tab b {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--muted-2); background: transparent; padding: 0;
}
.cl-tab:hover { background: #f4f7fc; color: var(--ink-2); }
.cl-tab.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; }
.cl-tab.active b { color: var(--brand-ink); font-weight: 500; }

.cl-items { flex: 1; overflow-y: auto; padding: 6px; }
.cl-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 9px;
  width: 100%; padding: 9px 8px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; cursor: pointer;
  text-align: left; font-family: inherit;
}
.cl-item:hover { background: #f7faff; }
.cl-item.active { background: #f2f7ff; border-color: #dbe7ff; }
.cl-main { flex: 1; min-width: 0; padding-right: 14px; display: flex; flex-direction: column; gap: 2px; }
.cl-top { display: flex; align-items: center; gap: 6px; }
.cl-top b {
  font-size: 12.5px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cl-top i { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); flex: none; }
.cl-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sub em { font-style: normal; color: var(--muted-2); }
.cl-dot {
  position: absolute; right: 8px; bottom: 9px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 20px; background: var(--red); color: #fff;
  font-size: 10px; font-style: normal;
}
.cl-empty { padding: 34px 12px; text-align: center; font-size: 12px; color: var(--muted-2); }

.avatar {
  position: relative;
  flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px; font-weight: 500; letter-spacing: .3px;
  color: #fff;
  background: hsl(var(--h, 212) 58% 47%);
  box-shadow: 0 1px 4px hsl(var(--h, 212) 55% 40% / .3);
}
.avatar.lg { width: 38px; height: 38px; font-size: 12.5px; }
/* 买家在线状态：绿点在线 / 灰点离线，仿 G2G 聊天列表 */
.avatar[data-presence]::after {
  content: ''; position: absolute; right: -2px; bottom: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #b6bcc6; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.avatar.lg[data-presence]::after { width: 11px; height: 11px; right: -1px; bottom: -1px; }
.avatar[data-presence="on"]::after {
  background: #22c55e; box-shadow: 0 0 0 1px rgba(34, 197, 94, .28);
}

.chat-main {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: linear-gradient(180deg, #fdfefe, #f8fafd);
}
.cm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.cm-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cm-who b { font-size: 13.5px; }
.cm-who span { font-size: 11px; color: var(--muted); }
.cm-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.cm-order {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
  box-shadow: 0 4px 8px -8px rgba(12, 22, 40, .35);
  font-size: 11.5px;
}
.cm-order b { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.cm-od { color: var(--muted); }
.cm-amt { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.cm-order .sp { flex: 1; }

.cm-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 14px 16px 8px;
  display: flex; flex-direction: column; gap: 9px;
  background: #f7f9fd;
  scroll-behavior: smooth;
}
.chat-main .msg { display: flex; flex-direction: column; gap: 3px; max-width: 72%; }
.chat-main .msg:first-child { margin-top: auto; }
.chat-main .msg.out { align-self: flex-end; align-items: flex-end; }
.chat-main .msg.in { align-self: flex-start; }
.bubble {
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.62;
  word-break: break-word;
}
.in .bubble {
  background: #fff; border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.out .bubble {
  background: linear-gradient(160deg, #3f74ff, #2f62f5);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(47, 98, 245, .22);
}
.m-meta { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.msg-tr {
  padding: 5px 11px; margin-top: 2px;
  border-radius: 9px; font-size: 11.5px; line-height: 1.55;
  color: #2c6a3f; background: #eef8f1; border: 1px dashed #bfe3ca;
  word-break: break-word;
}
.msg.out .msg-tr { color: #4a5568; background: #f4f6fb; border-color: #d8deeb; }
.tr-pending {
  font-style: normal; font-size: 9px; padding: 0 4px; border-radius: 4px;
  color: #7b8aa0; background: #f0f2f6; border: 1px solid #e2e6ed;
  cursor: pointer;
}
.tr-pending:hover { color: var(--brand, #2563eb); border-color: var(--brand, #2563eb); }
.msg-recall {
  font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 4px;
  color: var(--muted-2); background: transparent; border: 1px solid transparent;
  cursor: pointer;
}
.msg-recall:hover { color: var(--red); background: var(--red-soft); border-color: var(--red-soft); }
.tr-pending.tr-busy { opacity: .55; cursor: wait; }
.auto-tag {
  font-style: normal; font-size: 9.5px;
  color: #0b7c46; background: #eaf7f0;
  border: 1px solid #cfeedd; border-radius: 4px;
  padding: 0 3px;
}
.sync-tag {
  font-style: normal; font-size: 9.5px;
  border-radius: 4px; padding: 0 3px;
  border: 1px solid transparent;
}
.sync-tag.ok { color: #0b7c46; background: #eaf7f0; border-color: #cfeedd; }
.sync-tag.pending { color: #9a6510; background: #fff6e5; border-color: #f3dfb5; }
.chat-main .msg.sys { align-self: center; align-items: center; max-width: 92%; }
.chat-main .msg.sys span {
  font-size: 10.5px; color: var(--muted);
  background: #eef2f8; border-radius: 20px; padding: 2px 10px;
}
.chat-main .msg.sys time { font-size: 9.5px; color: var(--muted-2); font-family: var(--mono); }

.cm-quick {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -4px 8px -8px rgba(12, 22, 40, .35);
}
.chip {
  border: 1px solid var(--line-strong); background: #fff;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: #b9cdf7; background: var(--brand-soft); color: var(--brand-ink); }
.cm-quick-tip { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }

.cm-composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cm-composer textarea {
  flex: 1; resize: none;
  min-height: 46px; max-height: 120px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit; font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2); background: #fcfdff; outline: none;
}
.cm-composer textarea:focus { border-color: #9db6f5; box-shadow: 0 0 0 3px rgba(47,98,245,.1); background: #fff; }
.cm-send { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cm-auto { font-size: 10px; color: #0b7c46; }
.cm-auto.off { color: var(--muted-2); }
.cm-send .btn { height: 30px; }

.link-btn {
  border: 0; background: transparent; padding: 0;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--brand-ink); cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.mini-dot {
  display: inline-grid; place-items: center;
  min-width: 14px; height: 14px; padding: 0 3px; margin-left: 3px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 9.5px; font-style: normal;
}

/* 自动回复规则 */

.rule-list { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.rule-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fbfdff;
}
.rule-row.off { opacity: .62; background: #fafbfd; }
.rule-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rule-main b { font-size: 12.5px; }
.rule-kw { display: flex; flex-wrap: wrap; gap: 4px; }
.rule-kw i {
  font-style: normal; font-family: var(--mono); font-size: 10px;
  color: #536177; background: #f0f4fa;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0 4px;
}
.rule-reply {
  font-size: 11px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rule-side { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.rule-hits { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }

.rule-editor {
  margin: 6px 16px 10px;
  border: 1px solid #d7e5ff; border-radius: 11px;
  background: #f8fbff;
  overflow: hidden;
}
.rule-editor[hidden] { display: none; }
.re-head { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px dashed #dbe7ff; }
.re-head b { font-size: 12.5px; color: var(--brand-ink); }
.re-head span { font-size: 10.5px; color: var(--muted); }
.form-grid.tight { padding: 12px 14px 4px; gap: 10px 14px; }
.field .input.area {
  height: auto; padding: 7px 10px;
  line-height: 1.7; resize: vertical;
  font-family: inherit; font-size: 12px;
}
.re-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px 12px; }
.re-foot .spacer { flex: 1; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.rule-add { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; }
.rule-add .hint { font-size: 10.5px; color: var(--muted-2); }

@media (max-width: 1180px) {
  .chat-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .cm-body { padding: 10px; }
  .chat-main .msg { max-width: 86%; }
  .cm-who span { display: none; }
}


/* ---------- 平台切换（沟通：G2G / Eldorado） ---------- */
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #eef2f9; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 14px;
}
.seg-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 7px;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.seg-item b {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  background: #fff; color: #6b7a90; border-radius: 20px; padding: 0 5px;
}
.seg-item:hover { color: var(--ink-2); }
.seg-item.active {
  background: #fff; color: var(--brand-ink); font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .08);
}
.seg-item.active b { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- 真实店铺主页卡片 ---------- */
.shop-real { margin-bottom: 14px; }
.shop-body {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px 12px;
}
.shop-who { display: flex; gap: 12px; align-items: center; min-width: 250px; }
.shop-who b { font-size: 15px; }
.shop-ava {
  width: 50px; height: 50px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, #e0403f, #b3232b);
}
.shop-ava.eld { background: linear-gradient(135deg, #7b5cf0, #4a31b6); }
.shop-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.shop-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.shop-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; flex: 1; min-width: 320px;
}
.shop-metric {
  background: #f7f9fd; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px;
}
.shop-metric b {
  display: block; font-family: var(--mono); font-size: 14px;
  color: var(--ink); line-height: 1.35;
}
.shop-metric span { font-size: 11px; color: var(--muted); }
.shop-about {
  margin: 0 18px 14px; padding: 11px 13px;
  background: #fbfcff; border: 1px solid var(--line); border-radius: 9px;
}
.shop-about b { font-size: 12px; color: var(--ink-2); }
.shop-about p { margin: 5px 0 0; font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.shop-empty { padding: 4px 18px 18px; font-size: 12px; color: var(--muted); }
.shop-err {
  margin: 0 18px 10px; padding: 9px 12px;
  font-size: 12px; color: #b4232a; background: #fdf2f2;
  border: 1px solid #f6d5d5; border-radius: 8px;
}
.shop-listings { max-height: 320px; }

@media (max-width: 980px) {
  .shop-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { width: 100%; overflow-x: auto; }
}

/* ---------- 买家沟通：已绑定店铺卡片 ---------- */
.bind-card { margin-bottom: 14px; overflow: hidden; }
.bind-body {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px 12px;
}
.bind-who { flex: 1; min-width: 260px; }
.bind-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bind-name b { font-size: 15px; color: var(--ink); }
.bind-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.bind-actions { display: flex; gap: 8px; align-items: center; }
a.btn { text-decoration: none; }
.bind-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; padding: 0 16px 14px;
}
.bind-card .shop-err { margin: 0 16px 12px; }

/* 来源筛选（全部 / 真实买家 / 演练） */
.mini-seg {
  display: inline-flex; gap: 2px; padding: 2px;
  background: #eef2f9; border: 1px solid var(--line); border-radius: 8px;
}
.mini {
  border: 0; background: transparent; border-radius: 6px;
  padding: 3px 8px; font-size: 11px; color: var(--muted);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.mini:hover { color: var(--ink-2); }
.mini.active { background: #fff; color: var(--brand-ink); font-weight: 500; box-shadow: 0 1px 2px rgba(16,32,64,.08); }

/* 真实买家标识 */
.real-tag {
  font-style: normal; font-size: 9px; line-height: 1.5;
  color: #0b6b4f; background: #e8f7f0; border: 1px solid #c9ecdc;
  border-radius: 4px; padding: 0 3px; margin-left: 3px;
}
.sb-tag {
  font-style: normal; font-size: 8.5px; line-height: 1.5; letter-spacing: .4px;
  color: #7a4bbf; background: #f2eafd; border: 1px solid #ddc9f6;
  border-radius: 4px; padding: 0 3px; margin-left: 3px;
}
.rv-tag {
  display: inline-block; font-size: 10px; line-height: 1.5;
  color: #2c4a7c; background: #eef4fe; border: 1px solid #d6e3f8;
  border-radius: 4px; padding: 0 4px; margin: 2px 4px 0 0;
}
.rv-tags { display: flex; flex-wrap: wrap; margin-top: 5px; }
.bubble.rv { background: #fff; border-left: 2px solid #b7d0f5; }
.auto-tag.real { color: #2c4a7c; background: #eef4fe; border-color: #d6e3f8; }

/* 只读会话提示条 */
.cm-readonly {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; margin-top: auto;
  background: #fbfcff; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.cm-readonly b { color: var(--ink-2); font-size: 12px; }
.cm-readonly span { flex: 1; min-width: 220px; line-height: 1.6; }

@media (max-width: 980px) {
  .bind-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-seg { display: none; }
}

/* 定价值内联编辑（Aion2 行情表最后一列） */
.mini-input {
  width: 92px; padding: 4px 7px; text-align: right;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: #fff; color: var(--ink);
  font-family: var(--mono); font-size: 11.5px;
  transition: border-color .15s, box-shadow .15s;
}
.mini-input::placeholder { color: #b6c2d4; }
.mini-input:hover { border-color: #c3d0e4; }
.mini-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mini-input:disabled { background: var(--bg-deep); color: var(--muted); cursor: not-allowed; }

/* G2G 在售类目 + 近 15 日订单 */
.shop-listings { margin: 0 18px 16px; }
.shop-listings th { white-space: nowrap; }
.bars .b i {
  position: absolute; top: -15px; left: 0; right: 0;
  text-align: center; font-style: normal;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  color: var(--ink-2);
}

/* 店铺页 · 我上架的类目（定价与库存模板） */
.lst-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 14px; }
.lst-stat { background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.lst-stat .s-label { font-size: 11.5px; color: var(--muted); }
.lst-stat .s-value { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.3; margin-top: 3px; }
.lst-stat .s-value small { font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 400; }
.lst-stat .s-foot { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.lst-wrap { max-height: 560px; }
.lst-grid th { white-space: nowrap; }
.lst-grid td { vertical-align: middle; }
/* 列宽按内容各固定一档，不拉伸、不出现超长列；整表居中 */
.live-grid { table-layout: fixed; width: 960px; min-width: 960px; max-width: 100%; margin: 0 0 0 18px; }
.live-grid th, .live-grid td { padding-left: 6px; padding-right: 6px; }
/* 8 列：商品标题 / 游戏 / 售价 / DD373均价 / 定价基准 / 库存 / 状态 / offer+操作 */
.live-grid th:nth-child(1), .live-grid td:nth-child(1) { width: 220px; }
.live-grid th:nth-child(2), .live-grid td:nth-child(2) { width: 96px; }
.live-grid th:nth-child(3), .live-grid td:nth-child(3) { width: 78px; }
.live-grid th:nth-child(4), .live-grid td:nth-child(4) { width: 96px; }
.live-grid th:nth-child(5), .live-grid td:nth-child(5) { width: 86px; }
.live-grid th:nth-child(6), .live-grid td:nth-child(6) { width: 56px; }
.live-grid th:nth-child(7), .live-grid td:nth-child(7) { width: 48px; }
.live-grid th:nth-child(8), .live-grid td:nth-child(8) { width: 280px; }
.live-grid td:nth-child(1) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-grid .lst-input { width: 60px; }
/* offer+操作列：offer 号 / 上架 / 下架 / 复制 */
.live-grid td.lst-offer { white-space: nowrap; }
.live-grid td.lst-offer .btn { padding: 3px 5px; margin-right: 4px; font-size: 11px; }
.live-grid td.lst-offer .btn[disabled] { opacity: 0.4; cursor: default; }
.live-grid .lst-offer-wrap { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; max-width: 100%; min-width: 0; }
.live-grid .lst-offer-chip {
  display: inline-block; padding: 2px 6px;
  background: #f2f5fa; border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  white-space: nowrap; vertical-align: middle; cursor: help;
}
.live-grid .lst-ico-copy { width: 20px; height: 20px; margin-left: 0; }
.live-grid .lst-ico {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  margin-left: 3px; padding: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
  font-size: 12px; line-height: 1; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.live-grid .lst-ico:hover { border-color: var(--brand); background: var(--brand-soft); }
.live-grid .lst-ico[disabled] { opacity: 0.35; cursor: default; }
/* 轻量悬浮提示：offer 号/游戏名过长时悬停显示完整内容 */
.ui-tip {
  position: fixed; z-index: 9999; pointer-events: none; display: none;
  max-width: min(520px, 80vw); padding: 6px 9px;
  background: rgba(24, 32, 48, .96); color: #fff;
  border-radius: 6px; font: 12px/1.5 var(--mono, monospace);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  white-space: normal; word-break: break-all;
}

/* 店铺主页与评价 */
.shop-block { padding: 14px 18px 18px; }
.shop-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.shop-block-head .dim { font-size: 11px; }
.rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rv-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.rv-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rv-top .dim { font-size: 10.5px; }
.rv-rating { margin-left: auto; padding: 1px 7px; border-radius: 5px; background: #e8f7f1; color: #1c7a5a; font-size: 10px; font-weight: 500; }
.rv-rating.bad { background: #fff0ef; color: #b53b32; }
.rv-text { margin: 7px 0 6px; font-size: 12px; line-height: 1.5; color: var(--ink); }
.rv-meta { display: flex; flex-wrap: wrap; gap: 5px; font-size: 10px; }
.rv-tag { padding: 1px 6px; border-radius: 4px; background: #f0f4ff; color: #4b53c8; }
@media (max-width: 1100px) { .rv-list { grid-template-columns: 1fr; } }

/* G2G 店铺主页风格：身份卡 + 等级卡 */
/* 店铺资料与 4 张统计卡合并到同一行 */
.gsp-body { display: flex; align-items: stretch; gap: 12px; width: calc(100% - 36px); max-width: none; margin: 0 0 0 18px; padding: 0 0 18px; }
.gsp-identity { flex: 0 0 340px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfcfe); }
/* 头像与店铺名始终同一行，操作按钮可换行 */
.gsp-id-head { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.gsp-avatar-wrap { position: relative; width: 56px; height: 56px; flex: none; }
.gsp-avatar-wrap img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1; background: #fff; }
.gsp-avatar-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #e8eeff; color: #3f5bd8; font-size: 21px; font-weight: 500; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.gsp-online { position: absolute; right: 1px; bottom: 2px; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #22a35c; border: 2px solid #fff; }
.gsp-id-main { min-width: 0; }
.gsp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gsp-name-row b { font-size: 16px; color: var(--ink); }
.gsp-level { padding: 2px 8px; border-radius: 5px; background: #eef2ff; color: #4b53c8; font-size: 11px; font-weight: 500; }
.gsp-verified { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #2f62f5; color: #fff; font-size: 11px; font-weight: 500; }
.gsp-id-sub { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.gsp-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 10px; background: #f2f5fa; border: 1px solid var(--line); font-size: 11px; }
.gsp-id-actions { margin-left: auto; }
.gsp-id-actions .btn { height: 26px; padding: 0 8px; font-size: 11px; }
.pa-shop-actions { display: flex; align-items: center; gap: 8px; }
.pa-shop-actions .btn { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 8px; }
.gsp-metrics { flex: 0 0 600px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 0; margin-left: 0; border-left: 1px solid var(--line); padding: 8px 0 8px 12px; }
.gsp-metrics > div { min-width: 0; padding: 0 6px; border-right: 1px solid var(--line); overflow: hidden; }
.gsp-metrics > div:last-child { border-right: 0; }
.gsp-metrics span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gsp-metrics b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsp-metrics b.ok { color: #1a7f4b; }
.gsp-metrics b.gsp-rating { color: #f5a623; font-size: 13px; display: flex; align-items: baseline; gap: 2px; white-space: nowrap; overflow: visible; }
.gsp-metrics > div:first-child { overflow: visible; }
.gsp-metrics .gsp-star { color: #f5a623; font-style: normal; font-size: 17px; }
.gsp-metrics b.gsp-rating small { color: var(--muted); font-size: 11px; font-family: inherit; font-weight: 400; margin-left: 3px; white-space: nowrap; }
.gsp-cards { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
/* PlayerA 复用 gsp-body 行：4 张统计卡占满中间，不再换行 */
.gsp-body > .stat-row { flex: 1; min-width: 0; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 6px; align-items: stretch; }
.gsp-body > .stat-row .stat { padding: 18px 10px; display: flex; flex-direction: column; justify-content: center; }
.gsp-card { display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; background: #fff; min-height: 0; overflow: hidden; }
.gsp-card h4 { margin: 0 0 7px; font-size: 12px; color: var(--muted); font-weight: 500; }
.gsp-card-title { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsp-card-unit { font-size: 11px; font-weight: 500; color: var(--muted); }
.gsp-card-sub { margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsp-progress { height: 6px; border-radius: 6px; background: #edf1f7; margin: 10px 0 8px; overflow: hidden; }
.gsp-progress i { display: block; height: 100%; background: linear-gradient(90deg, #4b7cff, #22a35c); border-radius: 6px; }
.gsp-card.tier-silver { background: linear-gradient(180deg, #fff, #f5f7fa); }
.gsp-card.tier-gold { background: linear-gradient(180deg, #fffaf0, #fff6e6); }
.gsp-card.tier-blue { background: linear-gradient(180deg, #f5f9ff, #eef5ff); }

/* G2G 同款等级卡：顶部胶囊标签 + 左右档位 + 绿色进度条 */
.gsp-card-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 7px; margin-bottom: 8px;
  border: 1px solid rgba(15, 40, 32, .07); border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: 11.5px; font-weight: 500; color: #2f4038;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-ico {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: #2fa87a;
  box-shadow: inset 0 0 0 3px #fff;
  border: 1px solid rgba(47, 168, 122, .35);
}
.chip-ico-buyer { background: #9aa7b1; border-color: rgba(154, 167, 177, .4); }
.chip-ico-seller { background: #c08a2e; border-color: rgba(192, 138, 46, .45); }
.chip-ico-like { background: #d0574f; border-color: rgba(208, 87, 79, .4); }
.gsp-lvl-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  font-size: 12.5px; color: #26332d; white-space: nowrap;
}

.gsp-need { color: #17805a; font-weight: 500; font-size: 12px; }
.gsp-more { color: #17805a; font-weight: 500; text-decoration: underline; white-space: nowrap; }
.gsp-lvl-row b { font-weight: 500; font-family: var(--mono); font-size: 13px; }
.gsp-lvl-row span { color: #6d7d76; font-size: 11px; }
.gsp-bar {
  position: relative; height: 7px; margin: 9px 0 0;
  border-radius: 999px; background: #e4ece7; overflow: hidden;
}
.gsp-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #17805a, #35b381);
  box-shadow: 0 1px 2px rgba(23, 128, 90, .25);
}
@media (max-width: 1100px) {
  .gsp-body { gap: 8px; }
  .gsp-identity { flex: 0 0 300px; }
  .gsp-metrics { flex-basis: 530px; padding-left: 10px; }
  .gsp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}

.lst-ck { text-align: center; }
.lst-ck input { width: 13px; height: 13px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.lst-game { display: inline-block; max-width: 100%; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; cursor: help; }
.lst-game.g-aion2 { background: #eef2ff; color: #4b53c8; }
.lst-game.g-wow { background: #fff3e6; color: #b4661a; }
.lst-game.g-poe { background: #f3ecff; color: #6d45b8; }
.lst-game.g-robrun { background: #e8f7f1; color: #1c7a5a; }
.lst-cat { font-weight: 500; color: var(--ink); white-space: nowrap; }
.lst-unit { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 2px; }
.lst-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 10px; color: var(--muted); }
.lst-tag.hand { color: #b4661a; border-color: #f0d3ae; background: #fff8ef; }
.lst-live { display: inline-block; padding: 1px 8px; border-radius: 20px; background: #e8f7ee; color: #1a7f4b; font-size: 11px; font-weight: 500; }
.lst-wait { display: inline-block; padding: 1px 8px; border-radius: 20px; background: #fff5e5; color: #a96a12; font-size: 11px; font-weight: 500; }
.btn-retry-scrape { display: inline-block; padding: 3px 9px; border-radius: 20px; background: #fff5e5; color: #a96a12; font-size: 11px; font-weight: 500; border: 1px solid #f0d3ae; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn-retry-scrape:hover { background: #ffe9c4; box-shadow: 0 1px 5px rgba(169,106,18,.2); }
.btn-retry-scrape:disabled { opacity: .6; cursor: wait; }
/* 分片轮转下「本轮未刷新」的行：红色「单个抓取」文字按钮 */
.btn-retry-inline { background: none; border: 0; padding: 0; color: #d64545; font-size: 11.5px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-retry-inline:hover { text-decoration: underline; color: #b52d2d; }
.btn-retry-inline:disabled { color: var(--muted-2); cursor: wait; text-decoration: none; }
/* 抓取失败行的「上次抓取时间」小字（2026-11-29） */
.retry-time { color: var(--muted-2); font-size: 10.5px; line-height: 1.4; white-space: nowrap; margin-bottom: 2px; }
.lst-unbound { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #f2f4f8; color: var(--muted); font-size: 11px; }
.lst-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22a35c; margin-right: 5px; vertical-align: middle; }
.lst-note { margin: 0 18px 12px; padding: 8px 12px; border-radius: 8px; background: #f4f7fc; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.lst-note.warn { background: #fff8ef; border-color: #f2ddc0; color: #96601a; }

/* 在售类目多维筛选条：橙色分段下拉 + 搜索（参考 G2G 后台） */
.live-filter { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; width: calc(100% - 36px); max-width: 960px; margin: 0 0 12px 18px; border: 1.5px solid #22a35c; border-radius: 9px; background: #fff; overflow: visible; box-shadow: 0 1px 2px rgba(34, 163, 92, .10); }
.live-filter > .lf-seg { flex: 0 0 auto; }
.live-filter > .lf-seg:first-child { flex: 0 1 240px; max-width: 240px; min-width: 0; }
.live-filter > .lf-seg:first-child { border-radius: 7px 0 0 7px; }
.lf-seg { position: relative; align-self: stretch; border-right: 1px solid var(--line-strong); }
.lf-trigger { display: flex; align-items: center; gap: 6px; height: 100%; min-height: 34px; max-width: 100%; min-width: 0; padding: 0 11px; border: 0; background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer; white-space: nowrap; }
.lf-trigger:hover { background: #f2faf5; }
.lf-seg.on .lf-trigger { background: #e8f7ee; }
.lf-label { color: var(--muted); font-size: 11px; }
.lf-seg.on .lf-label { color: #1c7a4b; }
.lf-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.lf-seg.on .lf-val { color: #16804a; }
.lf-caret { flex: 0 0 auto; color: var(--muted); font-size: 10px; margin-left: 2px; }
.lf-menu { position: absolute; top: calc(100% + 3px); left: 0; z-index: 60; min-width: 130px; max-width: 210px; max-height: 280px; overflow-y: auto; padding: 5px; background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--shadow); display: none; }
.lf-menu.open { display: block; }
.lf-opt { display: block; width: 100%; text-align: left; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-opt:hover { background: var(--brand-soft); color: var(--brand-ink); }
.lf-opt.sel { background: #e8f7ee; color: #16804a; font-weight: 500; }
.lf-none { display: block; padding: 6px 9px; color: var(--muted); font-size: 12px; }
.lf-search { display: flex; align-items: center; flex: 1 1 140px; min-width: 110px; margin-left: auto; padding: 0 10px; }
.lf-q { width: 100%; height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; color: var(--ink); outline: none; }
.lf-q:focus { border-color: #22a35c; box-shadow: 0 0 0 2px rgba(34, 163, 92, .18); }
.lf-clear { flex: 0 0 auto; align-self: stretch; padding: 0 12px; border: 0; border-left: 1px solid var(--line-strong); background: #f2faf5; color: #16804a; font-size: 12px; white-space: nowrap; cursor: pointer; }
.lf-clear:hover { background: #e4f5eb; }
.lf-count { flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 11.5px; font-family: var(--mono); white-space: nowrap; background: #fafbfd; border-radius: 0 7px 7px 0; }
.live-empty-row { text-align: center; padding: 22px 12px !important; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) {
  /* 窄屏下侧栏已收起，整表同步收窄一档 */
  .live-grid { width: 900px; min-width: 900px; }
  .live-grid th:nth-child(1), .live-grid td:nth-child(1) { width: 200px; }
  .live-grid th:nth-child(2), .live-grid td:nth-child(2) { width: 88px; }
  .live-grid th:nth-child(3), .live-grid td:nth-child(3) { width: 70px; }
  .live-grid th:nth-child(4), .live-grid td:nth-child(4) { width: 88px; }
  .live-grid th:nth-child(5), .live-grid td:nth-child(5) { width: 78px; }
  .live-grid th:nth-child(6), .live-grid td:nth-child(6) { width: 52px; }
  .live-grid th:nth-child(7), .live-grid td:nth-child(7) { width: 44px; }
  .live-grid th:nth-child(8), .live-grid td:nth-child(8) { width: 280px; }
  .live-filter { max-width: 900px; flex-wrap: nowrap; }
  .live-filter > .lf-seg:first-child { flex-basis: 200px; max-width: 200px; }
  .live-filter .lf-search { margin-left: auto; min-width: 100px; padding: 0 8px; }
  .lf-q { width: 100%; }
}
@media (max-width: 900px) {
  .gsp-body { gap: 6px; }
  .gsp-identity { flex: 0 0 260px; padding: 12px; }
  .gsp-metrics { flex-basis: 460px; padding-left: 8px; }
  .gsp-cards { gap: 6px; }
  .live-grid { width: 780px; min-width: 780px; }
  .live-grid th:nth-child(1), .live-grid td:nth-child(1) { width: 170px; }
  .live-grid th:nth-child(2), .live-grid td:nth-child(2) { width: 76px; }
  .live-grid th:nth-child(3), .live-grid td:nth-child(3) { width: 58px; }
  .live-grid th:nth-child(4), .live-grid td:nth-child(4) { width: 76px; }
  .live-grid th:nth-child(5), .live-grid td:nth-child(5) { width: 68px; }
  .live-grid th:nth-child(6), .live-grid td:nth-child(6) { width: 44px; }
  .live-grid th:nth-child(7), .live-grid td:nth-child(7) { width: 36px; }
  .live-grid th:nth-child(8), .live-grid td:nth-child(8) { width: 252px; }
  .live-filter { max-width: 780px; }
  .live-filter > .lf-seg:first-child { flex-basis: 160px; max-width: 160px; }
  .live-filter .lf-search { min-width: 80px; padding: 0 6px; }
}
.lst-off { background: #fbfcfe; }
.lst-offer { white-space: nowrap; }
.lst-offer code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.lst-offer .btn { margin-left: 6px; }
.lst-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
@media (max-width: 1100px) {
  .lst-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

textarea.input { min-height: 44px; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.55; }

/* ==========================================================
   G2G 买家工作台：会话收件箱 + 真实订单表 + 订单详情弹窗
   ========================================================== */
.buyer-status { flex-wrap: wrap; gap: 8px; }
.buyer-status .n-text b { color: var(--ink-2); font-weight: 500; }
.buyer-status .n-right { margin-left: auto; }

.buyer-workbench { margin-top: 14px; padding: 0; overflow: hidden; }
.bw-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bw-head h2 { margin: 0; font-size: 16px; }
.bw-head .ph-sub { font-size: 11.5px; }
.bw-head .ph-right { margin-left: auto; display: flex; gap: 8px; }

.bw-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 560px; }
.bw-inbox { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: #fbfcfe; }
.bi-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.bi-head b { font-size: 13.5px; }
.bi-head .ph-sub { display: block; font-size: 10.5px; margin-top: 2px; }
.bi-search { margin: 0 12px 8px; }
.cl-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; height: 34px; }
.cl-search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.cl-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; color: var(--ink); }
.bi-tabs { display: flex; gap: 5px; padding: 0 12px 8px; }
.bi-items { flex: 1; overflow-y: auto; max-height: 520px; }
.bi-items .cl-item { display: flex; gap: 9px; width: 100%; text-align: left; border: 1px solid transparent; border-bottom-color: var(--line); background: transparent; padding: 9px 12px; cursor: pointer; align-items: center; }
.bi-items .cl-item:hover { background: #f2f7ff; }
.bi-items .cl-item.active { background: var(--brand-soft); border-color: #d6e2ff; }
.bi-items .cl-item .cl-main { flex: 1; min-width: 0; }
.bi-items .cl-item .cl-top { display: flex; align-items: center; gap: 5px; }
.bi-items .cl-item .cl-top b { font-size: 12.5px; color: var(--ink); }
.bi-items .cl-item .cl-top i { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted-2); }
.bi-items .cl-item .cl-sub { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.cl-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #e5484d); color: #fff; font-size: 10px; font-style: normal; }

.bw-orders { display: flex; flex-direction: column; min-width: 0; }
.bo-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bo-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.order-cat-tabs { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bo-tab { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 11px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.bo-tab b { color: var(--muted); margin-left: 3px; font-weight: 500; }
.bo-tab:hover { border-color: var(--line-strong); }
.bo-tab.active { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.bo-tab.active b { color: var(--brand-ink); }
.bo-search { margin-left: auto; width: 340px; }
.bo-wrap { overflow: auto; flex: 1; max-height: 520px; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bo-table th { position: sticky; top: 0; background: #f7f9fd; z-index: 1; white-space: nowrap; padding: 9px 10px; text-align: left; font-size: 11px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.bo-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bo-table .num { text-align: right; }
.bo-table .strong { font-weight: 500; color: var(--ink); }
.bo-row { cursor: pointer; }
.bo-row:hover { background: #f5f9ff; }
.bo-row.norow { cursor: default; }
.bo-table .link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); font-family: var(--mono); font-size: 11px; cursor: pointer; }
.bo-table .link-btn:hover { text-decoration: underline; }
.mini-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 17px; padding: 0 4px; background: var(--red-soft); color: var(--red); border-radius: 9px; font-size: 10px; font-style: normal; }
.bo-foot { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

/* 订单详情弹窗 */
.od-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(12, 21, 36, .45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.od-modal { width: min(1440px, 97vw); height: min(900px, 94vh); max-height: 94vh; background: var(--panel); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(10, 20, 40, .3); display: flex; flex-direction: column; overflow: hidden; }
.od-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; }
.od-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.od-title > b { font-family: var(--mono); font-size: 15px; }
.od-star { color: var(--amber); font-size: 18px; cursor: pointer; }
.od-nav { margin-left: auto; display: flex; gap: 5px; }
.od-sub { padding: 0 18px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; flex: 1; }
.od-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); }
.od-chat-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.od-chat-head .cm-who b { font-size: 13px; }
.od-chat-head .cm-who span { font-size: 10.5px; color: var(--muted); }
.od-chat-head .buyer-server-tag { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 5px; padding: 3px 8px; border-radius: 5px; background: #fff4e5; border: 1px solid #ffd591; color: #a85a00; font-size: 11px; font-weight: 400; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.od-chat-head .buyer-server-tag b { color: #d46b08; font-weight: 500; font-size: 11px; }
.od-tr-label { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--brand-ink); white-space: nowrap; background: var(--brand-soft); padding: 4px 8px; border-radius: 6px; }
.od-chat .cm-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; max-height: none; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
/* 图片消息可能很高：img 用 max-height 限制，消息块不允许被压缩到 0 以外撑破容器 */
.od-chat .cm-body .msg { flex-shrink: 0; }
.od-chat .cm-quick { flex-shrink: 0; padding: 8px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; display: flex; gap: 6px; }
.od-chat .cm-quick .chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 16px; padding: 5px 11px; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.od-chat .cm-quick .chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.od-chat .cm-quick .cm-quick-tip { display: none; }
.od-chat .cm-composer { flex-shrink: 0; align-items: flex-start; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: #fff; }
.od-chat .cm-composer textarea { width: 100%; min-height: 84px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; resize: vertical; outline: 0; font-family: inherit; }
.od-chat .cm-composer textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(53,93,240,.08); }
.od-chat .cm-composer .cm-input-wrap { position: relative; flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: #fcfdff; padding: 8px 10px; transition: border-color .15s, box-shadow .15s; }
.od-chat .cm-composer .cm-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(53,93,240,.08); background: #fff; }
.od-chat .cm-composer .cm-input-wrap textarea { width: 100%; min-height: 76px; border: 0; border-radius: 0; padding: 3px 2px; background: transparent; resize: none; height: 76px; }
.od-chat .cm-composer .cm-input-wrap textarea:focus { border: 0; box-shadow: none; }
.od-chat .cm-composer .cm-input-wrap.has-attach textarea { padding-top: 32px; }
.od-chat .cm-composer .cm-attach { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 2; margin: 0; pointer-events: none; }
.od-chat .cm-send { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 6px; margin-top: 0; }
.od-chat .cm-send .btn { height: 32px; min-width: 76px; padding: 0 14px; }
.od-chat .cm-send .btn.primary { min-width: 76px; }
.cm-attach { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cm-attach-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 11px; color: var(--ink-2); pointer-events: auto; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cm-attach-item img { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.cm-attach-item b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: #eaf1ff; color: var(--brand); font-size: 12px; }
.cm-attach-item > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-attach-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.cm-attach-x:hover { color: var(--red); }

/* Eldorado TalkJS 内嵌聊天 */
.od-chat .cm-body.talkjs-body { padding: 0; display: block; overflow: hidden; background: #fff; }
/* 裁掉 TalkJS Inbox 自带的会话列表，只留当前订单买家的聊天区 */
.talkjs-body iframe { width: 132% !important; height: 100% !important; margin-left: -32% !important; max-width: none !important; border: 0; }
.talkjs-loading, .talkjs-error { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
.talkjs-error a { color: var(--brand); }
.talkjs-foot { flex-shrink: 0; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); text-align: center; background: #fbfcfe; }
/* Eldorado 聊天实时翻译面板 */
.talk-tr-panel { flex: 0 0 210px; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--line); background: #f7fbff; }
.talk-tr-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--brand-ink); }
.talk-tr-head b { font-size: 11.5px; }
.talk-tr-head .tr-count { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.talk-tr-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 12px; }
.talk-tr-row { margin-bottom: 7px; padding: 5px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.talk-tr-row.mine { background: #eef5ff; border-color: #cfe0ff; }
.talk-tr-row .tr-top { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.talk-tr-row .tr-top .who { font-weight: 600; color: var(--brand-ink); }
.talk-tr-row .cn { font-size: 11.5px; color: var(--ink); margin-top: 2px; word-break: break-word; line-height: 1.45; }
.talk-tr-row .orig { font-size: 10px; color: var(--muted-2); margin-top: 2px; word-break: break-word; line-height: 1.4; }
.talk-tr-row .pic { color: var(--muted); font-size: 11px; }
.talk-tr-empty { font-size: 11px; color: var(--muted); padding: 8px 2px; }
.talk-tr-send { flex: 0 0 auto; display: flex; gap: 6px; padding: 7px 12px; border-top: 1px solid var(--line); }
.talk-tr-send input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 9px; font-size: 11.5px; outline: 0; font-family: inherit; }
.talk-tr-send input:focus { border-color: var(--brand); }

.od-side { min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fbfcfe; }
.od-side-actions { display: flex; gap: 6px; }
.od-side-actions .btn { flex: 1; text-align: center; white-space: nowrap; font-size: 11px; }
.od-hint { font-size: 10.5px; color: var(--muted); text-align: center; }
.od-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.od-card h3 { margin: 0 0 10px; font-size: 12.5px; display: flex; align-items: baseline; gap: 6px; }
.od-card h3 .ph-sub { font-size: 10px; font-weight: 400; }
.od-card dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 7px 8px; margin: 0; font-size: 11.5px; }
.od-card dt { color: var(--muted); }
.od-card dd { margin: 0; color: var(--ink-2); font-weight: 500; word-break: break-all; }
/* 订单号与标签横向对齐同一行；不折行、略小字号，保证 ELD 长订单号放得下 */
.od-card dd.od-oid-v { white-space: nowrap; word-break: normal; font-size: 11.5px; letter-spacing: -.3px; }
.od-rules { display: flex; flex-direction: column; gap: 8px; }
.od-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 6px; align-items: center; }
.od-rule b { font-size: 11.5px; }
.od-rule .badge { font-size: 10px; }
.od-rule small { grid-column: 1 / -1; font-size: 10px; color: var(--muted); }
.od-note { min-height: 46px; border: 1px dashed var(--line-strong); border-radius: 7px; padding: 8px; font-size: 11.5px; color: var(--ink-2); outline: 0; }
.od-note:empty::before { content: attr(data-placeholder); color: var(--muted-2); }

/* 订单状态流转 / SLA 告警 */
.badge.danger { color: #b32b2b; background: var(--red-soft); border-color: #f6d5d5; }
.od-flow-goal { font-size: 10px; font-weight: 400; color: var(--muted); }
.od-flow-goal.danger { color: #b32b2b; font-weight: 600; }
.od-timeline { position: relative; padding-left: 15px; }
.od-timeline::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl-row { position: relative; padding: 0 0 12px 2px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -15px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #3f9b6d; }
.tl-row.danger .tl-dot { border-color: #d64545; background: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.tl-main { min-width: 0; }
.tl-text { font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.tl-row.danger .tl-text { color: #b32b2b; font-weight: 600; }
.tl-meta { margin-top: 2px; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.od-flow-empty { font-size: 11px; }
.od-flow-follow { width: 100%; margin-top: 10px; }
@media (max-width: 1080px) {
  .bw-grid { grid-template-columns: 1fr; }
  .bw-inbox { border-right: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
  .od-grid { grid-template-columns: 1fr; }
  .od-side { border-top: 1px solid var(--line); }
}

/* 详情弹窗里的消息气泡（复用 .msg 结构，但容器是 .od-chat） */
.od-chat .msg { display: flex; flex-direction: column; gap: 3px; max-width: 72%; }
.od-chat .msg:first-child { margin-top: auto; }
.od-chat .msg.out { align-self: flex-end; align-items: flex-end; }
.od-chat .msg.in { align-self: flex-start; }
.od-chat .msg.sys { align-self: center; align-items: center; max-width: 92%; }
/* ELD 自绘聊天：消息下直接显示中文译文（与 G2G 一致） */
.od-chat .msg .msg-tr { max-width: 100%; }
.od-chat .msg .bubble { max-width: 100%; }
.od-chat .msg .eld-chat-img { display: block; max-width: 300px; max-height: 220px; border-radius: 6px; }
.od-chat .msg.out .eld-chat-img { margin-left: auto; }
.od-chat .cm-body { background: #f7f9fc; }

/* G2G 竞品最低价统计卡 */
.comp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.comp-stat { background: linear-gradient(180deg, #f4fbf6 0%, #f7f9fd 100%); border-color: #d9ecdd; }
.comp-stat .s-label::before { content: '● '; color: #2f9e57; }
.comp-stat .comp-green { color: #178a45; }
.comp-stat .s-foot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 上传 G2G 交易凭证弹窗 ---------- */
.od-proof-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.od-proof-note { font-size: 10.5px; color: var(--muted); order: 2; }
.btn.btn-starttrade { background: #0d9488; border-color: #0d9488; color: #fff; order: 3; }
.btn.btn-starttrade:hover { background: #0b7f75; border-color: #0b7f75; }
.btn.btn-deliver { background: #e5484d; border-color: #e5484d; color: #fff; order: 4; margin-left: auto; }
.btn.btn-deliver:hover { background: #d13438; border-color: #d13438; }
/* ELD 订单详情：左侧「开始交易」，右侧「已经发货」 */
.btn.btn-starttrade.eld-start { order: 1; }
.od-proof-note.eld-proof-note { order: 5; flex-basis: 100%; margin-right: 0; }
.btn.btn-eld-deliver { order: 4; margin-left: auto; }
.od-proof-bar > .pill.ok { order: 4; margin-left: auto; }

.pf-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(12, 21, 36, .5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pf-modal { width: min(560px, 96vw); max-height: 90vh; background: var(--panel); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(10, 20, 40, .35); display: flex; flex-direction: column; overflow: hidden; }
.pf-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.pf-head h3 { margin: 0; font-size: 15px; }
.pf-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.pf-x:hover { color: var(--ink); }
.pf-body { padding: 16px 20px; overflow-y: auto; }
.pf-title { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.pf-title b { color: var(--brand-ink); font-weight: 500; }
.pf-desc { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 6px; }
.pf-link { border: 0; background: transparent; color: var(--brand); font-size: 11.5px; cursor: pointer; padding: 0; text-decoration: underline; }
.pf-link:hover { color: var(--brand-ink); }
.pf-drop { margin-top: 14px; min-height: 120px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fafbfe; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: border-color .15s, background .15s; outline: none; }
.pf-drop:hover, .pf-drop:focus, .pf-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.pf-plus { font-size: 38px; font-weight: 300; color: var(--muted-2); line-height: 1; }
.pf-drop-hint { font-size: 11px; color: var(--muted); }
.pf-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pf-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; }
.pf-thumb { font-size: 16px; }
.pf-fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.pf-fsize { color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-del { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pf-del:hover { color: var(--red); }
.pf-existing { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-existing-t { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.pf-existing-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; padding: 4px 0; color: var(--ink-2); }
.pf-existing-row .dim { color: var(--muted); }
.pf-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbfe; }
.pf-order { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.pf-foot > div { display: flex; gap: 8px; }

/* ---------- 定价与库存：可编辑售价/库存 ---------- */
.lst-edit { display: inline-flex; align-items: center; gap: 2px; }
.lst-input { width: 68px; max-width: 82px; padding: 3px 5px; font-size: 11px; font-family: var(--mono); text-align: right; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; transition: border-color .15s, box-shadow .15s; }
.lst-input:hover { border-color: var(--brand); }
.lst-input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.lst-input::-webkit-outer-spin-button, .lst-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lst-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* 一键改价填入但还没提交的售价：淡黄底 + 橙色描边，提示「待提交」 */
.lst-input.is-draft { background: #fff7e0; border-color: #f0a020; color: #9a5f00; font-weight: 600; }
.lst-input.is-draft:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

/* 库存低于阈值（10）的红色提醒：输入框 + 行内角标 + 顶部计数 pill */
td.low-stock { background: #fff7f7; }
td.low-stock input.lst-input { background: #fff1f1; border-color: #d64545; color: #b32b2b; font-weight: 600; }
td.low-stock input.lst-input:focus { border-color: #b32b2b; box-shadow: 0 0 0 2px #fdeeee; }
.stock-warn { display: none; margin-left: 5px; font-size: 10px; color: #b32b2b; font-weight: 600; white-space: nowrap; }
/* PlayerA 在售表：与卖家后台同口径 */
.pa-unlimited { color: var(--muted); }
/* PlayerA 在售表：7 列，SKU 列要完整显示，底部不出现横向滑块 */
.pa-live-grid { width: 100%; min-width: 960px; table-layout: fixed; }
.pa-live-grid th:nth-child(1), .pa-live-grid td:nth-child(1) { width: 27%; }
.pa-live-grid th:nth-child(2), .pa-live-grid td:nth-child(2) { width: 22%; }
.pa-live-grid th:nth-child(3), .pa-live-grid td:nth-child(3) { width: 9%; }
.pa-live-grid th:nth-child(4), .pa-live-grid td:nth-child(4) { width: 9%; }
.pa-live-grid th:nth-child(5), .pa-live-grid td:nth-child(5) { width: 9%; }
.pa-live-grid th:nth-child(6), .pa-live-grid td:nth-child(6) { width: 7%; }
.pa-live-grid th:nth-child(7), .pa-live-grid td:nth-child(7) { width: 17%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-table-wrap { overflow-x: hidden; }
.pa-info { font-size: 11px; color: var(--muted); line-height: 1.6; white-space: nowrap; }
.pa-info b { color: var(--ink); font-weight: 500; }
.pa-info .strong { color: var(--ink); font-weight: 600; }
.pa-edit { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 0; background: transparent; color: #2f62f5; cursor: pointer; vertical-align: middle; }
.pa-edit:hover { color: #1e4fd0; }
.pa-edit .pa-pen { width: 14px; height: 14px; fill: currentColor; }
/* PlayerA 改价弹窗 */
.pa-price-overlay { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; background: rgba(12,22,40,.42); backdrop-filter: blur(2px); }
.pa-price-card { width: 1020px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(12,22,40,.3); overflow: hidden; }
.pa-price-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.pa-price-head h3 { font-size: 15px; margin: 0; }
.pa-price-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.pa-price-x:hover { color: var(--red); }
.pa-price-body { padding: 16px 20px; overflow-y: auto; }
.pa-price-note { font-size: 12px; color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.pa-price-note span { color: var(--muted); font-size: 11px; }
.pa-price-filters { margin: 0 0 12px; width: 100%; }
.pa-price-table-wrap { max-height: calc(100vh - 260px); overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.pa-price-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pa-price-table-wrap th { position: sticky; top: 0; background: #f6f8fb; padding: 8px 10px; text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); z-index: 1; }
.pa-price-table-wrap th.num, .pa-price-table-wrap td.num { text-align: right; }
.pa-price-table-wrap td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.pa-price-table-wrap tr:last-child td { border-bottom: 0; }
.pa-spec { width: 40%; word-break: break-all; color: var(--ink-2); }
.pa-price-table-wrap th:nth-child(1), .pa-price-table-wrap td:nth-child(1) { width: 40%; }
.pa-price-table-wrap th:nth-child(2), .pa-price-table-wrap td:nth-child(2) { width: 18%; }
.pa-price-table-wrap th:nth-child(3), .pa-price-table-wrap td:nth-child(3) { width: 18%; }
.pa-price-table-wrap th:nth-child(4), .pa-price-table-wrap td:nth-child(4) { width: 24%; }
.pa-rate { display: flex; align-items: center; gap: 3px; }
.pa-rate input { width: 74px; }
.pa-price-table-wrap input, .pa-price-single input { width: 118px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11.5px; font-family: var(--mono); outline: none; }
.pa-price-table-wrap input:focus, .pa-price-single input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(53,93,240,.1); }
.pa-price-single { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.pa-price-single label { font-size: 12px; color: var(--muted); }
.pa-price-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fafbfd; }
.live-grid td.lst-cat b { font-weight: 500; }
td.low-stock .stock-warn { display: inline; }
.lst-edit i { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.lst-edit i.lst-cur { color: var(--ink-2); font-weight: 500; }
.lst-foot .btn { margin-left: auto; }

/* 在售类目表：DD373 定价基准 */
.lst-base { color: var(--brand-ink, #1558d6); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 会话图片消息 + 点击放大 ---------- */
.img-bubble { padding: 5px !important; background: transparent !important; border: 1px solid var(--line) !important; overflow: hidden; max-width: min(340px, 62vw); }
.chat-img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 8px; cursor: zoom-in; object-fit: contain; background: #f2f4f8; }
.img-fallback { display: block; padding: 10px 14px; font-size: 11px; color: var(--muted); }
.img-cap { padding: 6px 8px 2px; font-size: 12px; color: var(--ink); white-space: normal; }
.chat-file { color: var(--brand); text-decoration: none; }
.img-tag { font-style: normal; font-size: 10px; color: var(--brand-ink, #1558d6); background: var(--brand-soft, #eaf1ff); padding: 1px 6px; border-radius: 8px; }
.img-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8, 14, 26, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: zoom-out; padding: 40px; }
.img-lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 60px rgba(0,0,0,.5); cursor: default; }
.ilb-close { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ilb-close:hover { background: rgba(255,255,255,.28); }
.ilb-open { color: #cfe0ff; font-size: 12px; text-decoration: underline; }

/* ===== 登录 / 权限 ===== */
.login-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(16,18,24,.72);backdrop-filter:blur(3px)}
.login-overlay[hidden]{display:none}
.login-card{width:360px;max-width:92vw;background:var(--card,#fff);border:1px solid var(--line,#e3e6ec);border-radius:14px;padding:28px 26px 22px;box-shadow:0 18px 60px rgba(0,0,0,.28)}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.login-brand img{width:46px;height:46px;border-radius:10px;object-fit:contain}
.login-brand h2{font-size:17px;font-weight:600;margin:0 0 3px;color:var(--text,#1b1f27)}
.login-brand p{font-size:12px;margin:0;color:var(--muted,#8a9099)}
#loginForm label,#pwdForm label{display:block;font-size:12px;color:var(--muted,#6b7280);margin-bottom:14px}
#loginForm input,#pwdForm input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;font-size:14px;border:1px solid var(--line,#d7dbe3);border-radius:8px;background:var(--input-bg,#fff);color:var(--text,#1b1f27);outline:none}
#loginForm input:focus,#pwdForm input:focus{border-color:var(--accent,#e8590c);box-shadow:0 0 0 3px rgba(232,89,12,.12)}
.login-err{min-height:18px;color:#d64545;font-size:12px;margin:2px 0 8px}
.login-submit{width:100%;padding:11px;font-size:14px}
.login-foot{margin-top:16px;text-align:center;font-size:11px;color:var(--muted,#9aa0aa)}
.tb-user{display:flex;align-items:center;gap:8px;margin-left:6px;padding-left:12px;border-left:1px solid var(--line,#e3e6ec)}
.tb-user[hidden]{display:none}
.tb-user-name{font-size:12px;color:var(--text,#333);max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-user-badge{font-size:11px;padding:2px 7px;border-radius:10px;background:#eef2f7;color:#55606e}
.tb-user-badge.role-admin{background:#fdece2;color:#c2410c}
.tb-user-badge.role-operator{background:#e6f1fb;color:#185fa5}
.tb-user-badge.role-viewer{background:#eef2f7;color:#55606e}
.btn.xs{padding:3px 8px;font-size:11px;line-height:1.4}

/* 订单号旁的复制图标 */
.oid-cell{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.oid-copy{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:2px;border:none;background:transparent;border-radius:4px;cursor:pointer;color:var(--muted,#8a9099);vertical-align:middle;transition:background .15s,color .15s}
.oid-copy svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.oid-copy:hover{background:rgba(232,89,12,.12);color:var(--accent,#e8590c)}
.oid-copy.copied{color:#2f9e44;background:rgba(47,158,68,.14)}

/* 订单七阶段状态徽章 */
.badge.danger{background:#fdecec;color:#c92a2a}

/* ==========================================================
   视觉升级 v2 —— 统一色彩 / 字体层级 / 圆角与阴影 / 图片细节
   （纯样式覆盖，不改任何布局尺寸与 DOM 结构）
   ========================================================== */

::selection { background: rgba(53, 93, 240, .18); color: var(--ink); }

* { scrollbar-width: thin; scrollbar-color: rgba(120, 137, 160, .4) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(120, 137, 160, .32);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(96, 112, 136, .5); background-clip: content-box; }

/* ---------- 字体层级：标题更紧、数字用等宽 + 表格数字对齐 ---------- */
h1, h2, h3, .tb-title h1, .panel-head h2, .brand-text strong { letter-spacing: -.012em; }
.tb-title h1 { font-size: 17px; }
.panel-head h2 { font-size: 13.5px; font-weight: 500; }
.s-label, .ph-sub, .dim, .lst-note, .gsp-card-sub { letter-spacing: .002em; }
.num, .s-value, .gsp-card-title, .gsp-lvl-row b, .gsp-metrics b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 侧边栏：更深的海军蓝 + 品牌光晕 + 选中态高亮条 ---------- */
.sidebar {
  background:
    radial-gradient(110% 70% at 0% 0%, rgba(53, 93, 240, .30), transparent 58%),
    radial-gradient(90% 60% at 100% 100%, rgba(11, 145, 87, .16), transparent 60%),
    linear-gradient(180deg, #0a1120 0%, #0e1728 55%, #080e19 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .045), 8px 0 32px rgba(9, 16, 28, .12);
  color: #93a3ba;
}
.brand { padding-bottom: 20px; }
.brand-mark {
  border-radius: 13px;
  background: linear-gradient(150deg, #4b74ff, #1c3ec4);
  box-shadow: 0 6px 16px rgba(35, 72, 214, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text strong { color: #f2f6ff; font-size: 14px; }
.brand-text span { color: #7b8aa3; font-size: 10.5px; }
.nav-label { color: #6a7a93; letter-spacing: .12em; font-size: 10px; font-weight: 500; }
.nav-item {
  border-radius: 10px;
  color: #a3b2c7;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-item svg { opacity: .72; transition: opacity .16s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #eaf1fe; transform: translateX(1px); }
.nav-item:hover svg { opacity: .95; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(79, 118, 255, .30), rgba(79, 118, 255, .10));
  box-shadow: inset 0 0 0 1px rgba(120, 152, 255, .28), 0 6px 16px rgba(20, 40, 100, .22);
}
.nav-item.active::before {
  background: linear-gradient(180deg, #7ea0ff, #4f76ff);
  box-shadow: 0 0 12px rgba(110, 145, 255, .8);
}
.nav-badge { border-radius: 999px; }

/* ---------- 顶栏：玻璃质感 ---------- */
.topbar {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(213, 223, 238, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.tb-sub { color: var(--muted); }

/* ---------- 面板 / 卡片 ---------- */
.panel {
  border-color: rgba(220, 228, 240, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.panel:hover { box-shadow: var(--shadow); }
.panel-head {
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
  border-bottom: 1px solid rgba(226, 233, 244, .95);
}
.stat, .card, .lst-stat {
  border-radius: var(--radius);
  transition: box-shadow .18s ease, transform .18s ease;
}
.stat:hover, .card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stat .s-value { letter-spacing: -.4px; }

/* ---------- 按钮 ---------- */
.btn {
  border-radius: 10px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, color .16s ease,
    box-shadow .16s ease, transform .12s ease;
}
.btn:hover { background: #f7faff; }
.btn.primary {
  background: linear-gradient(180deg, #4b74ff, #355df0);
  border-color: #2f55e6;
  box-shadow: 0 2px 6px rgba(40, 74, 200, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #5d83ff, #3a63f5);
  box-shadow: 0 4px 14px rgba(40, 74, 200, .34), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.btn:focus-visible, .input:focus-visible, .select:focus-visible, a:focus-visible {
  outline: 2px solid rgba(53, 93, 240, .45);
  outline-offset: 2px;
}
.btn.sm { border-radius: 8px; }

/* ---------- 输入 / 下拉 / 开关 ---------- */
.select, .input {
  border-radius: 9px;
  border-color: var(--line-strong);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.select:hover, .input:hover { border-color: #c2cfe2; }
.select:focus, .input:focus {
  border-color: #8eaaf7;
  box-shadow: 0 0 0 3.5px rgba(53, 93, 240, .13);
}
.switch .track { background: #dbe3ef; }
.switch input:checked + .track {
  background: linear-gradient(180deg, #4b74ff, #355df0);
  box-shadow: 0 1px 4px rgba(40, 74, 200, .3);
}

/* ---------- 表格：粘性表头 + 悬停高亮 ---------- */
table.grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247, 250, 254, .96);
  backdrop-filter: blur(6px);
  color: #5c6b80;
  font-weight: 500;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(220, 228, 240, .95);
}
table.grid tbody tr { transition: background .12s ease; }
table.grid tbody tr:hover td { background: #f7fbff; }
table.grid tbody td { border-color: rgba(233, 239, 248, .95); }
table.grid tbody tr:last-child td { border-bottom: 0; }

/* ---------- 徽章 / 胶囊 ---------- */
.badge, .pill {
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .01em;
}
.badge { padding: 2px 9px; }
.pill { box-shadow: 0 1px 1px rgba(11, 20, 34, .03); }

/* ---------- 空态：柔和的品牌色光斑 ---------- */
.empty {
  position: relative;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(53, 93, 240, .07), transparent 70%);
  border-radius: 12px;
}
.empty b { font-size: 13px; }

/* ---------- 图片 / 头像 ---------- */
.gsp-avatar-wrap img { object-fit: cover; }
.gsp-avatar-fallback {
  background: linear-gradient(145deg, #6b8cff, #355df0) !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px rgba(40, 74, 200, .28);
}
img { image-rendering: auto; }

/* ---------- 提示 / 弹层 ---------- */
.toast, .od-overlay > div, .modal {
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

/* ---------- 动效：尊重系统「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 登录页：与主界面统一（原来是橙色 accent，和蓝色品牌不搭） ---------- */
.login-overlay {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(53, 93, 240, .28), transparent 60%),
    radial-gradient(700px 420px at 85% 90%, rgba(11, 145, 87, .18), transparent 60%),
    rgba(10, 16, 28, .82);
  backdrop-filter: blur(6px) saturate(120%);
}
.login-card {
  border-radius: 18px;
  padding: 30px 28px 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 26px 70px rgba(6, 12, 24, .48), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.login-brand img {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(24, 40, 90, .22);
}
.login-brand h2 { letter-spacing: -.01em; }
#loginForm input, #pwdForm input {
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
#loginForm input:hover, #pwdForm input:hover { border-color: #c3cfe2; }
#loginForm input:focus, #pwdForm input:focus {
  border-color: #8eaaf7;
  box-shadow: 0 0 0 3.5px rgba(53, 93, 240, .14);
}
.login-submit { border-radius: 11px; letter-spacing: .02em; }

/* ==========================================================
   字体柔化 v3 —— 降低字重与明暗反差、放宽字距、数字改 UI 字体
   起因：v2 里大量 620/640/650/560 中间字重，Windows 中文字体只有
   Regular/Bold 两档，中间值会被向上取成 Bold，整屏都是合成粗体，看着刺眼。
   ========================================================== */

:root {
  --ink: #1d2735;
  --ink-2: #38455a;
  --muted: #78869a;
  --muted-2: #9aa6b8;
  --font-ui: "Inter", "Segoe UI Variable Text", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

body {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.62;
  letter-spacing: 0;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题不再用负字距（中文负字距会挤在一起，显得发黑） */
h1, h2, h3, h4, .tb-title h1, .panel-head h2, .brand-text strong { letter-spacing: 0; font-weight: 500; }
.tb-title h1 { font-size: 16.5px; font-weight: 600; color: #18222f; }
.panel-head h2 { font-size: 13.5px; font-weight: 600; color: #26313f; }
.dash-section-title { font-weight: 600; letter-spacing: 0; }

/* 表格：表头不再加粗，靠颜色区分层级；单元格文字保持常规 */
table.grid thead th { font-weight: 500; color: #6c798d; letter-spacing: 0; }
table.grid td.strong, table.grid td.server { font-weight: 500; }

/* 数字统一用界面字体 + 等宽数字（原来是 Consolas 等宽字体，笔画生硬） */
.num, .s-value, .card-value, .gsp-card-title, .gsp-lvl-row b,
.dash-sales .ds-value, .dash-sales .sc-foot b, .pill b, .store-meta b {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  font-weight: 500;
}
.stat .s-value { font-weight: 600; }

/* 侧栏：压低明暗反差与光晕，文字从纯白降到柔和灰白 */
.sidebar {
  color: #a8b6c9;
  background:
    radial-gradient(100% 60% at 0% 0%, rgba(58, 96, 220, .16), transparent 62%),
    radial-gradient(80% 55% at 100% 100%, rgba(11, 145, 87, .07), transparent 62%),
    linear-gradient(180deg, #121b2a 0%, #101827 55%, #0d1421 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}
.brand-text strong { color: #e9eefa; font-weight: 500; font-size: 14.5px; }
.brand-text span { color: #8090a6; font-size: 10.5px; letter-spacing: 0; }
.nav-label {
  color: #7c8ca2; font-size: 10.5px; font-weight: 500;
  letter-spacing: .05em; text-transform: none;
}
.nav-item { color: #aab8c9; font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.nav-item svg { opacity: .8; stroke-width: 1.6; }
.nav-item:hover { color: #e4ecf7; }
.nav-item.active {
  color: #f0f5fd;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(96, 132, 232, .20), rgba(96, 132, 232, .06));
  box-shadow: inset 0 0 0 1px rgba(130, 158, 225, .20);
}
/* 选中态竖条改为贴在项内左侧：.nav 需要 overflow-x: hidden 来消除横条，
   原来 left: -12px 会被裁掉 */
.nav-item.active::before {
  left: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #8fabf5, #5f86e8);
  box-shadow: none;
}
.nav-badge { font-weight: 500; color: #b6c3d4; background: rgba(255, 255, 255, .07); }
.sidebar-foot { border-top-color: rgba(255, 255, 255, .06); }
.sy-session { color: #93a3b8; font-size: 11px; }
.sy-session b { color: #c6d3e4; font-weight: 500; }
.sy-note { color: #5d6c82; }

/* 标签、按钮、徽章的字重统一压到 500（Mac 上是 Medium，Windows 上回到 Regular） */
.s-label, .ph-sub, .dim, .lst-note, .gsp-card-sub { color: var(--muted); letter-spacing: 0; }
.badge, .pill { font-weight: 500; }
.btn, .btn.primary, .select, .input, .tab, .gtab b { font-weight: 500; letter-spacing: 0; }
.cd-label { font-size: 10.5px; letter-spacing: .02em; }

/* 消除侧栏横向滚动条：overflow-y:auto 会把 overflow-x 也算成 auto，
   在浏览器缩放（非 100%）时因 1px 取整冒出横条 */
.nav { overflow-x: hidden; }
.nav::-webkit-scrollbar:horizontal { height: 0; width: 0; }
.nav::-webkit-scrollbar { width: 5px; }

/* 侧栏底部两行信息不换行（列式 flex 里文本节点会被拆成多行） */
.sy-login, .sy-shop { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 表格数字：去掉等宽字体与小字号，改用界面字体并加深一档（原 12px Consolas 笔画细、发灰） */
table.grid thead th { font-size: 11.5px; letter-spacing: 0; }
table.grid td.num {
  font-family: var(--font-ui);
  font-size: 12.8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #2b3849;
}
table.grid td.server { letter-spacing: 0; }
.group-row td { letter-spacing: 0; font-size: 13px; }

/* 按钮内文字居中：.btn 是 inline-flex，文本节点默认靠左（拉满宽度时特别明显） */
.btn { justify-content: center; text-align: center; }

/* 凭证预览：点「查看上传的凭证」后展示平台文件缩略图（S3 预签名链接，约 2 分钟有效） */
.pf-view { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.pf-view-t { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.pf-view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pf-view-item { position: relative; display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.pf-view-item:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(53, 93, 240, .14); }
.pf-view-media { display: block; width: 100%; height: 82px; object-fit: cover; background: #0f1726; }
.pf-play { position: absolute; left: 0; right: 0; top: 0; height: 82px; display: grid; place-items: center; color: #fff; font-size: 17px; text-shadow: 0 1px 5px rgba(0, 0, 0, .6); pointer-events: none; }
.pf-view-name { display: block; padding: 4px 6px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   G2G 行情页：地区卡片 + 报价表美化
   ============================================================ */
.gm-hero { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.gm-hero .stat { position: relative; overflow: hidden; }
.gm-hero .stat::after { content:""; position:absolute; right:-12px; top:-12px; width:70px; height:70px; border-radius:50%; background:var(--brand-soft); opacity:.5; }
.gm-hero .stat.green::after { background:var(--green-soft); }
.gm-hero .stat.amber::after { background:var(--amber-soft); }
.gm-hero .stat.purple::after { background:var(--purple-soft); }
.gm-hero .stat .s-value { position:relative; z-index:1; font-size:22px; }
.gm-toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:12px 16px; background:linear-gradient(180deg,#fbfcff,#f7fafd); border-bottom:1px solid var(--line); }
.gm-toolbar .gm-label { font-size:11px; color:var(--muted); font-weight:500; letter-spacing:.3px; }
.gm-region { margin:16px 0 10px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; box-shadow:var(--shadow-sm); }
.gm-region-head { display:flex; align-items:center; gap:10px; padding:11px 16px; background:linear-gradient(90deg,var(--brand-soft),#fbfcff); border-bottom:1px solid var(--line); }
.gm-region-dot { width:9px; height:9px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 4px rgba(53,93,240,.12); }
.gm-region-name { font-size:14px; font-weight:600; color:var(--ink); }
.gm-region-meta { font-size:11px; color:var(--muted); }
.gm-region-head .spacer { flex:1; }
.gm-table { width:100%; border-collapse:collapse; }
.gm-table thead th { background:#f7fafd; color:#66748a; font-weight:500; font-size:11px; letter-spacing:.3px; text-align:left; padding:9px 14px; border-bottom:1px solid var(--line); white-space:nowrap; }
.gm-table thead th.num { text-align:right; }
.gm-table tbody td { padding:9px 14px; border-bottom:1px solid #f1f5fa; color:var(--ink-2); font-size:12.5px; vertical-align:middle; white-space:nowrap; }
.gm-table tbody tr:last-child td { border-bottom:none; }
.gm-table tbody tr:hover td { background:#fafcff; }
.gm-table td.num { text-align:right; font-family:var(--mono); font-size:12.5px; }
.gm-rank { display:inline-grid; place-items:center; width:22px; height:22px; border-radius:6px; background:#f2f5fa; color:var(--muted); font-family:var(--mono); font-size:11px; }
.gm-rank.top { background:var(--green-soft); color:#0b7c46; font-weight:600; }
.gm-srv { font-weight:500; color:var(--ink); }
.gm-srv small { color:var(--muted); font-weight:400; }
.gm-price { font-family:var(--mono); font-weight:600; font-size:13px; }
.gm-price.low { color:#0b7c46; }
.gm-price.fifth { color:var(--brand-ink); }
.gm-seller { display:inline-block; padding:2px 8px; border-radius:6px; background:#f2f5fa; color:#42536b; font-size:11.5px; }
.gm-seller.low { background:var(--green-soft); color:#0b7c46; }
.gm-seller.fifth { background:var(--brand-soft); color:var(--brand-ink); }
.gm-spread { font-family:var(--mono); font-size:11px; color:var(--muted); }
.gm-time { font-family:var(--mono); font-size:11px; color:var(--muted-2); }
@media (max-width:1100px){ .gm-hero { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* ==========================================================
   侧栏配色主题（参数设置 → 界面外观）
   默认 navy 不设 data-nav-theme，沿用上方 .sidebar 原始配色；
   其余三套通过 html[data-nav-theme] 覆盖背景与文字层级。
   ========================================================== */
html[data-nav-theme] .sidebar {
  background: var(--sb-bg);
  color: var(--sb-ink);
  box-shadow: var(--sb-shadow);
  transition: color .2s ease;
}
html[data-nav-theme] .sidebar .brand-text span { color: var(--sb-sub); }
html[data-nav-theme] .sidebar .nav-label { color: var(--sb-label); }
html[data-nav-theme] .sidebar .nav-item { color: var(--sb-ink); }
html[data-nav-theme] .sidebar .nav-item:hover { background: var(--sb-hover); color: var(--sb-ink-strong); }
html[data-nav-theme] .sidebar .nav-item.active {
  color: #fff;
  background: var(--sb-active-bg);
  box-shadow: var(--sb-active-ring);
}
html[data-nav-theme] .sidebar .nav-item.active::before { background: var(--sb-bar); box-shadow: var(--sb-bar-glow); }
html[data-nav-theme] .sidebar .sidebar-foot { border-top-color: var(--sb-line); }
html[data-nav-theme] .sidebar .sy-session { color: var(--sb-ink); }
html[data-nav-theme] .sidebar .sy-session .sy-shop { color: var(--sb-label); }

/* ---- 靛蓝星光 ---- */
html[data-nav-theme="indigo"] {
  --sb-bg:
    radial-gradient(120% 82% at 0% 0%, rgba(96, 132, 255, .48), transparent 56%),
    radial-gradient(115% 85% at 100% 104%, rgba(132, 88, 255, .34), transparent 58%),
    linear-gradient(170deg, #20317a 0%, #1b2a63 44%, #151e4a 76%, #111939 100%);
  --sb-ink: #b8c7e3; --sb-ink-strong: #f3f7ff; --sb-sub: #a8b9e0; --sb-label: #94a8d4;
  --sb-hover: rgba(255, 255, 255, .10);
  --sb-active-bg: linear-gradient(90deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06));
  --sb-active-ring: inset 0 0 0 1px rgba(255, 255, 255, .26), 0 6px 16px rgba(9, 16, 44, .28);
  --sb-bar: linear-gradient(180deg, #bccbff, #7f9bff);
  --sb-bar-glow: 0 0 12px rgba(150, 175, 255, .85);
  --sb-line: rgba(255, 255, 255, .14);
  --sb-shadow: 1px 0 0 rgba(255, 255, 255, .08), 14px 0 40px rgba(16, 26, 74, .22);
}

/* ---- 墨绿青玉 ---- */
html[data-nav-theme="teal"] {
  --sb-bg:
    radial-gradient(120% 80% at 0% 0%, rgba(45, 212, 191, .30), transparent 56%),
    radial-gradient(115% 85% at 100% 104%, rgba(16, 185, 129, .22), transparent 58%),
    linear-gradient(170deg, #11454f 0%, #0d3742 46%, #0a2a33 78%, #07202a 100%);
  --sb-ink: #b0d5d6; --sb-ink-strong: #f0fffd; --sb-sub: #a4cccd; --sb-label: #86b6ba;
  --sb-hover: rgba(255, 255, 255, .10);
  --sb-active-bg: linear-gradient(90deg, rgba(94, 234, 212, .28), rgba(94, 234, 212, .07));
  --sb-active-ring: inset 0 0 0 1px rgba(126, 240, 220, .32), 0 6px 16px rgba(4, 36, 40, .32);
  --sb-bar: linear-gradient(180deg, #8af2e0, #2dd4bf);
  --sb-bar-glow: 0 0 12px rgba(94, 234, 212, .85);
  --sb-line: rgba(255, 255, 255, .14);
  --sb-shadow: 1px 0 0 rgba(255, 255, 255, .07), 14px 0 40px rgba(6, 40, 44, .22);
}

/* ---- 深莓红 ---- */
html[data-nav-theme="plum"] {
  --sb-bg:
    radial-gradient(120% 80% at 0% 0%, rgba(217, 70, 239, .30), transparent 56%),
    radial-gradient(115% 85% at 100% 104%, rgba(244, 63, 94, .22), transparent 58%),
    linear-gradient(170deg, #451a49 0%, #36143a 46%, #280d2a 78%, #1c081e 100%);
  --sb-ink: #dcbcd8; --sb-ink-strong: #fff3fd; --sb-sub: #d3b0cf; --sb-label: #bd97bc;
  --sb-hover: rgba(255, 255, 255, .10);
  --sb-active-bg: linear-gradient(90deg, rgba(240, 171, 252, .26), rgba(240, 171, 252, .07));
  --sb-active-ring: inset 0 0 0 1px rgba(246, 194, 255, .30), 0 6px 16px rgba(48, 6, 40, .32);
  --sb-bar: linear-gradient(180deg, #f7b6ff, #d956ef);
  --sb-bar-glow: 0 0 12px rgba(240, 171, 252, .85);
  --sb-line: rgba(255, 255, 255, .14);
  --sb-shadow: 1px 0 0 rgba(255, 255, 255, .07), 14px 0 40px rgba(46, 8, 40, .24);
}

/* ---- 选择卡片 ---- */
.theme-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme-card {
  position: relative; display: flex; flex-direction: column; gap: 9px; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; cursor: pointer;
  text-align: left; font: inherit; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.theme-card:hover { border-color: #b9cdf2; transform: translateY(-1px); box-shadow: var(--shadow); }
.theme-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(53, 93, 240, .16); }
.theme-card .tc-prev {
  position: relative; height: 92px; border-radius: 9px; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 9px 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.theme-card .tc-brand { display: flex; align-items: center; gap: 6px; }
.theme-card .tc-logo { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.theme-card .tc-brand b { font-size: 8.5px; color: #fff; font-weight: 600; letter-spacing: .2px; }
.theme-card .tc-nav { height: 17px; border-radius: 5px; display: flex; align-items: center; gap: 5px; padding: 0 6px; }
.theme-card .tc-nav i { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.theme-card .tc-nav span { font-size: 7.5px; color: rgba(255,255,255,.86); }
.theme-card .tc-name { font-size: 12px; font-weight: 500; color: var(--ink); }
.theme-card .tc-desc { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.theme-card .tc-tick {
  position: absolute; top: 8px; right: 8px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand); color: #fff; display: none; place-items: center; font-size: 10px;
  box-shadow: 0 2px 6px rgba(35, 72, 200, .4);
}
.theme-card.on .tc-tick { display: grid; }
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- 侧栏文字颜色（界面外观 → 文字颜色，可覆盖任意主题） ---- */
html[data-nav-ink] .sidebar { color: var(--sb-ink-user); }
html[data-nav-ink] .sidebar .nav-item { color: var(--sb-ink-user); }
html[data-nav-ink] .sidebar .nav-item svg { opacity: .78; }
html[data-nav-ink] .sidebar .nav-item:hover,
html[data-nav-ink] .sidebar .nav-item.active { color: #fff; }
html[data-nav-ink] .sidebar .brand-text span,
html[data-nav-ink] .sidebar .nav-label { color: var(--sb-ink-user); opacity: .68; }
html[data-nav-ink] .sidebar .sy-session { color: var(--sb-ink-user); }
html[data-nav-ink] .sidebar .sy-session .sy-shop { color: var(--sb-ink-user); opacity: .6; }
html[data-nav-ink] .sidebar .sy-session b { color: var(--sb-ink-user); }

/* ---- 文字颜色选择器 ---- */
.ink-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ink-swatch, .ink-auto {
  height: 30px; border-radius: 999px; border: 1px solid rgba(11, 20, 34, .16); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; background: #fff;
  font: inherit; font-size: 11.5px; color: var(--ink-2);
  transition: box-shadow .14s ease, border-color .14s ease, transform .14s ease;
}
.ink-swatch { width: 30px; padding: 0; justify-content: center; }
.ink-swatch i { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ink-swatch:hover, .ink-auto:hover { transform: translateY(-1px); border-color: #b9cdf2; }
.ink-swatch.on, .ink-auto.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(53, 93, 240, .18); }
.ink-auto.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; }
.ink-custom {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 6px;
  border: 1px solid rgba(11, 20, 34, .16); border-radius: 999px; cursor: pointer; background: #fff;
  font-size: 11.5px; color: var(--ink-2);
}
.ink-custom input[type="color"] {
  width: 20px; height: 20px; padding: 0; border: none; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.ink-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ink-custom input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; }
.ink-preview {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fafcff;
}
.ink-preview .ip-sample {
  flex: 1; min-width: 0; border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 5px;
}
.ink-preview .ip-row { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.ink-preview .ip-row i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; }
.ink-preview .ip-cap { font-size: 10px; letter-spacing: .1em; opacity: .68; }

/* ---- 今日店铺销售卡：右侧「近 7 日订单」柱状图 ---- */
/* 这两张卡只有 2 个，必须自己定义 2 列，不能沿用 .cards 的 4 列，否则右半边会空一大片 */
.cards.dash-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-sales .sale-card {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 16px 18px; padding: 18px 20px;
}
.dash-sales .sale-card .sc-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.dash-sales .sale-card .sc-foot { margin-top: auto; padding-top: 10px; }

/* 图表面板：独立浅底圆角块，宽度随卡片伸缩，空间不足时自动换到下一行铺满 */
.dash-sales .sc-chart {
  flex: 1 1 240px; min-width: 220px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 8px;
  background: #f7fbf9;
}
.dash-sales .sc-chart.eld { background: #f7faff; }
.dash-sales .sc-chart .scch {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--muted);
}
.dash-sales .sc-chart .scch b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.dash-sales .sc-chart .mini-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 18px;
  padding-bottom: 1px; border-bottom: 1px solid rgba(11, 20, 34, .07);
}
.dash-sales .sc-chart .mb {
  flex: 1; position: relative; min-height: 3px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #4fbe86, #b9e8cf);
  transition: filter .15s ease, transform .15s ease;
  cursor: default;
}
.dash-sales .sc-chart .mb i {
  position: absolute; top: -16px; left: -2px; right: -2px; text-align: center;
  font-family: var(--mono); font-size: 10.5px; font-style: normal; font-weight: 500; color: var(--ink-2);
}
.dash-sales .sc-chart .mb.zero { background: #e4ebf5; }
.dash-sales .sc-chart .mb.today { background: linear-gradient(180deg, #0f9a58, #6ecb9c); }
.dash-sales .sc-chart.eld .mb { background: linear-gradient(180deg, #5b8ff5, #c3d8fb); }
.dash-sales .sc-chart.eld .mb.zero { background: #e4ebf5; }
.dash-sales .sc-chart.eld .mb.today { background: linear-gradient(180deg, #2f7fe0, #8fbcf2); }
.dash-sales .sc-chart .mb:hover { filter: brightness(1.07); transform: translateY(-1px); }
.dash-sales .sc-chart .mini-x { display: flex; gap: 6px; margin-top: 7px; }
.dash-sales .sc-chart .mini-x span {
  flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); font-family: var(--mono);
}
.dash-sales .sc-chart .mini-x span.today { color: var(--ink-2); font-weight: 500; }

/* 宽屏：图表有上限，避免被拉得过长，其余空间留给左侧金额 */
@media (min-width: 1274px) { .dash-sales .sc-chart { max-width: 330px; } }

/* 卡片内宽不足以并排时（视口 < 1274 时每张卡约 425px 以内），图表换到下一行铺满整行 */
@media (max-width: 1274px) {
  .dash-sales .sc-chart { flex: 1 1 100%; max-width: none; }
  .dash-sales .sc-chart .mini-bars { height: 100px; gap: 8px; }
  .dash-sales .sc-chart .mini-x { gap: 8px; }
  .dash-sales .sc-chart .scch { font-size: 11.5px; }
}
@media (max-width: 760px) { .cards.dash-sales { grid-template-columns: 1fr; } }

/* ---- 侧栏品牌区：图标与标题放大一点 ---- */
.sidebar .brand { gap: 12px; padding: 4px 8px 20px; }
.sidebar .brand-mark { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 13px; }
.sidebar .brand-text strong { font-size: 17px; letter-spacing: .1px; }
.sidebar .brand-text span { font-size: 12px; margin-top: 3px; letter-spacing: .1px; }
@media (max-width: 980px) {
  .sidebar .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .sidebar .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
}

/* ============ PlayerA 客服工作台 · 即时会话 ============ */
.pa-im-wrap { display: grid; grid-template-columns: 150px 320px 1fr; height: calc(100vh - 120px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pa-im-side { background: #2b3746; color: #c9d3e0; display: flex; flex-direction: column; }
.pa-im-me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; }
.pa-im-side-item { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-size: 12.5px; color: inherit; text-decoration: none; cursor: pointer; }
.pa-im-side-item.active { background: rgba(255,255,255,.13); color: #fff; }
.pa-im-side-item:hover { background: rgba(255,255,255,.08); }
.pa-im-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#4d7cff,#2f62f5); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.pa-im-avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #8a97a8; border: 2px solid #2b3746; }
.pa-im-avatar .dot.on { background: #22c55e; }
.pa-im-avatar.sm { width: 34px; height: 34px; font-size: 12px; flex: 0 0 auto; }
.pa-im-unread { position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }
.pa-im-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.pa-im-search { padding: 10px 12px; }
.pa-im-search input { width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; outline: none; }
.pa-im-search input:focus { border-color: var(--brand); }
.pa-im-tabs { display: flex; border-bottom: 1px solid var(--line); }
.pa-im-tab { flex: 1; padding: 10px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; border-bottom: 2px solid transparent; }
.pa-im-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.pa-im-wait { padding: 9px 12px; background: #f6f8fb; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid var(--line); }
.pa-im-wait b { color: var(--brand); }
.pa-im-convs { flex: 1; overflow-y: auto; }
.pa-im-conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.pa-im-conv:hover { background: #f6f8fb; }
.pa-im-conv.sel { background: var(--brand-soft); }
.pa-im-conv-main { flex: 1; min-width: 0; }
.pa-im-conv-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pa-im-conv-top b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-im-conv-top span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.pa-im-conv-prev { margin-top: 3px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-im-empty, .pa-im-noselect { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.pa-im-chat { display: flex; flex-direction: column; min-width: 0; }
.pa-im-chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.pa-im-chat-head b { font-size: 14px; }
.pa-im-status { color: var(--muted); font-size: 11px; }
.pa-im-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9fc; display: flex; flex-direction: column; gap: 10px; }
.pa-im-msg { display: flex; flex-direction: column; max-width: 72%; }
.pa-im-msg.in { align-self: flex-start; }
.pa-im-msg.out { align-self: flex-end; align-items: flex-end; }
.pa-im-msg.sys { align-self: center; align-items: center; }
.pa-im-bubble { padding: 9px 12px; border-radius: 10px; background: #fff; font-size: 12.5px; line-height: 1.6; word-break: break-word; box-shadow: var(--shadow-sm); }
.pa-im-msg.out .pa-im-bubble { background: var(--brand); color: #fff; }
.pa-im-msg.sys .pa-im-bubble { background: #eef1f5; color: var(--muted); font-size: 11px; }
.pa-im-time { margin-top: 3px; font-size: 10px; color: var(--muted); }
.pa-im-img { max-width: 260px; max-height: 180px; border-radius: 8px; }
.pa-im-product { display: flex; gap: 8px; align-items: center; }
.pa-im-product img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.pa-im-product div { display: flex; flex-direction: column; }
.pa-im-product span { font-size: 10px; color: var(--muted); }
/* 买家消息实时中文译文（2026-11-29） */
.pa-im-trans { margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(0,0,0,.1); font-size: 11.5px; color: #2a7ab5; line-height: 1.5; }
.pa-im-order { display: flex; gap: 9px; align-items: center; min-width: 190px; }
.pa-im-order img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.pa-im-order-info { display: flex; flex-direction: column; gap: 2px; }
.pa-im-order-info b { font-size: 12.5px; }
.pa-im-order-info span { font-size: 10px; color: var(--muted); }
.pa-im-order-status { color: #d98324 !important; }
.pa-inquiry-tag { margin-left: 8px; }
.pa-im-compose { padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.pa-im-compose textarea { width: 100%; min-height: 62px; resize: none; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; font-family: inherit; outline: none; }
.pa-im-compose textarea:focus { border-color: var(--brand); }
.pa-im-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.pa-shop-status-link { text-decoration: none; cursor: pointer; }
.pa-shop-status-link:hover { filter: brightness(.94); text-decoration: underline; }
.pa-stock-card { width: 620px; }
.pa-stock-card .pa-price-table-wrap th:nth-child(1), .pa-stock-card .pa-price-table-wrap td:nth-child(1) { width: 60%; }
.pa-stock-card .pa-price-table-wrap th:nth-child(2), .pa-stock-card .pa-price-table-wrap td:nth-child(2) { width: 40%; }
.pa-stock { width: 140px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; font-family: var(--mono); outline: none; }
.pa-stock:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(53,93,240,.1); }

/* PlayerA 买家工作台（套用 G2G buyer-workbench 模板） */
.bw-grid .pa-im-chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: #fff; }
.bw-grid .pa-im-tabs { display: flex; border-bottom: 1px solid var(--line); background: #fff; }
.bw-grid .pa-im-tab { flex: 1; padding: 9px 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.bw-grid .pa-im-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.bi-items .cl-item .cl-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#4d7cff,#2f62f5); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: 0 0 auto; }
/* 所有 PlayerA 笔尖靠右对齐 */
.pa-info { position: relative; }
.pa-info .pa-edit { position: absolute; right: 8px; bottom: 9px; margin-left: 0; }
.live-grid td.num .pa-edit { float: right; margin-left: 8px; }
/* 店铺经营状态切换 */
.pa-shop-status-btn { border: 0; cursor: pointer; }
.pa-shop-status-btn:hover { filter: brightness(.95); }
.pa-status-card { width: 480px; }
.pa-status-row { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pa-status-row span { font-size: 14px; font-weight: 600; }
.pa-status-row small { color: var(--muted); font-size: 11.5px; }
.pa-status-field { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0 12px; }
.pa-status-field > label { font-size: 12.5px; color: var(--ink-2); width: 62px; flex: 0 0 auto; padding-top: 4px; }
.pa-status-radios { display: flex; gap: 20px; }
.pa-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.pa-radio input { position: absolute; opacity: 0; }
.pa-radio i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-block; position: relative; }
.pa-radio.on i { border-color: var(--brand); }
.pa-radio.on i::after { content: ''; position: absolute; inset: 3px; background: var(--brand); border-radius: 50%; }
.pa-status-tip { margin-left: 76px; color: var(--muted); font-size: 11.5px; }

/* Eldorado 批量上架新产品弹窗 */
.eld-batch-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; }
.eld-batch-row > label { color: var(--ink-2); font-weight: 600; }
.eld-batch-row select, .eld-batch-row input { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12.5px; background: #fff; }
.eld-batch-tip { background: #f5f8ff; border: 1px solid #d6e2ff; border-radius: 8px; padding: 9px 12px; font-size: 11.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 10px; }
.eld-batch-tip code { background: #e8eefb; padding: 1px 5px; border-radius: 4px; font-family: monospace; font-size: 11px; }
.eld-batch-preview { margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.eld-batch-preview pre { background: #f7f9fc; border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 6px 0 0; font-size: 11px; max-height: 160px; overflow: auto; }
.eld-batch-result { margin-top: 10px; font-size: 12.5px; }

/* Eldorado 表格批量上架 */
.eld-batch-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eld-batch-tablewrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.eld-batch-tablewrap::-webkit-scrollbar { display: none; }
.eld-batch-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.eld-batch-table th { position: sticky; top: 0; background: #f2f5fa; color: var(--ink-2); font-weight: 600; text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.eld-batch-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.eld-batch-table input, .eld-batch-table select { width: 100%; min-width: 90px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; background: #fff; }
.eld-batch-table input[type=number] { min-width: 70px; }
.eld-img-td { position: relative; }
.eld-img-cell { min-width: 150px !important; }
.eld-img-thumb { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 5px; margin-top: 4px; border: 1px solid var(--line); }

/* ==================== 批量上架报价 ==================== */
.bq-page { display: flex; flex-direction: column; gap: 12px; }
.bq-section { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 16px; }
.bq-param-row { display: flex; align-items: flex-end; gap: 16px; }
.bq-param-row .bq-actions { margin-left: auto; margin-top: 0; }
.bq-params { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.bq-param { display: flex; flex-direction: column; gap: 5px; }
.bq-param > span { font-size: 11px; color: var(--muted); }
.bq-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; background: #fff; }
.bq-stepper button { width: 26px; height: 28px; border: 0; background: #f7f9fc; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.bq-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.bq-stepper input { width: 66px; height: 28px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 12px; font-family: var(--mono); color: var(--ink); outline: none; }
.bq-formula { margin-top: 10px; padding: 7px 10px; background: #f7fafc; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 11.5px; color: var(--ink-2); }
.bq-formula b { color: var(--brand); font-family: var(--mono); font-weight: 600; }
.bq-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bq-filter-section { padding-bottom: 10px; }
.bq-filter-row { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-end; }
.bq-filter-row .bq-filter-actions { margin-left: auto; margin-top: 0; flex-wrap: nowrap; }
.bq-field { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.bq-field > span:first-child { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bq-field input, .bq-field select { height: 28px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11.5px; outline: none; background: #fff; }
.bq-field input[type="text"] { width: 116px; }
.bq-field input[type="number"] { width: 82px; }
.bq-field select { width: 120px; }
.bq-field input:focus, .bq-field select:focus { border-color: var(--brand); }
.bq-gameid, .bq-login { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 10.5px; color: var(--muted); background: #fafbfd; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq-gameid.ok { border-style: solid; border-color: #22a35c; color: #16804a; background: #f2faf5; }
.bq-login.ok { border-style: solid; border-color: #22a35c; color: #16804a; background: #f2faf5; }
.bq-platforms { min-width: 210px; }
.bq-plat-checks { display: flex; gap: 9px; align-items: center; height: 28px; flex-wrap: wrap; }
.bq-plat-checks label { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.bq-plat-checks input { width: 13px; height: 13px; margin: 0; }
.bq-subrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.bq-search { height: 28px; width: 200px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11.5px; outline: none; }
.bq-search:focus { border-color: var(--brand); }
.bq-table-panel { margin: 0; }
.bq-table-wrap { max-height: calc(100vh - 440px); overflow: auto; }
.bq-grid { table-layout: fixed; width: 100%; min-width: 1280px; }
.bq-grid th, .bq-grid td { padding: 8px 6px; font-size: 11.5px; vertical-align: middle; }
.bq-grid tbody tr { height: 62px; }
.bq-cell { width: 100%; height: 28px; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 11.5px; color: var(--ink); outline: none; }
.bq-cell:hover { border-color: var(--line); background: #fff; }
.bq-cell:focus { border-color: var(--brand); background: #fff; }
.bq-cell.num { text-align: right; font-family: var(--mono); }
.bq-desc { width: 100%; height: 52px; padding: 4px 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 10.5px; line-height: 1.35; color: var(--ink-2); outline: none; resize: vertical; overflow: hidden; }
.bq-desc:hover { border-color: var(--line); background: #fff; }
.bq-desc:focus { border-color: var(--brand); background: #fff; }
.bq-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); vertical-align: middle; }
.bq-noimg { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; border: 1px dashed var(--line-strong); background: #f5f6f8; color: #9aa7b1; font-size: 13px; font-weight: 600; vertical-align: middle; }
.bq-imgcell { white-space: nowrap; }
.bq-mini { display: inline-block; height: 21px; padding: 0 5px; margin-left: 3px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--muted); font-size: 9.5px; cursor: pointer; vertical-align: middle; }
.bq-mini.on { border-color: #22a35c; color: #16804a; background: #f2faf5; }
.bq-mini:hover { border-color: var(--brand); color: var(--brand); }
.bq-price { color: var(--brand); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.bq-st { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 10px; font-size: 10.5px; white-space: nowrap; }
.bq-st.wait { background: #f2f5fa; color: var(--muted); }
.bq-st.ok { background: #e9f7ef; color: #16804a; }
.bq-st.err { background: #fdecec; color: #c0392b; }
.bq-del { width: 20px; height: 20px; margin-left: 2px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; vertical-align: middle; }
.bq-del:hover { background: #fdecec; color: #c0392b; }
.bq-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); background: #fbfcfe; }
