:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --ink: #14212e;
  --muted: #667789;
  --quiet: #8a99a8;
  --line: #dce5ee;
  --line-strong: #c6d3df;
  --teal: #0f8a8a;
  --blue: #2563eb;
  --coral: #e15b4f;
  --amber: #c98218;
  --green: #14885b;
  --shadow: 0 18px 50px rgba(20, 33, 46, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.view-hidden {
  display: none !important;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.keyword-action-group {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  vertical-align: baseline;
}

.keyword-inline-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline;
  font: inherit;
  font-weight: 850;
  line-height: inherit;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.keyword-inline-button:hover,
.keyword-inline-button:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.keyword-inline-button:focus-visible {
  outline: 2px solid #9ed8d9;
  outline-offset: 2px;
}

.keyword-external-button {
  align-items: center;
  appearance: none;
  background: #eef6f7;
  border: 1px solid #cbe4e7;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transform: translateY(-1px);
  width: 18px;
}

.keyword-external-button:hover,
.keyword-external-button:focus-visible {
  background: #dff0f1;
  border-color: #92cdd2;
  outline: none;
}

.trust-badge {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.trust-a {
  background: #eaf8f0;
  color: var(--green);
}

.trust-b {
  background: #eef7f7;
  color: var(--teal);
}

.trust-c {
  background: #fff5df;
  color: #8d5710;
}

.trust-d {
  background: #eef2f7;
  color: #4b5d70;
}

.trust-e {
  background: #fff0ee;
  color: #a83429;
}

.trust-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.trust-row > span:not(.trust-badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
}

.score-pill-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.score-pill-row > span:not(.trust-badge) {
  background: #f1f6f8;
  border: 1px solid #dbe8ed;
  border-radius: 999px;
  color: #536778;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 5px 8px;
}

.score-breakdown-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 7px;
}

.score-breakdown-grid span {
  background: #f8fbfd;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px;
}

.score-breakdown-grid em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-breakdown-grid b {
  color: var(--ink);
  font-size: 14px;
  line-height: 17px;
}

.table-source-meta {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.evidence-chain {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  margin-top: 10px;
  min-width: 0;
  padding: 10px 12px;
}

.evidence-chain.compact {
  margin-top: 8px;
}

.evidence-chain summary {
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
}

.evidence-chain-table {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.evidence-row {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(170px, 1.4fr) repeat(5, minmax(90px, 0.8fr)) auto;
  padding: 9px 10px;
}

.evidence-row.is-scored {
  border-left-color: var(--green);
}

.evidence-row.is-review {
  border-left-color: var(--amber);
}

.evidence-row strong,
.evidence-row span,
.evidence-row p,
.evidence-row a {
  font-size: 11px;
  line-height: 16px;
}

.evidence-row strong {
  color: var(--ink);
  display: block;
  font-weight: 850;
}

.evidence-row span {
  color: var(--muted);
  display: block;
}

.evidence-row p {
  color: var(--muted);
  grid-column: 1 / -2;
  margin: 0;
}

.evidence-row a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
  overflow-x: clip;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-list a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a.active {
  background: #eef7f7;
  color: var(--teal);
}

.api-status {
  margin-top: auto;
  display: none;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 11px 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--amber);
  flex: 0 0 auto;
}

.api-status.live .status-dot {
  background: var(--green);
}

.api-status.limited .status-dot {
  background: var(--amber);
}

.workspace {
  padding: 28px 32px 48px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: 30px;
  line-height: 36px;
  margin: 0 0 7px;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 23px;
  max-width: 760px;
}

.doc-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(20, 33, 46, 0.05);
  color: var(--teal);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  text-decoration: none;
}

.control-strip {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.5fr) 150px 170px auto;
  margin-bottom: 16px;
  padding: 16px;
}

.trend-guard-panel {
  align-items: center;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.trend-guard-panel.cooldown {
  background: #fff8ef;
  border-color: #f0d7b5;
  border-left-color: var(--amber);
}

.trend-guard-panel.ready {
  border-left-color: var(--green);
}

.trend-guard-panel .guard-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.trend-guard-panel strong {
  display: block;
  font-size: 18px;
  line-height: 24px;
  margin-top: 2px;
}

.trend-guard-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  margin: 2px 0 0;
}

.trend-guard-panel a {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--teal);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.field input,
.field select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 138, 138, 0.12);
}

.primary-btn,
.secondary-btn {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.primary-btn {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
}

.secondary-btn {
  background: #eff7f7;
  border: 1px solid #b9dbdc;
  color: #0c6667;
  margin-top: 12px;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn svg,
.secondary-btn svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-panel,
.chart-panel,
.workbench-panel,
.signal-panel,
.source-panel,
.platform-heat-panel,
.hot-discovery-panel,
.social-radar-panel,
.keyword-demand-panel,
.source-data-panel,
.source-audit-panel,
.cloud-history-panel,
.theme-extension-panel,
.season-panel,
.holiday-panel,
.related-panel,
.compare-panel,
.guide-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(20, 33, 46, 0.04);
}

.metric-panel {
  min-height: 92px;
  padding: 14px;
}

.metric-panel span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.metric-panel strong {
  color: var(--ink);
  display: block;
  font-size: 27px;
  line-height: 32px;
  margin-top: 7px;
}

.metric-panel small {
  color: var(--quiet);
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-top: 4px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.chart-panel,
.workbench-panel,
.signal-panel,
.source-panel,
.platform-heat-panel,
.hot-discovery-panel,
.social-radar-panel,
.source-data-panel,
.source-audit-panel,
.cloud-history-panel,
.theme-extension-panel,
.season-panel,
.holiday-panel,
.related-panel,
.compare-panel,
.guide-panel {
  padding: 16px;
}

.season-panel,
.workbench-panel,
.signal-panel,
.source-panel,
.platform-heat-panel,
.hot-discovery-panel,
.social-radar-panel,
.keyword-demand-panel,
.source-audit-panel,
.cloud-history-panel,
.theme-extension-panel,
.holiday-panel {
  margin-bottom: 14px;
}

.hot-discovery-grid,
.social-radar-grid,
.workbench-groups,
.source-data-grid,
.source-audit-grid,
.theme-extension-grid,
.holiday-category-stack,
.keyword-demand-grid,
.platform-heat-grid {
  max-height: 72vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

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

.cloud-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid #d6e2ee;
  border-radius: 8px;
  min-height: 112px;
  padding: 14px;
}

.cloud-card-wide,
.cloud-card-list {
  grid-column: span 3;
}

.cloud-card-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cloud-card strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 29px;
}

.cloud-card p,
.cloud-card small,
.cloud-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.cloud-card-list ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.cloud-card-list li {
  align-items: center;
  border-bottom: 1px solid #e3edf5;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 0;
}

.cloud-card-list li:last-child {
  border-bottom: 0;
}

.cloud-card-list li strong {
  font-size: 13px;
  line-height: 18px;
}

.cloud-card-list li small {
  grid-column: 1 / -1;
}

.cloud-card-list li span {
  justify-self: end;
  text-align: right;
}

.cloud-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cloud-link-row a,
.cloud-link-row span,
.cloud-link-row button {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e2ee;
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 11px;
  text-decoration: none;
}

.source-data-grid,
.source-audit-grid,
.workbench-groups,
.holiday-category-stack {
  max-height: 64vh;
}

.hot-discovery-grid::-webkit-scrollbar,
.social-radar-grid::-webkit-scrollbar,
.workbench-groups::-webkit-scrollbar,
.source-data-grid::-webkit-scrollbar,
.source-audit-grid::-webkit-scrollbar,
.theme-extension-grid::-webkit-scrollbar,
.holiday-category-stack::-webkit-scrollbar,
.keyword-demand-grid::-webkit-scrollbar,
.platform-heat-grid::-webkit-scrollbar {
  width: 8px;
}

.hot-discovery-grid::-webkit-scrollbar-thumb,
.social-radar-grid::-webkit-scrollbar-thumb,
.workbench-groups::-webkit-scrollbar-thumb,
.source-data-grid::-webkit-scrollbar-thumb,
.source-audit-grid::-webkit-scrollbar-thumb,
.theme-extension-grid::-webkit-scrollbar-thumb,
.holiday-category-stack::-webkit-scrollbar-thumb,
.keyword-demand-grid::-webkit-scrollbar-thumb,
.platform-heat-grid::-webkit-scrollbar-thumb {
  background: #c7d4df;
  border-radius: 999px;
}

.platform-heat-card,
.keyword-demand-card,
.hot-keyword-card,
.social-hot-card,
.social-event-card,
.source-data-card,
.workbench-row,
.holiday-subcategory-card,
.theme-card,
.audit-source-row {
  box-shadow: none !important;
}

.platform-heat-card,
.keyword-demand-card,
.hot-keyword-card,
.social-hot-card,
.social-event-card,
.source-data-card,
.holiday-subcategory-card {
  padding: 12px !important;
}

.workbench-row,
.audit-source-row {
  padding: 11px 12px !important;
}

.season-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.season-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 150px;
  padding: 14px;
}

.season-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.season-head strong {
  font-size: 15px;
}

.season-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.season-value {
  align-items: baseline;
  display: flex;
  gap: 7px;
  font-size: 30px;
  font-weight: 850;
  line-height: 38px;
  margin-top: 12px;
}

.season-value small {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.season-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
}

.season-bar span {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.season-detail {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
  line-height: 17px;
  margin-top: 10px;
}

.source-data-panel {
  margin-bottom: 14px;
}

.workbench-grid,
.signal-grid {
  display: grid;
  gap: 12px;
}

.workbench-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workbench-summary article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 74px;
  padding: 12px;
}

.workbench-summary strong {
  display: block;
  font-size: 26px;
  line-height: 32px;
}

.workbench-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
  margin-top: 2px;
}

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

.workbench-group {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.workbench-group h3 {
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 10px;
}

.workbench-row-stack {
  display: grid;
  gap: 8px;
}

.workbench-row {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius);
  display: grid;
  gap: 6px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 11px;
}

.workbench-row.status-live,
.signal-card.tone-commerce {
  border-left-color: var(--green);
}

.workbench-row.status-login,
.workbench-row.status-manual {
  border-left-color: var(--amber);
}

.workbench-row.status-blocked {
  border-left-color: var(--coral);
}

.workbench-row.status-roadmap,
.workbench-row.status-watch,
.workbench-row.status-pending,
.signal-card.tone-search {
  border-left-color: #64748b;
}

.workbench-row.status-verified,
.signal-card.tone-social {
  border-left-color: var(--blue);
}

.signal-card.tone-scene {
  border-left-color: var(--teal);
}

.workbench-row strong {
  display: block;
  font-size: 13px;
  line-height: 18px;
}

.workbench-row span,
.workbench-row p,
.workbench-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.workbench-row small,
.workbench-row p {
  grid-column: 1 / -1;
}

.workbench-row em {
  background: #eef2f7;
  border-radius: 999px;
  color: #4b5d70;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  justify-self: start;
  padding: 4px 7px;
}

.workbench-row.status-live em {
  background: #eaf8f0;
  color: var(--green);
}

.workbench-row.status-login em,
.workbench-row.status-manual em {
  background: #fff5df;
  color: #8d5710;
}

.workbench-row.status-blocked em {
  background: #fff0ee;
  color: #a83429;
}

.workbench-row.status-roadmap em,
.workbench-row.status-watch em,
.workbench-row.status-pending em {
  background: #eef2f7;
  color: #4b5d70;
}

.workbench-row.status-verified em {
  background: #eef4ff;
  color: var(--blue);
}

.workbench-row a {
  align-self: end;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  grid-column: 2;
  justify-self: end;
  text-decoration: none;
  white-space: nowrap;
}

.signal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

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

.signal-head strong {
  font-size: 15px;
  line-height: 20px;
}

.signal-head span {
  background: #eef2f7;
  border-radius: 999px;
  color: #4b5d70;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 7px;
}

.signal-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  margin: 8px 0 10px;
}

.signal-score {
  align-items: baseline;
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.signal-score b {
  font-size: 26px;
  line-height: 32px;
}

.signal-score small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
}

.signal-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-card li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 8px;
}

.signal-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.signal-card a,
.signal-card .keyword-inline-button {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 18px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: normal;
}

.signal-card em {
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.signal-empty {
  color: var(--muted);
  display: block !important;
  font-size: 12px;
  line-height: 18px;
}

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

.audit-summary-card,
.audit-issue-card,
.audit-source-table {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.audit-summary-card {
  border-left: 4px solid var(--teal);
  display: grid;
  gap: 6px;
}

.audit-summary-card strong {
  font-size: 15px;
}

.audit-summary-card span,
.audit-summary-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.audit-grade-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 6px;
}

.audit-grade-grid span {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 5px 6px;
}

.audit-grade-grid b,
.audit-grade-grid em {
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.audit-grade-grid .trust-a {
  background: #eaf8f0;
  color: var(--green);
}

.audit-grade-grid .trust-b {
  background: #eef7f7;
  color: var(--teal);
}

.audit-grade-grid .trust-c {
  background: #fff5df;
  color: #8d5710;
}

.audit-grade-grid .trust-d {
  background: #eef2f7;
  color: #4b5d70;
}

.audit-grade-grid .trust-e {
  background: #fff0ee;
  color: #a83429;
}

.audit-issue-card h3 {
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 10px;
}

.audit-issue-card ul {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 7px;
  line-height: 18px;
  margin: 0;
  padding-left: 18px;
}

.audit-source-table {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.audit-source-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 1.2fr) 100px 82px minmax(220px, 2fr) auto;
  padding: 10px 12px;
}

.audit-source-row.status-live {
  border-left-color: var(--green);
}

.audit-source-row.status-manual {
  border-left-color: var(--amber);
}

.audit-source-row.status-blocked {
  border-left-color: var(--coral);
}

.audit-source-row.status-watch {
  border-left-color: #64748b;
}

.audit-source-row strong {
  display: block;
  font-size: 13px;
  line-height: 18px;
}

.audit-source-row span,
.audit-source-row p,
.audit-source-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.audit-source-row em {
  background: #eef2f7;
  border-radius: 999px;
  color: #4b5d70;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  justify-self: start;
  padding: 4px 7px;
}

.audit-source-row.status-live em {
  background: #eaf8f0;
  color: var(--green);
}

.audit-source-row.status-manual em {
  background: #fff5df;
  color: #8d5710;
}

.audit-source-row.status-blocked em {
  background: #fff0ee;
  color: #a83429;
}

.audit-source-row a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

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

.theme-extension-summary {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  padding: 12px;
}

.theme-extension-summary strong {
  font-size: 15px;
}

.theme-extension-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.theme-extension-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

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

.theme-extension-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
}

.theme-extension-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  text-align: right;
}

.theme-extension-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.theme-extension-list li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.theme-extension-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.theme-extension-list li.has-signal a,
.theme-extension-list li.has-signal .keyword-inline-button {
  color: var(--green);
}

.theme-extension-list a,
.theme-extension-list .keyword-inline-button {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 18px;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-extension-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.theme-extension-meta span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.theme-extension-meta em {
  background: #eef2f7;
  border-radius: 999px;
  color: #4b5d70;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  padding: 3px 7px;
}

.theme-extension-list li.has-signal .theme-extension-meta em {
  background: #eaf8f0;
  color: var(--green);
}

.theme-extension-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.theme-extension-bar span {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.theme-extension-list small {
  color: var(--quiet);
  font-size: 11px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-heat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-heat-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--platform-color);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.platform-heat-head {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.platform-heat-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
}

.platform-heat-head span {
  background: color-mix(in srgb, var(--platform-color) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--platform-color) 30%, #ffffff);
  border-radius: 999px;
  color: var(--platform-color);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 8px;
}

.platform-heat-score {
  align-items: baseline;
  color: var(--platform-color);
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.platform-heat-score b {
  font-size: 32px;
  line-height: 36px;
}

.platform-heat-score small {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.platform-heat-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.platform-heat-bar span {
  background: var(--platform-color);
  display: block;
  height: 100%;
}

.platform-heat-terms {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.platform-heat-terms em,
.platform-heat-terms .keyword-inline-button {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-heat-card a {
  color: var(--platform-color);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  margin-top: 12px;
  text-decoration: none;
}

.platform-source-note {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 16px;
  margin-top: 10px;
}

.platform-verify-strip {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 14px;
}

.platform-verify-strip strong {
  color: var(--ink);
  font-size: 15px;
}

.platform-verify-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.platform-verify-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-verify-strip a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
  padding: 7px 10px;
  text-decoration: none;
}

.platform-verify-strip a.status-blocked {
  color: #a83429;
}

.platform-verify-strip a.status-manual {
  color: #8d5710;
}

.platform-verify-strip a em {
  background: #f8fafc;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  padding: 2px 6px;
}

.keyword-demand-grid {
  display: grid;
  gap: 12px;
}

.keyword-trend-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.keyword-trend-panel.empty,
.keyword-trend-panel.loading {
  border-left-color: #94a3b8;
}

.keyword-trend-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.keyword-trend-head strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.keyword-trend-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-top: 3px;
}

.keyword-trend-head em {
  color: var(--teal);
  font-size: 30px;
  font-style: normal;
  font-weight: 850;
  line-height: 34px;
  text-align: right;
}

.keyword-trend-head em small {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  line-height: 14px;
}

.keyword-trend-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-trend-stats span {
  background: #eef7f7;
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.keyword-trend-svg {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  min-height: 180px;
  width: 100%;
}

.keyword-trend-empty {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-height: 108px;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.keyword-trend-empty span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.keyword-trend-empty small {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  max-width: 560px;
}

.keyword-trend-empty a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

.keyword-trend-empty a:hover {
  background: #eef7f7;
  border-color: #b9dbdc;
}

.hot-discovery-grid {
  display: grid;
  gap: 12px;
}

.hot-discovery-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hot-discovery-summary article,
.hot-discovery-proof,
.hot-seed-strip,
.hot-keyword-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hot-discovery-summary article {
  min-height: 84px;
  padding: 14px;
}

.hot-discovery-summary strong {
  display: block;
  font-size: 28px;
  line-height: 34px;
}

.hot-discovery-summary span,
.hot-discovery-proof span,
.hot-discovery-proof small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 18px;
}

.hot-discovery-proof {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding: 14px;
}

.hot-discovery-proof strong,
.hot-seed-strip strong {
  display: block;
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 4px;
}

.hot-source-stack,
.hot-seed-strip div,
.hot-source-badges,
.hot-verify-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hot-source-stack span,
.hot-source-badges span,
.hot-seed-chip,
.hot-verify-links a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 16px;
  padding: 6px 8px;
  text-decoration: none;
}

.hot-source-stack em {
  color: var(--teal);
  font-style: normal;
  margin-left: 5px;
}

.hot-seed-strip {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.hot-seed-chip {
  color: var(--ink);
}

.hot-seed-chip:hover,
.hot-verify-links a:hover {
  border-color: #9ed8d9;
  color: var(--teal);
}

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

.hot-keyword-card {
  border-left: 5px solid var(--teal);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.hot-keyword-card.heat-hot {
  border-left-color: #dc2626;
}

.hot-keyword-card.heat-strong {
  border-left-color: var(--teal);
}

.hot-keyword-card.heat-watch {
  border-left-color: var(--amber);
}

.hot-keyword-card.heat-weak {
  border-left-color: #94a3b8;
}

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

.hot-keyword-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-top: 2px;
}

.hot-keyword-head em {
  color: var(--teal);
  font-size: 28px;
  font-style: normal;
  font-weight: 850;
  line-height: 32px;
}

.hot-keyword-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.hot-keyword-bar span {
  background: var(--teal);
  display: block;
  height: 100%;
}

.hot-evidence-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-evidence-list li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-top: 6px;
}

.hot-evidence-list strong {
  font-size: 12px;
  line-height: 16px;
}

.hot-evidence-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  overflow-wrap: anywhere;
}

.hot-keyword-button {
  font-size: 15px;
  line-height: 20px;
}

.social-radar-grid {
  display: grid;
  gap: 12px;
}

.social-radar-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.social-radar-summary article,
.social-radar-note,
.social-radar-section,
.social-trend-review {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.social-radar-summary article {
  min-height: 82px;
  padding: 14px;
}

.social-radar-summary strong {
  display: block;
  font-size: 28px;
  line-height: 34px;
}

.social-radar-summary span,
.social-radar-note span,
.social-radar-note small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 18px;
}

.social-radar-note {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.social-radar-note strong,
.social-section-title h3,
.social-trend-review strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
  margin: 0;
}

.social-radar-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.social-current-module {
  border-left: 5px solid var(--teal);
}

.social-future-module {
  border-left: 5px solid var(--blue);
}

.social-section-title {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.social-section-title p {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  max-width: 720px;
}

.social-platform-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.social-platform-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid #94a3b8;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 12px;
}

.social-platform-card.status-auto {
  border-left-color: var(--teal);
}

.social-platform-card.status-manual {
  border-left-color: var(--amber);
}

.social-platform-card.status-watch {
  border-left-color: #94a3b8;
}

.social-platform-card strong,
.social-hot-head strong,
.social-event-head strong {
  display: block;
  font-size: 14px;
  line-height: 19px;
}

.social-platform-card span,
.social-platform-card small,
.social-hot-head span,
.social-event-head span,
.social-event-card p,
.social-trend-review p,
.social-trend-review small {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.social-platform-card em {
  color: var(--teal);
  font-size: 26px;
  font-style: normal;
  font-weight: 850;
  line-height: 30px;
}

.social-platform-card.status-manual em {
  color: var(--amber);
  font-size: 18px;
}

.social-platform-card a,
.social-discussion-list a,
.social-trend-review a,
.social-verify-row a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.social-hot-grid,
.social-event-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-hot-card,
.social-event-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
  padding: 12px;
}

.social-event-card.no-match {
  background: #fbfcfd;
  border-left-color: #94a3b8;
}

.social-event-card.no-match .social-event-head em {
  color: #94a3b8;
  font-size: 22px;
}

.social-hot-card.heat-hot,
.social-event-card.heat-hot {
  border-left-color: #dc2626;
}

.social-hot-card.heat-strong,
.social-event-card.heat-strong {
  border-left-color: var(--teal);
}

.social-hot-card.heat-watch,
.social-event-card.heat-watch {
  border-left-color: var(--amber);
}

.social-hot-card.heat-weak,
.social-event-card.heat-weak {
  border-left-color: #94a3b8;
}

.social-hot-head,
.social-event-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.social-hot-head em,
.social-event-head em {
  color: var(--teal);
  font-size: 26px;
  font-style: normal;
  font-weight: 850;
  line-height: 30px;
}

.social-score-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.social-score-bar span {
  background: var(--teal);
  display: block;
  height: 100%;
}

.social-source-row,
.social-event-products,
.social-seed-block div,
.social-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-source-row span,
.social-event-products .keyword-action-group,
.social-seed-block .keyword-action-group,
.social-verify-row a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  padding: 5px 7px;
}

.social-event-empty {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  padding: 9px 10px;
}

.social-seed-block {
  display: grid;
  gap: 7px;
}

.social-seed-block strong {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.social-proof-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.social-proof-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  overflow-wrap: anywhere;
}

.social-radar-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}

.social-discussion-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-discussion-list li {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  min-height: 46px;
  padding: 9px 10px;
}

.social-discussion-list li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.social-empty-row {
  color: var(--muted);
  display: block !important;
}

.social-trend-review {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.social-trend-review.live {
  border-left: 5px solid var(--teal);
}

.social-trend-metrics {
  display: grid;
  gap: 8px;
}

.social-trend-metrics span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 16px;
  padding: 8px 10px;
}

.social-trend-metrics b {
  color: var(--ink);
  font-size: 15px;
}

.social-keyword-button {
  font-size: 14px;
  line-height: 19px;
}

.keyword-demand-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.keyword-demand-summary article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 88px;
  padding: 13px;
}

.keyword-demand-summary span,
.keyword-demand-summary small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 17px;
}

.keyword-demand-summary strong {
  display: block;
  font-size: 24px;
  line-height: 30px;
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
}

.keyword-demand-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.keyword-demand-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--platform-color);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

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

.keyword-demand-head strong {
  display: block;
  font-size: 15px;
  line-height: 20px;
}

.keyword-demand-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-top: 2px;
}

.keyword-demand-head em {
  color: var(--platform-color);
  font-size: 28px;
  font-style: normal;
  font-weight: 850;
  line-height: 32px;
}

.keyword-demand-bar {
  background: #e8eef4;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.keyword-demand-bar span {
  background: var(--platform-color);
  display: block;
  height: 100%;
}

.keyword-demand-terms {
  display: grid;
  gap: 5px;
}

.keyword-demand-terms small,
.keyword-demand-terms .keyword-inline-button {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-demand-card a {
  color: var(--platform-color);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.keyword-demand-verify {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.keyword-demand-verify strong {
  font-size: 15px;
  line-height: 20px;
}

.keyword-demand-verify p {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.keyword-demand-verify div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-demand-verify a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

.keyword-demand-verify a:hover,
.keyword-demand-card a:hover {
  color: var(--blue);
}

.manual-trend-review {
  background: #fffaf2;
  border: 1px solid #f4d7a4;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 13px 14px;
}

.manual-trend-review > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.manual-trend-review strong {
  font-size: 15px;
  line-height: 20px;
}

.manual-trend-review span,
.manual-trend-review p {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.manual-trend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-trend-actions a,
.manual-trend-actions button {
  background: #ffffff;
  border: 1px solid #e5c98f;
  border-radius: 999px;
  color: #8d5710;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  padding: 6px 10px;
  text-decoration: none;
}

.manual-trend-actions button:hover,
.manual-trend-actions a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.holiday-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.holiday-highlights,
.holiday-reliability,
.holiday-category-section {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.holiday-reliability {
  border-left: 4px solid var(--blue);
  display: grid;
  gap: 6px;
}

.holiday-reliability strong {
  font-size: 14px;
  line-height: 19px;
}

.holiday-reliability span,
.holiday-reliability small {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.holiday-section-title,
.holiday-category-head,
.holiday-subcategory-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.holiday-section-title h3,
.holiday-category-head h3 {
  font-size: 17px;
  line-height: 23px;
  margin: 0;
}

.holiday-section-title p,
.holiday-category-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  margin: 4px 0 0;
}

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

.holiday-hotword {
  align-items: center;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.holiday-hotword:hover,
.holiday-category-pill:hover,
.holiday-actions a:hover {
  border-color: var(--teal);
  background: #f3fbfb;
}

.holiday-hotword strong {
  display: block;
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-hotword span {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  grid-column: 1 / -1;
  line-height: 16px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-hotword em {
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.holiday-hotword em small,
.holiday-subcategory-head em small {
  color: var(--quiet);
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
}

.holiday-category-nav {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.holiday-category-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 7px;
  min-height: 76px;
  padding: 10px;
  text-decoration: none;
}

.holiday-category-pill span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-category-pill strong {
  font-size: 22px;
  line-height: 26px;
}

.holiday-category-pill em {
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
}

.holiday-category-pill i {
  background: #e8eef4;
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.holiday-category-pill i b {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.holiday-category-stack {
  display: grid;
  gap: 12px;
}

.holiday-category-section {
  border-left: 4px solid var(--line-strong);
  scroll-margin-top: 18px;
}

.holiday-category-score {
  align-items: flex-end;
  display: grid;
  justify-items: end;
}

.holiday-category-score strong {
  font-size: 30px;
  line-height: 34px;
}

.holiday-category-score span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.holiday-subcategory-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.holiday-subcategory-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.holiday-subcategory-head strong {
  display: block;
  font-size: 14px;
  line-height: 19px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-subcategory-head span {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  line-height: 16px;
  margin-top: 2px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-subcategory-head em {
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
  line-height: 26px;
  text-align: right;
}

.holiday-season-bar,
.holiday-heat {
  background: #e8eef4;
  border-radius: 999px;
  overflow: hidden;
}

.holiday-season-bar {
  height: 9px;
  margin-top: 11px;
}

.holiday-season-bar.category {
  height: 10px;
}

.holiday-season-bar span,
.holiday-heat span {
  display: block;
  height: 100%;
}

.holiday-top {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
  margin-top: 9px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-keyword-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.holiday-keyword-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 58px 30px;
  padding-top: 9px;
}

.holiday-keyword-main {
  min-width: 0;
}

.holiday-keyword-main strong {
  display: block;
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-keyword-main .keyword-inline-button {
  display: block;
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-keyword-main span {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  line-height: 16px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.holiday-source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.holiday-source-badges span {
  background: #eef2f7;
  border-radius: 999px;
  color: #4b5d70;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  padding: 2px 6px;
}

.holiday-heat {
  align-self: center;
  height: 7px;
}

.holiday-keyword-item b {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  text-align: right;
}

.holiday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.holiday-actions a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  padding: 4px 6px;
  text-decoration: none;
}

.holiday-actions a.scored {
  background: #eaf8f0;
  border-color: #b8dfc9;
  color: var(--green);
}

.holiday-actions a.verify {
  background: #f8fafc;
  color: #4b5d70;
}

.heat-hot {
  border-left-color: #c2410c;
}

.holiday-hotword.heat-hot em,
.holiday-category-pill.heat-hot strong,
.heat-hot .holiday-category-score strong,
.heat-hot .holiday-subcategory-head em,
.heat-hot .holiday-keyword-item b,
.holiday-keyword-item.heat-hot b {
  color: #c2410c;
}

.holiday-category-pill.heat-hot i b,
.heat-hot .holiday-season-bar span,
.heat-hot .holiday-heat span,
.holiday-keyword-item.heat-hot .holiday-heat span {
  background: linear-gradient(90deg, #ef4444, #c2410c);
}

.heat-strong {
  border-left-color: #c98218;
}

.holiday-hotword.heat-strong em,
.holiday-category-pill.heat-strong strong,
.heat-strong .holiday-category-score strong,
.heat-strong .holiday-subcategory-head em,
.heat-strong .holiday-keyword-item b,
.holiday-keyword-item.heat-strong b {
  color: #b86f11;
}

.holiday-category-pill.heat-strong i b,
.heat-strong .holiday-season-bar span,
.heat-strong .holiday-heat span,
.holiday-keyword-item.heat-strong .holiday-heat span {
  background: linear-gradient(90deg, #f59e0b, #c98218);
}

.heat-watch {
  border-left-color: var(--green);
}

.holiday-hotword.heat-watch em,
.holiday-category-pill.heat-watch strong,
.heat-watch .holiday-category-score strong,
.heat-watch .holiday-subcategory-head em,
.heat-watch .holiday-keyword-item b,
.holiday-keyword-item.heat-watch b {
  color: var(--green);
}

.holiday-category-pill.heat-watch i b,
.heat-watch .holiday-season-bar span,
.heat-watch .holiday-heat span,
.holiday-keyword-item.heat-watch .holiday-heat span {
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.heat-weak {
  border-left-color: var(--quiet);
}

.holiday-hotword.heat-weak em,
.holiday-category-pill.heat-weak strong,
.heat-weak .holiday-category-score strong,
.heat-weak .holiday-subcategory-head em,
.heat-weak .holiday-keyword-item b,
.holiday-keyword-item.heat-weak b {
  color: #64748b;
}

.holiday-category-pill.heat-weak i b,
.heat-weak .holiday-season-bar span,
.heat-weak .holiday-heat span,
.holiday-keyword-item.heat-weak .holiday-heat span {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.holiday-keyword-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

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

.source-data-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
  padding: 18px;
}

.source-data-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  min-height: 188px;
  padding: 13px;
}

.source-data-card.live {
  border-left-color: var(--green);
}

.source-data-card.link-only {
  border-left-color: var(--amber);
}

.source-data-card.blocked {
  border-left-color: var(--coral);
}

.source-data-card.verified {
  border-left-color: var(--blue);
}

.source-data-card.invalid {
  border-left-color: var(--coral);
}

.source-data-card.watch {
  border-left-color: var(--amber);
}

.source-data-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.source-data-head strong {
  font-size: 14px;
}

.source-data-head span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
}

.source-data-card.live .source-data-head span {
  background: #eaf8f0;
  border-color: #b8dfc9;
  color: var(--green);
}

.source-data-card.link-only .source-data-head span {
  background: #fff5df;
  border-color: #edd39b;
  color: #8d5710;
}

.source-data-card.blocked .source-data-head span {
  background: #fff0ee;
  border-color: #efc1ba;
  color: #a83429;
}

.source-data-card.needs-verification .source-data-head span {
  background: #fff5df;
  border-color: #edd39b;
  color: #8d5710;
}

.source-data-card.verified .source-data-head span {
  background: #eef4ff;
  border-color: #c7d8ff;
  color: var(--blue);
}

.source-data-card.invalid .source-data-head span {
  background: #fff0ee;
  border-color: #efc1ba;
  color: #a83429;
}

.source-data-card.watch .source-data-head span {
  background: #fff5df;
  border-color: #edd39b;
  color: #8d5710;
}

.source-evidence-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
}

.source-evidence-meta div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 7px 8px;
}

.source-evidence-meta dt,
.source-evidence-meta dd {
  font-size: 11px;
  line-height: 15px;
  margin: 0;
}

.source-evidence-meta dt {
  color: var(--quiet);
  font-weight: 800;
}

.source-evidence-meta dd {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.source-data-card ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-data-card li {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-data-card li .keyword-inline-button,
.table-keyword-button {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.source-data-foot {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
}

.source-data-foot small {
  color: var(--quiet);
  font-size: 12px;
  line-height: 17px;
}

.source-data-foot a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.manual-verified {
  background: #eef4ff;
  border: 1px solid #c7d8ff;
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
  margin-top: 10px;
  padding: 7px 9px;
}

.manual-status-verified {
  background: #edf8f1;
  border-color: #c8e8d2;
  color: var(--green);
}

.manual-status-invalid {
  background: #fff0ee;
  border-color: #f0c4bd;
  color: #a83429;
}

.manual-status-watch {
  background: #fff8e8;
  border-color: #ecd091;
  color: #8d5710;
}

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

.source-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verify-source-btn {
  background: #fff8e8;
  border: 1px solid #ecd091;
  border-radius: var(--radius);
  color: #8d5710;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 6px 9px;
}

.verify-source-btn.secondary {
  background: #f7fafc;
  border-color: #d5e1e9;
  color: #52687a;
}

.verify-source-btn:disabled {
  cursor: default;
  opacity: 0.62;
}

.panel-title {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title.compact {
  display: block;
}

.panel-title h2 {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 5px;
}

.panel-title p {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  margin: 0;
}

.mode-badge {
  border-radius: 99px;
  background: #fff4e1;
  border: 1px solid #f0d49a;
  color: #8d5710;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.mode-badge.live {
  background: #eaf8f0;
  border-color: #b7dfc9;
  color: var(--green);
}

.chart-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(#eef3f8 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, #eef3f8 1px, transparent 1px) 0 0 / 12.5% 100%,
    #fff;
  height: 340px;
  overflow: hidden;
}

#trendChart {
  display: block;
  height: 100%;
  width: 100%;
}

.axis-label {
  fill: #7d8c9d;
  font-size: 12px;
}

.source-list {
  display: grid;
  gap: 9px;
}

.verification-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.verification-helper {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 12px;
}

.verification-helper strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  line-height: 20px;
}

.verification-helper span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 18px;
  margin-top: 2px;
}

.verification-helper button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 11px;
}

.verification-helper button:hover {
  background: #eef7f7;
  border-color: #b9dbdc;
}

.source-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  text-decoration: none;
}

.source-link.status-live {
  border-left: 4px solid var(--green);
}

.source-link.status-manual {
  border-left: 4px solid var(--amber);
}

.source-link.status-blocked {
  border-left: 4px solid var(--coral);
}

.source-link.primary {
  background: #ecfafa;
  border-color: rgba(15, 138, 138, 0.32);
  color: var(--teal);
}

.source-link.status-live {
  border-left-color: var(--green);
}

.source-link.status-manual {
  border-left-color: var(--amber);
}

.source-link.status-blocked {
  border-left-color: var(--coral);
}

.source-link:hover {
  border-color: var(--teal);
  background: #f3fbfb;
}

.source-link span {
  display: block;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 750;
  min-width: 0;
}

.source-link small {
  color: var(--quiet);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.source-link-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 15px;
  padding: 4px 7px;
  white-space: nowrap;
}

.source-link-status.live {
  background: #eaf8f0;
  border-color: #b8dfc9;
  color: var(--green);
}

.source-link-status.manual {
  background: #fff5df;
  border-color: #edd39b;
  color: #8d5710;
}

.source-link-status.blocked {
  background: #fff0ee;
  border-color: #efc1ba;
  color: #a83429;
}

.source-link-status.pending {
  background: #f8fafc;
  color: var(--muted);
}

.source-link svg {
  fill: none;
  flex: 0 0 auto;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.lower-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 11px 8px;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

.channel-chip {
  border-radius: 99px;
  background: #eef2f7;
  color: #4b5d70;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.row-action {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  text-decoration: none;
}

.keyword-row-action:hover,
.keyword-row-action:focus-visible {
  background: #eef7f7;
  border-color: #b9dbdc;
}

textarea {
  display: block;
  min-height: 90px;
  resize: vertical;
}

.compare-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.compare-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 68px 80px;
  padding: 10px 12px;
}

.compare-item strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bar {
  background: #e8eef4;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.mini-bar span {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.compare-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.insight-panel textarea {
  min-height: 72px;
}

.insight-list {
  gap: 12px;
}

.insight-summary {
  background: linear-gradient(135deg, rgba(15, 138, 138, 0.1), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(15, 138, 138, 0.18);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.insight-summary strong {
  color: var(--ink);
  font-size: 15px;
}

.insight-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.insight-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.insight-group h3 {
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  margin: 0 0 10px;
}

.insight-keyword-grid {
  display: grid;
  gap: 8px;
}

.insight-keyword-card {
  border: 1px solid #d7e4ee;
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: 10px;
}

.insight-keyword-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.insight-keyword-button {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.insight-keyword-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.opportunity-card {
  background: #fbfdfe;
  border: 1px solid #d7e4ee;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.opportunity-card-head > strong {
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

.opportunity-advice-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.opportunity-advice-list div {
  display: grid;
  gap: 2px;
}

.opportunity-advice-list dt {
  color: #52687a;
  font-size: 11px;
  font-weight: 900;
}

.opportunity-advice-list dd {
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 18px;
  margin: 0;
}

.opportunity-verify-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opportunity-verify-links a {
  border: 1px solid #cbdce6;
  border-radius: 999px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-decoration: none;
}

.insight-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 10px 0;
}

.insight-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.insight-row:last-child {
  padding-bottom: 0;
}

.insight-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
}

.insight-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.insight-row small {
  color: var(--quiet);
  font-size: 11px;
  line-height: 16px;
}

.insight-evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-keyword-button {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5d70;
  font-size: 11px;
  line-height: 16px;
  padding: 3px 7px;
}

.evidence-keyword-button:hover,
.evidence-keyword-button:focus-visible {
  background: #eef7f7;
  color: var(--teal);
  text-decoration: none;
}

.guide-panel {
  margin-top: 14px;
}

.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 170px;
  padding: 14px;
}

.guide-card h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 10px;
}

.guide-card ol,
.guide-card ul {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 8px;
  line-height: 18px;
  margin: 0;
  padding-left: 18px;
}

.legend-list {
  display: grid;
  gap: 9px;
}

.legend-list span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 18px;
}

.legend-list i {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.legend-live {
  background: var(--green);
}

.legend-manual {
  background: var(--amber);
}

.legend-blocked {
  background: var(--coral);
}

.legend-watch {
  background: #64748b;
}

.loading {
  opacity: 0.62;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
  }

  .api-status {
    margin-left: auto;
    margin-top: 0;
  }

  .main-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .source-data-grid,
  .platform-heat-grid,
  .hot-keyword-grid,
  .social-hot-grid,
  .social-event-grid,
  .keyword-demand-cards,
  .source-audit-grid,
  .cloud-history-grid,
  .theme-extension-grid,
  .signal-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-groups,
  .workbench-summary,
  .hot-discovery-summary,
  .social-radar-summary,
  .social-platform-grid,
  .keyword-demand-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-radar-split {
    grid-template-columns: 1fr;
  }

  .workbench-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workbench-row p {
    grid-column: 1 / -1;
  }

  .audit-source-row {
    grid-template-columns: minmax(0, 1fr) 100px 82px;
  }

  .audit-source-row p,
  .audit-source-row a {
    grid-column: 1 / -1;
  }

  .evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-card-wide,
  .cloud-card-list {
    grid-column: span 2;
  }

  .evidence-row p,
  .evidence-row a {
    grid-column: 1 / -1;
  }

  .social-discussion-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .social-discussion-list li span {
    grid-column: 1 / -1;
  }

  .season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holiday-hotword-grid,
  .holiday-category-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .holiday-subcategory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .side-nav,
  .workspace {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-shell {
    width: 100%;
  }

  .side-nav,
  .workspace {
    justify-self: stretch;
    width: auto;
  }

  .workspace {
    padding: 20px 14px 36px;
  }

  .topbar {
    display: block;
  }

  .doc-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .control-strip,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .source-data-grid,
  .platform-heat-grid,
  .hot-keyword-grid,
  .keyword-demand-cards,
  .keyword-demand-summary,
  .hot-discovery-summary,
  .source-audit-grid,
  .cloud-history-grid,
  .opportunity-card-grid,
  .theme-extension-grid,
  .signal-grid,
  .guide-grid,
  .holiday-hotword-grid,
  .holiday-category-nav {
    grid-template-columns: 1fr;
  }

  .workbench-groups,
  .workbench-summary {
    grid-template-columns: 1fr;
  }

  .hot-discovery-proof {
    grid-template-columns: 1fr;
  }

  .workbench-row {
    grid-template-columns: 1fr;
  }

  .workbench-row a,
  .workbench-row em {
    grid-column: 1;
    justify-self: start;
  }

  .verification-list {
    grid-template-columns: 1fr;
  }

  .audit-source-row {
    grid-template-columns: 1fr;
  }

  .evidence-row,
  .source-evidence-meta,
  .audit-grade-grid {
    grid-template-columns: 1fr;
  }

  .cloud-card-wide,
  .cloud-card-list {
    grid-column: span 1;
  }

  .season-grid {
    grid-template-columns: 1fr;
  }

  .holiday-section-title,
  .holiday-category-head,
  .holiday-subcategory-head {
    display: block;
  }

  .holiday-category-score {
    justify-items: start;
    margin-top: 10px;
  }

  .side-nav {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: grid;
    gap: 14px;
  }

  .api-status {
    margin-left: 0;
  }
}
