:root {
  --navy: #06284f;
  --navy-2: #0b3a67;
  --teal: #079493;
  --teal-soft: #e2f5f4;
  --amber: #f3a514;
  --blue: #2f7dd1;
  --orange: #e87920;
  --ink: #10213b;
  --muted: #66758a;
  --muted-2: #8a97a9;
  --line: #dfe5ec;
  --line-soft: #edf1f5;
  --surface: #fff;
  --canvas: #f5f7fa;
  --danger: #c94747;
  --success: #1b8f68;
  --sidebar-w: 216px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #05264b 0%, #0b416a 100%); }
.login-card { width: min(420px, 100%); padding: 42px; background: #fff; border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.login-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 10px; margin-bottom: 24px; }
.login-mark svg { width: 27px; height: 27px; }
.login-card h1 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
.login-card > p { margin: 8px 0 28px; color: var(--muted); }
.login-card label { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.login-card input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); }
.login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,148,147,.12); }
.login-card .button { width: 100%; margin-top: 22px; height: 44px; }
.form-error { min-height: 19px; margin-top: 10px; color: var(--danger); font-size: 12px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-w); display: flex; flex-direction: column; color: #fff; background: var(--navy); }
.brand { height: 82px; padding: 0 20px; display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #1ed1ca; border: 1px solid rgba(30,209,202,.6); border-radius: 7px; }
.brand-mark svg { width: 22px; height: 22px; }
.sidebar nav { padding: 18px 10px; display: grid; gap: 6px; }
.nav-item { position: relative; width: 100%; height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.72); font-size: 14px; cursor: pointer; text-align: left; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { color: #fff; background: rgba(7,148,147,.35); }
.nav-item.active::before { content: ""; position: absolute; left: -10px; width: 3px; height: 28px; border-radius: 0 3px 3px 0; background: #20d1c8; }
.sidebar-foot { margin-top: auto; min-height: 58px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.6); font-size: 12px; }
.sidebar-foot button { border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 5px 10px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.sidebar-foot button:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.sidebar-scrim { display: none; }

.main-content { min-width: 0; width: calc(100% - var(--sidebar-w)); margin-left: var(--sidebar-w); }
.topbar { min-height: 82px; padding: 14px 30px; display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.menu-button { display: none !important; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.button { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button-primary:hover { background: #067f7e; }
.button-secondary { color: #16616a; background: #fff; border-color: #8fc9c8; }
.button-secondary:hover { background: var(--teal-soft); }
.button:disabled { opacity: .55; cursor: not-allowed; }

.page-area { padding: 24px 30px 34px; }
.view { display: none; max-width: 1440px; margin: 0 auto; }
.view.active { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { min-height: 132px; padding: 21px 22px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.kpi span { color: var(--ink); font-size: 14px; font-weight: 600; }
.kpi strong { margin-top: 12px; font-size: 34px; line-height: 1; letter-spacing: -.035em; }
.kpi small { margin-top: auto; color: var(--muted-2); font-size: 11px; }

.dashboard-grid, .insight-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 16px; margin-bottom: 16px; }
.insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-heading { min-height: 52px; padding: 13px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; font-size: 15px; }
.panel-heading > span { margin-left: auto; color: var(--muted-2); font-size: 11px; }
.text-button { margin-left: auto; border: 0; background: transparent; color: var(--teal); font-size: 12px; cursor: pointer; }
.interaction-content { min-height: 240px; padding: 20px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 16px; }
.chart-donut { width: 170px; height: 170px; }
.chart-wide { position: relative; height: 240px; padding: 18px; }
.interaction-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.interaction-metrics > div { min-width: 0; display: grid; grid-template-columns: 10px 1fr auto; column-gap: 7px; align-items: center; }
.interaction-metrics span { color: var(--muted); font-size: 12px; }
.interaction-metrics strong { grid-column: 2; margin-top: 5px; font-size: 24px; }
.interaction-metrics small { grid-column: 3; grid-row: 2; color: var(--muted-2); font-size: 11px; }
.dot { width: 8px; height: 8px; display: block; border-radius: 50%; }
.dot-like { background: var(--teal); }.dot-comment { background: var(--blue); }.dot-share { background: var(--orange); }.dot-favorite { background: var(--amber); }

.table-panel { margin-bottom: 16px; }
.table-scroll { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 13px; background: #f7f9fb; color: #526178; font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 11px 13px; color: #26384f; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfd; }
.title-cell { min-width: 290px; max-width: 500px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.muted { color: var(--muted-2); }
.empty { padding: 42px 16px; text-align: center; color: var(--muted-2); }
.table-action { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-weight: 600; }
.data-boundary { min-height: 42px; display: flex; align-items: center; gap: 8px; color: #68778b; font-size: 12px; }
.data-boundary svg { width: 17px; height: 17px; flex: 0 0 auto; }
.data-boundary-top { min-height: auto; padding: 12px 14px; margin-bottom: 16px; background: #edf7f7; border: 1px solid #cce9e8; border-radius: 8px; color: #306b70; }

.toolbar { margin-bottom: 14px; padding: 12px; display: flex; align-items: end; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.toolbar input, .toolbar select, .toolbar > select { height: 36px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,148,147,.1); }
.search-field { position: relative; min-width: 250px; }
.search-field svg { position: absolute; left: 10px; bottom: 9px; width: 17px; height: 17px; color: var(--muted-2); }
.search-field input { padding-left: 34px; }
.pagination { min-height: 52px; padding: 10px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--line-soft); }
.pagination button { min-width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.pagination button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination button svg { width: 14px; height: 14px; }
.compact { max-height: 300px; }
.segment { margin-left: auto; display: flex; gap: 3px; padding: 3px; background: #f0f3f6; border-radius: 6px; }
.segment button { padding: 5px 9px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.segment button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(16,33,59,.12); }

.upload-zone { margin-bottom: 18px; padding: 48px 24px; text-align: center; background: #fff; border: 1px dashed #8fc9c8; border-radius: 9px; outline: none; }
.upload-zone.is-dragging { background: var(--teal-soft); border-color: var(--teal); }
.upload-zone > svg { width: 44px; height: 44px; color: var(--teal); }
.upload-zone h2 { margin: 14px 0 8px; font-size: 19px; }
.upload-zone p { max-width: 700px; margin: 6px auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.upload-zone .upload-note { color: var(--muted-2); font-size: 12px; }
.upload-zone .button { margin-top: 18px; }
.upload-status { min-height: 21px; margin-top: 13px; font-size: 12px; color: var(--muted); }
.status-good { color: var(--success); }.status-bad { color: var(--danger); }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-scrim { position: absolute; inset: 0; border: 0; background: rgba(5,24,47,.58); }
.modal-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; background: #fff; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.modal-close { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.detail-title { margin: 0 38px 8px 0; font-size: 20px; line-height: 1.55; }
.detail-meta { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.detail-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.detail-metrics div { padding: 12px; background: #f7f9fb; border: 1px solid var(--line-soft); border-radius: 7px; }
.detail-metrics span { display: block; color: var(--muted); font-size: 11px; }
.detail-metrics strong { display: block; margin-top: 5px; font-size: 18px; }
.detail-section h3 { margin: 20px 0 8px; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; max-width: min(460px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 7px; background: #10213b; color: #fff; font-size: 13px; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a93c3c; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .interaction-content { min-height: 220px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 238px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 16px 0 40px rgba(5,24,47,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: none; border: 0; background: rgba(5,24,47,.42); }
  .sidebar.open + .sidebar-scrim { display: block; }
  .main-content { width: 100%; margin-left: 0; }
  .topbar { min-height: 68px; padding: 10px 15px; color: #fff; background: var(--navy); border-bottom: 0; }
  .menu-button { display: grid !important; color: #fff; border-color: transparent; background: transparent; }
  .topbar h1 { font-size: 18px; color: #fff; }
  .topbar p { display: none; }
  .topbar-actions { color: rgba(255,255,255,.75); }
  .topbar-actions > span { display: none; }
  .topbar .button-secondary { width: 38px; min-height: 38px; padding: 0; color: #fff; border-color: transparent; background: transparent; font-size: 0; }
  .topbar .button-secondary svg { width: 21px; height: 21px; }
  .page-area { padding: 20px 14px 28px; }
  .view::before { content: "新学期开学啦 · 话题页可观测样本"; display: block; margin: 0 0 18px; color: var(--ink); font-size: 16px; }
  .kpi-grid { gap: 10px; }
  .kpi { min-height: 112px; padding: 16px; }
  .kpi strong { font-size: 28px; }
  .kpi small { display: none; }
  .interaction-content { padding: 14px; grid-template-columns: 1fr; }
  .chart-donut { display: none; }
  .interaction-metrics { grid-template-columns: repeat(4, minmax(80px, 1fr)); overflow-x: auto; gap: 0; }
  .interaction-metrics > div { min-width: 80px; display: flex; flex-direction: column; align-items: center; padding: 8px; border-right: 1px solid var(--line); }
  .interaction-metrics > div:last-child { border-right: 0; }
  .interaction-metrics .dot { margin-bottom: 8px; }
  .interaction-metrics strong { margin-top: 7px; font-size: 22px; }
  .interaction-metrics small { display: none; }
  .interaction-panel .interaction-content { min-height: 0; padding: 16px 8px; }
  .chart-wide { height: 225px; padding: 12px; }
  .insight-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar label, .toolbar select, .toolbar .button { flex: 1 1 145px; }
  .search-field { min-width: 100%; }
  .segment { width: 100%; margin: 8px 0 0; overflow-x: auto; }
  .panel-heading:has(.segment) { align-items: flex-start; flex-direction: column; }
  .title-cell { min-width: 230px; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  #viewDashboard .table-scroll { overflow: hidden; }
  #viewDashboard table, #viewDashboard tbody { display: block; }
  #viewDashboard thead { display: none; }
  #topSamplesBody tr { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 44px); padding: 12px 10px; border-bottom: 1px solid var(--line-soft); }
  #topSamplesBody tr:last-child { border-bottom: 0; }
  #topSamplesBody td { padding: 2px 4px; border: 0; }
  #topSamplesBody .title-cell { min-width: 0; max-width: none; grid-column: 1 / -1; margin-bottom: 5px; }
  #topSamplesBody td:nth-child(2) { grid-column: 1; color: var(--muted); }
  #topSamplesBody td:nth-child(3) { grid-column: 1; color: var(--muted-2); }
  #topSamplesBody td:nth-child(n+4) { grid-row: 2 / span 2; text-align: center; font-weight: 700; color: var(--ink); }
  #topSamplesBody td:nth-child(4) { grid-column: 2; }
  #topSamplesBody td:nth-child(5) { grid-column: 3; }
  #topSamplesBody td:nth-child(6) { grid-column: 4; }
  #topSamplesBody td:nth-child(7) { grid-column: 5; }
  #topSamplesBody td:nth-child(4)::before { content: "赞"; }
  #topSamplesBody td:nth-child(5)::before { content: "评"; }
  #topSamplesBody td:nth-child(6)::before { content: "转"; }
  #topSamplesBody td:nth-child(7)::before { content: "藏"; }
  #topSamplesBody td:nth-child(n+4)::before { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 10px; font-weight: 500; }
}

@media (max-width: 420px) {
  .topbar h1 { font-size: 17px; }
  .kpi { min-height: 102px; padding: 14px; }
  .kpi span { font-size: 12px; }
  .kpi strong { font-size: 25px; }
  .panel-heading { padding: 12px 14px; }
  th, td { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 2026-08 教育话题运营工作台 */
.brand { height: 64px; }
.sidebar nav { padding-top: 14px; gap: 3px; }
.nav-item { height: 43px; }
.topbar { min-height: 64px; padding: 10px 24px; }
.topbar h1 { font-size: 21px; }
.page-area { padding: 16px 24px 28px; }
.freshness-badge { padding: 5px 9px; border-radius: 5px; font-weight: 700; }
.freshness-badge.fresh { color: #147750; background: #e9f7ef; }
.freshness-badge.stale { color: #9b6512; background: #fff3d8; }
.freshness-alert { min-height: 40px; margin-bottom: 12px; padding: 9px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.freshness-alert strong { white-space: nowrap; }
.freshness-alert span { color: var(--muted); }
.freshness-alert.fresh { border-color: #bfe6d1; background: #f2fbf6; color: #147750; }
.freshness-alert.stale { border-color: #efd9a8; background: #fff9ec; color: #9b6512; }

.summary-strip { display: grid; grid-template-columns: minmax(510px, 1.6fr) minmax(220px, .55fr) minmax(240px, .65fr); margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.snapshot-panel { padding: 15px 18px 13px; }
.section-title { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.section-title strong { font-size: 14px; }
.section-title span { color: var(--muted-2); font-size: 11px; }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.snapshot-grid > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line-soft); }
.snapshot-grid > div:first-child { padding-left: 0; border-left: 0; }
.snapshot-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.snapshot-grid strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.summary-metric { padding: 15px 18px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.summary-metric > span { font-size: 13px; font-weight: 700; }
.summary-metric > strong { margin: 10px 0 6px; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.summary-metric small { margin-top: auto; color: var(--muted-2); font-size: 10px; }

.overview-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.overview-secondary { margin-top: 0; }
.overview-section { width: 100%; }
.overview-section .table-scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
.overview-section table { min-width: 920px; }
.overview-secondary .overview-section:last-child table { min-width: 680px; }
.panel-heading { min-height: 46px; padding: 10px 13px; }
.panel-heading h2 { font-size: 14px; }
.panel-heading > span { margin-left: 0; }
.panel-heading .text-button { margin-left: auto; }
.overview-title { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.overview-title span { color: var(--muted-2); font-size: 11px; }
.toolbar select { height: 30px; padding: 0 26px 0 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #33445b; font-size: 11px; }
table { font-size: 11px; }
th, td { padding: 8px 9px; }
.name-cell { min-width: 100px; font-weight: 700; color: var(--ink); }
.reason-cell { min-width: 135px; color: var(--muted); line-height: 1.45; }
.score { font-size: 13px; font-variant-numeric: tabular-nums; }
.score.high { color: #087f7d; }
.score.medium { color: #a86808; }
.score.low { color: #68778b; }
.unavailable { color: var(--muted-2); white-space: nowrap; }

.tag-columns, .tag-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag-group { min-width: 0; padding: 13px 14px; border-left: 1px solid var(--line-soft); }
.tag-group:first-child { border-left: 0; }
.tag-group h3 { margin: 0 0 10px; font-size: 12px; }
.tag-group > div { min-height: 25px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; font-size: 10px; }
.tag-group > div span { overflow: hidden; color: #40526b; text-overflow: ellipsis; white-space: nowrap; }
.tag-group > div strong { color: var(--ink); }
.tag-group > div small { min-width: 34px; color: var(--muted-2); text-align: right; }
.tag-group p { color: var(--muted-2); font-size: 11px; }
.tag-overview { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.keywords-cell { min-width: 220px; }
.keywords-cell span { display: inline-block; margin: 0 4px 3px 0; padding: 2px 5px; color: #236b70; background: #e8f5f5; border-radius: 4px; font-size: 10px; }
.purity { display: inline-grid; min-width: 28px; height: 23px; place-items: center; border-radius: 4px; font-weight: 700; }
.purity-high { color: #147750; background: #e9f7ef; }.purity-medium { color: #9b6512; background: #fff3d8; }.purity-low { color: #8a5555; background: #f7ecec; }

.overview-guidance { min-height: 62px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; border: 1px solid #cce9e8; border-radius: 8px; background: #edf7f7; }
.overview-guidance > div:first-child { display: grid; gap: 4px; }
.overview-guidance strong { color: #225e63; font-size: 12px; }
.overview-guidance span { color: #52757a; font-size: 11px; line-height: 1.5; }
.overview-guidance-actions { margin-left: auto; display: flex; gap: 8px; }
.overview-guidance-actions button { height: 32px; padding: 0 12px; border: 1px solid #8fc9c8; border-radius: 6px; background: #fff; color: var(--teal); font-size: 11px; font-weight: 700; cursor: pointer; }
.scope-notice { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #cce9e8; border-radius: 7px; background: #edf7f7; color: #306b70; font-size: 12px; line-height: 1.6; }
.scope-notice.warning { border-color: #efd9a8; background: #fff9ec; color: #8a5b16; }
.toolbar { padding: 9px; align-items: center; }
.toolbar-count { margin-left: auto; padding-right: 6px; color: var(--muted); font-size: 11px; }
.toolbar label select { margin-top: 4px; }
.status-warn { color: #a86808; }

.table-footer { min-height: 54px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); }
.table-footer > label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.table-footer select { height: 32px; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 11px; }
.table-footer .pagination { min-height: 0; padding: 0; border-top: 0; }
.analysis-row-button { padding: 3px 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }

.analysis-queue-panel { margin-bottom: 16px; }
.analysis-queue-toolbar { align-items: flex-end; }
.analysis-queue-toolbar select { height: 36px; }
.analysis-queue-toolbar .search-field, .recommendation-toolbar .search-field { flex: 1 1 220px; }
.analysis-queue-toolbar .toolbar-count { min-height: 36px; display: inline-flex; align-items: center; }
.scope-toggle { height: 36px; display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.scope-toggle button { min-width: 66px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: #fff; color: #526178; font-size: 11px; font-weight: 700; cursor: pointer; }
.scope-toggle button:first-child { border-left: 0; }
.scope-toggle button.active { color: #fff; background: var(--teal); }
.analysis-queue-table { min-width: 0; table-layout: fixed; font-size: 11px; }
.analysis-queue-table th:nth-child(1) { width: 4%; }
.analysis-queue-table th:nth-child(2) { width: 28%; }
.analysis-queue-table th:nth-child(3) { width: 8%; }
.analysis-queue-table th:nth-child(4) { width: 7%; }
.analysis-queue-table th:nth-child(5) { width: 12%; }
.analysis-queue-table th:nth-child(6) { width: 9%; }
.analysis-queue-table th:nth-child(7) { width: 22%; }
.analysis-queue-table th:nth-child(8) { width: 10%; }
.analysis-content-cell { display: grid; gap: 4px; }
.analysis-content-cell strong { color: var(--ink); line-height: 1.45; }
.analysis-content-cell span, .analysis-summary-cell { color: var(--muted); font-size: 10px; line-height: 1.5; }
.analysis-queue-action, .recommendation-actions { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.analysis-queue-action button, .recommendation-actions button { padding: 3px 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.analysis-workspace { display: block; margin-bottom: 16px; overflow: hidden; scroll-margin-top: 14px; }
.analysis-workspace-grid { display: grid; grid-template-columns: minmax(360px, .78fr) minmax(560px, 1.22fr); }
.analysis-workspace-heading { min-height: 60px; }
.analysis-workspace-heading > div h2 { margin: 0; font-size: 15px; }
.analysis-workspace-heading > div p { margin: 5px 0 0; color: var(--muted); font-size: 10px; font-weight: 400; }
.analysis-input { min-width: 0; border-right: 1px solid var(--line); }
.analysis-tabs { min-height: 52px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.analysis-tabs button { position: relative; border: 0; background: #fff; color: #3f5068; font-size: 13px; font-weight: 650; cursor: pointer; }
.analysis-tabs button::after { content: ""; position: absolute; inset: auto 20px -1px; height: 2px; background: transparent; }
.analysis-tabs button.active { color: var(--teal); }
.analysis-tabs button.active::after { background: var(--teal); }
.analysis-form-body { padding: 20px; }
.analysis-form-body > label, .analysis-pane label { display: grid; gap: 8px; margin-bottom: 15px; color: var(--ink); font-size: 12px; font-weight: 700; }
.analysis-form-body input, .analysis-form-body select, .analysis-form-body textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd7e1; border-radius: 6px; outline: none; font-size: 12px; }
.analysis-form-body input, .analysis-form-body select { height: 38px; padding: 0 10px; }
.analysis-form-body textarea { min-height: 194px; padding: 11px 12px; resize: vertical; line-height: 1.65; }
.analysis-form-body input:focus, .analysis-form-body select:focus, .analysis-form-body textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,148,147,.1); }
.analysis-pane > p { margin: -4px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.analysis-counter { margin: -10px 0 14px; color: var(--muted-2); font-size: 10px; text-align: right; }
.analysis-upload-zone { min-height: 194px; display: flex !important; align-items: center; justify-content: center; flex-direction: column; gap: 8px !important; padding: 20px; border: 1px dashed #8fc9c8; border-radius: 7px; background: #fbfefe; color: var(--teal) !important; cursor: pointer; text-align: center; }
.analysis-upload-zone svg { width: 34px; height: 34px; }
.analysis-upload-zone strong { color: var(--ink); font-size: 13px; }
.analysis-upload-zone span { color: var(--muted-2); font-size: 10px; font-weight: 400; }
.analysis-file-name { margin: -8px 0 15px; color: var(--muted); font-size: 11px; }
.analysis-guidance { display: flex; align-items: flex-start; gap: 7px; margin: 2px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-guidance svg { width: 15px; height: 15px; flex: 0 0 auto; }
.analysis-submit { float: right; min-width: 104px; }
.analysis-form-status { min-height: 36px; padding-top: 9px; color: var(--muted); font-size: 11px; }
.analysis-result { min-width: 0; background: #fff; }
.analysis-evidence { min-height: 52px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; }
.analysis-evidence.ready { color: #147750; }
.analysis-evidence.failed { color: var(--danger); }
.analysis-result-body { padding: 12px; }
.analysis-empty { min-height: 420px; display: grid; place-content: center; gap: 8px; padding: 24px; color: var(--muted-2); text-align: center; }
.analysis-empty strong { color: #485a70; font-size: 15px; }
.analysis-empty span { max-width: 420px; font-size: 11px; line-height: 1.65; }
.analysis-section { display: grid; grid-template-columns: 126px minmax(0, 1fr); min-height: 66px; border: 1px solid var(--line-soft); border-bottom: 0; }
.analysis-section:last-child { border-bottom: 1px solid var(--line-soft); }
.analysis-section h3 { margin: 0; padding: 15px; background: #f7f9fb; color: var(--ink); font-size: 12px; }
.analysis-section div { padding: 14px 16px; color: #40526b; font-size: 11px; line-height: 1.7; white-space: pre-line; }
.analysis-history { margin-bottom: 12px; }
.analysis-status { display: inline-grid; min-width: 54px; height: 24px; padding: 0 7px; place-items: center; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.analysis-status.completed { color: #147750; background: #e9f7ef; }
.analysis-status.processing { color: #2969a2; background: #e9f2fb; }
.analysis-status.failed { color: #a44747; background: #f8ecec; }
.analysis-status.pending { color: #526178; background: #eef2f6; }
.analysis-status.needs_material { color: #9b6512; background: #fff3d8; }
.analysis-hub-nav { min-height: 54px; margin-bottom: 16px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.analysis-hub-tabs { align-self: stretch; display: flex; align-items: stretch; gap: 28px; }
.analysis-hub-tabs button { position: relative; padding: 0 2px; border: 0; background: transparent; color: #53647a; font-size: 13px; font-weight: 700; cursor: pointer; }
.analysis-hub-tabs button::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: transparent; }
.analysis-hub-tabs button.active { color: var(--ink); }
.analysis-hub-tabs button.active::after { background: var(--teal); }
.analysis-hub-nav > .button { margin-left: auto; }
.analysis-insight-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.analysis-insight-summary > div { min-height: 92px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 5px 12px; border-left: 1px solid var(--line); }
.analysis-insight-summary > div:first-child { border-left: 0; }
.analysis-insight-summary span { color: var(--muted); font-size: 11px; font-weight: 650; }
.analysis-insight-summary strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ink); font-size: 27px; letter-spacing: -.03em; }
.analysis-insight-summary small { color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.analysis-pattern-panel { margin-bottom: 16px; }
.analysis-pattern-heading { min-height: 62px; }
.analysis-pattern-heading > div:first-child { display: grid; gap: 4px; }
.analysis-pattern-heading h2 { font-size: 16px; }
.analysis-pattern-heading > div:first-child span { color: var(--muted-2); font-size: 10px; }
.analysis-insight-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.analysis-insight-actions .text-button { margin-left: 0; }
.analysis-insight-status { padding: 4px 8px; border-radius: 4px; color: #66758a; background: #edf1f5; font-size: 9px; font-weight: 750; }
.analysis-insight-status.draft { color: #9b6512; background: #fff3d8; }
.analysis-insight-status.published { color: #147750; background: #e9f7ef; }
.analysis-insight-status.processing { color: #2969a2; background: #e9f2fb; }
.analysis-insight-overview { padding: 13px 18px; color: #4e6178; background: #f8fafc; border-bottom: 1px solid var(--line-soft); font-size: 10px; line-height: 1.65; }
.analysis-insight-overview strong { color: var(--ink); font-size: 11px; }
.analysis-insight-overview p { margin: 4px 0 0; }
.analysis-insight-overview ul { margin: 7px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.analysis-pattern-table { min-width: 1080px; table-layout: fixed; font-size: 10px; }
.analysis-pattern-table th:nth-child(1) { width: 22%; }.analysis-pattern-table th:nth-child(2) { width: 9%; }.analysis-pattern-table th:nth-child(3) { width: 25%; }.analysis-pattern-table th:nth-child(4) { width: 8%; }.analysis-pattern-table th:nth-child(5) { width: 23%; }.analysis-pattern-table th:nth-child(6) { width: 13%; }
.analysis-pattern-table td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.analysis-pattern-table td > small { display: block; margin-top: 5px; color: var(--muted-2); line-height: 1.45; }
.analysis-pattern-name { display: grid; gap: 4px; }
.analysis-pattern-name strong { color: var(--ink); font-size: 12px; }
.analysis-pattern-name span { color: #4d6179; line-height: 1.5; }
.analysis-pattern-name small { color: #9b6512; line-height: 1.45; }
.analysis-pattern-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.analysis-pattern-tags span, .analysis-detail-tags span { padding: 3px 6px; color: #16616a; background: #e8f5f4; border-radius: 4px; font-size: 9px; }
.analysis-pattern-representatives { display: grid; gap: 4px; }
.analysis-pattern-representatives button { padding: 0; overflow: hidden; border: 0; background: transparent; color: #35506e; font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.analysis-pattern-representatives button:hover { color: var(--teal); }
.analysis-pattern-bar { width: 100%; height: 3px; margin-top: 7px; overflow: hidden; background: #e7edf2; border-radius: 3px; }
.analysis-pattern-bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.analysis-insight-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 16px; }
.analysis-coverage-list { padding: 4px 18px 10px; }
.analysis-coverage-row { min-height: 62px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(120px, 1fr) 110px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); }
.analysis-coverage-row:last-child { border-bottom: 0; }
.analysis-coverage-row > div:first-child { display: grid; gap: 4px; }
.analysis-coverage-row strong { color: var(--ink); font-size: 11px; }
.analysis-coverage-row span { color: var(--muted-2); font-size: 9px; }
.analysis-coverage-meter { height: 5px; overflow: hidden; background: #edf1f4; border-radius: 4px; }
.analysis-coverage-meter i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.analysis-coverage-row button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 9px; font-weight: 700; text-align: right; cursor: pointer; }
.analysis-coverage-good { color: var(--success) !important; text-align: right; }
.analysis-coverage-empty { padding: 32px 16px; color: var(--muted-2); font-size: 11px; text-align: center; }
.analysis-recent-list { display: grid; }
.analysis-recent-row { min-height: 59px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; cursor: pointer; text-align: left; }
.analysis-recent-row:last-child { border-bottom: 0; }
.analysis-recent-row:hover { background: #fbfcfd; }
.analysis-recent-row > span { min-width: 0; display: grid; gap: 4px; }
.analysis-recent-row strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-recent-row small { color: var(--muted-2); font-size: 9px; }
.analysis-recent-row time { margin-left: auto; flex: 0 0 auto; color: var(--muted-2); font-size: 9px; }
.analysis-archive-table { min-width: 1050px; table-layout: fixed; }
.analysis-archive-table th:nth-child(1) { width: 28%; }.analysis-archive-table th:nth-child(2) { width: 9%; }.analysis-archive-table th:nth-child(3) { width: 12%; }.analysis-archive-table th:nth-child(4) { width: 8%; }.analysis-archive-table th:nth-child(5) { width: 27%; }.analysis-archive-table th:nth-child(6) { width: 10%; }.analysis-archive-table th:nth-child(7) { width: 6%; }
.analysis-detail-toolbar { min-height: 46px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.analysis-back-button { padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #35657a; font-size: 11px; font-weight: 700; cursor: pointer; }
.analysis-back-button svg { width: 16px; height: 16px; }
.analysis-detail-body { display: grid; gap: 14px; }
.analysis-detail-loading { min-height: 320px; display: grid; place-items: center; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.analysis-detail-title { min-height: 86px; padding: 18px 20px; display: flex; align-items: center; gap: 24px; }
.analysis-detail-title > div:first-child { min-width: 0; }
.analysis-detail-title h2 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.5; }
.analysis-detail-title p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.analysis-detail-title-meta { margin-left: auto; flex: 0 0 auto; display: grid; grid-template-columns: auto auto; gap: 5px 10px; align-items: center; }
.analysis-detail-title-meta span, .analysis-detail-title-meta strong { padding: 4px 7px; border-radius: 4px; background: #f0f4f7; font-size: 9px; }
.analysis-detail-title-meta small { grid-column: 1 / -1; color: var(--muted-2); font-size: 8px; text-align: right; }
.analysis-detail-boundary { padding: 10px 13px; color: #436d75; background: #edf8f7; border: 1px solid #cce9e8; border-radius: 7px; font-size: 9px; line-height: 1.5; }
.analysis-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 16px; }
.analysis-detail-main, .analysis-detail-side { display: grid; gap: 14px; }
.analysis-detail-context { margin: 0; padding: 4px 18px 12px; }
.analysis-detail-context > div { min-height: 49px; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line-soft); }
.analysis-detail-context > div:last-child { border-bottom: 0; }
.analysis-detail-context dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.analysis-detail-context dd { margin: 0; color: #354a64; font-size: 10px; line-height: 1.6; }
.analysis-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.analysis-detail-analysis { padding: 4px 18px 12px; }
.analysis-detail-analysis section { min-height: 64px; display: grid; grid-template-columns: 116px minmax(0, 1fr); border-bottom: 1px solid var(--line-soft); }
.analysis-detail-analysis section:last-child { border-bottom: 0; }
.analysis-detail-analysis h3 { margin: 0; padding: 15px 12px 15px 0; color: var(--ink); font-size: 10px; }
.analysis-detail-analysis section > div { padding: 13px 0 13px 16px; color: #40526b; border-left: 1px solid var(--line-soft); font-size: 10px; line-height: 1.7; white-space: pre-line; }
.analysis-detail-pattern { padding: 15px 16px; display: grid; gap: 7px; }
.analysis-detail-pattern strong { color: var(--ink); font-size: 12px; }
.analysis-detail-pattern p { margin: 0; color: #455a72; font-size: 10px; line-height: 1.6; }
.analysis-detail-pattern span { color: var(--teal); font-size: 9px; font-weight: 700; }
.analysis-detail-pattern small { color: var(--muted-2); font-size: 8px; }
.analysis-detail-related { display: grid; }
.analysis-detail-related-row { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); }
.analysis-detail-related-row:last-child { border-bottom: 0; }
.analysis-detail-related-row > div { min-width: 0; display: grid; gap: 4px; }
.analysis-detail-related-row strong { overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-detail-related-row span, .analysis-detail-related-row small { color: var(--muted-2); font-size: 8px; }
.analysis-detail-related-row button { margin-left: auto; flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 700; cursor: pointer; }
.analysis-detail-empty { padding: 26px 14px; color: var(--muted-2); font-size: 9px; text-align: center; }
.analysis-detail-history { padding: 8px 14px 12px; display: grid; }
.analysis-detail-history button { min-height: 44px; padding: 0; display: grid; grid-template-columns: 12px 1fr; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; }
.analysis-detail-history button:disabled { cursor: default; }
.analysis-detail-history i { width: 8px; height: 8px; border: 2px solid #9db0c4; border-radius: 50%; }
.analysis-detail-history button:first-child i { border-color: var(--teal); background: var(--teal); }
.analysis-detail-history span { display: grid; gap: 3px; }
.analysis-detail-history strong { color: var(--ink); font-size: 9px; }
.analysis-detail-history small { color: var(--muted-2); font-size: 8px; }
.confidence-high { color: #147750; }.confidence-medium { color: #a86808; }.confidence-low { color: var(--muted-2); }

.recommendation-summary-strip > div:nth-child(3) strong { color: var(--amber); }
.recommendation-summary-strip > div:nth-child(4) strong { color: var(--success); }
.recommendation-toolbar { align-items: end; }
.recommendation-toolbar .button { margin-left: auto; }
.recommendation-list-panel { margin-bottom: 14px; }
.recommendation-table { min-width: 0; table-layout: fixed; font-size: 11px; }
.recommendation-table th:nth-child(1) { width: 13%; }
.recommendation-table th:nth-child(2) { width: 14%; }
.recommendation-table th:nth-child(3) { width: 24%; }
.recommendation-table th:nth-child(4) { width: 7%; }
.recommendation-table th:nth-child(5) { width: 9%; }
.recommendation-table th:nth-child(6) { width: 9%; }
.recommendation-table th:nth-child(7) { width: 14%; }
.recommendation-table th:nth-child(8) { width: 10%; }
.recommendation-author { display: grid; gap: 5px; }
.recommendation-author strong { color: var(--ink); }
.recommendation-author span { width: fit-content; padding: 3px 6px; border-radius: 4px; color: #526178; background: #eef2f6; font-size: 9px; font-weight: 700; }
.recommendation-reason { color: #40526b; line-height: 1.5; }
.recommendation-reason small { display: block; margin-top: 4px; color: var(--muted-2); }
.recommendation-content { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; align-items: start; }
.recommendation-content b { color: var(--teal); font-size: 11px; }
.recommendation-content span { color: var(--ink); font-weight: 650; line-height: 1.5; }
.recommendation-foot-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.recommendation-observation ul { margin: 0; padding: 18px 22px 20px 38px; color: #40526b; font-size: 11px; line-height: 1.8; }
.recommendation-observation li + li { margin-top: 6px; }
.recommendation-method > div:last-child { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; color: #40526b; font-size: 11px; }
.recommendation-method p { margin: 0; }
.recommendation-method strong { color: var(--ink); }
.recommendation-method .method-note { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line-soft); color: var(--muted); }

.potential-table { min-width: 1030px; }
.potential-toolbar { align-items: flex-end; }
.potential-toolbar .search-field { flex: 1 1 220px; }
.potential-toolbar select { height: 36px; }
.potential-toolbar .toolbar-count { min-height: 36px; display: inline-flex; align-items: center; }
.potential-metrics { min-width: 72px; display: grid; gap: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; }
.potential-metrics strong { color: var(--teal); font-size: 11px; }
.creator-tier { display: inline-block; margin: 0 6px 4px 0; padding: 2px 5px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.creator-tier.tier-a { color: #147750; background: #e9f7ef; }
.creator-tier.tier-b { color: #16616a; background: var(--teal-soft); }
.creator-tier.tier-c { color: #9b6512; background: #fff3d8; }
.creator-tier.tier-d { color: #9b4d4d; background: #f7ecec; }
.potential-breakdown { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.role-prediction { min-width: 180px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 7px; }
.role-prediction p { grid-column: 1 / -1; max-width: 230px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; white-space: normal; }
.role-prediction small { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.role-badge { width: fit-content; padding: 3px 7px; border-radius: 4px; color: #56677c; background: #eef2f6; font-size: 10px; font-weight: 800; }
.role-badge.kot { color: #17657b; background: #e7f4f7; }
.role-badge.kof { color: #81591b; background: #fff3dc; }
.role-badge.koc { color: #356d48; background: #e9f6ee; }
.role-calibration { min-width: 198px; display: grid; grid-template-columns: minmax(126px, 1fr) auto; gap: 5px 6px; align-items: center; }
.role-calibration select { height: 30px; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; }
.role-calibration button { height: 30px; padding: 0 9px; border: 1px solid #8cc9c7; border-radius: 5px; color: var(--teal); background: #f4fbfb; font-size: 10px; font-weight: 700; cursor: pointer; }
.role-calibration button:disabled { opacity: .55; cursor: wait; }
.role-calibration small { grid-column: 1 / -1; color: var(--muted-2); font-size: 10px; }

.potential-outreach-action { min-width: 104px; display: grid; gap: 6px; }
.potential-outreach-action > span { color: #526178; font-size: 10px; white-space: nowrap; }
.potential-outreach-action button { width: fit-content; padding: 4px 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 750; cursor: pointer; }

.outreach-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.outreach-summary-strip > div { min-height: 92px; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; border-left: 1px solid var(--line); }
.outreach-summary-strip > div:first-child { border-left: 0; }
.outreach-summary-strip span { color: #526178; font-size: 12px; font-weight: 700; }
.outreach-summary-strip strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ink); font-size: 29px; line-height: 1; }
.outreach-summary-strip small { color: var(--muted-2); font-size: 10px; }
.outreach-summary-strip > div:nth-child(3) strong { color: var(--success); }
.outreach-summary-strip > div:nth-child(4) strong { color: var(--danger); }
.outreach-toolbar { align-items: end; }
.outreach-toolbar .search-field { flex: 1 1 280px; }
.outreach-toolbar .button { margin-left: auto; }
.outreach-flow-notice strong { color: var(--ink); }
.outreach-upstream-button { white-space: nowrap; }
.outreach-task-panel { margin-bottom: 14px; }
.outreach-table { min-width: 0; table-layout: fixed; }
.outreach-table th:nth-child(1) { width: 22%; }
.outreach-table th:nth-child(2) { width: 10%; }
.outreach-table th:nth-child(3) { width: 11%; }
.outreach-table th:nth-child(4) { width: 13%; }
.outreach-table th:nth-child(5) { width: 25%; }
.outreach-table th:nth-child(6) { width: 11%; }
.outreach-table th:nth-child(7) { width: 8%; }
.outreach-author-cell { display: grid; gap: 4px; }
.outreach-author-cell strong { color: var(--ink); }
.outreach-author-cell span, .outreach-result-cell > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.outreach-requirement { max-width: 310px; color: #40526b; line-height: 1.55; }
.outreach-priority { display: inline-grid; min-width: 32px; height: 24px; place-items: center; border-radius: 4px; font-size: 10px; font-weight: 800; }
.outreach-priority.p0 { color: #a44747; background: #f8ecec; }
.outreach-priority.p1 { color: #9b6512; background: #fff3d8; }
.outreach-priority.p2 { color: #356d48; background: #e9f6ee; }
.outreach-status { display: inline-grid; width: fit-content; min-width: 58px; min-height: 24px; padding: 3px 7px; place-items: center; border-radius: 4px; color: #526178; background: #eef2f6; font-size: 10px; font-weight: 750; white-space: nowrap; }
.outreach-status.pending, .outreach-status.locating { color: #2969a2; background: #e9f2fb; }
.outreach-status.contacted, .outreach-status.following { color: #9b6512; background: #fff3d8; }
.outreach-status.connected { color: #147750; background: #e9f7ef; }
.outreach-status.declined { color: #a44747; background: #f8ecec; }
.outreach-due-overdue { color: var(--danger); font-weight: 700; }
.outreach-due-overdue small { display: block; margin-top: 3px; font-size: 9px; font-weight: 600; }
.outreach-result-cell { display: grid; gap: 5px; }
.outreach-result-cell button { width: fit-content; padding: 3px 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 750; cursor: pointer; }
.outreach-unassigned { color: #9b6512; font-weight: 700; }
.outreach-workload-panel { margin-bottom: 12px; }
.workload-table th, .workload-table td { text-align: center; }
.workload-table th:first-child, .workload-table td:first-child { text-align: left; }
.outreach-effective { color: var(--success); }

.drawer-open { overflow: hidden; }
.outreach-drawer { position: fixed; inset: 0; z-index: 105; }
.outreach-drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(5,24,47,.38); cursor: default; }
.outreach-drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px rgba(5,24,47,.16); }
.outreach-drawer-heading { min-height: 78px; padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.outreach-drawer-heading h2 { margin: 0; font-size: 18px; }
.outreach-drawer-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.outreach-drawer-close { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.outreach-form { min-height: 0; padding: 18px 20px 96px; overflow-y: auto; }
.outreach-form > label, .outreach-form-row label { display: grid; gap: 7px; margin-bottom: 15px; color: var(--ink); font-size: 11px; font-weight: 700; }
.outreach-form label > span { color: var(--danger); }
.outreach-form input, .outreach-form select, .outreach-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd7e1; border-radius: 6px; outline: none; font-size: 12px; }
.outreach-form input, .outreach-form select { height: 38px; padding: 0 10px; }
.outreach-form textarea { min-height: 82px; padding: 10px; resize: vertical; line-height: 1.55; }
.outreach-form input:focus, .outreach-form select:focus, .outreach-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,148,147,.1); }
.outreach-form select:disabled { color: var(--muted); background: #f5f7fa; }
.outreach-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outreach-context-card { margin-bottom: 18px; padding: 14px; display: grid; gap: 11px; border: 1px solid #cce9e8; border-radius: 7px; background: #f4fbfb; }
.outreach-context-card > div { display: flex; align-items: center; gap: 8px; }
.outreach-context-card strong { color: var(--ink); font-size: 14px; }
.outreach-context-card > div span { padding: 3px 7px; border-radius: 4px; color: #16616a; background: #dff3f2; font-size: 10px; font-weight: 700; }
.outreach-context-card p { margin: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.outreach-context-card b { color: #35506e; font-size: 10px; }
.outreach-create-section { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.outreach-create-section strong { color: var(--ink); font-size: 12px; }
.outreach-create-section p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
#outreachProgressFields > label { display: grid; gap: 7px; margin-bottom: 15px; color: var(--ink); font-size: 11px; font-weight: 700; }
#outreachProgressFields label small { color: var(--muted-2); font-size: 9px; font-weight: 500; }
.outreach-form-actions { position: absolute; inset: auto 0 0; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 10px; background: #fff; border-top: 1px solid var(--line); }
.outreach-form-actions .button { min-width: 96px; }

.candidate-summary-strip { margin-bottom: 14px; }
.learning-loop-panel { margin-bottom: 14px; overflow: hidden; }
.learning-loop-panel .panel-heading { align-items: center; }
.learning-loop-panel .panel-heading > div { display: flex; align-items: baseline; gap: 10px; }
.learning-loop-panel .panel-heading h2 { margin: 0; }
.learning-loop-panel .panel-heading span { color: var(--muted-2); font-size: 10px; }
.learning-status { padding: 4px 8px; border-radius: 4px; color: #66758a !important; background: #edf1f5; font-size: 10px !important; font-weight: 700; }
.learning-status.ready { color: #9b6512 !important; background: #fff3d8; }
.learning-status.published { color: #147750 !important; background: #e9f7ef; }
.learning-status.processing { color: #2969a2 !important; background: #e9f2fb; }
.learning-status.unavailable { color: #9b4d4d !important; background: #f7ecec; }
.learning-loop-body { padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(360px, 1.35fr) auto; align-items: center; gap: 14px 22px; }
.learning-loop-intro { min-width: 0; }
.learning-loop-intro strong { color: var(--ink); font-size: 12px; }
.learning-loop-intro p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.learning-loop-stats { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); }
.learning-loop-stats > div { padding: 2px 13px; border-left: 1px solid var(--line-soft); }
.learning-loop-stats > div:first-child { border-left: 0; }
.learning-loop-stats span { display: block; color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.learning-loop-stats strong { display: block; margin-top: 5px; color: var(--ink); font-size: 17px; line-height: 1; }
.learning-loop-actions { min-width: 178px; display: grid; justify-items: end; gap: 7px; }
.learning-loop-actions span { color: var(--muted-2); font-size: 9px; text-align: right; }
.learning-loop-actions .button { white-space: nowrap; }
.learning-loop-actions .button:disabled, .learning-proposal-actions .button:disabled { opacity: .55; cursor: wait; }
.learning-proposal { grid-column: 1 / -1; padding: 13px; border: 1px solid #b9dedc; border-radius: 7px; background: #f5fbfb; }
.learning-proposal-heading { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr); gap: 18px; align-items: start; }
.learning-proposal-heading > div { display: grid; gap: 4px; }
.learning-proposal-heading strong { color: var(--ink); font-size: 12px; }
.learning-proposal-heading span { color: var(--muted-2); font-size: 9px; }
.learning-proposal-heading p { margin: 0; color: #35506e; font-size: 10px; line-height: 1.55; }
.learning-findings, .learning-rules { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.learning-findings span { padding: 4px 7px; border-radius: 4px; color: #35506e; background: #e8f3f5; font-size: 9px; }
.learning-rules span { padding: 5px 8px; border: 1px solid #c8e2e1; border-radius: 5px; color: #16616a; background: #fff; font-size: 9px; }
.learning-rules span strong { margin-right: 4px; color: var(--ink); }
.learning-conflicts { margin-top: 9px; color: #9b6512; font-size: 9px; line-height: 1.55; }
.learning-proposal-actions { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.candidate-toolbar { align-items: flex-end; }
.candidate-toolbar select { height: 36px; }
.candidate-toolbar .search-field { flex: 1 1 220px; }
.candidate-toolbar .toolbar-count { min-height: 36px; display: inline-flex; align-items: center; }
.candidate-table { min-width: 1080px; table-layout: fixed; font-size: 11px; }
.candidate-table th:nth-child(1) { width: 4%; }
.candidate-table th:nth-child(2) { width: 23%; }
.candidate-table th:nth-child(3) { width: 12%; }
.candidate-table th:nth-child(4) { width: 15%; }
.candidate-table th:nth-child(5) { width: 11%; }
.candidate-table th:nth-child(6) { width: 17%; }
.candidate-table th:nth-child(7) { width: 10%; }
.candidate-table th:nth-child(8) { width: 8%; }
.candidate-content, .candidate-system, .candidate-signal, .candidate-actions { display: grid; gap: 5px; }
.candidate-content strong { color: var(--ink); line-height: 1.5; }
.candidate-content span, .candidate-system small, .candidate-signal span, .candidate-signal small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.candidate-system .purity { width: fit-content; padding: 0 7px; }
.candidate-system em { color: var(--teal); font-size: 9px; font-style: normal; font-weight: 700; }
.candidate-signal strong { color: var(--teal); font-size: 20px; line-height: 1; }
.candidate-actions span { width: fit-content; padding: 3px 6px; border-radius: 4px; color: #16616a; background: var(--teal-soft); font-size: 9px; font-weight: 700; }
.review-decision { display: inline-flex; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.review-decision.pending { color: #66758a; background: #edf1f5; }
.review-decision.selected { color: #147750; background: #e9f7ef; }
.review-decision.observe { color: #9b6512; background: #fff3d8; }
.review-decision.excluded { color: #9b4d4d; background: #f7ecec; }
.content-review-context { margin-bottom: 18px; padding: 13px; display: grid; gap: 5px; border: 1px solid #cce9e8; border-radius: 7px; background: #f4fbfb; }
.content-review-context strong { color: var(--ink); font-size: 13px; line-height: 1.5; }
.content-review-context span { color: #35506e; font-size: 11px; font-weight: 700; }
.content-review-context small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.review-actions { margin: 0 0 15px; padding: 11px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 6px; }
.review-actions legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.review-actions label { display: flex; align-items: center; gap: 7px; color: #35506e; font-size: 11px; }
.review-actions input { width: 16px; height: 16px; accent-color: var(--teal); }
.analysis-content-cell small { color: #547188; font-size: 9px; line-height: 1.45; }

@media (max-width: 1260px) {
  .learning-loop-body { grid-template-columns: 1fr 1fr; }
  .learning-loop-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .learning-loop-actions span { text-align: left; }
  .summary-strip { grid-template-columns: 1fr 220px; }
  .summary-metric:last-child { display: none; }
  .tag-columns, .tag-overview { grid-template-columns: repeat(2, 1fr); }
  .tag-group:nth-child(3) { border-left: 0; }
  .tag-group:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .analysis-workspace-grid { grid-template-columns: minmax(330px, .9fr) minmax(470px, 1.1fr); }
  .analysis-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .analysis-pattern-table { min-width: 980px; }
  .analysis-queue-table, .recommendation-table { min-width: 0; table-layout: fixed; font-size: 10px; }
  .analysis-queue-table th, .analysis-queue-table td, .recommendation-table th, .recommendation-table td { padding-left: 8px; padding-right: 8px; }
  .analysis-queue-table th:nth-child(1) { width: 4%; }
  .analysis-queue-table th:nth-child(2) { width: 28%; min-width: 0; }
  .analysis-queue-table th:nth-child(3) { width: 8%; }
  .analysis-queue-table th:nth-child(4) { width: 7%; }
  .analysis-queue-table th:nth-child(5) { width: 12%; }
  .analysis-queue-table th:nth-child(6) { width: 9%; }
  .analysis-queue-table th:nth-child(7) { width: 22%; min-width: 0; }
  .analysis-queue-table th:nth-child(8) { width: 10%; }
  .recommendation-table th:nth-child(1) { width: 13%; min-width: 0; }
  .recommendation-table th:nth-child(2) { width: 14%; min-width: 0; }
  .recommendation-table th:nth-child(3) { width: 24%; min-width: 0; }
  .recommendation-table th:nth-child(4) { width: 7%; }
  .recommendation-table th:nth-child(5) { width: 9%; }
  .recommendation-table th:nth-child(6) { width: 9%; }
  .recommendation-table th:nth-child(7) { width: 14%; min-width: 0; }
  .recommendation-table th:nth-child(8) { width: 10%; }
  .recommendation-actions { display: grid; gap: 3px; }
}

@media (max-width: 900px) {
  .brand { height: 64px; }
  .topbar { min-height: 62px; padding: 8px 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions #lastCollected { display: none; }
  .freshness-badge { font-size: 10px; }
  .page-area { padding: 12px; }
  .view::before { display: none; }
  .freshness-alert { align-items: flex-start; flex-direction: column; gap: 3px; }
  .candidate-toolbar { align-items: stretch; }
  .learning-loop-panel .panel-heading > div { display: grid; gap: 3px; }
  .learning-loop-body { grid-template-columns: 1fr; padding: 12px; gap: 13px; }
  .learning-loop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 0; }
  .learning-loop-stats > div:nth-child(3) { border-left: 0; }
  .learning-loop-actions { grid-column: 1; grid-template-columns: 1fr; justify-items: stretch; }
  .learning-loop-actions .button { width: 100%; }
  .learning-proposal { grid-column: 1; }
  .learning-proposal-heading { grid-template-columns: 1fr; gap: 8px; }
  .learning-proposal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .candidate-toolbar .toolbar-count { min-height: 0; }
  .analysis-queue-toolbar { align-items: stretch; }
  .analysis-queue-toolbar .toolbar-count { min-height: 0; }
  .analysis-hub-nav { min-height: 0; padding-bottom: 10px; align-items: stretch; flex-direction: column; gap: 10px; }
  .analysis-hub-tabs { min-height: 42px; gap: 24px; overflow-x: auto; }
  .analysis-hub-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .analysis-hub-nav > .button { width: 100%; margin-left: 0; }
  .analysis-insight-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-insight-summary > div { min-height: 84px; padding: 14px; }
  .analysis-insight-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .analysis-insight-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .analysis-insight-summary strong { font-size: 24px; }
  .analysis-pattern-heading { align-items: flex-start; flex-direction: column; }
  .analysis-insight-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .analysis-insight-actions .button { flex: 1 1 130px; }
  .analysis-insight-actions .analysis-insight-status { margin-right: auto; }
  .analysis-pattern-panel .table-scroll, .analysis-archive-panel .table-scroll { overflow: visible; }
  .analysis-pattern-table, .analysis-archive-table { min-width: 0; display: block; }
  .analysis-pattern-table thead, .analysis-archive-table thead { display: none; }
  .analysis-pattern-table tbody, .analysis-archive-table tbody { display: grid; gap: 10px; padding: 10px; }
  .analysis-pattern-table tr, .analysis-archive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; }
  .analysis-pattern-table td, .analysis-archive-table td { display: block; padding: 9px 11px; border-bottom: 0; }
  .analysis-pattern-table td:nth-child(1), .analysis-pattern-table td:nth-child(3), .analysis-pattern-table td:nth-child(5), .analysis-pattern-table td:nth-child(6),
  .analysis-archive-table td:nth-child(1), .analysis-archive-table td:nth-child(5), .analysis-archive-table td:nth-child(7) { grid-column: 1 / -1; }
  .analysis-pattern-table td:nth-child(n+2), .analysis-archive-table td:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
  .analysis-insight-lower { grid-template-columns: 1fr; }
  .analysis-coverage-row { grid-template-columns: 1fr 86px; gap: 7px 12px; padding: 10px 0; }
  .analysis-coverage-row > div:first-child { grid-column: 1; }
  .analysis-coverage-meter { grid-column: 1 / -1; grid-row: 2; }
  .analysis-coverage-row button, .analysis-coverage-good { grid-column: 2; grid-row: 1; }
  .analysis-detail-toolbar { gap: 10px; }
  .analysis-detail-title { padding: 15px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .analysis-detail-title h2 { font-size: 16px; }
  .analysis-detail-title-meta { width: 100%; margin-left: 0; grid-template-columns: auto auto 1fr; justify-content: start; }
  .analysis-detail-title-meta small { grid-column: 3; align-self: center; text-align: right; }
  .analysis-detail-layout { grid-template-columns: 1fr; }
  .analysis-detail-context > div, .analysis-detail-analysis section { grid-template-columns: 1fr; padding: 9px 0; }
  .analysis-detail-context dt, .analysis-detail-analysis h3 { padding: 0 0 6px; }
  .analysis-detail-analysis section > div { padding: 0; border-left: 0; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .snapshot-panel { grid-column: 1 / -1; }
  .snapshot-grid { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .snapshot-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .summary-metric { border-top: 1px solid var(--line); }
  .summary-metric:last-child { display: flex; }
  .summary-metric > strong { font-size: 24px; }
  .overview-flow { gap: 12px; margin-bottom: 12px; }
  .overview-section .table-scroll { overflow-x: hidden; }
  .overview-section table { min-width: 0; table-layout: fixed; }
  .overview-selected-table th:nth-child(n+4), .overview-selected-table td:nth-child(n+4) { display: none; }
  .overview-selected-table th:nth-child(1) { width: 28px; }
  .overview-selected-table th:nth-child(3) { width: 92px; }
  .overview-selected-table .candidate-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .overview-potential-table th:nth-child(4), .overview-potential-table td:nth-child(4) { display: none; }
  .overview-potential-table th:nth-child(2), .overview-potential-table th:nth-child(3) { width: 72px; }
  .overview-secondary .overview-section:last-child .overview-potential-table { min-width: 0; }
  .table-footer { align-items: flex-start; flex-direction: column; }
  .table-footer .pagination { width: 100%; justify-content: space-between; }
  .analysis-workspace-grid { grid-template-columns: 1fr; }
  .analysis-input { border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-tabs { min-height: 48px; }
  .analysis-form-body { padding: 15px; }
  .analysis-form-body textarea, .analysis-upload-zone { min-height: 170px; }
  .analysis-empty { min-height: 300px; }
  .analysis-section { grid-template-columns: 1fr; }
  .analysis-section h3 { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); }
  .analysis-section div { padding: 12px 13px; }
  .analysis-history table { min-width: 760px; }
  #viewAnalysis .analysis-queue-panel .table-scroll, #viewRecommendations .recommendation-list-panel .table-scroll { overflow: visible; }
  .analysis-queue-table, .recommendation-table { min-width: 0; display: block; }
  .analysis-queue-table thead, .recommendation-table thead { display: none; }
  .analysis-queue-table tbody, .recommendation-table tbody { display: grid; gap: 10px; padding: 10px; }
  .analysis-queue-table tr, .recommendation-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; }
  .analysis-queue-table td, .recommendation-table td { display: block; padding: 9px 11px; border-bottom: 0; }
  .analysis-queue-table td:nth-child(2), .analysis-queue-table td:nth-child(7), .analysis-queue-table td:nth-child(8),
  .recommendation-table td:nth-child(1), .recommendation-table td:nth-child(2), .recommendation-table td:nth-child(3), .recommendation-table td:nth-child(7), .recommendation-table td:nth-child(8) { grid-column: 1 / -1; }
  .analysis-queue-table td:nth-child(n+2), .recommendation-table td:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
  .analysis-queue-table td:nth-child(1) { display: none; }
  .recommendation-foot-grid { grid-template-columns: 1fr; }
  .recommendation-method > div:last-child { grid-template-columns: 1fr; }
  .recommendation-method .method-note { grid-column: 1; }
  .recommendation-toolbar .button { width: 100%; margin-left: 0; }
  #viewPotential .table-scroll { overflow-x: hidden; }
  .potential-toolbar { align-items: stretch; }
  .potential-toolbar .toolbar-count { width: 100%; }
  .potential-table { min-width: 0; display: block; }
  .potential-table thead { display: none; }
  .potential-table tbody { display: grid; gap: 10px; padding: 10px; }
  .potential-table tr { display: grid; grid-template-columns: 30px minmax(0, 1fr); border: 1px solid var(--line-soft); border-radius: 7px; background: #fff; overflow: hidden; }
  .potential-table td { display: block; padding: 9px 11px; border-bottom: 0; }
  .potential-table td:nth-child(1) { grid-column: 1; grid-row: 1; color: var(--muted-2); background: #f8fafb; text-align: center; }
  .potential-table td:nth-child(2) { grid-column: 2; grid-row: 1; background: #f8fafb; }
  .potential-table td:nth-child(n+3):nth-child(-n+7) { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .potential-table td:nth-child(8) { display: none; }
  .potential-table td:nth-child(3)::before,
  .potential-table td:nth-child(4)::before,
  .potential-table td:nth-child(5)::before,
  .potential-table td:nth-child(6)::before,
  .potential-table td:nth-child(7)::before { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 9px; font-weight: 700; }
  .potential-table td:nth-child(3)::before { content: "内容侧类型"; }
  .potential-table td:nth-child(4)::before { content: "样本表现"; }
  .potential-table td:nth-child(5)::before { content: "观察理由"; }
  .potential-table td:nth-child(6)::before { content: "系统预测"; }
  .potential-table td:nth-child(7)::before { content: "人工校准"; }
  .potential-metrics { grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px; }
  .role-prediction, .role-calibration { width: 100%; min-width: 0; }
  .potential-table td:nth-child(8) { display: block; grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .potential-table td:nth-child(8)::before { content: "建联安排"; display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 9px; font-weight: 700; }
  .potential-outreach-action { grid-template-columns: 1fr auto; align-items: center; }
  .outreach-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .outreach-summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .outreach-summary-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .outreach-toolbar .button { width: 100%; margin-left: 0; }
  #viewOutreach .outreach-task-panel .table-scroll { overflow: visible; }
  .outreach-table { min-width: 0; display: block; }
  .outreach-table thead { display: none; }
  .outreach-table tbody { display: grid; gap: 10px; padding: 10px; }
  .outreach-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; }
  .outreach-table td { display: block; padding: 9px 11px; border-bottom: 0; }
  .outreach-table td:nth-child(1), .outreach-table td:nth-child(5), .outreach-table td:nth-child(7) { grid-column: 1 / -1; }
  .outreach-table td:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
  .outreach-table td:nth-child(2)::before, .outreach-table td:nth-child(3)::before, .outreach-table td:nth-child(4)::before, .outreach-table td:nth-child(5)::before, .outreach-table td:nth-child(6)::before, .outreach-table td:nth-child(7)::before { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 9px; font-weight: 700; }
  .outreach-table td:nth-child(2)::before { content: "达人类型"; }
  .outreach-table td:nth-child(3)::before { content: "负责人"; }
  .outreach-table td:nth-child(4)::before { content: "当前进度"; }
  .outreach-table td:nth-child(5)::before { content: "最新记录"; }
  .outreach-table td:nth-child(6)::before { content: "下次跟进"; }
  .outreach-table td:nth-child(7)::before { content: "操作"; }
  .outreach-drawer-panel { width: 100%; }
  .outreach-form-row { grid-template-columns: 1fr; gap: 0; }
  .tag-columns, .tag-overview { grid-template-columns: repeat(2, 1fr); }
  .tag-group:nth-child(odd) { border-left: 0; }
  .tag-group:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .overview-guidance { align-items: stretch; flex-direction: column; }
  .overview-guidance-actions { width: 100%; margin-left: 0; }
  .overview-guidance-actions button { flex: 1; }
  .toolbar-count { width: 100%; margin-left: 0; }
  #viewRanking .candidate-panel .table-scroll { overflow: visible; }
  .candidate-table { min-width: 0; display: block; }
  .candidate-table thead { display: none; }
  .candidate-table tbody { display: grid; gap: 10px; padding: 10px; }
  .candidate-table tr { display: grid; grid-template-columns: 34px repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 7px; overflow: hidden; }
  .candidate-table td { display: block; padding: 9px 11px; border-bottom: 0; }
  .candidate-table td:nth-child(1) { grid-column: 1; background: #f8fafb; color: var(--muted-2); text-align: center; }
  .candidate-table td:nth-child(2) { grid-column: 2 / -1; background: #f8fafb; }
  .candidate-table td:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .candidate-table td:nth-child(3), .candidate-table td:nth-child(4), .candidate-table td:nth-child(5), .candidate-table td:nth-child(7) { grid-column: span 1; }
  .candidate-table td:nth-child(6), .candidate-table td:nth-child(8) { grid-column: 1 / -1; }
  .review-actions { grid-template-columns: 1fr; }
}
