/* taobaoGlobal 前端样式
   严格按 DESIGN.md token 体系：Action Blue 唯一交互色、SF Pro、大留白、
   无渐变无装饰阴影。状态色（红黄绿）只用于状态文本，不用作交互元素。 */

:root {
  --accent: #0066cc;        /* colors.primary */
  --accent-focus: #0071e3;  /* colors.primary-focus */
  --ink: #1d1d1f;           /* colors.ink */
  --muted: #7a7a7a;         /* colors.ink-muted-48 */
  --hairline: #e0e0e0;      /* colors.hairline */
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --danger: #ff3b30;        /* 状态色：过期/危险 */
  --warn: #ff9500;          /* 状态色：临期 */
  --ok: #34c759;            /* 状态色：正常 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* HTML 的 hidden 属性靠浏览器默认样式 [hidden]{display:none} 生效，
   而那是 UA 样式，**任何类选择器都能盖掉它** —— .btn 的 display:inline-block
   就把「停止」按钮的 hidden 盖没了，按钮在没有任务时也一直杵在那儿。
   显式声明一条，优先级足够高，谁也别想再盖。 */
[hidden] { display: none !important; }

body {
  font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;              /* typography.body */
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
}

/* ── 布局 ─────────────────────────────────────────── */

.container { max-width: 640px; margin: 0 auto; padding: 48px 24px; }
.container-narrow { max-width: 420px; }
.container-wide { max-width: 1680px; }

h1 {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 34px;             /* typography.display-md */
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.subtitle { color: var(--muted); font-size: 14px; margin-top: 8px; }
.section-title {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 21px; font-weight: 600; letter-spacing: 0.231px; margin-top: 32px;
}

/* ── 顶部导航（global-nav：黑底 44px，nav-link 12px） ── */

.topnav {
  background: #000000;
  height: 44px;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1680px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topnav .brand {
  color: #ffffff; font-size: 12px; font-weight: 600; letter-spacing: -0.12px;
  text-decoration: none; margin-right: 8px;
}
.topnav a.nav-link {
  color: #cccccc; font-size: 12px; letter-spacing: -0.12px;
  text-decoration: none;
}
.topnav a.nav-link:hover { color: #ffffff; }
.topnav a.nav-link.active { color: #ffffff; }
.topnav .spacer { flex: 1; }
.topnav form { display: inline; }
.topnav button.nav-link {
  background: none; border: none; cursor: pointer;
  color: #cccccc; font-size: 12px; letter-spacing: -0.12px;
  font-family: inherit; padding: 0;
}
.topnav button.nav-link:hover { color: #ffffff; }
/* 店铺切换器。⚠️ <select> 是系统控件，`color: inherit` 在 Chrome/Safari 上
   不生效——字会是系统默认的黑，在纯黑导航栏上看不见（2026-09-17 用户指出）。
   颜色必须写死；option 弹出层是浅底，字用深色。 */
.topnav .store-switch {
  margin-right: 12px; padding: 4px 28px 4px 10px; font: inherit; font-size: 13px;
  font-weight: 500; color: #ffffff; background-color: #1d1d1f;
  border: 1px solid rgba(255,255,255,.35); border-radius: 6px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.topnav .store-switch:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.topnav .store-switch option { color: #1d1d1f; background: #ffffff; }
.topnav a.nav-cta {
  background: var(--accent); color: #ffffff; font-size: 12px;
  border-radius: 9999px; padding: 5px 14px; text-decoration: none;
}

/* ── 卡片（store-utility-card） ───────────────────── */

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;         /* rounded.lg */
  padding: 24px;
  margin-top: 17px;            /* spacing.md */
}
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 17px; }
.card-label { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: #333333; }
.card-value { font-size: 17px; font-weight: 600; text-align: right; }
.card-sub { font-size: 14px; color: var(--muted); text-align: right; margin-top: 4px; }

/* ── 状态色（仅状态文本） ─────────────────────────── */

.level-danger { color: var(--danger); }
.level-warn   { color: var(--warn); }
.level-ok     { color: var(--ok); }
.level-none   { color: var(--muted); }
.level-accent { color: var(--accent); }
.table .muted, .muted { color: var(--muted); }
code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px;
       background: var(--parchment); padding: 2px 6px; border-radius: 6px; }

/* ── 按钮（蓝胶囊） ───────────────────────────────── */

.actions { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  border: none;
  border-radius: 9999px;       /* rounded.pill */
  padding: 11px 22px;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--accent-focus); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
/* 用在 <a> 上的禁用态：<a> 没有 disabled 属性，只能靠 pointer-events 关掉
   点击。⚠️ 光把颜色调灰不够——灰着还能点，点了下回来的是一句 400 错误。 */
.btn.is-disabled {
  color: var(--muted);
  border-color: var(--hairline);
  pointer-events: none;
}

/* ── 表单 ─────────────────────────────────────────── */

.input {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--canvas);
}
.input:focus { outline: 2px solid var(--accent-focus); outline-offset: 0; }
.form-field { margin-top: 17px; }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; }

/* ── 文本 ─────────────────────────────────────────── */

.text-link { color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.fine { font-size: 12px; line-height: 1.3; color: var(--muted); margin-top: 24px; }
.detail { white-space: pre-wrap; color: var(--ink); margin-top: 17px; }
.ok-line { color: var(--ok); font-size: 14px; font-weight: 600; margin-top: 8px; }

@media (max-width: 480px) {
  .container { padding: 48px 16px; }
  .nav-inner { gap: 16px; }
}

/* 首页双卡并排（宽页面） */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.card-grid .card { margin-top: 17px; }
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ── 列表工具条（按钮 + 筛选框 + 计数） ───────────── */

.toolbar {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.input-search { width: 320px; height: 36px; font-size: 14px; padding: 0 16px; }
.toolbar .muted { color: var(--muted); font-size: 14px; }
/* 批量任务进度：正在扫谁、第几家 */
.job-line {
  margin-top: 12px; font-size: 14px; color: var(--accent);
}
.modal-text { font-size: 14px; margin-top: 8px; }

/* 上传表单：一个文件框加一个按钮，横着排 */
.upload-form {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 24px;
}
/* .input 是 width:100% 的，放进 flex 行里会把按钮挤到下一行——这里收回来 */
.upload-form .input {
  width: auto; flex: 1 1 320px; max-width: 520px;
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center;
}
.upload-form input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 14px; padding: 8px 16px; margin-right: 12px;
  border: 1px solid var(--hairline); border-radius: 980px;
  background: var(--canvas); color: var(--accent); cursor: pointer;
}
.upload-form input[type="file"]::file-selector-button:hover { border-color: var(--accent); }

/* ── 列表表格（几百行也不占高度） ─────────────────── */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 17px; }
.table-caption {
  padding: 24px 12px 4px; text-align: left; font-size: 14px;
  font-weight: 600; color: var(--ink);
}
.ondemand-error {
  width: 50%; max-width: 640px; overflow-wrap: anywhere; word-break: break-word;
}
.ondemand-empty { margin-top: 17px; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600;
  letter-spacing: -0.12px; color: var(--muted);
  padding: 8px 12px; border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.table td {
  font-size: 14px; letter-spacing: -0.224px;
  padding: 7px 12px; border-bottom: 1px solid #f5f5f7;
}
.table th.num, .table td.num { text-align: right; }
.table td.nowrap { white-space: nowrap; color: var(--muted); }
.table th.check, .table td.check { width: 28px; padding-right: 0; }
.table input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }
/* 可排序表头：点一下换序，箭头标出当前排序列 */
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--ink); }
.table th.sortable::after { content: "\2195"; opacity: 0.35; margin-left: 4px; }
.table th.sortable[data-dir="asc"]::after { content: "\2191"; opacity: 1; }
.table th.sortable[data-dir="desc"]::after { content: "\2193"; opacity: 1; }
.table .muted { color: var(--muted); }
/* 扫描日期列：宽度写死一个区间，内容再长也不许撑开。
   平台的错误原文是一整句英文（ApiCallLimit: Api access frequency exceeds…），
   放任它撑列会把整张表的布局挤得跳来跳去——短文案进格子，原文进 title。 */
.table td.scan-cell {
  min-width: 176px; max-width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.table td.scan-running { color: var(--accent); }
.table td.scan-queued { color: var(--muted); }
.table td.scan-failed { color: var(--danger); cursor: help; }
.table td.scan-stopped { color: var(--warn); }
/* 正在扫的那一行整行淡蓝：几十行的表里得一眼找得到它 */
.table tr.row-scanning td { background: rgba(0, 102, 204, 0.05); }
.table td.ops { white-space: nowrap; text-align: right; }
.table td.ops a, .table td.ops .link-btn { margin-left: 12px; }
.table td.ops form { display: inline; }
/* 按钮伪装成文字链接：扫描要 POST、编辑要开弹窗，都只能是 button */
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; letter-spacing: -0.224px;
}

/* ── 弹窗（modal）：遮罩 + 居中卡片 ─────────────────── */

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--canvas);
  border-radius: 18px;         /* rounded.lg */
  padding: 24px;
  width: 100%;
  max-width: 420px;
}
.modal h2 {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 21px;             /* typography.tagline */
  font-weight: 600;
  letter-spacing: 0.231px;
  margin-bottom: 8px;
}

/* 工具条里的下拉（铺货页选店铺）：跟筛选框一样高，宽度按内容走 */
.input-select {
  width: auto;
  min-width: 280px;
  max-width: 100%;
  height: 36px;
  font-size: 14px;
  padding: 0 16px;
}

/* 导航栏的告警角标：消息消费不属于任何任务，这是它唯一能被看见的地方，
   所以给它一个不刺眼但躲不开的存在感——不用红色警报，用强调色的小圆点。 */
.badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

/* 店铺行的备注标记。最要紧的用途是标出「这家店扫不出商品」——
   不在供销体系的店，扫店返回空、铺货报 cp 不存在，但页面上看不出任何
   区别（扫描日期有、产品数 0），人只会以为是扫描坏了，然后一遍遍重扫。
   用状态色 warn 而不是 danger：这不是错误，是这家店本来就这样。 */
.shop-note {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--warn);
  border-radius: 9999px;
  color: var(--warn);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  cursor: help;
  vertical-align: middle;
}
.shop-note.plain { border-color: var(--hairline); color: var(--muted); }

/* ── 上新说明 ─────────────────────────────────────────────
   一个品牌一个区、区里是商品网格。63 个区，所以顶上必须有目录。 */

.btn-sm { font-size: 14px; padding: 6px 14px; }

/* 品牌目录：横向铺开的胶囊，数字是该品牌待上新的个数 */
.jump {
  margin-top: 24px; padding: 16px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.jump a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 9999px;
  border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.jump a span { color: var(--muted); font-size: 12px; }

.newin-section { margin-top: 48px; scroll-margin-top: 24px; }
.newin-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.newin-head h2 { font-size: 22px; letter-spacing: -0.3px; }
/* 「复制全部 ID」和「回目录」推到右边去，别挤着标题 */
/* 靠右那组工具按钮从「复制全部 ID」开始。⚠️ 原先写的是 .btn-sm:first-of-type，
   在品牌名后面插「分类」按钮就会把它推到右边去——位置别再靠「第几个」认。 */
.newin-head .copy-ids { margin-left: auto; }

/* 固定 150px 一列，不拉伸：卡片是用来扫一眼主图有没有牛皮癣的，
   尺寸一致才好横向比对；auto-fit/1fr 会让每行的图忽大忽小。 */
.newin-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: 22px 18px;
}
.newin-card { display: flex; flex-direction: column; gap: 6px; width: 150px; }
/* 3:4 竖版：淘宝主图多是这个比例，摆成方的会上下留一大条白 */
.newin-pic {
  position: relative; display: block; width: 150px; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: 8px; background: var(--parchment);
}
.newin-pic > a { display: block; width: 100%; height: 100%; }
/* ⚠️ contain 不是 cover：**牛皮癣多半贴在图的边角**，cover 为了填满
   会把长边两头裁掉，正好把要看的东西切没了。宁可留白也要给全图。 */
.newin-pic img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* 图右上角的「不上新」。平时半透明地待着，指到卡片上才实体化——
   一屏几十张图，每张都顶一个实心按钮太吵；但也不能只在 hover 时才
   出现，触屏设备没有 hover，那样等于没有这个功能。 */
.newin-x {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.32); color: #fff;
  font-family: inherit; font-size: 15px; line-height: 1;
  cursor: pointer; opacity: 0.5;
}
.newin-card:hover .newin-x { opacity: 1; }
.newin-x:hover { background: var(--danger); }
.newin-x:focus-visible { outline: 2px solid #fff; opacity: 1; }
/* 已划掉页上同一个 × 是「放回」：悬停不能是危险红，那是删东西的颜色 */
.newin-x-restore:hover { background: var(--accent); }
.newin-x:disabled { cursor: progress; opacity: 0.3; }

/* 撤销：长得像链接的按钮，别做成第三个实体按钮跟工具条抢注意力 */
.linklike {
  background: none; border: none; padding: 0 0 0 6px;
  color: var(--accent); font-family: inherit; font-size: inherit;
  cursor: pointer; text-decoration: underline;
}
.newin-title {
  color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.35;
  /* 标题长短差得远，不夹住会把网格顶得高低不齐 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.newin-title:hover { color: var(--accent); }
.newin-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink);
}
/* 各规格维度的库存：卡片只有 150px 宽，颜色名常常很长（「碳灰水洗做旧
   牛仔裤（现货）」），每个值单独一块、超长省略、悬停看全名 */
.newin-stock {
  display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: baseline;
  font-size: 11px; line-height: 1.35; color: var(--ink);
}
.newin-stock-dim { color: var(--muted); flex-basis: 100%; }
.newin-stock-v {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.newin-stock-v b { font-weight: 600; }
/* 缺货的值、总库存 < newin.LOW_STOCK 都标红（用户 2026-09-24 定）。
   缺货的仍留删除线：红色只说「要注意」，删除线说清是「没了」 */
.newin-stock-v.is-empty { color: var(--danger); text-decoration: line-through; }
.newin-low { color: var(--danger); font-weight: 600; }
.newin-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--muted); cursor: pointer;
}
.newin-id:hover { color: var(--accent); }
.newin-id.copied { color: var(--ok); }


/* 翻页条 */
.pager {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.pager .muted { font-size: 14px; }
/* 目录里本页有的品牌加重一点，跟要跳走的区分开 */
.jump a.here { border-color: var(--ink); font-weight: 500; }

/* 工具条里的搜索表单：让 input 和按钮贴在一起，别被 toolbar 的 gap 拆散 */
.inline-form { display: flex; align-items: center; gap: 8px; }

/* ── 标注台（/newin/annotate）─────────────────────────────
   一次一个商品的翻页界面：左边大图，右边信息 + 将来的分类控件。
   形态照搬 CategoryManage 那套用惯了的标注器。 */

.annot-bar {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.annot-vendor { font-size: 28px; letter-spacing: -0.3px; margin: 0; }
/* 翻页按钮推到最右：手一直在这两个键上，位置固定才不用每次找 */
.annot-nav { margin-left: auto; display: flex; gap: 8px; }

/* 类目导航，样式跟品牌目录（.jump）一路，只是元素是 button */
.annot-cats {
  margin-top: 16px; padding: 12px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--hairline);
}
.annot-cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 9999px;
  border: 1px solid var(--hairline); background: none;
  color: var(--ink); font-size: 14px; cursor: pointer;
}
.annot-cat-link:hover { border-color: var(--accent); color: var(--accent); }
.annot-cat-link.here { border-color: var(--ink); font-weight: 500; }
.annot-cat-link span { color: var(--muted); font-size: 12px; }

.annot-stage {
  margin-top: 32px; display: flex; gap: 40px; align-items: flex-start;
}
/* 图框先占好位：不给固定高度的话，每翻一个商品整页都会随着图到位上下窜。 */
.annot-pic {
  flex: 0 0 420px; height: 560px; border-radius: 12px;
  background: var(--parchment); overflow: hidden;
  /* ⚠️ 定位上下文：里面那个 × 是 position:absolute，没有这一行它会飘到
     页面上一个有定位的祖先那儿去（多半是整个 body 的右上角）。 */
  position: relative;
}
/* 标注台的「这个不上」。复用 .newin-x 的长相（同一个动作在两个页面上
   必须长得一样），只把 hover 才显形那条改掉：列表页一屏几十张卡，都亮着
   太吵；这儿一次只有一件，藏起来人根本找不到它。 */
.annot-x { opacity: 0.75; width: 28px; height: 28px; font-size: 18px; }
/* 图左上角的档位角标。排序把标好的都堆在最后，翻到那一段时要一眼看出
   「这是回头看，不是漏标」。只有 ready / blocked 两种会显示。 */
.annot-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.5; color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
.annot-badge.ready { background: #1e7a3c; }
.annot-badge.blocked { background: #b3261e; }
/* ⚠️ 不用 --ok / --danger：那两个是亮色（#34c759 / #ff3b30），
   配白字对比度只有 2.2:1 / 3.5:1，在图片上根本看不清（AA 要 4.5:1）。
   得用自己的深色。 */
.annot-x:hover { opacity: 1; }
.annot-pic > a { display: block; width: 100%; height: 100%; }
.annot-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.annot-side { flex: 1; min-width: 0; }
.annot-title { font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
.annot-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; }

.annot-block { margin-top: 28px; }
.annot-path { margin-top: 6px; font-size: 17px; }
/* 类目一行，「修改」跟在后面——改类目是少数情况，不该占一排下拉 */
.annot-path-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.annot-path-row .annot-path { flex: 1 1 auto; min-width: 0; }
/* 五级下拉在 420px 的弹窗里放不下，这个弹窗单独放宽 */
#annotCatModal .modal { max-width: 560px; }
#annotCatModal .annot-selects { margin-top: 12px; }
/* 四级联动下拉：一列摆开，看得出是从上往下逐级收窄的 */
.annot-selects { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
/* 宽度跟着项目里其他下拉（.input-select），这里只放宽一点装得下长类目名 */
.annot-select { min-width: 340px; }
/* 这一级没得选就压暗，跟「有得选但还没选」区分开 */
.annot-select:disabled { color: var(--muted); background: var(--parchment); cursor: default; }

/* 品牌系列对照页：就地编辑那一行 */
.vc-form { display: flex; gap: 6px; align-items: center; }
.vc-form .input { width: auto; flex: 1 1 260px; height: 32px; font-size: 13px; padding: 0 12px; }
.vc-note { color: var(--muted); }
.ok { color: var(--ok); }

/* 没存上的横幅：点得动，所以要有手型和下划线 */
.annot-unsaved { margin-top: 12px; cursor: pointer; text-decoration: underline; }

/* 重量：输入框窄一点，跟它后面的「克」贴住 */
.annot-weight { display: flex; align-items: center; gap: 8px; }
.annot-weight label { font-size: 14px; color: var(--muted); }
.annot-weight .input { width: 120px; height: 36px; font-size: 14px; padding: 0 14px; }

/* 边用边加细分的小表单，平时收着 */
.annot-newfine {
  margin-top: 10px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--parchment);
}
.annot-newfine .input { width: auto; flex: 1 1 180px; height: 36px; font-size: 14px; padding: 0 14px; }

/* 品牌名后面的入口按钮，紧挨着名字（靠右那组从 .copy-ids 起） */
.annot-enter { margin-left: 4px; }

kbd {
  padding: 1px 6px; border-radius: 4px; font-size: 12px;
  border: 1px solid var(--hairline); background: var(--parchment);
  font-family: inherit;
}

@media (max-width: 900px) {
  .annot-stage { flex-direction: column; }
  .annot-pic { flex: none; width: 100%; max-width: 420px; }
}
