/* ============================================================
   F-017 Product Decoration Phase 1 — Global Design System
   Style: Apple-clean + YouTube red accent + dark pro console.
   Purple is forbidden. Red is used sparingly (primary buttons,
   active nav, key CTA, risk warnings, core number emphasis).
   ============================================================ */
:root {
  /* Backgrounds */
  --uc-bg: #0B0D12;
  --uc-bg-2: #11131A;
  --uc-surface: #151925;
  --uc-card: #1A1F2B;
  --uc-card-soft: #202635;
  --uc-border: #272C39;
  --uc-border-2: #303646;

  /* Text */
  --uc-text: #F5F7FA;
  --uc-text-2: #B8C0CC;
  --uc-text-3: #8A93A3;

  /* Accent (YouTube red — sparingly) */
  --uc-red: #FF0033;
  --uc-red-hover: #E6002D;
  --uc-red-soft: rgba(255, 0, 51, 0.10);
  --uc-red-muted: #F0556E; /* softened red for eyebrow/labels — less piercing than pure #FF0033 */

  /* Lighter hover shadow (Task 5: shadow 不要太重) */
  --uc-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);

  /* Status */
  --uc-success: #22C55E;
  --uc-warning: #F59E0B;
  --uc-info: #38BDF8;

  /* Shape */
  --uc-radius: 16px;
  --uc-radius-sm: 10px;
  --uc-shadow: 0 18px 60px rgba(0,0,0,.28);
}

/* Urban Chaos OS V1 - data-backend + ops-console aesthetic */
* { box-sizing: border-box; }

/* Global inline SVG icon baseline (F-017.1). Ensures icons render cleanly
   both inside flex containers and inline within flowing text. */
.uc-icon { vertical-align: middle; flex-shrink: 0; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--uc-bg);
  color: var(--uc-text);
  font-size: 14px;
  line-height: 1.5;
}

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--uc-bg-2);
  border-right: 1px solid var(--uc-border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand {
  font-weight: 700;
  padding: 0 20px 16px 20px;
  font-size: 16px;
  border-bottom: 1px solid var(--uc-border);
  margin-bottom: 12px;
  color: var(--uc-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand .brand-mark { width: 20px; height: 20px; flex-shrink: 0; }
.brand-name {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}
.brand-lang-toggle {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--uc-border-2);
  background: transparent;
  color: var(--uc-text-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.lang-pill:hover {
  background: var(--uc-card);
  color: var(--uc-text);
  border-color: var(--uc-text-3);
}
.lang-pill .uc-icon { opacity: 0.8; }
.lang-pill:hover .uc-icon { opacity: 1; }
.lang-pill-label { letter-spacing: 0.02em; }

nav { flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  color: var(--uc-text-2);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 13px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nav-item .uc-icon {
  flex-shrink: 0;
  opacity: 0.78;
  transition: opacity 120ms ease;
}

.nav-item:hover { background: var(--uc-card); color: var(--uc-text); }
.nav-item:hover .uc-icon { opacity: 1; }
.nav-item.active { background: var(--uc-card); color: var(--uc-text); border-left-color: var(--uc-red); }
.nav-item.active .uc-icon { opacity: 1; color: var(--uc-red); }
.nav-item.disabled { color: #5b626c; pointer-events: none; cursor: default; }

/* F-015-2.5: section labels inside the sidebar. */
.nav-section-label {
  padding: 14px 20px 4px 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6b7280;
  border-top: 1px solid #232830;
  margin-top: 8px;
}
.nav-section-label:first-child {
  border-top: none;
  margin-top: 4px;
  padding-top: 4px;
}

/* F-015-2.5: 2-column workbench row (Benchmark Discovery). */
.bd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .bd-grid { grid-template-columns: 1fr; }
}

/* F-015-2.5: workflow step bar. */
.bd-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px 0;
  flex-wrap: wrap;
}
.bd-flow-step {
  padding: 6px 12px;
  border: 1px solid #2c333d;
  border-radius: 999px;
  background: #14171d;
  color: #8a93a0;
  font-size: 12px;
}
.bd-flow-step.active {
  background: var(--uc-red-soft);
  border-color: var(--uc-red);
  color: var(--uc-text);
}
.bd-flow-arrow { color: #5b626c; font-size: 14px; }

/* F-015-2.6: Labs (collapsed by default). */
.sidebar-labs {
  margin-top: 12px;
  border-top: 1px solid #232830;
  padding-top: 6px;
}
.sidebar-labs > details > summary {
  padding: 10px 20px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.sidebar-labs > details > summary::-webkit-details-marker {
  display: none;
}
.sidebar-labs > details > summary::before {
  content: "▶";
  display: inline-block;
  width: 14px;
  color: #6b7280;
  font-size: 10px;
  margin-right: 6px;
  transition: transform 120ms ease;
}
.sidebar-labs > details[open] > summary::before {
  transform: rotate(90deg);
}
.sidebar-labs-summary-meta {
  display: block;
  font-size: 10px;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 2px;
  margin-left: 20px;
}
.sidebar-labs-body {
  display: flex;
  flex-direction: column;
}
.nav-item-labs {
  font-size: 12px;
  padding-left: 32px;
  color: #c7ccd1;
}
.nav-item-labs:hover {
  background: #1b1f27;
  color: #fff;
}
.nav-item-labs.active {
  background: var(--uc-card);
  color: var(--uc-text);
  border-left-color: var(--uc-red);
}
.nav-item-labs.disabled {
  color: #5b626c;
  pointer-events: none;
  cursor: default;
}

/* PRODUCT-CONSOLIDATION-1B: 6-module business navigation. */
.nav-module {
  font-weight: 600;
}
.nav-module-group {
  border-top: 1px solid #232830;
  margin-top: 4px;
}
.nav-module-group:first-of-type {
  border-top: none;
  margin-top: 0;
}
.nav-module-group > summary {
  padding: 10px 20px;
  color: #c7ccd1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid transparent;
  transition: background 120ms ease, color 120ms ease;
}
.nav-module-group > summary::-webkit-details-marker { display: none; }
.nav-module-group > summary::before {
  content: "▶";
  display: inline-block;
  width: 12px;
  color: #6b7280;
  font-size: 9px;
  transition: transform 120ms ease;
}
.nav-module-group[open] > summary::before { transform: rotate(90deg); }
.nav-module-group > summary:hover { background: var(--uc-card); color: var(--uc-text); }
.nav-module-group[open] > summary { color: var(--uc-text); }
.nav-module-body {
  display: flex;
  flex-direction: column;
}
.nav-item-sub {
  font-size: 12px;
  padding-left: 40px;
  color: #c7ccd1;
}
.nav-item-sub:hover { background: #1b1f27; color: #fff; }
.nav-item-sub.active {
  background: var(--uc-card);
  color: var(--uc-text);
  border-left-color: var(--uc-red);
}

.sidebar-footer { border-top: 1px solid #232830; padding-top: 8px; }

.main { flex: 1; padding: 24px 32px; overflow-x: auto; }

h1 { font-size: 22px; margin: 0 0 20px 0; color: #fff; }
h2 { font-size: 18px; margin: 0 0 12px 0; color: #fff; }
h3 { font-size: 15px; margin: 0 0 8px 0; color: #fff; }
p { margin: 0 0 8px 0; }
ul, ol { padding-left: 22px; margin: 0 0 8px 0; }

.muted { color: #8b9098; }
.small { font-size: 12px; }

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.flash {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid;
  font-size: 13px;
}
.flash.success { background: #0f2a1a; border-color: #1b5e34; color: #4ade80; }
.flash.error   { background: #2a0f0f; border-color: #5e1b1b; color: #f87171; }
.flash.info    { background: #0f1a2a; border-color: #1b3a5e; color: #60a5fa; }

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #2c333d;
  background: #1b1f27;
  color: #e6e8eb;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-family: inherit;
}
.btn:hover { background: #232830; text-decoration: none; }
.btn.primary { background: var(--uc-red); border-color: var(--uc-red); color: #fff; }
.btn.primary:hover { background: var(--uc-red-hover); border-color: var(--uc-red-hover); }
.btn.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input[type=text], input[type=password], input[type=number],
textarea, select {
  width: 100%;
  max-width: 520px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #2c333d;
  background: #0f1115;
  color: #e6e8eb;
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--uc-red);
}

label {
  display: block;
  margin: 12px 0 4px 0;
  color: #c7ccd1;
  font-size: 13px;
  font-weight: 500;
}

fieldset {
  border: 1px solid #232830;
  border-radius: 6px;
  padding: 16px 20px 20px 20px;
  margin-bottom: 16px;
}
legend {
  padding: 0 8px;
  color: #c7ccd1;
  font-weight: 600;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #232830;
}
th { color: #8b9098; font-weight: 600; background: #14171d; }

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  border: 1px solid #2c333d;
  background: #1b1f27;
  color: #c7ccd1;
}

/* Login screen */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 8px;
  padding: 32px;
  width: 360px;
}
.login-card h1 { margin: 0 0 4px 0; font-size: 20px; }
.login-card .muted { margin-bottom: 20px; }

/* F-014.6.3.4 Single Video Detail — dark-theme back-card */
.sv-back-card {
  background: #14171d !important;
  border: 1px solid #232830 !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
}
.sv-breadcrumb {
  color: #8a93a0 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
}
.sv-back-card .btn {
  background: #1b1f27 !important;
  border-color: #2c333d !important;
  color: #e6e8eb !important;
}
.sv-back-card .btn:hover {
  background: #232830 !important;
  border-color: #3a4250 !important;
}

/* F-014.6.3.4 reason_code pill — colored by severity */
.rc-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #1b1f27;
  border: 1px solid #2c333d;
  color: #c7ccd1;
}
.rc-pill.rc-success  { border-color: #2c5d3d; color: #7be0a0; }
.rc-pill.rc-review   { border-color: #5a4a1f; color: #ffd17a; }
.rc-pill.rc-pause    { border-color: #5d2c2c; color: #ff9c9c; }
.rc-pill.rc-low      { border-color: #2c333d; color: #8a93a0; }
.rc-pill .rc-zh      { color: #8a93a0; margin-left: 4px; font-family: inherit; }


/* F-014.8.1 Channel Analysis Report — card-based layout */
.report-meta { background: #14171d !important; border-color: #232830 !important; }
.report-meta p { color: #c7ccd1; }
.report-actions { background: #14171d !important; border-color: #232830 !important; }

.report-section { padding: 18px 20px; }
.report-section h2 {
  margin-top: 0;
  font-size: 17px;
  color: #fff;
  border-bottom: 1px solid #2c333d;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.report-section-conclusions { background: #1a1f29 !important; }
.conclusion-list {
  margin: 0; padding-left: 20px;
  color: #e6e8eb; line-height: 1.6;
}
.conclusion-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* KPI grid (section 2) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.kpi-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-radius: 6px;
  padding: 14px 16px;
}
.kpi-card.kpi-continue          { border-color: #2c5d3d; }
.kpi-card.kpi-pause             { border-color: #5d2c2c; }
.kpi-card.kpi-review            { border-color: #5a4a1f; }
.kpi-card.kpi-collect_more_data { border-color: #2c333d; }
.kpi-label {
  font-size: 12px;
  color: #8a93a0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.kpi-count {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.kpi-titles {
  margin: 0; padding-left: 16px;
  color: #c7ccd1; font-size: 12px;
  max-height: 110px; overflow: hidden;
}
.kpi-titles li { margin-bottom: 2px; }

.report-source-note { margin-top: 8px; }

/* Video card grid (sections 3-6) */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.video-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-radius: 6px;
  padding: 14px 16px;
}
.video-card.video-card-review  { border-color: #5a4a1f; }
.video-card.video-card-retest  { border-color: #2c4a5a; }
.video-card.video-card-pause   { border-color: #5d2c2c; }
.video-title {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #fff;
  word-break: break-word;
}
.video-card p.muted { color: #8a93a0; }
.metrics-table {
  width: 100%;
  margin: 8px 0;
  font-size: 12px;
  border-collapse: collapse;
}
.metrics-table th {
  text-align: left;
  padding: 4px 8px;
  color: #8a93a0;
  font-weight: 500;
  border: none;
}
.metrics-table td {
  padding: 4px 8px;
  color: #e6e8eb;
  border: none;
}
.video-rationale {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #c7ccd1;
  border-top: 1px solid #2c333d;
  padding-top: 8px;
}

/* Plan grid (section 7) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.plan-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 6px;
  padding: 14px 16px;
}
.plan-title {
  font-size: 14px;
  color: #fff;
  margin: 0 0 8px 0;
}
.plan-rationale {
  color: #c7ccd1;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.plan-cautions {
  color: #8a93a0;
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid #2c333d;
  padding-top: 8px;
}

/* Markdown source view */
.report-markdown-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f1117;
  color: #c7ccd1;
  padding: 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #2c333d;
  max-height: 70vh;
  overflow-y: auto;
}


/* F-014.10 UI Refresh Lite — base design system */

/* ---- Page header / titles / subtitles ---- */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px 0;
  padding: 0;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.page-subtitle {
  color: #8a93a0;
  font-size: 13px;
  margin: 4px 0 0 0;
}
.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #6e7682;
  margin-bottom: 4px;
}

/* ---- Toolbar (buttons row at the top of a page) ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.toolbar .toolbar-spacer { flex: 1; }
.toolbar .muted { color: #8a93a0; font-size: 12px; }

/* ---- Card / section-card ---- */
.section-card {
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.section-card h2,
.section-card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #232830;
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.section-card h3 { font-size: 14px; border-bottom: none; padding-bottom: 4px; }



/* ---- F-015-2.8 Channel Diagnosis cockpit ---- */
.cf2-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.cf2-section-title { margin-top: 0; font-size: 18px; color: #f5f5f5; }
.cf2-sub-title { margin-top: 0; font-size: 15px; color: #cbd5e1; }
.cf2-headline-card { border-left-color: #5a4a1f; }
.cf2-headline { font-size: 15px; line-height: 1.7; color: #f5f5f5; margin: 0; }

/* Freshness bar */
.cf2-freshness-title {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.cf2-freshness { padding: 10px 16px; }
.cf2-freshness-ok { border-left-color: #2c5d3d; }
.cf2-freshness-stale { border-left-color: #b85c5c; }
.cf2-freshness-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.cf2-freshness-item { min-width: 160px; }
.cf2-freshness-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.cf2-freshness-value {
  font-size: 13px;
  color: #f5f5f5;
  font-weight: 500;
}
.cf2-freshness-hint {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #c89f4a;
}
.cf2-status-good { color: #5cba6f; font-weight: 600; }
.cf2-status-warn { color: #c89f4a; font-weight: 600; }
.cf2-status-bad  { color: #d97a7a; font-weight: 600; }
.cf2-status-na   { color: #94a3b8; font-weight: 600; }

/* Empty state */
.cf2-empty { text-align: center; padding: 30px 20px; }
.cf2-empty .cf2-section-title { margin-bottom: 8px; }
.cf2-empty p { color: #94a3b8; }
.cf2-empty .btn { margin-top: 10px; }

/* ---- Recommendation lifecycle video table: thumbnail + 2-line title ---- */
.cf2-rec-life-cell-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #e2e8f0;
  min-width: 0;
}
.cf2-rec-life-thumb-wrap {
  flex-shrink: 0;
  display: inline-block;
  width: 72px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  background: #0f172a;
}
.cf2-rec-life-thumb {
  display: block;
  width: 72px;
  height: 40px;
  object-fit: cover;
}
.cf2-rec-life-thumb-missing {
  background: #1e293b;
  position: relative;
}
.cf2-rec-life-thumb-missing::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 40'%3E%3Crect width='72' height='40' fill='%231e293b'/%3E%3Cpath d='M28 14h16v12H28z' fill='none' stroke='%23475569' stroke-width='1.5'/%3E%3Cpath d='M30 24l6-4 6 4' fill='none' stroke='%23475569' stroke-width='1.5'/%3E%3Ccircle cx='36' cy='19' r='2' fill='none' stroke='%23475569' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
}
.cf2-rec-life-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-width: 220px;
  word-break: break-word;
}
.cf2-rec-life-cell-link:hover .cf2-rec-life-title {
  color: #60a5fa;
}
.cf2-rec-life-td-video { min-width: 0; }
.cf2-rec-life-th-video { min-width: 0; }

@media (max-width: 800px) {
  .cf2-rec-life-thumb-wrap { width: 48px; height: 27px; }
  .cf2-rec-life-thumb { width: 48px; height: 27px; }
  .cf2-rec-life-title { max-width: 140px; font-size: 10px; }
}

/* Core metrics grid — F-017.2 Section 四: 4 unified cards, large clear
   numbers, status badge, unified height, no large red areas. */
.cf2-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.cf2-metric-card {
  background: #131922;
  border: 1px solid #272C39;
  border-left: 3px solid #4a6d8c;
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.cf2-metric-card:hover { border-color: #3A4256; }
.cf2-metric-good { border-left-color: #2c5d3d; }
.cf2-metric-warn { border-left-color: #5a4a1f; }
.cf2-metric-bad  { border-left-color: #5d2c2c; }
.cf2-metric-na   { border-left-color: #2c333d; }
.cf2-metric-label {
  font-size: 11px;
  color: #8A93A3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 600;
}
.cf2-metric-value {
  font-size: 26px;
  font-weight: 700;
  color: #F5F7FA;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cf2-metric-change {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.cf2-metric-change-pct { color: #B8C0CC; }
.cf2-metric-status {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #2c333d;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cf2-metric-status.cf2-status-good { background: rgba(92, 186, 111, 0.12); color: #6ee7b7; border-color: rgba(92, 186, 111, 0.3); }
.cf2-metric-status.cf2-status-warn { background: rgba(200, 159, 74, 0.12); color: #fbbf24; border-color: rgba(200, 159, 74, 0.3); }
.cf2-metric-status.cf2-status-bad  { background: rgba(217, 122, 122, 0.12); color: #fca5a5; border-color: rgba(217, 122, 122, 0.3); }
.cf2-metric-status.cf2-status-na   { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

/* Issue list */
.cf2-issue-list { list-style: none; padding-left: 0; margin: 0; }
.cf2-issue {
  background: #11151c;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.cf2-issue-p0 { border-left-color: #d97a7a; }
.cf2-issue-p1 { border-left-color: #c89f4a; }
.cf2-issue-p2 { border-left-color: #5cba6f; }
.cf2-issue-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf2-issue-priority {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #2c333d;
  color: #cbd5e1;
  font-weight: 700;
}
.cf2-issue-line {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 2px;
}
.cf2-issue-label {
  display: inline-block;
  width: 70px;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cf2-empty-note { color: #94a3b8; font-size: 13px; }

/* Supplementary metrics (F-015-2.8.1) */
.cf2-supplementary {
  border-left-color: #2c333d;
  opacity: 0.92;
}
.cf2-supplementary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.cf2-supplementary-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  padding: 4px 0;
}
.cf2-supplementary-label {
  color: #94a3b8;
  font-weight: 500;
  min-width: 90px;
}
.cf2-supplementary-note {
  color: #c89f4a;
  font-style: italic;
}
.cf2-freshness-fallback {
  color: #c89f4a;
  border-left: 2px solid #c89f4a;
  padding-left: 8px;
  margin-top: 4px;
}
.cf2-metric-change-na {
  color: #6b7785;
  font-style: italic;
  font-size: 11px;
}
.cf2-window-info { }

/* ---- F-015-2.8.3 Channel Diagnosis empty state (missing 28d) ---- */
.cf2-empty-28d {
  border-left-color: #c89f4a;
  text-align: left;
}
.cf2-empty-28d .cf2-section-title {
  color: #f5f5f5;
}
.cf2-empty-28d p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 8px 0;
}
.cf2-empty-28d .btn {
  margin-right: 8px;
}
[data-testid="cd-empty-28d-sync-btn"] {
  background: #b85c5c;
  border-color: #b85c5c;
  color: #fff;
}
[data-testid="cd-empty-28d-sync-btn"]:hover {
  background: #d97a7a;
  border-color: #d97a7a;
}

/* ---- F-015-2.8.2 Channel Diagnosis compact summary + details report ---- */
.cf2-compact-summary {
  padding: 12px 16px;
  margin-bottom: 14px;
}
.cf2-compact-subtitle {
  margin: 0 0 8px 0;
  font-size: 11px;
}
.cf2-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .cf2-compact-grid { grid-template-columns: repeat(2, 1fr); }
}
.cf2-compact-card {
  background: #11151c;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
}
.cf2-compact-continue { border-left-color: #2c5d3d; }
.cf2-compact-pause { border-left-color: #5d2c2c; }
.cf2-compact-review { border-left-color: #5a4a1f; }
.cf2-compact-collect { border-left-color: #2c333d; }
.cf2-compact-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.cf2-compact-value {
  font-size: 22px;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.1;
}
.cf2-compact-hint {
  font-size: 10px;
  color: #6b7785;
  margin-top: 2px;
}

/* details / summary for full data report */
.cf2-full-report-details {
  margin-top: 16px;
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-radius: 6px;
  padding: 0;
}
.cf2-full-report-details > summary {
  cursor: pointer;
  padding: 12px 18px;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.cf2-full-report-details > summary::-webkit-details-marker {
  display: none;
}
.cf2-full-report-details > summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 8px;
  color: #94a3b8;
  font-size: 10px;
  transition: transform 0.15s ease;
}
.cf2-full-report-details[open] > summary::before {
  transform: rotate(90deg);
}
.cf2-full-report-summary-title {
  font-weight: 600;
  font-size: 15px;
  color: #f5f5f5;
}
.cf2-full-report-summary-hint {
  font-size: 11px;
}
.cf2-full-report-body {
  padding: 12px 18px 18px;
  border-top: 1px solid #2c333d;
}

/* Top tables (slimmed) */
.cf2-top-table-card {
  padding-bottom: 0;
}
.cf2-top-table {
  width: 100%;
  border-collapse: collapse;
}
.cf2-top-table th,
.cf2-top-table td {
  font-size: 12px;
  padding: 6px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #2c333d;
}
.cf2-top-table th {
  text-align: left;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: transparent;
}

/* status-tag color variants */
.status-tag-success    { color: #5cba6f; }
.status-tag-failure    { color: #d97a7a; }
.status-tag-needs_review    { color: #c89f4a; }
.status-tag-worth_retesting { color: #c89f4a; }
.status-tag-insufficient_data { color: #94a3b8; }

/* F-015-2.8.2 sample overview */
.cf2-stats-card {
  font-size: 13px;
}
.cf2-stats-card p {
  margin: 4px 0;
  color: #cbd5e1;
}

/* ---- F-015-3.1 Benchmark Discovery candidate pool ---- */
.bd-candidate-table {
  width: 100%;
  border-collapse: collapse;
}
.bd-candidate-table th,
.bd-candidate-table td {
  font-size: 12px;
  padding: 6px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #2c333d;
}

.bd-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #2c333d;
}
.bd-status-discovered    { color: #60a5fa; border-color: #1d4ed8; background: rgba(96,165,250,0.10); }
.bd-status-shortlisted   { color: #5cba6f; border-color: #2c5d3d; background: rgba(92,186,111,0.12); }
.bd-status-rejected      { color: #94a3b8; border-color: #2c333d; background: rgba(148,163,184,0.10); }
.bd-status-needs_review  { color: #c89f4a; border-color: #5a4a1f; background: rgba(200,159,74,0.12); }

.bd-priority {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bd-priority-P0        { color: #d97a7a; background: rgba(217,122,122,0.12); }
.bd-priority-P1        { color: #c89f4a; background: rgba(200,159,74,0.12); }
.bd-priority-P2        { color: #5cba6f; background: rgba(92,186,111,0.12); }
.bd-priority-unranked  { color: #94a3b8; background: rgba(148,163,184,0.08); }

/* ---- F-015-2.8.4 Channel Diagnosis video_metrics_only mode ---- */
.cf2-freshness-video-only {
  color: #c89f4a;
  border-left: 2px solid #c89f4a;
  padding-left: 8px;
  margin-top: 4px;
  font-size: 12px;
}
.cf2-metric-card.cf2-metric-not_wired {
  border-left-color: #c89f4a;
}
.cf2-metric-card.cf2-metric-not_wired .cf2-metric-value {
  color: #c89f4a;
  font-size: 13px;
  font-style: italic;
}

/* Next step */
.cf2-next-card { border-left-color: #4a6d8c; }
.cf2-next-btn { margin-top: 6px; }

/* GROWTH-MISSION-WORKFLOW-1: diagnosis → mission entry buttons */
.cf2-issue-action { margin-top: 10px; }
.cf2-mission-btn {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #3a5a7c;
  background: #1b2838;
  color: #cbd5e1;
  cursor: pointer;
  text-decoration: none;
}
.cf2-mission-btn:hover { background: #243447; color: #f5f5f5; }
.cf2-mission-create-btn {
  border-color: #5a4a1f;
  background: #2d2410;
  color: #f5d68a;
}
.cf2-mission-create-btn:hover { background: #3d3015; color: #ffe9a8; }
.cf2-mission-view-btn {
  border-color: #2f5a3a;
  background: #102d1b;
  color: #9ad9b1;
}
.cf2-mission-view-btn:hover { background: #163d24; color: #b8eccb; }
.cf2-gm-entry-card { border-left-color: #5a4a1f; }
.cf2-gm-list-btn {
  margin-top: 6px;
  border-color: #3a5a7c;
  background: #1b2838;
  color: #cbd5e1;
}

/* GROWTH-MISSION-WORKFLOW-1 §十三: always-visible candidate section */
.cf2-gm-candidate-card { border-left-color: #5a4a1f; }
.cf2-gm-candidate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf2-gm-candidate-item {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 4px;
  padding: 8px 12px;
}
.cf2-gm-candidate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cf2-gm-candidate-title {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: #f5f5f5;
}
.cf2-gm-candidate-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf2-gm-candidate-pending {
  font-size: 12px;
  color: #8a93a3;
  font-style: italic;
}
.cf2-gm-candidate-form { display: inline; margin: 0; }
.cf2-issue-priority {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.cf2-issue-priority-p0 { background: #c0392b; }
.cf2-issue-priority-p1 { background: #d35400; }
.cf2-issue-priority-p2 { background: #4a90d9; }
.cf2-issue-priority-p3 { background: #303646; color: #b8c0cc; }

/* ---- F-015-2.7 Decision Center (legacy, now under cockpit) ---- */
.dc-subtitle { font-size: 14px; margin: 4px 0 18px 0; }
.dc-card { border-left: 3px solid #4a6d8c; margin-bottom: 16px; }
.dc-headline-card { border-left-color: #5a4a1f; background: #1b1f27; }
.dc-section-title { margin-top: 0; font-size: 18px; color: #f5f5f5; }
.dc-sub-title { margin-top: 0; font-size: 15px; color: #cbd5e1; }
.dc-headline {
  font-size: 16px;
  line-height: 1.7;
  color: #f5f5f5;
  margin: 0;
}
.dc-issue-list { list-style: none; padding-left: 0; margin: 0; }
.dc-issue {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.dc-issue-p0 { border-left-color: #b85c5c; }
.dc-issue-p1 { border-left-color: #c89f4a; }
.dc-issue-p2 { border-left-color: #5a8d6a; }
.dc-issue-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #f5f5f5; }
.dc-issue-line { font-size: 13px; line-height: 1.6; color: #cbd5e1; margin-bottom: 2px; }
.dc-issue-label {
  display: inline-block;
  width: 60px;
  color: #94a3b8;
  font-size: 12px;
}
.dc-goal-list { list-style: disc; padding-left: 22px; margin: 0; }
.dc-goal-list li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.dc-next-card { border-left-color: #4a6d8c; }
.dc-next-btn { margin-top: 6px; }
.dc-classification-wrap { margin-top: 18px; }
.dc-full-report { margin-top: 18px; }

/* ---- Metric grid (KPI cards) ---- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.metric-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 120ms ease;
}
.metric-card:hover { border-color: #3a4250; }
.metric-card.metric-continue          { border-left-color: #2c5d3d; }
.metric-card.metric-pause             { border-left-color: #5d2c2c; }
.metric-card.metric-review            { border-left-color: #5a4a1f; }
.metric-card.metric-collect_more_data { border-left-color: #2c333d; }

.metric-label {
  font-size: 11px;
  color: #8a93a0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 500;
}
.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.metric-value.metric-sm { font-size: 18px; }
.metric-foot {
  margin-top: 4px;
  font-size: 12px;
  color: #8a93a0;
}
.metric-foot.metric-help {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  font-weight: 400;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #1b1f27;
  border: 1px solid #2c333d;
  color: #c7ccd1;
  white-space: nowrap;
}
.badge-success {
  border-color: #2c5d3d;
  color: #7be0a0;
  background: rgba(44, 93, 61, 0.15);
}
.badge-warning {
  border-color: #5a4a1f;
  color: #ffd17a;
  background: rgba(90, 74, 31, 0.15);
}
.badge-danger {
  border-color: #5d2c2c;
  color: #ff9c9c;
  background: rgba(93, 44, 44, 0.15);
}
.badge-muted {
  border-color: #2c333d;
  color: #8a93a0;
  background: transparent;
}
.badge-info {
  border-color: #2c4a5a;
  color: #7cc1e0;
  background: rgba(44, 74, 90, 0.18);
}

/* ---- Data tables ---- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a93a0;
  padding: 10px 12px;
  border-bottom: 1px solid #2c333d;
  background: #14171d;
}
.data-table thead th.right { text-align: right; }
.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #1b1f27;
  vertical-align: middle;
  color: #e6e8eb;
}
.data-table tbody tr:hover {
  background: #1a1f29;
}
.data-table tbody tr:hover td {
  border-bottom-color: #2c333d;
}
.data-table td.right,
.data-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table td.muted {
  color: #8a93a0;
}
.data-table td .thumbnail-cell {
  width: 96px;
  display: inline-block;
}
.table-title-cell {
  max-width: 360px;
}
.table-title-cell .title-text {
  font-weight: 500;
  color: #fff;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.table-title-cell .video-id-line {
  font-size: 11px;
  color: #6e7682;
  margin-top: 2px;
}

/* ---- Thumbnails ---- */
.thumbnail {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2c333d;
  object-fit: cover;
}
.thumbnail-sm {
  width: 64px;
  height: auto;
  border-radius: 3px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 12px;
  color: #8a93a0;
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: #8a93a0;
  text-decoration: none;
}
.breadcrumb a:hover { color: #c7ccd1; text-decoration: underline; }
.breadcrumb .sep { color: #4a525c; margin: 0 6px; }

/* ---- Back-bar ---- */
.back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8a93a0;
}
.empty-state .empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.empty-state p { margin: 4px 0; }

/* ---- Buttons (refined) ---- */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #2c333d;
  background: #1b1f27;
  color: #e6e8eb;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: #232830; border-color: #3a4250; }
.btn.primary {
  background: #2c4a5a;
  border-color: #3a6075;
  color: #e6e8eb;
}
.btn.primary:hover { background: #3a6075; border-color: #4a7790; }
.btn.btn-sm { padding: 4px 10px; font-size: 11px; }

/* ---- Hero (single video detail) ---- */
.video-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.video-hero .hero-thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #2c333d;
}
.video-hero .hero-body { flex: 1; min-width: 0; }
.video-hero .hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  word-break: break-word;
}
.video-hero .hero-meta {
  font-size: 12px;
  color: #8a93a0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.video-hero .hero-meta strong { color: #c7ccd1; font-weight: 500; }

/* ---- Collapsible (raw backend metrics) ---- */
details.collapsible {
  background: #14171d;
  border: 1px solid #232830;
  border-radius: 6px;
  padding: 10px 14px;
}
details.collapsible > summary {
  cursor: pointer;
  color: #c7ccd1;
  font-weight: 500;
  font-size: 13px;
  user-select: none;
}
details.collapsible[open] > summary {
  margin-bottom: 10px;
  color: #fff;
}
details.collapsible > summary::marker {
  color: #8a93a0;
}

/* ---- Tag chip (content tags display) ---- */
.tag-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  background: #1b1f27;
  border: 1px solid #2c333d;
  color: #c7ccd1;
  margin: 2px 4px 2px 0;
}
.tag-chip.tag-strong {
  border-color: #2c5d3d;
  color: #7be0a0;
  background: rgba(44, 93, 61, 0.15);
}
.tag-chip.tag-warn {
  border-color: #5a4a1f;
  color: #ffd17a;
  background: rgba(90, 74, 31, 0.15);
}
.tag-chip.tag-info {
  border-color: #2c4a5a;
  color: #7cc1e0;
  background: rgba(44, 74, 90, 0.18);
}
.tag-chip.tag-muted {
  border-color: #2c333d;
  color: #8a93a0;
  background: transparent;
}

/* ---- Source attribution ---- */
.source-attribution {
  font-size: 11px;
  color: #6e7682;
  font-style: italic;
  margin-top: 6px;
}


/* F-014.8.2 Channel Analysis Report IA — content-director style */

/* Weekly action priority grid */
.action-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.action-priority-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-left: 3px solid #4a6d8c;
  border-radius: 6px;
  padding: 14px 16px;
}
.action-priority-card.action-continue          { border-left-color: #2c5d3d; }
.action-priority-card.action-review            { border-left-color: #5a4a1f; }
.action-priority-card.action-pause             { border-left-color: #5d2c2c; }
.action-priority-card.action-collect_more_data { border-left-color: #2c333d; }
.ap-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a93a0;
  margin-bottom: 4px;
}
.ap-count {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.ap-explanation { margin: 6px 0; }
.ap-titles {
  margin: 6px 0 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: #c7ccd1;
}
.ap-titles li { margin-bottom: 2px; }

/* Three findings grid */
.three-findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.finding-card {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-radius: 6px;
  padding: 14px 16px;
}
.finding-card.finding-continue { border-left: 3px solid #2c5d3d; }
.finding-card.finding-review   { border-left: 3px solid #5a4a1f; }
.finding-card.finding-pause    { border-left: 3px solid #5d2c2c; }
.finding-title {
  font-size: 14px;
  color: #fff;
  margin: 0 0 6px 0;
}
.finding-advice {
  font-style: italic;
  margin-bottom: 6px;
}
.finding-titles {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #c7ccd1;
}
.finding-titles li { margin-bottom: 2px; }

/* Simplified video cards (no video_id / reason_code in main view) */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.video-card-simple {
  background: #1b1f27;
  border: 1px solid #2c333d;
  border-radius: 6px;
  padding: 12px 14px;
}
.simple-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px 0;
  word-break: break-word;
}
.simple-meta { margin: 2px 0 6px 0; }
.simple-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.simple-collapsible {
  margin-top: 8px;
  background: #14171d;
  border: 1px solid #2c333d;
  border-radius: 4px;
  padding: 6px 10px;
}
.simple-collapsible summary {
  font-size: 11px;
  color: #8a93a0;
  cursor: pointer;
  user-select: none;
}
.simple-collapsible ul {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

/* Section collapsible (large detail data section) */
.section-collapsible {
  background: #14171d !important;
  padding: 12px 18px;
}
.section-collapsible > summary {
  font-size: 14px;
  font-weight: 500;
  color: #c7ccd1;
}
.section-collapsible > summary::marker { color: #8a93a0; }


/* ============================================================
   F-017 Product Decoration — Unified component classes
   These .uc-* classes form the canonical design system. They
   coexist with legacy classes above (no removal, no refactor).
   ============================================================ */

/* ---- Cards / panels ---- */
.uc-card {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset;
}
.uc-panel {
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.uc-section {
  background: var(--uc-card-soft);
  border: 1px solid var(--uc-border-2);
  border-radius: var(--uc-radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.uc-metric-card {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-left: 3px solid var(--uc-border-2);
  border-radius: var(--uc-radius-sm);
  padding: 14px 16px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.uc-metric-card:hover { border-color: var(--uc-border-2); }
.uc-soft-card {
  background: var(--uc-card-soft);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 16px 18px;
}

/* ---- Buttons ---- */
.uc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--uc-radius-sm);
  border: 1px solid var(--uc-border-2);
  background: var(--uc-card-soft);
  color: var(--uc-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 80ms ease;
}
.uc-btn:hover { background: var(--uc-border); text-decoration: none; }
.uc-btn:active { transform: translateY(1px); }
.uc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.uc-btn-primary {
  background: var(--uc-red);
  border-color: var(--uc-red);
  color: #fff;
}
.uc-btn-primary:hover { background: var(--uc-red-hover); border-color: var(--uc-red-hover); }
.uc-btn-secondary {
  background: transparent;
  border-color: var(--uc-border-2);
  color: var(--uc-text-2);
}
.uc-btn-secondary:hover { background: var(--uc-card-soft); color: var(--uc-text); border-color: var(--uc-border-2); }
.uc-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--uc-text-2);
  padding: 7px 12px;
}
.uc-btn-ghost:hover { background: var(--uc-card-soft); color: var(--uc-text); }
.uc-btn-danger {
  background: transparent;
  border-color: var(--uc-red);
  color: var(--uc-red);
}
.uc-btn-danger:hover { background: var(--uc-red-soft); }
.uc-btn-sm { padding: 5px 11px; font-size: 12px; }
.uc-btn-lg { padding: 12px 22px; font-size: 14px; }

/* ---- Badges / status pills ---- */
.uc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--uc-border-2);
  background: var(--uc-card-soft);
  color: var(--uc-text-2);
  white-space: nowrap;
}
.uc-badge-red    { border-color: var(--uc-red); color: var(--uc-red); background: var(--uc-red-soft); }
.uc-badge-green  { border-color: var(--uc-success); color: var(--uc-success); background: rgba(34,197,94,.10); }
.uc-badge-yellow { border-color: var(--uc-warning); color: var(--uc-warning); background: rgba(245,158,11,.10); }
.uc-badge-blue   { border-color: var(--uc-info); color: var(--uc-info); background: rgba(56,189,248,.10); }
.uc-badge-muted  { border-color: var(--uc-border-2); color: var(--uc-text-3); background: transparent; }
/* Compact badge for dense panels (e.g. Command Center modules) */
.uc-badge.uc-badge-sm { padding: 1px 7px; font-size: 10px; letter-spacing: 0; }

/* ---- Unified page header ---- */
.uc-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px 0;
}
.uc-page-header .uc-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--uc-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.uc-page-header .uc-page-subtitle {
  color: var(--uc-text-3);
  font-size: 13px;
  margin: 5px 0 0 0;
}
.uc-page-header .uc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Refined collapsibles (details/summary) ---- */
details.uc-details {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 0;
  margin-bottom: 14px;
}
details.uc-details > summary {
  cursor: pointer;
  padding: 12px 18px;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--uc-text-2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
details.uc-details > summary::-webkit-details-marker { display: none; }
details.uc-details > summary::before {
  content: "▸";
  color: var(--uc-text-3);
  font-size: 11px;
  transition: transform 120ms ease;
}
details.uc-details[open] > summary::before { transform: rotate(90deg); }
details.uc-details[open] > summary { color: var(--uc-text); border-bottom: 1px solid var(--uc-border); }
details.uc-details > .uc-details-body { padding: 14px 18px 18px; }
/* De-emphasize technical audit fold so it never competes with main content */
details.uc-details.uc-details-muted { background: var(--uc-bg-2); border-style: dashed; }
details.uc-details.uc-details-muted > summary { color: var(--uc-text-3); font-weight: 500; }

/* ---- Refined tables ---- */
table.uc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
table.uc-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uc-text-3);
  padding: 11px 14px;
  border-bottom: 1px solid var(--uc-border-2);
  background: var(--uc-bg-2);
}
table.uc-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--uc-border);
  color: var(--uc-text);
  vertical-align: middle;
}
table.uc-table tbody tr:hover td { background: var(--uc-card-soft); }
table.uc-table tbody tr:last-child td { border-bottom: none; }

/* ---- Empty state ---- */
.uc-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--uc-text-3);
}
.uc-empty .uc-empty-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.uc-empty .uc-empty-title { font-size: 15px; color: var(--uc-text-2); font-weight: 600; margin-bottom: 6px; }
.uc-empty p { margin: 4px 0; }


/* ============================================================
   F-017 — Product Homepage (dashboard)
   ============================================================ */
.uc-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 4px 48px;
}

/* Hero */
.uc-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 8px 56px;
}
@media (max-width: 960px) { .uc-hero { grid-template-columns: 1fr; padding: 32px 4px; } }
.uc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--uc-red-soft);
  border: 1px solid var(--uc-red);
  color: var(--uc-red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.uc-hero-title {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--uc-text);
  margin: 0 0 16px 0;
}
.uc-hero-title .uc-hero-accent { color: var(--uc-red); }
.uc-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--uc-text-2);
  margin: 0 0 26px 0;
  max-width: 560px;
}
.uc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero mockup — Today's Command Center product preview panel (F-017.1) */
.uc-command-center {
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow: hidden;
}
.uc-cc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--uc-border);
  background: var(--uc-bg-2);
}
.uc-cc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--uc-success);
  box-shadow: 0 0 8px rgba(34,197,94,.5);
  flex-shrink: 0;
}
.uc-cc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--uc-text);
  letter-spacing: 0.02em;
  flex: 1;
}
.uc-cc-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--uc-success);
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(34,197,94,.10);
}
.uc-cc-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-cc-module {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uc-cc-module-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.uc-cc-module-top .uc-icon {
  color: var(--uc-text-3);
  flex-shrink: 0;
}
.uc-cc-module-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--uc-text-2);
  flex: 1;
}
.uc-cc-module-top .uc-badge { margin-left: auto; }
.uc-cc-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--uc-border-2);
  overflow: hidden;
}
.uc-cc-bar span {
  display: block;
  height: 100%;
  background: var(--uc-warning);
  border-radius: 2px;
}
.uc-cc-bar.uc-cc-bar-info span { background: var(--uc-info); }
.uc-cc-bar.uc-cc-bar-success span { background: var(--uc-success); }
.uc-cc-module-foot {
  font-size: 11px;
  color: var(--uc-text-3);
}

/* Section heading (shared) */
.uc-home-section { padding: 40px 8px; }
.uc-home-section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--uc-text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.uc-home-section-sub { color: var(--uc-text-3); font-size: 14px; margin: 0 0 24px 0; }

/* Feature grid (6 cards) */
.uc-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.uc-feature-card {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.uc-feature-card:hover {
  border-color: var(--uc-border-2);
  transform: translateY(-2px);
  box-shadow: var(--uc-shadow-sm);
}
.uc-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--uc-card-soft);
  border: 1px solid var(--uc-border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--uc-text-2);
}
.uc-feature-icon .uc-icon { display: block; }
.uc-feature-title { font-size: 16px; font-weight: 700; color: var(--uc-text); margin: 2px 0 0 0; }
.uc-feature-desc { font-size: 13px; line-height: 1.6; color: var(--uc-text-2); margin: 0; flex: 1; }
.uc-feature-link { margin-top: 6px; }

/* Flow steps (5) */
.uc-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: ucstep;
}
@media (max-width: 860px) { .uc-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uc-flow { grid-template-columns: 1fr; } }
.uc-flow-step {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 18px 16px;
  position: relative;
}
.uc-flow-step::before {
  counter-increment: ucstep;
  content: counter(ucstep);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--uc-red-soft);
  border: 1px solid var(--uc-red);
  color: var(--uc-red);
  font-size: 12px; font-weight: 700;
  margin-bottom: 10px;
}
.uc-flow-title { font-size: 14px; font-weight: 600; color: var(--uc-text); margin: 0 0 4px 0; }
.uc-flow-desc { font-size: 12px; color: var(--uc-text-3); line-height: 1.55; margin: 0; }

/* Use case grid (3) */
.uc-usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.uc-usecase-card {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-left: 3px solid var(--uc-red);
  border-radius: var(--uc-radius);
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.uc-usecase-card:hover { border-color: var(--uc-border-2); box-shadow: var(--uc-shadow-sm); }
.uc-usecase-eyebrow { font-size: 11px; color: var(--uc-red-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.uc-usecase-title { font-size: 15px; font-weight: 700; color: var(--uc-text); margin: 6px 0 6px 0; }
.uc-usecase-desc { font-size: 13px; color: var(--uc-text-2); line-height: 1.6; margin: 0; }

/* Bottom CTA */
.uc-cta {
  margin: 40px 8px 8px;
  padding: 44px 32px;
  background: linear-gradient(180deg, var(--uc-card) 0%, var(--uc-surface) 100%);
  border: 1px solid var(--uc-border-2);
  border-radius: var(--uc-radius);
  text-align: center;
}
.uc-cta-title { font-size: 28px; font-weight: 700; color: var(--uc-text); margin: 0 0 8px 0; letter-spacing: -0.01em; }
.uc-cta-sub { color: var(--uc-text-3); font-size: 14px; margin: 0 0 22px 0; }

/* ---- F-017 homepage helper classes (context line, EN subtitle, microcopy) ---- */
.uc-hero-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--uc-card-soft);
  border: 1px solid var(--uc-border-2);
  color: var(--uc-text-2);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.uc-hero-context .uc-brand-mark {
  width: 18px; height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}
.uc-hero-context-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--uc-text-3);
  display: inline-block;
}
.uc-hero-title-en {
  font-size: 15px;
  font-weight: 500;
  color: var(--uc-text-3);
  margin: -8px 0 18px 0;
  letter-spacing: 0.01em;
}
.uc-hero-micro {
  font-size: 12px;
  color: var(--uc-text-3);
  margin: 18px 0 0 0;
  line-height: 1.5;
}

/* Section header wrapper + eyebrow label */
.uc-home-section-head { margin-bottom: 28px; }
.uc-home-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--uc-red-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Use case icon */
.uc-usecase-icon {
  color: var(--uc-text-2);
  margin-bottom: 4px;
}
.uc-usecase-icon .uc-icon { display: block; }

/* CTA inner wrapper (existing .uc-cta already centers, this is a no-op hook) */
.uc-cta-inner { max-width: 640px; margin: 0 auto; }

/* ============================================================
   Phase GQ-UI-REDESIGN-1 — 增长问策首页 GPT 风格样式
   Mode A: Hero + 中央大输入框 + chips + 弱化辅助区.
   设计约束: 暗色 (--uc-* 变量), 紫色禁用, 红色克制
   (全页唯一红色 CTA = .gq-ask-submit), 不引外部 CDN.
   所有规则 .gq- 前缀 + .gq-home 后代选择器, 零泄漏到其他页面.
   ============================================================ */
.gq-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 48px;
  gap: 24px;
}

/* --- 1. 轻量顶栏 --- */
.gq-home .gq-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--uc-border);
  font-size: 12px;
  color: var(--uc-text-3);
}
.gq-topbar-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gq-topbar-brand { color: var(--uc-text-2); font-weight: 600; white-space: nowrap; }
.gq-topbar-sep { color: var(--uc-text-3); opacity: 0.6; }
.gq-topbar-page { color: var(--uc-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-topbar-right { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.gq-topbar-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gq-topbar-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--uc-text-3);
}
.gq-topbar-status-connected::before { background: var(--uc-success); }
.gq-topbar-link {
  color: var(--uc-text-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}
.gq-topbar-link:hover { color: var(--uc-text); }

/* --- 2. Hero 区域 --- */
.gq-home .gq-hero { text-align: center; margin-top: 12px; }
.gq-hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--uc-text);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.gq-hero-subtitle {
  font-size: 15px;
  color: var(--uc-text-2);
  max-width: 620px;
  margin: 12px auto 0;
  line-height: 1.6;
}
.gq-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #422006;
  color: #fde047;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* --- 3. 中央输入框 (唯一主动作) --- */
.gq-home .gq-ask-form { width: 100%; max-width: 760px; }
.gq-ask-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--uc-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.gq-ask-row:focus-within {
  border-color: var(--uc-border-2);
  box-shadow: var(--uc-shadow-sm), 0 0 0 3px rgba(255, 0, 51, 0.06);
}
.gq-ask-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--uc-text);
  font-size: 16px;
  line-height: 1.4;
  height: 44px;
  font-family: inherit;
}
.gq-ask-input::placeholder { color: var(--uc-text-3); }
.gq-ask-submit {
  flex-shrink: 0;
  background: var(--uc-red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease;
  white-space: nowrap;
}
.gq-ask-submit:hover { background: var(--uc-red-hover); }
.gq-ask-submit:active { transform: translateY(1px); }

/* --- 4. 输入框下方: 频道数据开关 + 连接状态提示 --- */
.gq-ask-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 14px;
  padding: 0 4px;
}
.gq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--uc-text-2);
  cursor: pointer;
  user-select: none;
}
.gq-toggle input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--uc-red);
  cursor: pointer;
  margin: 0;
}
.gq-channel-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--uc-text-3);
  line-height: 1.5;
  max-width: 100%;
}
.gq-channel-hint::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--uc-text-3);
}
.gq-channel-hint-connected::before { background: var(--uc-success); }
.gq-channel-hint-disconnected::before { background: var(--uc-text-3); }
.gq-inline-link {
  color: var(--uc-text-2);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  transition: color 120ms ease;
}
.gq-inline-link:hover { color: var(--uc-text); }

/* --- 5. 推荐问题 chips --- */
.gq-home .gq-chips-section {
  width: 100%;
  max-width: 760px;
  margin-top: 2px;
}
.gq-chips-label {
  font-size: 11px;
  color: var(--uc-text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.gq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gq-chip {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  color: var(--uc-text-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  line-height: 1.3;
}
.gq-chip:hover {
  background: var(--uc-card-soft);
  color: var(--uc-text);
  border-color: var(--uc-border-2);
}
.gq-chip:active { transform: translateY(1px); }

/* --- 6. 弱化辅助区 (首屏下方) --- */
.gq-home .gq-aux {
  width: 100%;
  max-width: 880px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--uc-border);
  display: grid;
  gap: 20px;
}
.gq-aux-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gq-aux-card {
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  padding: 16px 18px;
}
.gq-aux-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.gq-aux-card-head h2 {
  font-size: 14px;
  color: var(--uc-text);
  font-weight: 600;
  margin: 0;
}
.gq-aux-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gq-aux-item { margin: 0; }
.gq-aux-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 120ms ease;
}
.gq-aux-link:hover { background: var(--uc-card); }
.gq-aux-q {
  color: var(--uc-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.gq-aux-meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gq-aux-time { color: var(--uc-text-3); font-size: 11px; white-space: nowrap; }
.gq-cat-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--uc-card-soft);
  color: var(--uc-text-3);
  white-space: nowrap;
}

/* compact profile + precision cards (in .gq-aux-row) */
.gq-aux-profile { display: flex; flex-direction: column; gap: 10px; }
.gq-aux-profile-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gq-aux-profile-label { font-size: 13px; color: var(--uc-text-2); font-weight: 600; }
.gq-completeness-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--uc-border);
  overflow: hidden;
  min-width: 80px;
  flex: 1 1 80px;
}
.gq-completeness-fill { height: 100%; background: var(--uc-red); transition: width 200ms ease; }
.gq-completeness-value { font-size: 12px; color: var(--uc-text-2); font-weight: 600; }
.gq-aux-precision { display: flex; flex-direction: column; gap: 10px; }
.gq-aux-precision-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gq-aux-precision-label { font-size: 13px; color: var(--uc-text-2); font-weight: 600; }
.gq-precision-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.gq-precision-channel { background: rgba(34, 197, 94, 0.12); color: var(--uc-success); }
.gq-precision-operational { background: rgba(245, 158, 11, 0.12); color: var(--uc-warning); }
.gq-precision-low { background: var(--uc-card-soft); color: var(--uc-text-3); }

/* FAQ also uses chips inside aux */
.gq-aux .gq-chips { margin-top: 2px; }

/* jump links */
.gq-aux-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 8px;
  font-size: 12px;
}
.gq-jump-link {
  color: var(--uc-text-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}
.gq-jump-link:hover { color: var(--uc-text-2); }

/* legacy compat: keep old class names harmless if any other template references them */
.gq-home .gq-data-notice {
  width: 100%;
  max-width: 760px;
  font-size: 12px;
  color: var(--uc-text-3);
  padding: 8px 12px;
  background: var(--uc-card-soft);
  border-radius: var(--uc-radius-sm);
  border-left: 2px solid var(--uc-warning);
}

/* --- 响应式 --- */
@media (max-width: 720px) {
  .gq-home { padding: 4px 0 32px; gap: 20px; }
  .gq-hero-title { font-size: 24px; }
  .gq-hero-subtitle { font-size: 14px; }
  .gq-ask-row { flex-direction: column; align-items: stretch; padding: 10px; gap: 8px; }
  .gq-ask-input { width: 100%; height: 40px; padding: 0 4px; }
  .gq-ask-submit { width: 100%; height: 40px; }
  .gq-aux-row { grid-template-columns: 1fr; }
  .gq-topbar-right { gap: 8px; }
}
