/* =========================================================================
   选品工作台 · 深色专业工作台视觉系统
   石墨/钢灰底 + 琥珀/青绿强调；零外部依赖；等宽数字；响应式
   ========================================================================= */

/* ---------- 1. tokens / reset ---------- */
:root {
  --bg-0: #090c10;
  --bg-1: #0c1117;
  --bg-2: #0f151d;
  --panel: #131a22;
  --panel-2: #17202a;
  --panel-3: #1c2732;
  --line: #26323e;
  --line-soft: #1b242e;
  --line-strong: #34424f;
  --text: #e8eef5;
  --text-2: #a6b3c0;
  --text-3: #74828f;
  --text-4: #4d5863;
  --amber: #f2a93b;
  --amber-2: #ffc76a;
  --amber-soft: rgba(242, 169, 59, 0.13);
  --teal: #3ec9b7;
  --teal-soft: rgba(62, 201, 183, 0.13);
  --red: #ef6c67;
  --red-soft: rgba(239, 108, 103, 0.13);
  --blue: #6fa9ff;
  --blue-soft: rgba(111, 169, 255, 0.13);
  --violet: #ab8dfa;
  --green: #5bc98c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --topbar-h: 62px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1200px 500px at 8% -8%, rgba(242, 169, 59, 0.075), transparent 60%),
    radial-gradient(1000px 480px at 96% 0%, rgba(62, 201, 183, 0.055), transparent 55%),
    linear-gradient(180deg, #0b1015 0%, #090c10 46%, #080b0f 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 140, 160, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 160, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
}

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(242, 169, 59, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(242, 169, 59, 0.75);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 全局内联图标尺寸，避免无 class 的 svg 撑破布局 */
.ic {
  width: 14px;
  height: 14px;
  flex: none;
  vertical-align: -2px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--amber);
  color: #191204;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: #2b3946 transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #263340;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #37475a;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ---------- 2. topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 22px;
  min-height: var(--topbar-h);
  padding: 10px 22px;
  background: rgba(9, 13, 18, 0.86);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 12px 32px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
  padding: 2px 4px 2px 2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--amber);
  filter: drop-shadow(0 0 12px rgba(242, 169, 59, 0.18));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-text small {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  min-width: 0;
}

.nav-link {
  position: relative;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.is-active {
  color: var(--amber-2);
  background: var(--amber-soft);
  border-color: rgba(242, 169, 59, 0.26);
  box-shadow: inset 0 0 0 1px rgba(242, 169, 59, 0.04);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  min-width: 0;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 268px;
  height: 36px;
  padding: 0 10px;
  background: rgba(20, 28, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.global-search:focus-within {
  border-color: rgba(242, 169, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.12);
}

.gs-icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex: none;
}

.global-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--text);
}

.global-search input::placeholder {
  color: var(--text-4);
}

.global-search kbd {
  flex: none;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
}

.badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(19, 26, 34, 0.9);
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}

.badge strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.badge .b-label {
  color: var(--text-3);
}

.badge-demo {
  color: var(--amber-2);
  border-color: rgba(242, 169, 59, 0.4);
  background: var(--amber-soft);
}

.badge-live {
  color: var(--teal);
  border-color: rgba(62, 201, 183, 0.34);
  background: var(--teal-soft);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.badge-skeleton {
  width: 74px;
  height: 28px;
  border: 0;
  background: linear-gradient(100deg, #1a2430 20%, #223140 40%, #1a2430 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

/* ---------- 3. main / footer ---------- */
.app-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 22px 72px;
}

.view-root {
  min-height: 58vh;
}

.app-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 22px 26px;
  color: var(--text-3);
  font-size: 11.5px;
  border-top: 1px solid var(--line-soft);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-left .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-4);
}

.footer-left .dot.is-demo {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.13);
}

.footer-left .dot.is-live {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(62, 201, 183, 0.13);
}

.sep {
  color: var(--text-4);
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-0);
  color: var(--text);
  z-index: 300;
}

/* ---------- 4. boot screen ---------- */
.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14vh 20px;
  color: var(--text-2);
}

.boot-mark {
  filter: drop-shadow(0 0 22px rgba(242, 169, 59, 0.16));
  animation: floaty 2.8s ease-in-out infinite;
}

.boot-title {
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--text);
}

.boot-sub {
  font-size: 12px;
  color: var(--text-3);
}

.boot-bar {
  width: 200px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}

.boot-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  animation: boot-slide 1.4s ease-in-out infinite;
}

/* ---------- 5. shared components ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.page-head h1 {
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.page-head .page-sub {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12.5px;
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
    transform 0.1s var(--ease), color 0.15s var(--ease);
}

.btn:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #1b2531, #151d26);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, #f6b34c, #e79a2c);
  border-color: #d08a22;
  color: #201503;
  font-weight: 650;
  box-shadow: 0 3px 12px rgba(242, 169, 59, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffc25c, #f0a436);
  border-color: #e5a23c;
}

.btn-teal {
  color: #062a26;
  background: linear-gradient(180deg, #4dd6c2, #33b7a6);
  border-color: #2aa596;
  font-weight: 650;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-danger {
  color: var(--red);
  border-color: rgba(239, 108, 103, 0.35);
  background: var(--red-soft);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  gap: 5px;
}

.btn-sm svg {
  width: 13px;
  height: 13px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 31, 41, 0.92), rgba(15, 21, 28, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-title .ct-icon {
  color: var(--amber);
}

.card-title svg {
  width: 16px;
  height: 16px;
}

.card-sub {
  color: var(--text-3);
  font-size: 11.5px;
}

.card-body {
  padding: 16px 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 11.5px;
  transition: color 0.15s var(--ease);
}

.card-link:hover {
  color: var(--amber-2);
}

.card-link svg {
  width: 13px;
  height: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.7);
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-amber {
  color: var(--amber-2);
  border-color: rgba(242, 169, 59, 0.3);
  background: var(--amber-soft);
}

.chip-teal {
  color: var(--teal);
  border-color: rgba(62, 201, 183, 0.28);
  background: var(--teal-soft);
}

.chip-red {
  color: var(--red);
  border-color: rgba(239, 108, 103, 0.28);
  background: var(--red-soft);
}

.chip-blue {
  color: var(--blue);
  border-color: rgba(111, 169, 255, 0.28);
  background: var(--blue-soft);
}

.chip-violet {
  color: var(--violet);
  border-color: rgba(171, 141, 250, 0.28);
  background: rgba(171, 141, 250, 0.12);
}

.chip-muted {
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

/* channel */
.channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.channel-amazon { color: var(--amber); }
.channel-temu { color: #ff8a5c; }
.channel-1688 { color: #e46a6a; }

/* status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10.5px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-inbox { color: #97a5b3; background: rgba(151, 165, 179, 0.1); border-color: rgba(151, 165, 179, 0.2); }
.status-shortlisted { color: var(--teal); background: var(--teal-soft); border-color: rgba(62, 201, 183, 0.3); }
.status-watching { color: var(--amber); background: var(--amber-soft); border-color: rgba(242, 169, 59, 0.3); }
.status-rejected { color: var(--red); background: var(--red-soft); border-color: rgba(239, 108, 103, 0.28); }

/* grade */
.grade {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.grade-A { color: #0a2620; background: linear-gradient(180deg, #6fe0c8, #3ec9b7); border-color: #37b3a2; }
.grade-B { color: #241803; background: linear-gradient(180deg, #ffcf7e, #f2a93b); border-color: #d99426; }
.grade-C { color: #d8e3ee; background: linear-gradient(180deg, #4a5d70, #384a5b); border-color: #51667a; }
.grade-D { color: #ffd9d7; background: linear-gradient(180deg, #7d3c3a, #5c2c2b); border-color: #8a4643; }

.grade-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-2);
}

/* progress / bars */
.progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87614, var(--amber));
}

.progress-teal > i {
  background: linear-gradient(90deg, #238b7e, var(--teal));
}

.mini-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87614, var(--amber));
}

.mini-bar.is-high i { background: linear-gradient(90deg, #2a9d8f, var(--teal)); }
.mini-bar.is-low i { background: linear-gradient(90deg, #a8433f, var(--red)); }

/* ---------- 6. overview ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  position: relative;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(242, 169, 59, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(23, 31, 41, 0.94), rgba(14, 20, 27, 0.96));
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--amber), transparent);
  opacity: 0.7;
}

.kpi.kpi-teal::after { background: linear-gradient(180deg, var(--teal), transparent); }
.kpi.kpi-blue::after { background: linear-gradient(180deg, var(--blue), transparent); }
.kpi.kpi-red::after { background: linear-gradient(180deg, var(--red), transparent); }
.kpi.kpi-plain::after { background: linear-gradient(180deg, var(--text-3), transparent); }

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.kpi-label {
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.kpi-icon {
  color: var(--text-4);
}

.kpi-icon svg {
  width: 16px;
  height: 16px;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-value small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.kpi-sub {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kpi-sub .up { color: var(--teal); }
.kpi-sub .warn { color: var(--amber); }

.kpi-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.kpi-channel-row {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
}

.kpi-channel-row .kc-name { color: var(--text-3); }
.kpi-channel-row .kc-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.kpi-channel-row .kc-bar i { display: block; height: 100%; border-radius: inherit; }
.kpi-channel-row .kc-val {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

/* topic x channel */
.topic-channel-list {
  display: flex;
  flex-direction: column;
  padding: 6px 18px 12px;
}

.topic-channel-row {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(120px, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
  border-radius: 4px;
}

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

.topic-channel-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.tcr-name {
  min-width: 0;
}

.tcr-name strong {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcr-name span {
  display: block;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.tcr-bar {
  display: flex;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line-soft);
  gap: 1px;
}

.tcr-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
}

.tcr-amazon { background: linear-gradient(90deg, #b87614, var(--amber)); }
.tcr-temu { background: linear-gradient(90deg, #b95c35, #ff8a5c); }
.tcr-1688 { background: linear-gradient(90deg, #9c4343, #e46a6a); }

.tcr-counts {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.tcr-counts b {
  font-weight: 500;
  color: var(--text-2);
}

.channel-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--text-3);
}

.channel-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* status donut */
.status-panel {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 18px 18px;
}

.donut-wrap {
  position: relative;
  width: 148px;
  height: 148px;
}

.donut-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.donut-center strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.donut-center span {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

.status-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.status-legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.status-legend-row .sl-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.status-legend-row .sl-name { color: var(--text-2); }
.status-legend-row .sl-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 12px;
}
.status-legend-row .sl-pct {
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 10px;
  width: 36px;
  text-align: right;
}

.grade-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.grade-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10.5px;
  color: var(--text-3);
}

.grade-strip-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.grade-strip-bar {
  position: relative;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
}

.grade-strip-bar::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--line-soft);
}

.grade-strip-bar i {
  position: absolute;
  top: 4px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  max-width: 100%;
}

.gsb-A i { background: var(--teal); }
.gsb-B i { background: var(--amber); }
.gsb-C i { background: var(--blue); }
.gsb-D i { background: var(--red); }

/* top opportunities */
.opp-list {
  display: flex;
  flex-direction: column;
}

.opp-row {
  display: grid;
  grid-template-columns: 26px 46px minmax(0, 1fr) 104px 82px 82px 88px 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.13s var(--ease);
}

.opp-row:last-child { border-bottom: 0; }
.opp-row:hover { background: rgba(255, 255, 255, 0.022); }

.opp-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}

.opp-rank.is-top { color: var(--amber); }

.opp-thumb {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

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

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

.opp-title {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.opp-meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
}

.opp-topic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opp-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.opp-num small {
  display: block;
  color: var(--text-4);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.opp-score {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.opp-score b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.opp-arrow {
  color: var(--text-4);
  display: grid;
  place-items: center;
}

.opp-arrow svg { width: 14px; height: 14px; }

/* runs */
.run-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.run-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.run-table th {
  text-align: left;
  padding: 8px 18px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 15, 20, 0.35);
  white-space: nowrap;
}

.run-table td {
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  white-space: nowrap;
}

.run-table tr:last-child td { border-bottom: 0; }
.run-table tr:hover td { background: rgba(255, 255, 255, 0.018); }

.run-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
}

.run-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.run-done { color: var(--teal); }
.run-failed { color: var(--red); }
.run-pending { color: var(--amber); }

/* ---------- 7. topics ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(242, 169, 59, 0.045), transparent 70%),
    linear-gradient(180deg, rgba(23, 31, 41, 0.9), rgba(14, 20, 27, 0.94));
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease), background 0.16s var(--ease);
  overflow: hidden;
}

.topic-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.28), transparent);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.topic-card:hover {
  border-color: rgba(242, 169, 59, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.topic-card:hover::after { opacity: 1; }

.topic-card:focus-visible {
  border-color: rgba(242, 169, 59, 0.6);
}

.topic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.topic-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  background: rgba(10, 15, 20, 0.5);
}

.topic-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber-2);
  font-variant-numeric: tabular-nums;
}

.topic-score small {
  font-size: 9px;
  color: var(--text-4);
  font-weight: 400;
}

.topic-score.is-A { color: var(--teal); }
.topic-score.is-B { color: var(--amber-2); }
.topic-score.is-C { color: var(--blue); }
.topic-score.is-D { color: var(--red); }

.topic-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.topic-en {
  margin-top: -4px;
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-persona {
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.topic-card .chips {
  max-height: 24px;
  overflow: hidden;
}

.topic-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 9px;
  border-top: 1px dashed var(--line-soft);
  color: var(--text-3);
  font-size: 10.5px;
}

.topic-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.topic-stats strong {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.topic-stats .ab strong { color: var(--teal); }

.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-4);
  font-size: 10px;
}

.topic-foot .tf-go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
  transition: color 0.15s var(--ease);
}

.topic-card:hover .tf-go { color: var(--amber-2); }
.topic-foot svg { width: 12px; height: 12px; }

/* ---------- 8. products ---------- */
.filters-card {
  margin-bottom: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px 14px;
  padding: 15px 18px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > label,
.field-label {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.field-q { grid-column: span 2; }

.input,
.select,
.textarea {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 16, 22, 0.72);
  color: var(--text);
  font-size: 12px;
  outline: 0;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.textarea {
  height: auto;
  min-height: 84px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-4); }

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(242, 169, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.1);
}

.select {
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.select option {
  background: #131a22;
  color: var(--text);
}

.range {
  display: flex;
  align-items: center;
  gap: 5px;
}

.range .input {
  min-width: 0;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: center;
}

.range .dash {
  color: var(--text-4);
  font-size: 11px;
  flex: none;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.filter-actions .btn {
  flex: 1;
}

.filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 13px;
  color: var(--text-3);
  font-size: 11px;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid rgba(242, 169, 59, 0.26);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-2);
  font-size: 10px;
}

.filter-chip button {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.75;
}

.filter-chip button:hover { opacity: 1; }
.filter-chip svg { width: 10px; height: 10px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar .result-count {
  color: var(--text-3);
  font-size: 11.5px;
}

.toolbar .result-count strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.toolbar label {
  color: var(--text-3);
  font-size: 10.5px;
}

.toolbar .select {
  width: auto;
  min-width: 116px;
  height: 32px;
  font-size: 11.5px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(242, 169, 59, 0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.1), rgba(242, 169, 59, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bulk-count {
  font-size: 12px;
  color: var(--amber-2);
}

.bulk-count strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.bulk-bar[hidden] { display: none !important; }

.bulk-spacer { flex: 1; }

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 8px;
  background: #10161e;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table th.num,
.data-table td.num { text-align: right; }

.data-table th.col-check,
.data-table td.col-check {
  width: 38px;
  padding-left: 14px;
  padding-right: 0;
}

.data-table tbody td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.12s var(--ease);
}

.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.024); }
.data-table tbody tr.is-selected { background: rgba(242, 169, 59, 0.06); }
.data-table tbody tr.is-selected:hover { background: rgba(242, 169, 59, 0.09); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.prod-cell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  max-width: 620px;
}

.prod-thumb {
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.prod-thumb img {
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  object-fit: cover;
}

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

.prod-title {
  display: -webkit-box;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  white-space: normal;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.prod-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 150px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-2);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-pill b {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.score-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.score-cell b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
}

.price-cell small {
  color: var(--text-4);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.checkbox {
  width: 14px;
  height: 14px;
  accent-color: var(--amber);
  cursor: pointer;
  vertical-align: -2px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 15, 20, 0.25);
}

.page-info {
  color: var(--text-3);
  font-size: 11px;
}

.page-info strong {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background 0.13s var(--ease), color 0.13s var(--ease), border-color 0.13s var(--ease);
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.page-btn.is-active {
  color: var(--amber-2);
  background: var(--amber-soft);
  border-color: rgba(242, 169, 59, 0.32);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-btn svg { width: 14px; height: 14px; }

/* ---------- 9. drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 6, 9, 0.64);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  width: min(720px, 95vw);
  background: linear-gradient(180deg, #10161e, #0c1117 65%);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.24s var(--ease);
}

.drawer.is-open { transform: translateX(0); }

.drawer-wide { width: min(780px, 96vw); }

.drawer .topic-drawer-hero {
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
}

.topic-hero-score strong.is-A { color: var(--teal); }
.topic-hero-score strong.is-B { color: var(--amber-2); }
.topic-hero-score strong.is-C { color: var(--blue); }
.topic-hero-score strong.is-D { color: var(--red); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.9);
  flex: none;
}

.drawer-head-main { min-width: 0; }

.drawer-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.drawer-title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.drawer-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11.5px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.94);
  flex: none;
}

.drawer-foot .foot-note {
  color: var(--text-4);
  font-size: 10.5px;
}

.drawer-foot .foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsec {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
}

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

.dsec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dsec-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), rgba(242, 169, 59, 0.2));
}

.dsec-title .ds-extra {
  margin-left: auto;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* product drawer hero */
.pd-hero {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.pd-image {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}

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

.pd-image .pd-channel {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(9, 13, 18, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.pd-titleblock { min-width: 0; }

.pd-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.pd-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
}

.pd-brand {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.pd-brand .mono {
  color: var(--text-4);
  font-size: 10px;
}

.pd-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pd-price small {
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
}

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

.metric {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
}

.metric .m-label {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.metric .m-value {
  margin-top: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.metric .m-value small {
  color: var(--text-3);
  font-size: 9.5px;
}

.tag-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.tag-group-label {
  padding-top: 2px;
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

/* score breakdown */
.score-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.score-row .sr-label {
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}

.score-row .sr-label small {
  display: block;
  color: var(--text-4);
  font-size: 9px;
}

.score-row .sr-track {
  height: 7px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.score-row .sr-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87614, var(--amber));
  transition: width 0.4s var(--ease);
}

.score-row .sr-track i.is-high { background: linear-gradient(90deg, #1f8f80, var(--teal)); }
.score-row .sr-track i.is-low { background: linear-gradient(90deg, #a8433f, var(--red)); }

.score-row .sr-val {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.score-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.score-total .st-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.score-total .st-label {
  color: var(--text-3);
  font-size: 11px;
}

.score-total .st-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.score-total .st-value small {
  color: var(--text-4);
  font-size: 10px;
  font-weight: 400;
}

.penalty-note {
  margin-top: 9px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 108, 103, 0.26);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: #ffb3af;
  font-size: 10.5px;
}

.penalty-note svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* annotation */
.annot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.annot-grid .field-full { grid-column: 1 / -1; }

.priority-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
}

.priority-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 16, 22, 0.72);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: all 0.13s var(--ease);
}

.priority-btn:hover { color: var(--text); border-color: var(--line-strong); }

.priority-btn.is-active {
  color: #241803;
  background: var(--amber);
  border-color: #d99426;
  font-weight: 700;
}

.tag-input-wrap {
  display: flex;
  gap: 6px;
}

.tag-input-wrap .input { flex: 1; }

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tag-editor:empty { display: none; }

.tag-editor .chip button {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-right: -2px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}

.tag-editor .chip button:hover { opacity: 1; }
.tag-editor .chip svg { width: 9px; height: 9px; }

.annot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.annot-hint {
  color: var(--text-4);
  font-size: 10.5px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 10.5px;
}

.save-state svg { width: 13px; height: 13px; }

/* same products */
.same-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.same-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
  cursor: pointer;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}

.same-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.same-item img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.same-item .same-main { min-width: 0; }
.same-item .same-title {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.same-item .same-sub {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.same-item .same-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  text-align: right;
}

/* 1688 cost */
.cost-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cost-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
  font-size: 11px;
}

.cost-cell .cc-label { color: var(--text-3); }
.cost-cell .cc-value {
  font-family: var(--font-mono);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cost-note {
  margin-top: 9px;
  color: var(--text-4);
  font-size: 10px;
  line-height: 1.55;
}

.cost-note b { color: var(--text-3); font-weight: 500; }

/* log */
.log-list {
  display: flex;
  flex-direction: column;
}

.log-item {
  position: relative;
  padding: 0 0 13px 18px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}

.log-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.log-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
}

.log-item:first-child::before { background: var(--amber); border-color: var(--amber); }

.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 11px;
}

.log-head .mono { color: var(--text-4); font-size: 9.5px; }

.log-body {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

/* topic drawer */
.topic-drawer .pd-hero {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.topic-hero-title { min-width: 0; }

.topic-hero-score {
  text-align: right;
  font-family: var(--font-mono);
}

.topic-hero-score strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  color: var(--amber-2);
  font-variant-numeric: tabular-nums;
}

.topic-hero-score span {
  color: var(--text-4);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.topic-hero-title .topic-en { margin-top: 4px; }

.persona-panel {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
}

.persona-who {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
}

.persona-meta {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 10.5px;
}

.persona-meta b { color: var(--text-2); font-weight: 500; }

.persona-motiv {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.scenario-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
}

.scenario-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.scenario-main { min-width: 0; }
.scenario-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.scenario-en {
  margin-top: 2px;
  color: var(--text-4);
  font-size: 10px;
}
.scenario-desc {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
}
.scenario-desc .trigger { color: var(--text-3); }
.scenario-desc .trigger::before { content: "触发："; color: var(--text-4); }

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pain-item {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(239, 108, 103, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.016);
}

.pain-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pain-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

.pain-tags { display: flex; gap: 4px; flex-wrap: wrap; flex: none; }

.pain-en { margin-top: 2px; color: var(--text-4); font-size: 10px; }

.pain-workaround {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 10.5px;
}

.pain-workaround::before { content: "现有替代："; color: var(--text-4); }

.pain-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.ev-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 10px;
  background: rgba(111, 169, 255, 0.05);
  transition: border-color 0.14s var(--ease), color 0.14s var(--ease);
}

.ev-link:hover {
  color: var(--amber-2);
  border-color: rgba(242, 169, 59, 0.4);
}

.ev-link svg { width: 10px; height: 10px; flex: none; }

.angle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.angle-item {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
}

.angle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.angle-title { font-size: 12px; color: var(--text); font-weight: 500; }
.angle-en { color: var(--text-4); font-size: 10px; margin-top: 1px; }
.angle-price {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  white-space: nowrap;
}
.angle-why { margin-top: 6px; color: var(--text-2); font-size: 10.5px; }
.angle-risk { margin-top: 3px; color: var(--text-3); font-size: 10px; }
.angle-risk::before { content: "风险："; color: var(--text-4); }

.kw-groups { display: flex; flex-direction: column; gap: 9px; }

.kw-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.kw-platform {
  padding-top: 3px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kw-chip {
  display: inline-flex;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(11, 16, 22, 0.55);
  color: var(--text-2);
  font-size: 10px;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.014);
}

.ev-source {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.ev-main { min-width: 0; }
.ev-title {
  font-size: 11px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-title:hover { color: var(--amber-2); }
.ev-meta {
  margin-top: 2px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-4);
  font-size: 9.5px;
}
.ev-meta span { display: inline-flex; align-items: center; gap: 4px; }

.ev-meta .mono { color: var(--text-3); }
.ev-summary {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-signal {
  align-self: start;
  font-size: 9px;
  white-space: nowrap;
}

/* ---------- 10. shortlist ---------- */
.shortlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-3);
  font-size: 11px;
}

.summary-chip strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.summary-chip.is-a strong { color: var(--teal); }
.summary-chip.is-b strong { color: var(--amber); }
.summary-chip.is-risk strong { color: var(--red); }

.shortlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sl-card {
  display: grid;
  grid-template-columns: 34px 150px minmax(0, 1fr) 168px;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(260px 140px at 100% 0%, rgba(242, 169, 59, 0.045), transparent 70%),
    linear-gradient(180deg, rgba(23, 31, 41, 0.9), rgba(14, 20, 27, 0.94));
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.sl-card:hover {
  border-color: rgba(242, 169, 59, 0.32);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sl-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.sl-card:nth-child(-n+3) .sl-rank { color: var(--amber); }

.sl-img {
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.sl-img img { width: 150px; height: 150px; min-width: 150px; min-height: 150px; object-fit: cover; }

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

.sl-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.sl-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sl-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 10.5px;
}

.sl-meta .mono { font-family: var(--font-mono); color: var(--text-2); font-size: 10.5px; }

.sl-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 14px;
  margin-top: 9px;
}

.sl-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--text-3);
}

.sl-bar .slb-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.sl-bar .slb-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87614, var(--amber));
}
.sl-bar .slb-track i.is-high { background: linear-gradient(90deg, #1f8f80, var(--teal)); }
.sl-bar .slb-track i.is-low { background: linear-gradient(90deg, #a8433f, var(--red)); }

.sl-bar .slb-val {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.sl-risk {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 10px;
}

.sl-risk .risk-label { color: var(--text-4); }

.sl-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
  min-height: 82px;
}

.sl-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sl-total {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sl-total small { color: var(--text-4); font-size: 10px; font-weight: 400; }

.sl-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--text-3);
  padding: 5px 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.sl-cost .mono { color: var(--teal); }

.sl-aside .btn { height: 30px; font-size: 11px; }

/* ---------- 11. method page ---------- */
.method-hero {
  position: relative;
  padding: 30px 30px 26px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 240px at 85% 0%, rgba(242, 169, 59, 0.11), transparent 65%),
    radial-gradient(400px 220px at 10% 100%, rgba(62, 201, 183, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(23, 31, 41, 0.92), rgba(13, 19, 26, 0.96));
  overflow: hidden;
}

.method-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 140, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 160, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(700px 300px at 80% 0%, #000, transparent 75%);
  pointer-events: none;
}

.method-hero > * { position: relative; z-index: 1; }

.method-hero h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: 880px;
}

.method-hero h1 em {
  font-style: normal;
  color: var(--amber-2);
}

.method-hero .mh-lead {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  max-width: 900px;
  line-height: 1.7;
}

.mh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 20, 0.5);
  color: var(--text-2);
  font-size: 11px;
}

.mh-chip strong {
  color: var(--amber-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.method-card {
  padding: 18px 20px;
}

.method-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.method-card h2 .mc-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(242, 169, 59, 0.3);
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
}

.method-lead {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.boundary-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.6;
}

.boundary-item .bi-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  border-radius: 4px;
  font-size: 10px;
}

.bi-yes { color: var(--teal); background: var(--teal-soft); }
.bi-no { color: var(--red); background: var(--red-soft); }

.chain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chain-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
}

.chain-item + .chain-item { border-top: 1px dashed var(--line-soft); }

.chain-level {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.chain-item:nth-child(6) .chain-level { color: var(--teal); border-color: rgba(62, 201, 183, 0.3); }

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

.chain-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.chain-title .chain-en {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chain-q {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.6;
}

.chain-out {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 10px;
}

.chain-out::before { content: "产出"; color: var(--amber); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }

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

.axis-item {
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.55;
}

.axis-item b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
}

.axis-item b .mono { color: var(--text-4); font-weight: 400; font-size: 9px; margin-right: 5px; }

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

.trigger-item {
  padding: 9px 11px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.55;
}

.trigger-item b { color: var(--amber-2); font-weight: 600; }

.check-list { display: flex; flex-direction: column; gap: 7px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.check-item .ci-mark {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(62, 201, 183, 0.4);
  color: var(--teal);
  font-size: 9px;
}

.range-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.range-table th {
  padding: 7px 10px;
  text-align: left;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.range-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  vertical-align: top;
}

.range-table tr:last-child td { border-bottom: 0; }
.range-table tr:hover td { background: rgba(255, 255, 255, 0.016); }

.range-table .rt-dim { color: var(--text); font-weight: 500; white-space: nowrap; }

.range-table .rt-target {
  font-family: var(--font-mono);
  color: var(--amber-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.weight-list { display: flex; flex-direction: column; gap: 9px; }

.weight-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.weight-row .w-label {
  color: var(--text);
  font-size: 11.5px;
}

.weight-row .w-label small {
  display: block;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
}

.weight-row .w-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.weight-row .w-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 169, 59, 0.4), var(--amber));
}

.weight-row:nth-child(6) .w-track i { background: linear-gradient(90deg, rgba(62, 201, 183, 0.4), var(--teal)); }

.weight-row .w-pct {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-2);
  font-variant-numeric: tabular-nums;
}

.formula-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 20, 0.55);
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.65;
}

.formula-note b { color: var(--amber-2); font-weight: 600; }
.formula-note .mono { color: var(--text); }

.grade-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.grade-step {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
  text-align: center;
}

.grade-step .gs-grade { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.grade-step .gs-range { margin-top: 2px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); }
.grade-step .gs-name { margin-top: 3px; color: var(--text-2); font-size: 10px; }
.grade-step.gs-a .gs-grade { color: var(--teal); }
.grade-step.gs-b .gs-grade { color: var(--amber); }
.grade-step.gs-c .gs-grade { color: var(--blue); }
.grade-step.gs-d .gs-grade { color: var(--red); }

.tag-system { display: flex; flex-direction: column; gap: 9px; }

.tag-system-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tag-system-row .ts-name {
  padding-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.clean-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  counter-reset: clean;
}

.clean-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.6;
  counter-increment: clean;
}

.clean-item::before {
  content: counter(clean, decimal-leading-zero);
  flex: none;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10px;
  padding-top: 2px;
}

.method-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 169, 59, 0.26);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.09), rgba(242, 169, 59, 0.03));
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.method-callout svg { width: 17px; height: 17px; flex: none; color: var(--amber); margin-top: 1px; }
.method-callout b { color: var(--amber-2); }

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

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.016);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.55;
}

.deliverable .dv-num {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* ---------- 12. toast / modal / states ---------- */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 9px;
  background: rgba(19, 26, 34, 0.97);
  box-shadow: var(--shadow-lg);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 0.24s var(--ease) both;
}

.toast.is-leaving { animation: toast-out 0.2s var(--ease) both; }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.toast-success { border-left-color: var(--teal); }
.toast-success svg { color: var(--teal); }
.toast-error { border-left-color: var(--red); }
.toast-error svg { color: var(--red); }
.toast-info { border-left-color: var(--blue); }
.toast-info svg { color: var(--blue); }
.toast strong { color: var(--text); font-weight: 600; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 9, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.modal-backdrop.is-open { opacity: 1; }

.modal-card {
  width: min(440px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151d26, #0e141b);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.99);
  transition: transform 0.18s var(--ease);
}

.modal-backdrop.is-open .modal-card { transform: none; }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 10px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(242, 169, 59, 0.3);
  background: var(--amber-soft);
  color: var(--amber);
}

.modal-icon svg { width: 18px; height: 18px; }
.modal-icon.is-danger { border-color: rgba(239, 108, 103, 0.35); background: var(--red-soft); color: var(--red); }
.modal-icon.is-teal { border-color: rgba(62, 201, 183, 0.32); background: var(--teal-soft); color: var(--teal); }

.modal-title { font-size: 15px; font-weight: 600; }
.modal-sub { margin-top: 3px; color: var(--text-3); font-size: 11px; }
.modal-body { color: var(--text-2); font-size: 12px; line-height: 1.65; }
.modal-body b { color: var(--text); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(19, 26, 34, 0.35);
}

.state-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-3);
}

.state-icon svg { width: 22px; height: 22px; }
.state-panel.is-error .state-icon { color: var(--red); border-color: rgba(239, 108, 103, 0.3); background: var(--red-soft); }
.state-title { font-size: 14px; font-weight: 600; color: var(--text); }
.state-desc { max-width: 460px; color: var(--text-3); font-size: 11.5px; line-height: 1.6; }
.state-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* skeleton */
.sk {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #18212b;
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  transform: translateX(-100%);
  animation: sk-sweep 1.4s var(--ease) infinite;
}

.sk-line { height: 10px; margin: 6px 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.h18 { height: 18px; }
.sk-line.h26 { height: 26px; }

.sk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sk-kpi {
  height: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151d26, #111820);
  padding: 16px;
}

.sk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151d26, #111820);
  padding: 18px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.sk-thumb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 6px;
}

.sk-topic-card {
  height: 228px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151d26, #111820);
  padding: 16px;
}

.sk-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* fade in view */
.view-enter {
  animation: view-in 0.26s var(--ease) both;
}

/* ---------- 13. animations ---------- */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes sk-sweep {
  100% { transform: translateX(100%); }
}

@keyframes boot-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 14. responsive ---------- */
@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-channels { grid-column: span 2; }
  .kpi-grid .kpi:last-child { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; }
  .kpi-grid .kpi:last-child .kpi-top { grid-column: 1; margin-bottom: 2px; }
  .kpi-grid .kpi:last-child .kpi-channels { grid-column: 1 / -1; flex-direction: row; gap: 14px; }
  .kpi-grid .kpi:last-child .kpi-channel-row { flex: 1; grid-template-columns: 50px 1fr; }
  .kpi-grid .kpi:last-child .kc-val { display: none; }
  .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .sk-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    padding: 10px 18px;
  }
  .brand { grid-row: 1; grid-column: 1; }
  .topbar-tools { grid-row: 1; grid-column: 2; }
  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .global-search { width: 230px; }
  .app-main { padding-top: 22px; }
  .topic-channel-row { grid-template-columns: minmax(110px, 150px) minmax(100px, 1fr) 82px; }
}

@media (max-width: 900px) {
  .app-main { padding: 20px 16px 60px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid .kpi:last-child {
    grid-column: span 2;
    display: block;
  }
  .kpi-grid .kpi:last-child .kpi-channels { flex-direction: column; }
  .kpi-grid .kpi:last-child .kpi-channel-row { grid-template-columns: 54px 1fr 34px; }
  .kpi-grid .kpi:last-child .kc-val { display: block; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-q { grid-column: span 2; }
  .status-panel { grid-template-columns: 130px 1fr; gap: 14px; }
  .donut-wrap { width: 130px; height: 130px; }
  .opp-row { grid-template-columns: 22px 42px minmax(0, 1fr) 74px 86px; }
  .opp-row .opp-hide-sm { display: none; }
  .opp-row .opp-arrow { display: none; }
  .drawer-wide { width: min(720px, 100vw); }
  .opp-thumb { width: 42px; height: 42px; }
  .method-grid { grid-template-columns: 1fr; }
  .sl-card { grid-template-columns: 28px 150px minmax(0, 1fr); }
  .sl-aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    min-height: 0;
  }
  .sl-aside .sl-score-line { gap: 8px; }
  .sl-cost { border: 0; padding: 0; flex-direction: column; align-items: flex-start; gap: 1px; }
  .sl-aside .btn { flex: none; }
  .sl-img { width: 150px; height: 150px; }
  .sl-total { font-size: 26px; }
  .sl-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deliverables { grid-template-columns: 1fr; }
  .tag-system-row { grid-template-columns: 70px minmax(0, 1fr); }
  .ds-hero,
  .pd-hero { grid-template-columns: 160px minmax(0, 1fr); }
  .drawer { width: min(680px, 100vw); }
}

@media (max-width: 720px) {
  :root { --topbar-h: 56px; }
  .topbar { gap: 8px 12px; padding: 9px 14px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .topbar-tools { gap: 8px; }
  .global-search { width: 178px; height: 34px; }
  .global-search kbd { display: none; }
  .badges .badge-kpi { display: none; }
  .badges .badge-demo,
  .badges .badge-live { padding: 0 8px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 23px; }
  .topic-grid { grid-template-columns: 1fr; }
  .sk-topic-grid { grid-template-columns: 1fr; }
  .topic-channel-row { grid-template-columns: minmax(100px, 140px) 1fr; gap: 8px 10px; }
  .topic-channel-row .tcr-counts { grid-column: 2; justify-content: flex-start; }
  .topic-channel-list { padding: 6px 14px 10px; }
  .card-head { padding: 13px 14px; }
  .card-body { padding: 14px; }
  .status-panel { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .status-legend { width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .field-q { grid-column: span 1; }
  .toolbar { align-items: flex-start; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .toolbar-right label { display: none; }
  .toolbar .select { flex: 1; }
  .page-head .head-actions { width: 100%; }
  .pagination { justify-content: center; }
  .page-info { width: 100%; text-align: center; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-image { max-width: 210px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-panel { grid-template-columns: 1fr; }
  .annot-grid { grid-template-columns: 1fr; }
  .tag-group { grid-template-columns: 64px minmax(0, 1fr); }
  .drawer-head { padding: 14px 16px 12px; }
  .dsec { padding: 14px 16px; }
  .drawer-foot { padding: 10px 16px; }
  .sl-card { grid-template-columns: 24px 150px minmax(0, 1fr); gap: 12px; }
  .sl-img { width: 150px; height: 150px; }
  .sl-bars { grid-template-columns: 1fr; }
  .sl-aside { flex-wrap: wrap; }
  .sl-aside .sl-score-line { width: 100%; justify-content: flex-start; gap: 12px; }
  .sl-aside .btn { width: 100%; }
  .axis-grid,
  .trigger-grid { grid-template-columns: 1fr; }
  .grade-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain-item { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .chain-level { width: 34px; height: 34px; font-size: 11px; }
  .method-hero { padding: 22px 18px; }
  .method-card { padding: 16px; }
  .app-footer { padding: 14px 16px 22px; }
  .footer-right { display: none; }
  .opp-row { grid-template-columns: 20px 40px minmax(0, 1fr) 84px; }
  .opp-row .opp-price { display: none; }
  .opp-row .opp-status { display: none; }
  .run-table th:nth-child(3),
  .run-table td:nth-child(3),
  .run-table th:nth-child(4),
  .run-table td:nth-child(4) { display: none; }
}

@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid .kpi:last-child { grid-column: span 1; }
  .kpi-grid .kpi:last-child .kpi-channels { flex-direction: column; }
  .kpi-grid .kpi:last-child .kpi-channel-row { grid-template-columns: 54px 1fr 34px; }
  .kpi-grid .kpi:last-child .kc-val { display: block; }
  .sk-kpi-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto 1fr; }
  .brand-text { display: none; }
  .topbar-tools { justify-self: end; }
  .global-search { width: 100%; }
  .topbar-tools { flex: 1; min-width: 0; }
  .main-nav { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 11.5px; }
  .summary-chip { height: 30px; font-size: 10.5px; }
  .shortlist-toolbar .head-actions { width: 100%; }
  .shortlist-toolbar .head-actions .btn { flex: 1; }
  .sl-card { grid-template-columns: 150px minmax(0, 1fr); padding: 12px; }
  .sl-rank { display: none; }
  .sl-img { width: 150px; height: 150px; }
  .opp-row { grid-template-columns: 18px minmax(0, 1fr) 64px; gap: 8px; padding: 9px 12px; }
  .opp-row .opp-thumb { display: none; }
  .drawer .topic-drawer-hero { grid-template-columns: 1fr; }
  .opp-row .opp-num { font-size: 10px; }
  .topic-channel-row { grid-template-columns: 1fr; }
  .topic-channel-row .tcr-counts { grid-column: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .badges .badge-kpi { display: none; }
  .pd-badges { gap: 5px; }
  .footer-left { font-size: 10.5px; }
}

/* ==========================================================================
   社区问题（原始帖 + 引出场景）
   ========================================================================== */
.community-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ckpi {
  background: var(--panel, #10151b);
  border: 1px solid var(--line, #232c36);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ckpi-label { font-size: 11px; color: var(--text-3, #8b98a8); letter-spacing: .04em; }
.ckpi-value { font-size: 20px; color: var(--text-1, #eef3f8); font-variant-numeric: tabular-nums; }
.ckpi-sub { font-size: 11px; color: var(--text-3, #8b98a8); }

.community-list { display: flex; flex-direction: column; gap: 12px; }
.community-card {
  background: var(--panel, #10151b);
  border: 1px solid var(--line, #232c36);
  border-left: 2px solid var(--amber, #f2a93b);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-card.is-compact { padding: 12px; border-left-color: var(--teal, #39c5b4); }
.cc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3, #8b98a8); }
.cc-source { font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line, #232c36); }
.cc-source.is-reddit { color: #ff8a5c; border-color: rgba(255,138,92,.4); }
.cc-source.is-quora { color: #b98cff; border-color: rgba(185,140,255,.4); }
.cc-source.is-web { color: #6fc4ff; border-color: rgba(111,196,255,.4); }
.cc-signal { color: var(--text-2, #b8c4d2); }
.cc-engagement { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.cc-title { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 650; }
.cc-title a { color: var(--text-1, #eef3f8); text-decoration: none; }
.cc-title a:hover { color: var(--amber, #f2a93b); text-decoration: underline; }
.cc-summary { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--text-2, #b8c4d2); }
.cc-excerpt { font-size: 12px; color: var(--text-3, #8b98a8); }
.cc-excerpt summary { cursor: pointer; color: var(--teal, #39c5b4); }
.cc-excerpt summary:hover { color: var(--amber, #f2a93b); }
.cc-excerpt p { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line, #232c36); line-height: 1.6; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tags .chip { cursor: default; }
.cc-tags button.chip { cursor: pointer; }
.cc-pains { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 11.5px; color: var(--text-3, #8b98a8); }
.cc-pains span:first-child { color: var(--text-2, #b8c4d2); margin-right: 2px; }
.cc-pains em { font-style: normal; color: var(--text-2, #b8c4d2); background: rgba(255,255,255,.03); border: 1px solid var(--line, #232c36); border-radius: 4px; padding: 1px 6px; }
.community-list.is-compact-list .cc-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
@media (max-width: 1100px) {
  .community-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .community-kpis { grid-template-columns: 1fr; }
  .cc-engagement { margin-left: 0; }
}

.batch-history { margin: 12px 0 0; padding-left: 18px; color: var(--text-3, #8b98a8); font-size: 12px; line-height: 1.9; }
.batch-history b { color: var(--text-1, #eef3f8); }

/* ---- TikTok competition ---- */
.tt-col { white-space: nowrap; }
.tt-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tt-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255,255,255,.018);
}
.tt-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); background: var(--bg-2); }
.tt-main { min-width: 0; }
.tt-title { font-size: 11.5px; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-sub { margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.tt-price { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }

/* ---- scenario radar ---- */
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scenario-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-head h3 { margin: 0; font-size: 15px; color: var(--text); }
.sc-sub { margin-top: 4px; color: var(--text-4); font-size: 10.5px; }
.sc-metric { text-align: right; flex: none; }
.sc-metric b { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--amber); }
.sc-metric span { font-size: 10px; color: var(--text-4); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-need { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.sc-need b { color: var(--text-2); }
.sc-products { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line-soft); padding-top: 8px; }
.sc-product { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; }
.scp-title { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scp-meta { flex: none; font-family: var(--font-mono); color: var(--text-4); font-size: 10px; }
.sc-evidence { display: flex; flex-direction: column; gap: 3px; border-top: 1px dashed var(--line-soft); padding-top: 7px; }
.sc-evidence a { font-size: 10.5px; color: var(--teal); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: 1fr; } }

/* ---- product filter extras ---- */
.check-row { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 36px; align-items: center; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); cursor: pointer; }
.check-inline .checkbox { width: 14px; height: 14px; }

/* ---- shortlist filters ---- */
.sl-filters { display: flex; align-items: center; justify-content: flex-end; gap: 6px 8px; flex-wrap: wrap; }
.sl-filters .select { width: auto; min-width: 104px; height: 32px; font-size: 11px; padding: 0 26px 0 9px; }
.sl-filters label { font-size: 10.5px; color: var(--text-4); white-space: nowrap; }
.sl-filters .check-inline { margin: 0 2px; white-space: nowrap; }
@media (max-width: 720px) {
  .sl-filters { justify-content: flex-start; }
  .sl-filters .select { flex: 0 1 auto; min-width: 0; }
}

/* ---- mining dashboard ---- */
.mining-section { margin-bottom: 14px; }
.mining-section .card-head h2 { font-size: 15px; margin: 0; }
.mining-section .card-sub { margin: 4px 0 0; color: var(--text-4); font-size: 10.5px; }
.tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tk-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: inherit; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.tk-card:hover { border-color: rgba(242,169,59,.35); transform: translateY(-1px); }
.tk-thumb { width: 84px; height: 84px; flex: none; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.tk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tk-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tk-title { font-size: 11px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-meta { font-size: 10px; color: var(--text-3); }
.tk-meta b { color: var(--amber); font-family: var(--font-mono); }
.cm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cm-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 11px; background: rgba(255,255,255,.015); }
.cm-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cm-head h4 { margin: 0; font-size: 11.5px; color: var(--text); }
.cm-head span { color: var(--text-4); font-size: 10px; }
.cm-theme { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 2px 6px; padding: 5px 0; border-top: 1px dashed var(--line-soft); font-size: 10.5px; color: var(--text-3); }
.cm-theme:first-child { border-top: 0; }
.cm-theme span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-theme b { text-align: right; color: var(--text-4); font-size: 10px; }
.cm-theme em { grid-column: 1 / -1; font-style: normal; font-size: 9.5px; color: var(--text-4); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.cm-samples { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; border-top: 1px dashed var(--line-soft); padding-top: 5px; }
.cm-samples a { font-size: 9.5px; color: var(--teal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-table td { font-size: 11px; }
.kw-table td.mono { color: var(--text-3); }
@media (max-width: 1200px) { .tk-grid, .cm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .tk-grid, .cm-grid { grid-template-columns: 1fr; } }
.prod-batch { font-size: 9px; color: var(--text-4); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 4px; }

/* ---- keyword bank ---- */
.keywords-card { padding: 14px 16px; }
.kw-search { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kw-search .input { flex: 1; }
.kw-scenes { display: flex; flex-direction: column; gap: 8px; }
.kw-scene { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(255,255,255,.012); }
.kw-scene > summary { cursor: pointer; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text); }
.kw-scene > summary em { font-style: normal; color: var(--text-4); font-size: 10px; }
.kw-cats { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 9px; }
.kw-cat { border-top: 1px dashed var(--line-soft); padding-top: 8px; }
.kw-cat-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.kw-cat-head b { font-family: var(--font-mono); color: var(--amber); font-size: 10px; }
.kw-cat-head span { color: var(--text-2); font-size: 11px; }
.kw-cat-head em { margin-left: auto; font-style: normal; color: var(--text-4); font-size: 9.5px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
