body { background:var(--bg); color:var(--text); font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; overflow-x:hidden; }
  .header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:10px 24px; border-bottom:1px solid var(--border); }
  .header .title { font-size:22px; font-weight:700; color:#111827; white-space:nowrap; flex-shrink:0; }
  .header .title em { color:var(--gold); font-style:normal; }
  .header .right { display:flex; align-items:center; flex-wrap:wrap; gap:10px 12px; font-size:13px; color:var(--dim); }
  .header a, .header button { color:var(--cyan); text-decoration:none; background:none; border:1px solid var(--border); padding:6px 13px; border-radius:6px; cursor:pointer; font-size:13px; }
  .wrap { padding:12px 24px; display:flex; flex-direction:column; gap:12px; min-width:0; }
  .kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
  .kpi { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:14px; }
  .kpi .label { font-size:13px; color:var(--dim); margin-bottom:6px; }
  .kpi .value { font-size:28px; font-weight:700; color:#111827; }
  .kpi .value.ok { color:var(--up); } .kpi .value.warn { color:var(--gold); } .kpi .value.bad { color:var(--down); } .kpi .value.new { color:var(--cyan); }
  .kpi-sub { font-size:12px; color:#9CA3AF; margin-top:4px; font-weight:400; }
  .scope-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:10px 0 0; font-size:13px; }
  .scope-chip { display:inline-flex; align-items:center; gap:4px; background:var(--panel); border:1px solid var(--cyan); color:var(--cyan); border-radius:999px; padding:3px 10px; font-weight:600; }
  .scope-chip .scope-x { background:none; border:none; color:var(--cyan); font-size:14px; line-height:1; cursor:pointer; padding:0 2px; }
  .scope-chip .scope-x:hover { color:var(--down); }
  .scope-title { color:var(--dim); font-weight:500; }
  .scope-count { color:#9CA3AF; font-size:12px; margin-left:2px; }
  th.sortable { cursor:pointer; user-select:none; white-space:nowrap; }
  th.sortable .sort-btn { background:none; border:none; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer; display:inline-flex; align-items:center; gap:2px; }
  th.sortable .sort-btn:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; border-radius:3px; }
  .sort-arrow { color:var(--cyan); font-size:11px; }
  .row { display:grid; gap:12px; }
  .row.two { grid-template-columns:3fr 2fr; }
  .panel { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
  .panel h3 { font-size:15px; font-weight:600; color:#111827; margin-bottom:8px; }
  .chart { width:100%; height:260px; }
  table { width:100%; border-collapse:collapse; font-size:13px; }
  th,td { padding:13px 10px; text-align:left; border-bottom:1px solid #F3F4F6; white-space:nowrap; }
  th { color:#6B7280; font-weight:600; position:sticky; top:0; background:#FFFFFF; z-index:1; }
  th.num, td.num { text-align:right; font-variant-numeric:tabular-nums; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
  th.ctr, td.ctr { text-align:center; }
  .sku { font-weight:600; font-family:"Inter","Roboto",ui-monospace,"SF Mono",Menlo,monospace; letter-spacing:.2px; }
  .iname { color:#666666; font-weight:400; }
  .ellip { display:inline-block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
  .sku-link { cursor:pointer; color:var(--cyan); }
  /* 列设置 */
  .colset { position:relative; }
  .colset-btn { background:none; border:none; color:#9CA3AF; border-radius:6px; padding:4px 6px; cursor:pointer; font-size:12px; transition:color .15s; }
  .colset-btn:hover { color:#111827; }
  .colset::before { content:''; position:absolute; top:100%; left:0; right:0; height:12px; }
  .colset-pop { display:none; position:absolute; top:calc(100% + 12px); right:0; background:#FFFFFF; border:none; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.14); padding:10px 12px; z-index:60; min-width:170px; max-height:360px; overflow:auto; }
  .colset:hover .colset-pop, .colset.open .colset-pop { display:block; }
  .colset-pop label { display:flex; align-items:center; gap:8px; font-size:13px; color:#374151; padding:3px 0; cursor:pointer; white-space:nowrap; }
  .help { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; background:#F3F4F6; color:#9CA3AF; font-size:11px; font-weight:700; cursor:help; vertical-align:middle; margin-left:6px; position:relative; border:none; padding:0; }
  .help .tip { display:none; position:absolute; top:140%; left:0; background:#111827; color:#fff; font-size:12px; font-weight:400; line-height:1.6; padding:8px 12px; border-radius:6px; white-space:normal; width:260px; z-index:20; }
  .help:hover .tip, .help:focus .tip, .help:focus-visible .tip, .help[aria-expanded="true"] .tip { display:block; }
  .help:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
  /* 决策过滤 Tabs */
  .decision-tabs { display:flex; gap:8px; }
  .filterbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
  .dtab { background:#FFFFFF; border:1px solid #E5E7EB; color:#6B7280; padding:8px 16px; border-radius:20px; cursor:pointer; font-size:13px; font-weight:600; transition:all .15s; }
  .dtab:hover { border-color:#D1D5DB; color:#111827; }
  .dtab.active { background:#111827; border-color:#111827; color:#FFFFFF; }
  .dtab .cnt { opacity:.7; font-weight:400; }
  /* 全局大分类导航 Tabs */
  .top-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:32px; border-bottom:1px solid #F3F4F6; margin-top:6px; margin-bottom:14px; }
  .ttab { text-decoration:none; display:inline-flex; align-items:center; background:none; border:none; border-bottom:2px solid transparent; padding:10px 2px; margin-bottom:-1px; font-size:14px; color:#9CA3AF; font-weight:400; cursor:pointer; transition:color .15s; }
  .ttab:hover { color:#111827; }
  .ttab.active { color:#111827; font-weight:600; border-bottom-color:#111827; }
  .workspace-more { position:relative; margin-left:auto; }
  .workspace-more summary { cursor:pointer; padding:10px 8px; font-size:13px; }
  .workspace-more[open] { z-index:50; }
  .workspace-more .ttab { position:absolute; right:0; top:100%; padding:12px 16px; white-space:nowrap; background:#fff; border:1px solid var(--border); box-shadow:0 4px 16px #0001; }
  .workspace-more[hidden] { display:none; }
  .decision-tabs { flex-wrap:wrap; margin:2px 0 12px; }
  .decision-tabs a { text-decoration:none; display:inline-flex; align-items:center; gap:5px; border-radius:5px; }
  .ttab .cnt { font-size:12px; color:#9CA3AF; font-weight:400; margin-left:3px; }
  /* 批量操作栏 */
  .panel-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:8px; flex-wrap:wrap; }
  .panel-head h3 { margin-bottom:0; }
  /* 子体/父体胶囊切换 */
  .body-toggle { display:flex; align-items:center; background:#F1F3F6; border-radius:8px; padding:3px; gap:2px; }
  .body-toggle .btab { border:none; background:transparent; color:#6B7280; font-size:13px; padding:5px 14px; border-radius:6px; cursor:pointer; font-weight:600; transition:all .15s; }
  .body-toggle .btab.active { background:#FFFFFF; color:#111827; box-shadow:0 1px 3px rgba(0,0,0,.08); }
  /* 返回父体大盘：浅蓝色轻量胶囊挂件（置于主标题右侧，默认隐藏） */
  #backToParentBtn { display:flex; align-items:center; gap:6px; border:none; padding:4px 12px; background:#EFF6FF; color:#2563EB; font-size:12px; font-weight:600; border-radius:9999px; cursor:pointer; transition:all .2s; white-space:nowrap; margin-left:16px; }
  #backToParentBtn:hover { background:#DBEAFE; }
  /* 父ASIN 蓝色下钻链接（父体视图，无 Tailwind 故手写等价原子类） */
  .text-blue-500 { color:#3B82F6; }
  .cursor-pointer { cursor:pointer; }
  .hover\:underline:hover { text-decoration:underline; }
  .font-mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
  .opbar-left { gap:10px; }
  /* 极简无线分页器（纯文本无框 + 多档行数切换） */
  .pagination { display:flex; align-items:center; justify-content:flex-end; gap:14px; padding-top:10px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
  .pagination .pg-size { display:flex; align-items:center; gap:6px; font-size:13px; color:#6B7280; }
  .pagination .pg-size select { background:transparent; border:none; color:#6B7280; padding:2px 2px; font-size:13px; cursor:pointer; outline:none; }
  .pagination .pg-btn { background:none; border:none; color:#9CA3AF; cursor:pointer; font-size:13px; padding:0 2px; line-height:1; transition:color .15s; }
  .pagination .pg-btn:hover:not(:disabled) { color:#111827; }
  .pagination .pg-btn:disabled { color:#D1D5DB; opacity:.5; cursor:default; }
  .pagination .pg-info { font-size:13px; color:#111827; font-weight:600; }
  .pagination .pg-jump { display:flex; align-items:center; gap:5px; font-size:12px; color:#6B7280; padding-left:12px; border-left:1px solid #F3F4F6; }
  .pagination .pg-jump input { width:36px; height:24px; text-align:center; font-size:12px; border:1px solid #E5E7EB; border-radius:6px; background:#FFFFFF; color:#111827; }
  .pagination .pg-jump input:focus { outline:none; border-color:#111827; }
  .pagination .pg-jump input::-webkit-inner-spin-button, .pagination .pg-jump input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
  .pagination .pg-jump input[type=number] { -moz-appearance:textfield; }
  .pagination .pg-go { background:#F3F4F6; color:#374151; border:none; border-radius:6px; padding:3px 8px; font-size:11px; cursor:pointer; transition:all .15s; }
  .pagination .pg-go:hover { background:#111827; color:#FFFFFF; }
  /* 下表局部滚动 */
  #promoTargetTable { max-height:500px; overflow:auto; }
  #promoSummary { margin-bottom:6px; }
  .opbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
  .opbar-left { display:flex; align-items:center; gap:6px; }
  .opbar-left .selall { display:flex; align-items:center; gap:6px; font-size:13px; color:#374151; cursor:pointer; }
  .opbar-right { display:flex; align-items:center; gap:12px; margin-left:auto; }
  .batch-btn { background:#1F2937; color:#FFFFFF; border:none; border-radius:7px; padding:7px 15px; cursor:pointer; font-size:13px; font-weight:600; transition:all .15s; }
  .batch-btn:hover { background:#111827; }
  .batch-btn:disabled { background:#E5E7EB; color:#9CA3AF; cursor:not-allowed; }
  .batch-btn.loading { background:#F3F4F6; color:#9CA3AF; cursor:not-allowed; }
  .stage-badge { display:inline-block; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:600; white-space:nowrap; }
  .stage-d30 { background:#FEF2F2; color:#B91C1C; }
  .stage-d60 { background:#FFF7ED; color:#C2410C; }
  .stage-d90 { background:#FFFBEB; color:#A16207; }
  .stage-over { background:#F3F4F6; color:#6B7280; }
  .stage-none { background:#EFF6FF; color:#1D4ED8; }
  .stage-sub { display:block; margin-top:2px; color:#9CA3AF; font-size:11px; font-weight:400; }
  /* 单行「定级并转P」动作按钮 */
  .act-btn { background:#1F2937; color:#FFFFFF; border:none; border-radius:6px; padding:4px 10px; cursor:pointer; font-size:12px; font-weight:500; transition:all .15s; white-space:nowrap; }
  .act-btn:hover { background:#111827; }
  .act-btn.loading { background:#F3F4F6; color:#9CA3AF; cursor:not-allowed; }
  .act-done { color:#9CA3AF; font-size:12px; font-weight:400; white-space:nowrap; }
  .act-todo { color:#059669; font-size:12px; font-weight:600; white-space:nowrap; }
  /* 虫洞跳转：已达标火箭/箭头 */
  .jump-ico { position:relative; display:inline-block; margin-left:5px; vertical-align:middle; cursor:pointer; }
  .jump-glyph { font-size:12px; color:#9CA3AF; transition:color .15s; animation:jumpPulse 2s ease-in-out infinite; }
  .jump-ico:hover .jump-glyph { color:#3B82F6; }
  .jump-tip { display:none; position:absolute; top:150%; right:0; background:#111827; color:#fff; font-size:12px; font-weight:400; line-height:1.6; padding:8px 12px; border-radius:6px; white-space:normal; width:220px; z-index:30; }
  .jump-ico:hover .jump-tip { display:block; }
  @keyframes jumpPulse { 0%,100%{opacity:.5;} 50%{opacity:1;} }
  /* 定级并转P 呼吸高亮 */
  .breath { animation:breath 1.5s ease-in-out; }
  @keyframes breath { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.05); box-shadow:0 0 0 6px rgba(59,130,246,.28); } }
  .risk-flag { font-size:12px; color:#EF4444; font-weight:600; white-space:nowrap; }
  .risk-flag.blink { animation:riskBlink 1s infinite; }
  .loss-tag { color:#EF4444; font-size:11px; font-weight:600; white-space:nowrap; }
  .loss-num { position:relative; cursor:help; }
  .loss-num .tip { display:none; position:absolute; bottom:160%; left:0; background:#111827; color:#fff; font-size:12px; font-weight:400; line-height:1.7; padding:8px 12px; border-radius:6px; white-space:nowrap; z-index:30; }
  .loss-num:hover .tip { display:block; }
  .promo-summary { font-size:13px; color:#6B7280; margin-bottom:6px; }
  .promo-summary .risk-num { color:#EF4444; font-weight:700; }
  @keyframes riskBlink { 0%,100%{opacity:1;} 50%{opacity:.4;} }
  .row-flash { animation:rowFlash 1.2s ease; }
  @keyframes rowFlash { 0%{background:#D1FAE5;} 100%{background:transparent;} }
  #skuTable { max-height:600px; overflow:auto; }
  /* sticky right 操作列：用 data-col 稳定定位，不依赖 :last-child。 */
  #skuTable table th[data-col="op"], #skuTable table td[data-col="op"] {
    position:sticky; right:0; z-index:2; background:#FFFFFF;
    box-shadow:-8px 0 12px rgba(15,23,42,.06);
  }
  #skuTable table thead th[data-col="op"] { z-index:3; }
  #skuTable table tbody tr:nth-child(even) td[data-col="op"] { background:#F9FAFB; }
  /* 容器可用宽度不足（横向滚动需要）时进入 no-sticky-actions：取消操作列右侧粘连，
     避免 sticky 表头遮挡中部排序按钮；完整表格由 .table-scroll 正常横向滚动。
     tbody td 完全取消定位；thead th 仅保留 top:0 纵向 sticky、取消 right 粘连。 */
  #skuTable.no-sticky-actions table td[data-col="op"] {
    position:static; right:auto; box-shadow:none;
  }
  #skuTable.no-sticky-actions table thead th[data-col="op"] {
    position:sticky; top:0; right:auto; z-index:1;
  }
  /* 最终定级P 列：稳定最小宽度 + 不换行，避免宽屏下表头被压缩成单字。 */
  #skuTable table th[data-col="pgrade"], #skuTable table td[data-col="pgrade"] { min-width:92px; white-space:nowrap; }
  #skuTable table th[data-col="pgrade"] { text-align:center; }
  .profit-stack { display:flex; flex-direction:column; align-items:flex-end; gap:5px; min-width:150px; }
  .profit-amount { font-family:monospace; font-weight:700; color:#111827; white-space:nowrap; }
  .profit-status { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  .operation-actions { display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
  .badge { display:inline-block; padding:2px 9px; border-radius:10px; font-size:12px; font-weight:600; }
  .badge.ok { background:#D1FAE5; color:#065F46; }
  .badge.warn { background:#FEF3C7; color:#D97706; }
  .badge.bad { background:#FEE2E2; color:#EF4444; }
  .badge.new { background:#F3F4F6; color:#374151; }
  .badge.no { background:#F3F4F6; color:#374151; }
  .badge.eol { background:#F3F4F6; color:#6B7280; }
  .score-bar { display:inline-block; width:60px; height:8px; background:#F3F4F6; border-radius:4px; overflow:hidden; vertical-align:middle; margin-right:6px; }
  .score-bar i { display:block; height:100%; background:linear-gradient(90deg,#16a34a,#10B981); }
  .rec-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
  .rec-card { background:rgba(16,185,129,.07); border:1px solid rgba(16,185,129,.32); border-radius:10px; padding:10px 12px; }
  .rec-card .r-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
  .rec-card .r-sku { font-weight:600; color:#111827; font-size:13px; }
  .rec-card .r-score { color:#059669; font-weight:700; font-size:16px; }
  .rec-card .r-meta { font-size:12px; color:var(--dim); line-height:1.6; }
  .rec-empty { color:var(--dim); font-size:13px; padding:8px 0; }
  .filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
  .filters select, .filters input { background:#F3F4F6; border:1px solid transparent; border-radius:8px; color:var(--text); padding:6px 10px; font-size:13px; transition:border-color .15s, background .15s; }
  .filters select:hover, .filters input:hover { border-color:#E5E7EB; background:#FFFFFF; }
  .filters select:focus, .filters input:focus { border-color:#3B82F6; background:#FFFFFF; outline:none; }
  .filters label { font-size:13px; color:var(--dim); display:flex; align-items:center; gap:5px; }
  .filters input { width:72px; }
  /* 搜索组合框：输入框内嵌放大镜按钮 + 历史记录气泡 */
  .search-wrap { position:relative; display:flex; align-items:center; width:200px; }
  .search-wrap .search-input { width:100%; padding-right:32px; }
  .search-btn { position:absolute; right:10px; top:10px; color:#9CA3AF; font-size:14px; line-height:1; user-select:none; transition:color .15s; }
  .search-btn:hover { color:#111827; }
  .history-pop { position:absolute; left:0; right:0; top:calc(100% + 6px); background:#FFFFFF; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.10); padding:4px 0; z-index:50; }
  .history-item { font-size:12px; color:#6B7280; padding:6px 12px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .history-item:hover { background:#F9FAFB; }
  .history-clear-row { border-top:1px solid #F9FAFB; margin-top:4px; padding:6px 12px 2px; text-align:right; }
  .clear-history { font-size:11px; color:#9CA3AF; cursor:pointer; }
  .clear-history:hover { color:#EF4444; }
  .filters button { background:var(--cyan); color:#FFFFFF; border:none; border-radius:6px; padding:6px 13px; cursor:pointer; font-size:13px; font-weight:600; }
  .filters button.ghost { background:none; border:1px solid var(--border); color:var(--text); }
  .filters-btn { padding:6px 13px; border-radius:6px; cursor:pointer; font-size:13px; }
  .filters-btn.ghost { background:none; border:1px solid #E5E7EB; color:#374151; }
  .filters-btn.ghost:hover { border-color:#D1D5DB; }
  .import-btn { background:#1F2937; color:#FFFFFF; border:none; border-radius:6px; padding:6px 13px; cursor:pointer; font-size:13px; font-weight:600; }
  .import-btn:hover { background:#111827; }
  /* 复制图标 + 重试按钮 + 预警齿轮 */
  .cell-hover { position:relative; }
  .copy-ico { opacity:0; color:#D1D5DB; cursor:pointer; font-size:13px; margin-left:4px; vertical-align:middle; transition:opacity .15s, color .15s; }
  .cell-hover:hover .copy-ico { opacity:1; }
  .copy-ico:hover { color:#6B7280; }
  .retry-btn { background:#DC2626; color:#FFFFFF; border:none; border-radius:6px; padding:4px 10px; cursor:pointer; font-size:12px; font-weight:500; white-space:nowrap; }
  .retry-btn:hover { background:#B91C1C; }
  .gear-btn { background:none; border:none; color:#6B7280; cursor:pointer; font-size:15px; padding:2px 4px; line-height:1; }
  .gear-btn:hover { color:#111827; }
  .gear-btn.on { color:#3B82F6; }
  .margin-input { width:70px; background:#F3F4F6; border:1px solid transparent; border-radius:6px; color:var(--text); padding:4px 8px; font-size:12px; }
  .margin-input:focus { border-color:#3B82F6; outline:none; }
  .login-overlay { position:fixed; inset:0; background:rgba(245,247,250,.92); display:flex; align-items:center; justify-content:center; z-index:999; }
  .login-card { background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:32px 30px; width:320px; text-align:center; }
  .login-card input { width:100%; background:#FFFFFF; border:1px solid var(--border); border-radius:8px; color:var(--text); padding:10px 12px; font-size:14px; margin-bottom:12px; }
  .login-card button { width:100%; background:var(--cyan); color:#FFFFFF; border:none; padding:10px; border-radius:8px; cursor:pointer; font-size:15px; font-weight:600; }
  .login-card .err { color:#DC2626; font-size:12px; margin-top:10px; min-height:16px; }
  /* ASIN 明细下钻 */
  .detail-overlay { position:fixed; inset:0; background:rgba(245,247,250,.94); z-index:950; display:none; overflow-y:auto; padding:20px; }
  .detail-overlay.show { display:block; }
  /* 061 放大态：应用内沉浸（不动 Fullscreen API）；padding=0、卡片全宽、无外圆角/边框；内容由 overlay 纵向滚动 */
  .detail-overlay.expanded { padding:0; }
  .detail-overlay.expanded .detail-card { width:100%; max-width:none; min-height:100dvh; border-radius:0; border:none; }
  .detail-card { max-width:1100px; margin:0 auto; background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:18px 20px; }
  .detail-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
  .detail-head h3 { font-size:17px; color:#111827; }
  .detail-head .close { background:none; border:1px solid var(--border); color:var(--text); border-radius:6px; padding:5px 12px; cursor:pointer; min-height:44px; min-width:44px; }
  .detail-meta { font-size:13px; color:var(--dim); margin-bottom:14px; line-height:1.7; }
  .dim-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
  .dim-toggle { display:flex; align-items:center; gap:4px; font-size:12px; }
  .dim-toggle .dim-label { color:#9CA3AF; margin-right:4px; }
  .dim-btn { background:none; border:none; color:#9CA3AF; padding:3px 10px; border-radius:6px; cursor:pointer; font-size:12px; transition:all .15s; }
  .dim-btn:hover { color:#111827; }
  .dim-btn.on { background:#1F2937; color:#FFFFFF; font-weight:500; }
  .detail-head-right { display:flex; align-items:center; gap:20px; }
  .fresh-hint { font-size:12px; color:#9CA3AF; font-weight:400; letter-spacing:.02em; }
  .fresh-q { position:relative; display:inline-block; color:#D1D5DB; cursor:help; margin-left:4px; }
  .fresh-q:hover { color:#6B7280; }
  .fresh-q .fresh-tip { display:none; position:absolute; top:160%; right:0; background:#111827; color:#fff; font-size:12px; font-weight:400; line-height:1.6; padding:8px 12px; border-radius:6px; white-space:normal; width:260px; z-index:30; }
  .fresh-q:hover .fresh-tip { display:block; }
  .detail-kpis { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
  /* 普通趋势经营摘要：桌面端六项单行，压缩首屏占用；窄视口再自然降为 3/2 列。 */
  .dkpi-core { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
  .dkpi-ad { display:grid; grid-template-columns:repeat(auto-fill,minmax(138px,1fr)); gap:10px; }
  .dkpi { background:#FFFFFF; border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
  .dkpi .label { font-size:12px; color:var(--dim); margin-bottom:4px; }
  .dkpi .value { font-size:19px; font-weight:700; color:#111827; }
  .dkpi .value.pos { color:var(--up); } .dkpi .value.neg { color:var(--down); }
  .dkpi-core .dkpi { border-radius:10px; padding:9px 11px; min-width:0; }
  .dkpi-core .dkpi .label { font-size:12px; margin-bottom:3px; }
  .dkpi-core .dkpi .value { font-size:clamp(16px,1.25vw,20px); line-height:1.15; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .dkpi-core .cmp-sub, .dkpi-core .cmp-chg { line-height:1.3; white-space:nowrap; }
  .dkpi-ad .dkpi { background:#F9FAFB; border-radius:10px; padding:8px 10px; }
  .dkpi-ad .dkpi .label { font-size:12px; margin-bottom:3px; }
  .dkpi-ad .dkpi .value { font-size:16px; font-weight:600; }
  .ad-empty { grid-column:1/-1; background:#F9FAFB; border:1px dashed #E5E7EB; border-radius:10px; padding:10px 14px; font-size:13px; color:#9CA3AF; }
  .ad-empty-link { cursor:pointer; text-decoration:underline; text-underline-offset:4px; transition:color .15s; }
  .ad-empty-link:hover { color:#3B82F6; }
  .detail-chart { width:100%; height:240px; }
  .detail-table { max-height:360px; overflow:auto; }
  /* 转P档案表：min-width 保证 90天利润结果不被压窄、末列「转P时效」经内部滚动可达（配合 hscroll 提示） */
  #recordsTable { max-height:600px; overflow:auto; }
  #recordsTable table { min-width:1080px; }
  /* 生命周期阶段对比 */
  .day-toggle { background:none; border:1px solid var(--border); color:var(--text); border-radius:999px; padding:6px 14px; cursor:pointer; font-size:13px; transition:all .15s; }
  .day-toggle.active { background:#111827; border-color:#111827; color:#FFFFFF; font-weight:600; }
  /* 普通趋势筛选按钮：选中态统一黑底白字；需高于 .filters button.ghost 的通用规则。 */
  .preset-btn { background:none; border:1px solid var(--border); color:var(--text); border-radius:999px; padding:6px 12px; cursor:pointer; font-size:13px; transition:all .15s; }
  .filters button.preset-btn:hover:not(:disabled):not(.active):not([aria-pressed="true"]) { border-color:#111827; color:#111827; }
  .filters button.preset-btn.active,
  .filters button.preset-btn[aria-pressed="true"] { background:#111827; border-color:#111827; color:#FFFFFF; font-weight:600; }
  .preset-btn:disabled { opacity:.5; cursor:not-allowed; }
  .cmp-gran { background:none; border:1px solid var(--border); color:var(--text); border-radius:999px; padding:6px 12px; cursor:pointer; font-size:13px; transition:all .15s; }
  .filters button.cmp-gran:hover:not(:disabled):not(.active):not([aria-pressed="true"]) { border-color:#111827; color:#111827; }
  .filters button.cmp-gran.active,
  .filters button.cmp-gran[aria-pressed="true"] { background:#111827; border-color:#111827; color:#FFFFFF; font-weight:600; }
  .cmp-gran:disabled { opacity:.5; cursor:not-allowed; }
  .cmp-tb-label { color:#6B7280; font-size:12px; }
  .cmp-hint { color:#9CA3AF; font-size:12px; margin-left:auto; white-space:nowrap; }
  .cmp-grp { background:#F1F5F9; color:#475569; font-size:12px; text-align:center; font-weight:600; }
  .cmp-range { white-space:nowrap; color:#374151; font-weight:600; }
  .cmp-main { font-weight:600; }
  .cmp-sub { color:#9CA3AF; font-size:11px; }
  .cmp-chg { font-size:11px; font-weight:600; }
  .cmp-good { color:#059669; }
  .cmp-bad { color:#DC2626; }
  .cmp-flat { color:#9CA3AF; }
  .cmp-na { color:#C7CDD6; }
  .filters.custom-active { background:#F0F7FF; border:1px solid var(--cyan); border-radius:10px; padding:6px 10px; }
  .filters #detailRangeControls.custom-active, #detailRangeControls.custom-active { background:#F0F7FF; border:1px solid var(--cyan); border-radius:10px; padding:6px 10px; }
  button:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
  .range-picker { width:230px; background:#F3F4F6; border:1px solid transparent; border-radius:8px; color:var(--text); padding:6px 10px; font-size:13px; cursor:pointer; }
  .range-picker:disabled { background:#F3F4F6; color:#9CA3AF; cursor:not-allowed; }
  .stage-panel { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:12px 16px; border:1px solid #F3F4F6; border-radius:10px; background:#F9FAFB; margin-bottom:14px; }
  .stage-col { display:flex; flex-direction:column; }
  .stage-label { font-size:11px; color:#9CA3AF; margin-bottom:4px; }
  .stage-val-row { display:flex; align-items:baseline; gap:8px; }
  .stage-val { font-size:16px; font-weight:700; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:#111827; }
  .stage-qoq { font-size:12px; font-weight:600; }
  .stage-qoq.up { color:#059669; }
  .stage-qoq.down { color:#EF4444; }
  /* 局部骨架屏（极简脉冲 Loading） */
  .chart-wrap { position:relative; }
  .chart-skel { position:absolute; inset:0; background:#F3F4F6; border-radius:10px; animation:skelPulse 1.4s ease-in-out infinite; opacity:1; transition:opacity .3s ease; z-index:6; pointer-events:none; }
  .chart-skel.hide { opacity:0; }
  .skel { background:#F3F4F6; border-radius:8px; animation:skelPulse 1.4s ease-in-out infinite; }
  @keyframes skelPulse { 0%,100%{opacity:1;} 50%{opacity:.45;} }
  .fade-in { animation:fadeIn .3s ease; }
  @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
  .gp-pos { color:#059669; } .gp-neg { color:#DC2626; }
  /* 转P定级内联编辑 */
  .edit-btn { background:none; color:#3B82F6; border:none; padding:4px 6px; cursor:pointer; font-size:12px; font-weight:500; transition:color .15s; }
  .edit-btn:hover { color:#2563EB; text-decoration:underline; }
  .annual-exclusion-btn { background:#FFF7ED; color:#C2410C; border:1px solid #FB923C; border-radius:7px; padding:6px 11px; cursor:pointer; font-size:12px; font-weight:700; box-shadow:0 1px 2px rgba(194,65,12,.10); transition:background .15s,border-color .15s,box-shadow .15s,transform .15s; }
  .annual-exclusion-btn:hover { background:#FFEDD5; border-color:#F97316; box-shadow:0 2px 5px rgba(194,65,12,.18); transform:translateY(-1px); }
  .revoke-btn { background:none; color:#B91C1C; border:none; padding:4px 6px; cursor:pointer; font-size:12px; font-weight:500; }
  .revoke-btn:hover { color:#991B1B; text-decoration:underline; }
  .edit-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:14px; min-width:0; }
  .edit-grid label { font-size:13px; color:var(--dim); display:flex; flex-direction:column; gap:5px; min-width:0; }
  .edit-grid select, .edit-grid input { background:#FFFFFF; border:1px solid var(--border); border-radius:6px; color:var(--text); padding:8px 10px; font-size:13px; width:100%; min-width:0; }
  .edit-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .edit-actions button { background:var(--cyan); color:#FFFFFF; border:none; border-radius:6px; padding:8px 16px; cursor:pointer; font-size:13px; font-weight:600; min-height:44px; }
  .edit-actions button.ghost { background:none; border:1px solid var(--border); color:var(--text); }
  /* 宽表横向滚动容器：滚动条属于表格而非整页 */
  .table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .table-scroll table { min-width:680px; }
  /* 横向可滚动克制提示：仅内容溢出且可向右滚动时出现，右端隐藏；pointer-events:none 不遮挡滚动/键盘 */
  .hscroll-wrap { position:relative; }
  .hscroll-hint { position:absolute; top:0; right:0; bottom:0; width:26px; pointer-events:none;
    opacity:0; transition:opacity .15s;
    background:linear-gradient(to left, rgba(15,23,42,.09), rgba(15,23,42,0)); }
  /* 响应式基线 */
  @media (max-width:900px) {
    .kpis { grid-template-columns:repeat(2,1fr); }
    .dkpi-core { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .header { padding:10px 16px; }
    .wrap { padding:12px 16px; }
    .search-wrap { width:100%; }
    .filters { width:100%; }
  }
  @media (max-width:640px) {
    .kpis { grid-template-columns:1fr; }
    .dkpi-core { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .header .right { width:100%; }
    .filterbar, .decision-tabs, .opbar { width:100%; flex-wrap:wrap; }
    .opbar-right { width:100%; justify-content:flex-end; flex-wrap:wrap; }
    .pagination { flex-wrap:wrap; justify-content:flex-start; gap:8px 10px; }
    .colset-pop { right:auto; left:0; }
    .header button, .header select, .filters select, .filters input, .filters button, .dtab, .ttab,
    .pagination button, .pagination select, .pagination input, .colset-btn, .search-input, .btab { min-height:44px; }
  }
.transfer-workspace .wrap { gap:10px; }
  .transfer-workspace #transferState:empty { display:none; }
  .transfer-workspace .scope-bar { margin:0; gap:6px; }
  .transfer-workspace .kpi { padding:10px 12px; min-width:0; }
  .transfer-workspace .kpi .label { margin-bottom:4px; }
  .transfer-workspace .kpi .value { font-size:26px; line-height:1.2; }
  .transfer-workspace .kpi-sub { line-height:1.5; }
  .transfer-workspace .assessment-toolbar { margin:0 0 10px; flex-wrap:wrap; }
  .transfer-workspace .assessment-toolbar h3 { margin:0; }
  .transfer-workspace .assessment-toolbar .opbar-left { min-width:0; flex-wrap:wrap; }
  .transfer-workspace .assessment-filters { margin-bottom:10px; }
  .transfer-workspace .assessment-filters .filters { flex:1; }
  .transfer-workspace .assessment-filters .search-wrap { width:240px; max-width:100%; }
  .transfer-workspace .filters select { max-width:100%; }
  .transfer-workspace .filters input[type="date"] { width:156px; }
  .transfer-workspace #dateRangePicker { width:252px; max-width:100%; }
  .transfer-workspace .product-date-line { display:block; font-size:12px; line-height:1.7; }
  .transfer-workspace .product-date-line > span { color:var(--dim); margin-right:4px; }
  .transfer-workspace .product-date-line.secondary { color:var(--dim); }
  .transfer-workspace .promo-source { font-size:12px; line-height:1.7; color:var(--dim); margin:10px 0 6px; }
  .transfer-workspace .promo-source summary { cursor:pointer; color:#475569; }
  .transfer-workspace .promo-source summary span { color:var(--cyan); margin-left:8px; }
  .transfer-workspace .promo-source details > div { margin-top:6px; }
  .transfer-workspace .promo-target-notice { padding:8px 12px; margin-bottom:8px; border:1px solid #f5d49c; border-radius:4px; background:#fffbeb; color:#92400e; font-size:12px; line-height:1.7; }
  .transfer-workspace .promo-target-notice:empty,.transfer-workspace .promo-source:empty { display:none; }
  .transfer-workspace .promo-period-row { justify-content:flex-start; gap:12px 20px; }
  .transfer-workspace .promo-period-controls { width:auto; }
  .transfer-workspace .promo-filter-row { padding:10px 0; margin-bottom:4px; border-top:1px solid var(--border); }
  .transfer-workspace .promo-template { margin-left:auto; }
  .transfer-workspace .detail-head { flex-wrap:wrap; gap:10px 16px; align-items:flex-start; }
  .transfer-workspace .detail-head h3 { min-width:0; flex:1 1 280px; overflow-wrap:anywhere; line-height:1.5; }
  .transfer-workspace .detail-head-right { flex-wrap:wrap; gap:8px; margin-left:auto; }
  .transfer-workspace .fresh-hint { max-width:420px; white-space:normal; line-height:1.5; }
  .transfer-workspace .dim-toggle { flex-wrap:wrap; gap:6px; }
  .transfer-workspace .cmp-hint { white-space:normal; line-height:1.6; }
  .transfer-workspace .detail-meta { overflow-wrap:anywhere; }
  .transfer-workspace .lifecycle-stage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:12px; background:#f5f7fb; border-radius:4px; margin-top:12px; }
  .transfer-workspace .lifecycle-stage-card { min-width:0; background:#fff; padding:14px; border:1px solid var(--border); border-radius:4px; }
  @media (max-width:900px) {
    .transfer-workspace .assessment-filters .search-wrap { width:100%; }
    .transfer-workspace .detail-overlay { padding:12px; }
    .transfer-workspace .detail-overlay.expanded { padding:0; }
    .transfer-workspace .detail-card { padding:14px; }
    .transfer-workspace .detail-head-right { width:100%; }
    .transfer-workspace .fresh-hint { margin-right:auto; }
    .transfer-workspace .cmp-hint { flex-basis:100%; margin-left:0; }
    .transfer-workspace .promo-template { margin-left:0; }
  }
  @media (max-width:640px) {
    .transfer-workspace .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .transfer-workspace .kpi { padding:10px; }
    .transfer-workspace .kpi { position:relative; }
    .transfer-workspace .kpi .help { position:static; }
    .transfer-workspace .kpi .help .tip { top:calc(100% + 6px); left:0; right:auto; width:min(260px,calc(100vw - 40px)); }
    .transfer-workspace .kpi:nth-child(even) .help .tip { left:auto; right:0; }
    .transfer-workspace .kpi .label { font-size:12px; }
    .transfer-workspace .kpi .value { font-size:24px; }
    .transfer-workspace .kpi-sub { font-size:11px; }
    .transfer-workspace .scope-title { width:100%; }
    .transfer-workspace .opbar-right { justify-content:flex-start; }
    .transfer-workspace .colset-pop { left:auto; right:0; }
    .transfer-workspace .promo-period-controls { width:100%; }
    .transfer-workspace .promo-period-controls select { min-width:0; flex:1; }
    .transfer-workspace .lifecycle-stage-grid { grid-template-columns:1fr; padding:8px; }
    .transfer-workspace .detail-head-right .fresh-hint { flex-basis:100%; max-width:none; }
    .transfer-workspace #detailRangeControls { width:100%; }
    .transfer-workspace #dateRangePicker { width:100%; }
    .transfer-workspace .help .tip { left:auto; right:0; width:min(260px,75vw); }
  }
[data-feature-page] [data-feature-inactive] {display:none!important}
