:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1f2329;
  --text-2: #4e5561;
  --muted: #9097a3;
  --border: #e9ebef;
  --accent: #e8395b;
  --accent-dark: #cf2749;
  --accent-soft: #fff0f3;
  --amber: #f59e0b;
  --amber-soft: #fff8e8;
  --green: #17a673;
  --green-soft: #eaf8f2;
  --blue: #4f7cf7;
  --blue-soft: #eef3ff;
  --purple: #8659e8;
  --purple-soft: #f3eeff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(25, 35, 60, .06);
  --shadow-lg: 0 18px 48px rgba(25, 35, 60, .16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea, select { outline: none; }

.app-shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 24px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
  background: linear-gradient(135deg, #ff5f7e, #e8395b);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(232, 57, 91, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text span { font-size: 10px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  height: 42px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font-weight: 500;
  text-align: left; transition: .16s;
}
.nav-item:hover { background: #f7f8fa; color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nav-badge.zero { background: #eceef1; color: var(--muted); }

.sidebar-section { margin: 26px 12px 10px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.quick-filters { display: flex; flex-direction: column; gap: 6px; }
.quick-filters button {
  height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--text-2); text-align: left; transition: .16s;
}
.quick-filters button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.sidebar-footer { margin-top: auto; }
.tip-card {
  background: linear-gradient(150deg, #fff6f8, #fff);
  border: 1px solid #ffe0e6; border-radius: 12px; padding: 14px;
}
.tip-title { font-weight: 700; font-size: 13px; color: var(--accent); }
.tip-card p { margin: 6px 0 10px; font-size: 11px; line-height: 1.6; color: var(--text-2); }
.tip-btn {
  border: 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 7px;
}
.user-chip {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 12px 8px 2px; border-top: 1px solid var(--border);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  background: #f0e8ff; color: var(--purple); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.user-chip div:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.user-chip strong { font-size: 12px; }
.user-chip span { font-size: 10px; color: var(--muted); }

/* ---------- Main / Topbar ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  height: 74px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 15;
}
.topbar-left h1 { margin: 0; font-size: 19px; font-weight: 700; }
.page-sub { font-size: 11px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.global-search {
  width: 250px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fafbfc;
}
.global-search:focus-within { border-color: var(--accent); background: #fff; }
.search-icon { color: var(--muted); font-size: 17px; }
.global-search input { border: 0; background: transparent; width: 100%; font-size: 12px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--text-2); font-size: 16px;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.primary-btn {
  height: 36px; padding: 0 16px; border: 0; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 12px;
  box-shadow: 0 4px 12px rgba(232,57,91,.22);
}
.primary-btn:hover { background: var(--accent-dark); }
.view-container { padding: 24px 30px 60px; }

/* ---------- Common ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
}
.tag-red { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-gray { background: #f0f2f5; color: var(--muted); }

/* ---------- Library ---------- */
.hero-strip {
  background: linear-gradient(110deg, #fff0f3 0%, #fff8f3 55%, #fff 100%);
  border: 1px solid #ffe3e9; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 22px;
}
.hero-strip h2 { margin: 0 0 4px; font-size: 18px; }
.hero-strip p { margin: 0; font-size: 12px; color: var(--text-2); }
.hero-stats { display: flex; gap: 26px; margin-left: auto; }
.hero-stat { text-align: right; }
.hero-stat strong { display: block; font-size: 22px; color: var(--accent); line-height: 1.2; }
.hero-stat span { font-size: 10px; color: var(--muted); }

.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.tab {
  height: 34px; padding: 0 15px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-select {
  height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 12px; color: var(--text-2);
}
.result-count { font-size: 11px; color: var(--muted); margin-left: 4px; }
.list-search-wrap {
  height: 34px; min-width: 230px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0 10px;
}
.list-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.list-search-icon { color: var(--muted); font-size: 16px; line-height: 1; }
.list-search-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 12px; color: var(--text); }
.list-search-input::placeholder { color: var(--muted); }
.list-search-clear {
  border: 0; background: transparent; color: var(--muted); font-size: 12px;
  width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%;
}
.list-search-clear:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 批量勾选 ---------- */
.select-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; margin: -4px 0 16px;
}
.check-all { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.hint-inline { font-size: 11px; color: var(--muted); }
.check-all input, .sub-check, .card-check input {
  width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer;
}
.card-check {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(25,35,60,.16);
  display: flex; align-items: center; justify-content: center;
}
.card-check input { width: 16px; height: 16px; }
.product-card.checked { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,57,91,.18), var(--shadow); }

.product-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) {
  .product-body { padding: 11px 11px 12px; }
  .product-name { font-size: 12px; height: 34px; }
  .price-row { gap: 5px; }
  .live-price { font-size: 15px; }
  .save-tag { font-size: 9px; padding: 2px 4px; }
  .discount-badge { font-size: 11px; padding: 3px 7px; }
  .fav-btn { width: 27px; height: 27px; }
}

.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; cursor: pointer;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #ffc9d3; }
.product-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fafafb; }
.product-img svg, .product-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.discount-badge {
  position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 7px;
  box-shadow: 0 3px 8px rgba(232,57,91,.3);
}
.fav-btn {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: #b6bcc6; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.fav-btn.on { color: var(--accent); }
.product-body { padding: 13px 14px 15px; }
.brand-name { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.product-name { font-size: 13px; font-weight: 600; line-height: 1.45; height: 38px; overflow: hidden; }
.product-spec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; min-height: 17px; overflow: hidden; }
.product-spec .spec-item { font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-spec .spec-item em { font-style: normal; color: var(--muted); margin-right: 4px; }
.product-spec .spec-empty { font-size: 10px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; }
.price-label { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.live-price { color: var(--accent); font-size: 17px; font-weight: 800; }
.live-price small { font-size: 11px; font-weight: 600; }
.retail-price { color: var(--muted); font-size: 11px; text-decoration: line-through; }
.save-tag { margin-left: auto; font-size: 10px; color: var(--green); background: var(--green-soft); padding: 2px 6px; border-radius: 5px; }
.product-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--border); }
.product-foot .tag { height: 19px; font-size: 10px; }
.detail-hint { margin-left: auto; font-size: 10px; color: var(--accent); font-weight: 600; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted);
  background: #fff; border-radius: var(--radius); border: 1px dashed var(--border);
}
.empty-state .big { font-size: 38px; margin-bottom: 10px; }

/* ---------- 直播计划货盘 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-title { min-width: 0; }
.plan-name { font-size: 15px; font-weight: 800; color: var(--text); word-break: break-all; }
.plan-meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.plan-thumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.plan-thumb {
  width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex: none;
  border: 1px solid var(--border); background: #fafafb;
}
.plan-thumb img, .plan-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.plan-more {
  width: 56px; height: 56px; border-radius: 9px; flex: none; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.plan-lines { display: flex; flex-direction: column; gap: 5px; min-height: 34px; }
.plan-line { display: flex; align-items: center; gap: 8px; font-size: 11px; min-width: 0; }
.plan-line-brand { color: var(--muted); flex: none; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-line-name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-line b { margin-left: auto; color: var(--accent); flex: none; font-size: 11px; }
.plan-actions { display: flex; gap: 8px; margin-top: auto; }
.plan-actions .secondary-btn, .plan-actions .primary-btn { flex: 1; height: 34px; padding: 0 8px; }

/* 新建计划弹窗 */
.plan-pick { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.plan-pick-title { background: #fafbfc; padding: 10px 12px; font-size: 11px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border); }
.plan-pick-list { max-height: 320px; overflow: auto; padding: 6px 12px; }
.plan-pick-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12px; cursor: pointer;
  border-bottom: 1px dashed var(--border);
}
.plan-pick-item:last-child { border-bottom: 0; }
.plan-pick-item input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; flex: none; }
.plan-pick-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pick-item b { margin-left: auto; color: var(--accent); flex: none; font-size: 11px; }
.plan-pick-item button { margin-left: auto; height: 28px; font-size: 11px; padding: 0 10px; flex: none; }

/* 计划详情弹窗 */
.plan-detail-meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.plan-detail-list { display: flex; flex-direction: column; gap: 10px; }
.plan-detail-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.plan-detail-thumb { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; flex: none; background: #fafafb; }
.plan-detail-thumb img, .plan-detail-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.plan-detail-info { min-width: 0; flex: 1; }
.plan-detail-info .product-name { height: auto; }
.plan-detail-price { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.plan-detail-price b { color: var(--accent); font-size: 13px; }
.plan-detail-price span { color: var(--muted); text-decoration: line-through; margin-left: 6px; }

/* ---------- Dashboard ---------- */
.dash-plan-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; box-shadow: var(--shadow); margin-bottom: 18px; }
.dash-plan-label { font-size: 12px; font-weight: 700; color: var(--text-2); margin-right: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card .label { font-size: 11px; color: var(--muted); }
.stat-card .value { font-size: 26px; font-weight: 800; margin: 6px 0 4px; }
.stat-card .delta { font-size: 10px; color: var(--green); }
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .panel-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 360px; }
.panel > .dash-key-list { flex: 1; }
.panel > .bar-row:first-of-type { margin-top: 4px; }
.panel h3 { margin: 0 0 18px; font-size: 14px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.bar-label { width: 58px; font-size: 12px; color: var(--text-2); flex: 0 0 58px; }
.bar-track { flex: 1; height: 9px; background: #f0f2f5; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; }
.bar-val { width: 44px; text-align: right; font-size: 11px; font-weight: 700; color: var(--text-2); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 10px; }
.rank-num { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rank-name { flex: 1; font-size: 12px; }
.rank-bar { width: 90px; height: 6px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--accent); }
.rank-val { font-size: 11px; color: var(--muted); width: 30px; text-align: right; }
.dash-key-list { display: flex; flex-direction: column; gap: 8px; }
.dash-key-item { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; padding: 7px 9px; }
.dash-key-rank { width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dash-key-thumb { width: 36px; height: 36px; flex: none; border-radius: 6px; overflow: hidden; background: #fafafb; }
.dash-key-thumb img, .dash-key-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.dash-key-info { flex: 1; min-width: 0; }
.dash-key-brand { font-size: 10px; color: var(--muted); line-height: 1.2; }
.dash-key-name { font-size: 11px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.dash-key-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.dash-key-meta .tag { height: 18px; font-size: 9px; }
.dash-key-price { font-size: 10px; color: var(--text-2); white-space: nowrap; }
.dash-key-price b { color: var(--accent); font-weight: 800; }
.dash-key-price s { color: var(--muted); margin-left: 3px; }
@media (max-width: 760px) { .dash-key-price { display: none; } }
.dash-warn-card { margin-top: 18px; }
.dash-warn-card > p.hint-inline { display: block; margin: -6px 0 14px; }
.dash-warn-brand { border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; padding: 11px 13px; margin-bottom: 10px; }
.dash-warn-brand-head { display: flex; align-items: center; gap: 9px; font-size: 12px; margin-bottom: 8px; }
.dash-warn-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed #eceef1; }
.dash-warn-item:first-of-type { border-top: 0; }
.dash-warn-thumb { width: 38px; height: 38px; flex: none; border-radius: 6px; overflow: hidden; background: #fafafb; }
.dash-warn-thumb img, .dash-warn-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.dash-warn-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.dash-warn-name { flex: 0 1 auto; max-width: 58%; min-width: 0; font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-warn-tags { display: flex; flex-wrap: wrap; gap: 5px; flex: none; }
.dash-warn-tags .tag { height: 20px; font-size: 9px; }
.dash-warn-fix { height: 20px; padding: 0 8px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.dash-warn-fix:hover { filter: brightness(.94); }
.warn-fix-product { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; padding: 9px 11px; }
.warn-fix-info { flex: 1; min-width: 0; }
.warn-fix-info .product-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warn-fix-grid { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
@media (max-width: 760px) { .dash-warn-item { flex-wrap: wrap; } .dash-warn-main { flex: 1 1 60%; } .dash-warn-name { max-width: 100%; } .warn-fix-grid { grid-template-columns: 1fr; } }

/* ---------- Table (submission) ---------- */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { background: #fafbfc; text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid #f2f3f5; font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 10px; padding-right: 10px; text-align: center; }
.mini-thumb { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 10px; }
.mini-thumb svg, .mini-thumb img { width: 100%; height: 100%; display: block; }

/* ---------- Kanban (materials) ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
.kanban-col { background: #eef0f3; border-radius: 12px; padding: 12px; min-height: 220px; }
.kanban-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 4px; }
.kanban-dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-head strong { font-size: 12px; }
.kanban-count { margin-left: auto; font-size: 10px; color: var(--muted); background: #fff; padding: 2px 7px; border-radius: 8px; }
.link-summary { margin: -4px 4px 12px; font-size: 10px; color: var(--muted); }
.link-summary b { color: var(--purple); font-size: 12px; }
.link-task-card { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 9px; padding: 10px; margin-bottom: 10px; box-shadow: var(--shadow); }
.link-task-card.done { border-left-color: var(--green); }
.link-task-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.link-task-card.compact { padding: 8px 10px; margin-bottom: 8px; cursor: pointer; transition: .15s ease; }
.link-task-card.compact:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(232,57,91,.12); transform: translateY(-1px); }
.link-task-card.compact .link-task-head { margin-bottom: 4px; gap: 4px; }
.link-task-name { font-size: 11px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-task-value { margin-top: 3px; font-size: 10px; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-task-value.empty { color: var(--muted); }
.link-task-card.plan-todo { border-left-color: var(--amber); padding: 11px 12px; }
.link-task-card.plan-todo.done { border-left-color: var(--green); }
.link-todo-bar { height: 4px; margin-top: 8px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.link-todo-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.link-modal-section-title { margin: 16px 0 8px; font-size: 12px; font-weight: 700; color: var(--text); }
.link-modal-section-title.done-title { margin-top: 20px; color: var(--muted); }
.link-pick-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 8px; cursor: pointer; transition: .15s ease; }
.link-pick-row.done { border-left-color: var(--green); }
.link-pick-row:hover { border-color: var(--accent); box-shadow: 0 3px 10px rgba(232,57,91,.10); }
.link-pick-name { font-size: 11px; font-weight: 700; color: var(--text); }
.link-pick-value { font-size: 10px; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pick-value.empty { color: var(--muted); }
.link-plan-body { padding: 20px 24px 24px; }
.link-plan-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.link-stat { flex: 1; min-width: 110px; padding: 10px 14px; background: #fafbfc; border: 1px solid var(--border); border-radius: 10px; }
.link-stat span { display: block; font-size: 10px; color: var(--muted); }
.link-stat strong { display: block; margin-top: 2px; font-size: 18px; color: var(--text); }
.link-plan-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 18px; align-items: start; }
.link-plan-list { max-height: 58vh; overflow: auto; padding-right: 6px; }
.link-plan-list .link-modal-section-title { margin-top: 0; }
.link-pick-row.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 3px 12px rgba(232,57,91,.14); }
.link-plan-editor { background: #fafbfc; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.link-edit-label { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.link-edit-product { padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 9px; }
.link-edit-product strong { font-size: 12px; color: var(--text); line-height: 1.5; }
.link-inline-input { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--text); background: #fff; resize: vertical; line-height: 1.6; }
.link-inline-input:focus { border-color: var(--accent); outline: none; }
.link-edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) { .link-plan-layout { grid-template-columns: 1fr; } }
.link-form-product { padding: 12px 14px; background: #fafbfc; border: 1px solid var(--border); border-radius: 9px; }
.link-form-product strong { font-size: 12px; color: var(--text); }
.live-link-input { width: 100%; height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; color: var(--text); background: #fff; margin-bottom: 8px; }
.live-link-input:focus { border-color: var(--accent); outline: none; }
.link-empty { text-align: center; padding: 22px; color: #b5bac3; font-size: 11px; }
.material-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  margin-bottom: 10px; box-shadow: 0 2px 8px rgba(25,35,60,.04); cursor: grab;
}
.material-card.dragging { opacity: .5; }
.kanban-col.drag-over { outline: 2px dashed var(--accent); background: var(--accent-soft); }
.mat-title { font-size: 12px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.mat-product { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.mat-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-2); }
.mat-owner { background: #f2f4f7; padding: 2px 7px; border-radius: 6px; }
.mat-due.late { color: var(--accent); font-weight: 700; }
.mat-attach { margin-left: auto; }
.mat-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); }
.mat-actions button { border: 0; background: transparent; font-size: 10px; color: var(--accent); padding: 0; }
.mat-actions button.ghost { color: var(--muted); }
.mat-view-bar { margin-bottom: 16px; }
.mat-plan-bar { margin-bottom: 16px; }
.mat-plan-card { margin-bottom: 18px; }
.mat-plan-card .section-head { margin-bottom: 14px; }
.mat-plan-card .section-head p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.mat-plan-card table td { font-size: 11px; }
.mat-lottery { display: inline; max-width: 420px; white-space: normal; word-break: break-word; line-height: 1.5; color: var(--accent); font-weight: 700; }

/* ---------- Import Entry Card ---------- */
.import-hero {
  background: linear-gradient(115deg, #fff5f7 0%, #fff 60%);
  border: 1px solid #ffd9e0; border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow);
}
.import-hero-icon {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
  background: var(--accent); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(232,57,91,.25);
}
.import-hero-text { flex: 1; min-width: 0; }
.import-hero-text h3 { margin: 0 0 5px; font-size: 15px; }
.import-hero-text p { margin: 0; font-size: 11px; color: var(--text-2); line-height: 1.6; }
.import-hero-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.import-hero-actions a, .import-hero-actions button {
  height: 40px; padding: 0 18px; border-radius: 9px; font-size: 12px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.import-hero-primary { background: var(--accent); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(232,57,91,.22); }
.import-hero-primary:hover { background: var(--accent-dark); }
.import-hero-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.import-hero-ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) {
  .import-hero { flex-wrap: wrap; }
  .import-hero-actions { width: 100%; }
}

/* ---------- 上传商务 / 负责品牌 ---------- */
.import-owner-card {
  margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid #ffd2dc; background: linear-gradient(135deg, #fff7f9, #fff);
}
.owner-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.owner-card-head strong { font-size: 13px; color: var(--text); }
.owner-required {
  flex: 0 0 auto; height: 20px; padding: 0 8px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 10px; line-height: 20px; font-weight: 700;
}
.owner-pick-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.owner-pick {
  min-width: 132px; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 12px; font-weight: 700; transition: .15s ease;
}
.owner-pick:hover { border-color: var(--accent); color: var(--accent); }
.owner-pick.active { border-color: var(--accent); color: var(--accent); background: #fff1f4; box-shadow: 0 0 0 2px rgba(232,57,91,.10); }
.owner-avatar {
  width: 27px; height: 27px; border-radius: 50%; background: var(--purple-soft);
  color: var(--purple); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
}
.owner-pick.active .owner-avatar { background: var(--accent); color: #fff; }
.owner-check { margin-left: auto; color: var(--accent); font-size: 15px; }

/* 商务快捷筛选：带提示词的点击式入口，放在筛选行右侧 */
.owner-filter-wrap { position: relative; margin-left: auto; flex: 0 0 auto; }
.filter-bar .owner-filter-wrap { margin-left: 0; }
.owner-filter-input {
  height: 34px; min-width: 210px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 11px; text-align: left; transition: .15s ease;
}
.owner-filter-input:hover { border-color: var(--accent); color: var(--accent); }
.owner-filter-icon { font-size: 13px; }
.owner-filter-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-filter-caret { font-size: 12px; color: var(--muted); }
.owner-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 220px;
  padding: 8px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.owner-menu.hidden { display: none; }
.owner-menu-title { padding: 5px 8px 8px; font-size: 10px; font-weight: 700; color: var(--muted); }
.owner-menu button {
  width: 100%; height: 32px; padding: 0 9px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.owner-menu button:hover { background: #fff1f4; color: var(--accent); }
.owner-menu button.active { background: #fff1f4; color: var(--accent); }
.owner-menu button em { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 500; }
.owner-menu .owner-menu-manage {
  margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 7px 7px;
  height: 36px; color: var(--purple);
}

.owner-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.owner-brand-col { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.owner-brand-title {
  padding: 10px 12px; background: #fafbfc; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 800; color: var(--purple); text-transform: uppercase;
}
.owner-brand-list { max-height: 280px; overflow: auto; padding: 10px 12px; display: grid; gap: 8px; }
.owner-brand-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.owner-brand-item input { accent-color: var(--accent); }
@media (max-width: 700px) {
  .owner-brand-grid { grid-template-columns: 1fr; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,25,35,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 18px; width: min(860px, 100%); max-height: 90vh;
  overflow: auto; box-shadow: var(--shadow-lg); animation: rise .2s ease;
}
@keyframes rise { from { transform: translateY(12px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal.small { width: min(540px, 100%); }
.modal-wide { width: min(1040px, 96vw); max-height: 92vh; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { margin: 0; font-size: 16px; }
.close-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f4f5f7; color: var(--text-2); font-size: 16px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.secondary-btn { height: 36px; padding: 0 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text-2); font-weight: 600; font-size: 12px; }
.secondary-btn:disabled, .primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.reject-btn { color: #c0392b; border-color: #f3c9c3; }
.reject-btn:hover { background: #fff4f2; border-color: #c0392b; }
.decision-hint { margin-right: auto; font-size: 11px; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail-image { border-radius: 14px; overflow: hidden; background: #fafafb; aspect-ratio: 1/1; position: relative; }
.detail-image svg, .detail-image img { width: 100%; height: 100%; display: block; }
.detail-image-card { cursor: pointer; }
.detail-image-card:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.image-card-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(25,35,60,.78); color: #fff; font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 20px; white-space: nowrap; opacity: 0; transition: .18s; pointer-events: none; }
.detail-image-card:hover .image-card-hint { opacity: 1; }

/* 直播手卡弹窗：四段 Tab 切换 */
.card-body { padding-top: 6px; }
.card-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px; }
.card-tab { border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 12px; padding: 8px 13px; border-radius: 9px; cursor: pointer; transition: .18s; }
.card-tab:hover { border-color: var(--accent); color: var(--accent); }
.card-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.card-edit-area { background: #fcfcfd; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.card-field-label { display: flex; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.card-field-label span { margin-left: auto; font-size: 10px; font-weight: 400; color: var(--muted); }
.card-edit-area textarea { width: 100%; min-height: 200px; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; font-size: 12px; line-height: 1.7; resize: vertical; background: #fff; }
.card-edit-area textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.card-import-block { margin-top: 14px; border: 1px dashed var(--border); border-radius: 12px; padding: 13px 14px; }
.card-import-head { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.card-import-head span { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.card-import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-import-actions .primary-btn, .card-import-actions .secondary-btn { height: 34px; }
.card-extra-input {
  width: 100%; min-height: 76px; margin-bottom: 10px; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 11px; font-size: 12px; line-height: 1.6;
  resize: vertical; background: #fff;
}
.card-extra-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.card-import-status { font-size: 11px; color: var(--muted); }
.detail-brand { font-size: 12px; color: var(--muted); font-weight: 600; }
.detail-name { font-size: 20px; font-weight: 700; margin: 4px 0 12px; line-height: 1.4; }
/* 补寄页：2×2 网格，第二行补寄信息 / 补寄单号同水平线对齐 */
.reship-layout { gap: 16px 24px; align-items: stretch; }
.reship-layout > .detail-image { align-self: start; }
/* 右列第一行：入库卡片撑满与产品图等高，消除空白 */
.reship-layout > div:nth-child(2) { display: flex; flex-direction: column; }
.reship-layout > div:nth-child(2) > .stock-info-box {
  flex: 1; display: flex; flex-direction: column; margin-top: 14px;
}
.reship-layout > div:nth-child(2) > .stock-info-box textarea { flex: 1; min-height: 104px; }
.reship-layout > div:nth-child(2) > .stock-info-box .stock-info-actions { margin-top: auto; }
.stock-info-large textarea { min-height: 104px; }
.reship-spec-line { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 4px; }
/* 第二行两块：顶部对齐 + 等高 + 按钮沉底 */
.reship-layout > .reship-info-box,
.reship-layout > .tracking-box {
  margin-top: 0; display: flex; flex-direction: column; min-height: 214px;
}
.reship-layout > .reship-info-box textarea { min-height: 116px; }
.reship-layout > .reship-info-box .stock-info-actions,
.reship-layout > .tracking-box .stock-info-actions { margin-top: auto; }
.detail-price-box { background: linear-gradient(120deg, #fff2f5, #fff); border: 1px solid #ffe0e6; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.detail-price-box .big { font-size: 30px; font-weight: 800; color: var(--accent); }
.detail-price-box .big small { font-size: 14px; }
.detail-price-box .old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.detail-price-box .disc { margin-left: auto; text-align: center; }
.detail-price-box .disc strong { display: block; font-size: 24px; color: var(--accent); }
.detail-price-box .disc span { font-size: 10px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.info-item { border-bottom: 1px dashed var(--border); padding-bottom: 9px; }
.info-item span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.info-item strong { font-size: 13px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.stock-info-box { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fcfcfd; }
.stock-info-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.stock-info-head strong { font-size: 12px; }
.stock-info-head span { font-size: 10px; color: var(--muted); margin-left: auto; }
.stock-info-box textarea { width: 100%; min-height: 68px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 12px; line-height: 1.5; resize: vertical; background: #fff; }
.stock-info-box textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stock-info-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.reship-info-box { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fcfcfd; }
.reship-info-box textarea { width: 100%; min-height: 96px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 12px; line-height: 1.5; resize: vertical; background: #fff; }
.reship-info-box textarea:focus { border-color: #e8a94a; box-shadow: 0 0 0 3px #fff4e2; }
.reship-info-box .stock-info-head strong { color: #c47a1a; }
.reship-list { display: flex; flex-direction: column; gap: 14px; }
.reship-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); cursor: pointer; transition: .18s; }
.reship-card:hover { border-color: #ffd0a8; box-shadow: var(--shadow-lg); }
.reship-thumb { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 10px; overflow: hidden; background: #fafafb; }
.reship-thumb svg, .reship-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.reship-body { flex: 1; min-width: 0; }
.reship-title { font-size: 13px; line-height: 1.5; margin-bottom: 7px; }
.reship-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.reship-content { font-size: 12px; color: var(--text-2); background: #fff8f0; border: 1px solid #ffe6cd; border-radius: 8px; padding: 9px 11px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.reship-foot { margin-top: 9px; font-size: 10px; color: var(--muted); }
.reship-foot .detail-hint { float: right; }

/* 补寄单号 · 物流跟踪 */
.track-divider { height: 1px; background: var(--border); margin: 14px 0; }
.tracking-box { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fcfcfd; }
.tracking-box .stock-info-head strong { color: inherit; }
.reship-info-box .stock-info-head strong { color: #c47a1a; }
.track-form-row { display: flex; gap: 8px; margin-top: 8px; }
.track-form-row.hidden { display: none; }
.track-form-row select, .track-form-row input {
  width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 10px; font-size: 12px; background: #fff; color: var(--text);
}
.track-form-row select { flex: 0 0 130px; width: 130px; }
.track-form-row input:focus, .track-form-row select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.track-empty { margin-top: 10px; font-size: 11px; color: var(--muted); text-align: center; padding: 10px; border: 1px dashed var(--border); border-radius: 8px; }
.track-result-box { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.track-status-line { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #fafbfc; border-bottom: 1px solid var(--border); }
.track-updated { font-size: 10px; color: var(--muted); margin-left: auto; }
.track-timeline { padding: 10px 12px 12px; max-height: 210px; overflow: auto; }
.track-node { position: relative; padding: 0 0 12px 18px; border-left: 2px solid #eef0f3; }
.track-node:last-child { border-left-color: transparent; padding-bottom: 0; }
.track-node::before { content: ''; position: absolute; left: -5px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #cfd3da; }
.track-node:first-child::before { background: var(--accent); }
.track-time { font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.track-context { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.reship-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.reship-trace-latest { margin-top: 8px; font-size: 11px; color: var(--text-2); background: #f7f8fa; border-radius: 6px; padding: 7px 9px; line-height: 1.5; }

/* 补寄需求：待补寄/已到样、搜索、首字母、漏补提醒 */
.reship-tabs { display: flex; gap: 6px; }
.reship-tabs .tab { height: 34px; }
.reship-searchbar {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin: 0 0 10px;
}
.reship-search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reship-brand-select {
  height: 34px; min-width: 190px; max-width: 280px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 12px; color: var(--text); cursor: pointer;
}
.reship-brand-select:focus { border-color: var(--accent); outline: none; }
.reship-search {
  height: 34px; flex: 1; min-width: 220px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; font-size: 12px; color: var(--text);
}
.reship-search:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.reship-letter-row {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding-top: 9px; margin-top: 9px; border-top: 1px dashed var(--border);
}
.reship-summary { font-size: 11px; color: var(--muted); margin: 0 0 12px 2px; }
.letter-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.letter-btn {
  min-width: 24px; height: 24px; padding: 0 5px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 11px; font-weight: 600;
}
.letter-btn:hover { background: var(--accent-soft); color: var(--accent); }
.letter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.reship-card { align-items: stretch; }
.reship-card.arrived { border-color: #d7ecdf; background: #fcfefc; }
.reship-actions {
  width: 196px; flex: 0 0 196px; display: flex; flex-direction: column; gap: 8px;
  border-left: 1px dashed var(--border); padding-left: 14px;
}
.arrive-btn { height: 34px; width: 100%; }
.reship-missing-line {
  margin-top: 7px; font-size: 11px; font-weight: 600; color: #c0392b;
  background: #fff1f3; border: 1px solid #ffc9d3; border-radius: 7px;
  padding: 6px 9px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}

/* 计划详情：产品行可点击 */
.plan-detail-item { cursor: pointer; }
.plan-detail-item:hover { border-color: #ffc9d3; background: #fffafb; }
.plan-detail-hint { font-size: 10px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- 产品退样清单 ---------- */
.section-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.section-card h3 { margin: 0 0 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.section-head-with-search { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-head-with-search h3 { margin: 0; flex: none; }
.returns-search-in-section { flex: none; width: 340px; height: 34px; }
.return-table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th {
  text-align: left; padding: 9px 10px; background: #fafbfc; color: var(--muted);
  font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid #f0f1f3; color: var(--text-2); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .stock-cell { max-width: 320px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.return-list { display: flex; flex-direction: column; gap: 12px; }
.return-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fcfcfd; }
.return-card-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.return-card-head .tag { margin-left: 0; }
.return-card-grid { display: block; margin-top: 8px; }
.return-edit { display: flex; flex-direction: column; gap: 0; }
.return-detail-btn-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.return-detail-btn-row .secondary-btn { height: 27px; font-size: 11px; }
.return-detail-highlight {
  height: 30px !important; padding: 0 15px; font-size: 12px !important; font-weight: 800;
  border: 1px solid var(--accent) !important; border-radius: 999px !important;
  background: var(--accent) !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(232, 57, 91, .22); letter-spacing: .3px;
}
.return-detail-highlight:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.return-info-line {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px dashed #eceef1; font-size: 11px; line-height: 1.5;
}
.return-info-line:last-child { border-bottom: 0; }
.return-info-key { color: var(--muted); flex: none; }
.return-info-val { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.return-info-val.pending { color: var(--accent); font-weight: 800; }
.return-info-time { color: var(--muted); white-space: nowrap; flex: none; font-size: 10px; }
.return-step { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 9px; }
.return-brand-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.return-brand-chip {
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--text-2);
}
.return-brand-chip:hover { border-color: var(--accent); color: var(--accent); }
.return-brand-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.return-brand-chip em { font-style: normal; opacity: .75; margin-left: 4px; font-size: 10px; }
.return-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .return-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .return-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.return-product-grid.pick { max-height: 300px; overflow: auto; padding: 2px; }
.return-product-card {
  display: flex; gap: 9px; align-items: flex-start; text-align: left;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px;
  background: #fff; cursor: pointer; min-width: 0;
}
button.return-product-card:hover { border-color: var(--accent); }
button.return-product-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
button.return-product-card.returned { opacity: .55; cursor: not-allowed; background: #fafafb; }
.return-product-thumb { width: 54px; height: 54px; flex: none; border-radius: 7px; overflow: hidden; background: #fafafb; }
.return-product-thumb img, .return-product-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.return-product-info { min-width: 0; flex: 1; }
.return-product-info .product-name { height: auto; font-size: 11px; line-height: 1.4; }
.return-product-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.return-product-tags .tag { height: 18px; font-size: 9px; }
.return-stock { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.4; word-break: break-word; }
.return-address-block {
  background: #fff8f9; border: 1px solid #ffc9d3; border-radius: 9px;
  padding: 10px 12px; margin-top: 14px;
}
.return-address-block .field input { background: #fff; }
.return-detail-list { display: flex; flex-direction: column; gap: 10px; }
/* 退样明细（只读）：退样内容 + 单号 + 时间，无地址 */
.return-view-list { display: flex; flex-direction: column; gap: 10px; }
.return-view-row {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; padding: 9px 12px;
}
.return-view-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1; }
.return-view-info { min-width: 0; flex: 1; }
.return-view-info .product-name { font-size: 12px; }
.return-view-meta { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; font-size: 11px; }
.return-view-track { color: var(--accent); font-weight: 700; }
.return-view-track b { color: var(--accent); font-weight: 800; margin-left: 4px; }
.return-view-track.pending b { color: var(--accent); }
.return-view-time { color: var(--accent); font-weight: 600; }
.return-view-content { flex: none; width: 260px; min-width: 0; }
.return-view-content .field label { font-size: 10px; }
.return-view-note {
  border: 1px solid var(--border); border-radius: 7px; background: #fff;
  padding: 8px 9px; min-height: 54px; font-size: 11px; line-height: 1.5; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.return-view-note.empty { color: var(--muted); min-height: 32px; }
@media (max-width: 760px) { .return-view-row { flex-wrap: wrap; } .return-view-content { width: 100%; } }
.return-info-card {
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  padding: 12px 13px; margin-bottom: 16px;
}
.return-info-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.return-info-head strong { font-size: 12px; color: var(--text); }
.return-info-head span { font-size: 10px; color: var(--muted); }
.return-info-body {
  border: 1px solid var(--border); border-radius: 8px; background: #fcfcfd; padding: 11px;
}
.return-info-body .field label { font-size: 10px; }
.return-info-body .field input { height: 32px; font-size: 11px; }
.return-detail-row {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; padding: 10px 11px;
}
.return-detail-check-wrap {
  flex: none; display: flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.return-detail-check-wrap input { width: 15px; height: 15px; accent-color: var(--accent); }
.return-detail-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1; }
.return-detail-info { min-width: 0; flex: 1; }
.return-detail-info .product-name { font-size: 12px; }
.return-detail-ops { display: flex; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.return-detail-content { flex: none; width: 260px; min-width: 0; }
.return-detail-content .field label { font-size: 10px; }
.return-detail-content textarea {
  width: 100%; height: 56px; resize: vertical; border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 9px; font-size: 11px; background: #fff; line-height: 1.5;
}
.return-track-inline { margin-right: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.return-track-inline label { font-size: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.return-track-inline input {
  width: 230px; height: 32px; border: 1px solid var(--border); border-radius: 7px;
  padding: 0 9px; font-size: 11px; background: #fff;
}
.return-track-inline input:disabled { background: #f0f1f3; color: var(--muted); cursor: not-allowed; }
@media (max-width: 620px) { .return-track-inline input { width: 130px; } .return-track-inline label { font-size: 9px; } }
@media (max-width: 760px) { .return-detail-content { width: 100%; } }

.brand-summary-list { display: flex; flex-direction: column; gap: 10px; }
.brand-summary-row {
  border: 1px solid var(--border); border-radius: 10px; background: #fcfcfd; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 13px;
}
.brand-summary-main { display: flex; align-items: center; gap: 10px; padding: 11px 13px; font-size: 13px; }
.brand-summary-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.brand-summary-actions .secondary-btn { height: 30px; font-size: 11px; }
.brand-summary-actions .return-action-btn {
  background: var(--accent); color: #fff; border-color: var(--accent);
  font-weight: 800; padding: 0 16px; box-shadow: 0 3px 10px rgba(232, 57, 91, .22);
}
.brand-summary-actions .return-action-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.brand-summary-actions .tag-red { height: 26px; font-size: 10px; }
@media (max-width: 620px) { .brand-summary-row { flex-wrap: wrap; padding-right: 13px; } .brand-summary-actions { margin-left: 0; padding-bottom: 10px; } }
.brand-detail {
  border-top: 1px dashed var(--border); padding: 8px 12px 12px; background: #fff;
  display: flex; flex-direction: column; gap: 7px;
}
.brand-detail-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); }
.brand-detail-stock { color: var(--muted); font-size: 10px; }
.brand-detail-item > button { flex: none; }
.return-detail { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); }
.return-note { margin-top: 8px; font-size: 11px; color: var(--text-2); background: #f7f8fa; border-radius: 6px; padding: 7px 9px; white-space: pre-wrap; }
.return-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.return-foot > div { margin-left: auto; display: flex; gap: 8px; }
.return-foot .secondary-btn { height: 28px; font-size: 11px; }
.return-stock-hint {
  font-size: 11px; color: var(--text-2); background: #f7f8fa; border: 1px dashed var(--border);
  border-radius: 8px; padding: 9px 11px; line-height: 1.5; white-space: pre-wrap;
}

/* 物流接口设置弹窗 */
.config-note { font-size: 11px; color: var(--text-2); background: #f7f8fa; border-radius: 8px; padding: 10px 12px; line-height: 1.6; margin-bottom: 14px; }
.config-note code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; font-size: 10px; }
.config-loading { font-size: 12px; color: var(--muted); padding: 20px 0; text-align: center; }
.config-field { margin-bottom: 12px; }
.config-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.config-field input, .config-field select { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 11px; font-size: 12px; background: #fff; }
.config-field input:focus, .config-field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.config-group { border: 1px solid var(--border); border-radius: 10px; padding: 13px; margin-top: 10px; }
.config-group.hidden { display: none; }
.config-group-title { font-size: 12px; font-weight: 700; margin-bottom: 11px; }
.config-group-title a { float: right; font-size: 10px; color: var(--accent); font-weight: 500; text-decoration: none; }
.hidden { display: none !important; }

/* ---------- Form ---------- */
.form-section { margin-bottom: 22px; }
.form-section h4 { margin: 0 0 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.form-section h4::before { content: ''; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; color: var(--text-2); font-weight: 600; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 11px;
  background: #fff; font-size: 12px;
}
.field textarea { height: 76px; padding: 10px 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.upload-box {
  border: 1px dashed #d5d9e0; border-radius: 10px; padding: 18px; text-align: center;
  background: #fafbfc; cursor: pointer; transition: .16s;
}
.upload-box:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-box .up-icon { font-size: 24px; }
.upload-box .up-text { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.upload-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.upload-preview img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.upload-preview button { border: 0; background: transparent; color: var(--accent); font-size: 11px; }
.hint { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1f2329; color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: 12px; box-shadow: var(--shadow-lg); animation: rise .2s ease;
}
.toast.ok { background: #144d3b; }
.toast.err { background: #7d2038; }

/* ---------- Rundown 编排 ---------- */
.rd-look { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 16px; overflow: hidden; }
.rd-look-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--border);
}
.rd-look-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.rd-no { font-size: 11px; font-weight: 800; color: #7048c4; background: #f0eafd; padding: 4px 9px; border-radius: 6px; letter-spacing: .5px; }
.rd-theme {
  flex: 1; min-width: 140px; height: 34px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--text); background: #fff;
}
.rd-theme:focus, .rd-look textarea:focus { outline: none; border-color: var(--accent); }
.rd-look-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rd-look-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border); cursor: zoom-in; transition: .15s ease; }
.rd-look-thumb:hover { border-color: var(--accent); transform: scale(1.06); box-shadow: 0 3px 10px rgba(232,57,91,.18); }
.rd-image-btn {
  height: 26px; padding: 0 9px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  color: var(--accent); font-size: 11px; cursor: pointer; position: relative;
}
.rd-image-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.rd-image-btn input { display: none; }
.image-lightbox {
  position: fixed; inset: 0; z-index: 200; padding: 40px;
  background: rgba(18, 22, 30, .72); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: fade .18s ease;
}
.lightbox-card {
  max-width: min(92vw, 1200px); max-height: 90vh; padding: 12px;
  border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: rise .2s ease; cursor: default;
}
.lightbox-card img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 8px; background: #fafbfc;
}
.lightbox-tip { font-size: 11px; color: var(--muted); }
.rd-look-controls .tag { height: 26px; padding: 0 9px; font-size: 11px; cursor: pointer; }
.rd-look-controls .tag[disabled] { opacity: .4; cursor: not-allowed; }
.rd-look-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 16px; padding: 16px; }
.rd-products { display: flex; flex-direction: column; gap: 8px; }
.rd-prod {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fafbfc;
}
.rd-prod-thumb { width: 40px; height: 40px; border-radius: 7px; overflow: hidden; background: #f0f1f3; flex: none; }
.rd-prod-thumb img, .rd-prod-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.rd-prod-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rd-prod-info strong { font-size: 11px; color: var(--text-2); }
.rd-prod-info span { font-size: 12px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-prod-info b { font-size: 11px; color: var(--accent); }
.rd-prod-info .rd-live-link { display: inline-block; max-width: 100%; margin-top: 3px; padding: 2px 6px; border-radius: 5px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 600; text-overflow: ellipsis; }
.rd-prod .tag { height: 24px; padding: 0 8px; font-size: 11px; cursor: pointer; flex: none; }
.rd-add-prod {
  height: 36px; border: 1px dashed #cfd3da; border-radius: 9px; background: #fff;
  color: var(--accent); font-size: 12px; cursor: pointer; transition: .16s;
}
.rd-add-prod:hover { border-color: var(--accent); background: var(--accent-soft); }
.rd-notes { display: flex; flex-direction: column; gap: 6px; }
.rd-summary {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 10px;
  border-radius: 9px; background: var(--accent-soft); font-size: 11px; color: var(--text-2);
}
.rd-summary b { color: var(--accent); font-size: 13px; }
.rd-notes label { font-size: 11px; color: var(--muted); font-weight: 700; }
.rd-look textarea {
  width: 100%; resize: vertical; border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; font-size: 12px; line-height: 1.6; color: var(--text); background: #fff;
}
.rd-foot-hint { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 0 4px; }
@media (max-width: 980px) { .rd-look-body { grid-template-columns: 1fr; } }

/* 物料追踪：抽奖支持修改按钮 */
.mat-edit-lottery { margin-left: 8px; height: 20px; padding: 0 7px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--accent); font-size: 10px; cursor: pointer; vertical-align: middle; }
.mat-edit-lottery:hover { border-color: var(--accent); background: var(--accent-soft); }
