:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --sidebar: #101828;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e6eaf0;
  --line-soft: #f0f3f7;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --brand: #2563eb;
  --pink: #ff2f6d;
  --pink-soft: #fff1f5;
  --text: #172033;
  --green: #059669;
  --orange: #f59e0b;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.category-issues-page {
  display: grid;
  gap: 16px;
  padding: 4px 0 24px;
}

.category-issues-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.category-issues-eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.category-issues-header h2 {
  margin-top: 5px;
  color: #101828;
  font-size: 24px;
}

.category-issues-header p {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.category-issues-back,
.category-issue-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b9cdf7;
  border-radius: 6px;
  background: #f5f8ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-issues-back:hover,
.category-issue-open:hover {
  border-color: #175cd3;
  background: #eff4ff;
}

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

.category-issues-stats article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.category-issues-stats strong {
  color: #101828;
  font-size: 22px;
}

.category-issues-stats span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.category-issues-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr)) minmax(220px, 1.6fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.category-issues-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.category-issues-filters label > span {
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.category-issues-filters select,
.category-issues-filters input {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  font-size: 12px;
}

.category-issues-filters select:focus,
.category-issues-filters input:focus {
  border-color: #2563eb;
  outline: 2px solid #dbeafe;
  outline-offset: 0;
}

.category-issues-reset {
  height: 36px;
  border-color: #b9c5d6;
  background: #fff;
  color: #344054;
  white-space: nowrap;
}

.category-issues-reset:hover:not(:disabled) {
  border-color: #667085;
  background: #f8fafc;
}

.category-issues-reset:disabled {
  cursor: default;
  opacity: 0.45;
}

.category-issues-result {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
}

.category-issues-result strong {
  color: #175cd3;
  font-size: 13px;
}

.category-issues-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.category-issues-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  color: #344054;
  font-size: 12px;
}

.category-issues-table th,
.category-issues-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}

.category-issues-table th {
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.category-issues-table tr:last-child td {
  border-bottom: 0;
}

.category-issues-table tr.is-error td:first-child {
  border-left: 3px solid #f43f5e;
}

.category-issues-table tr.is-warning td:first-child {
  border-left: 3px solid #f59e0b;
}

.category-issue-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.is-error .category-issue-badge {
  background: #fff1f2;
  color: #be123c;
}

.category-issue-reason {
  min-width: 280px;
  color: #1d2939;
  font-weight: 700;
  line-height: 1.5;
}

.category-issue-reason small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.category-issues-empty {
  display: grid;
  gap: 6px;
  padding: 56px 20px;
  border: 1px solid #b7ebd0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #047857;
  text-align: center;
}

.category-issues-empty strong {
  font-size: 18px;
}

.category-issues-empty span {
  color: #33715f;
  font-size: 13px;
}

.category-issues-no-results {
  border-color: #dbe4ef;
  background: #fff;
  color: #344054;
}

.category-issues-no-results span {
  color: #667085;
}

.category-issues-no-results[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .category-issues-filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .category-issues-search {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .category-issues-header {
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .category-issues-header h2 {
    font-size: 21px;
  }

  .category-issues-back {
    justify-self: start;
  }

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

  .category-issues-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .category-issues-search,
  .category-issues-reset,
  .category-issues-result {
    grid-column: 1 / -1;
  }

  .category-issues-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .category-issues-table,
  .category-issues-table tbody,
  .category-issues-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .category-issues-table thead {
    display: none;
  }

  .category-issues-table tbody {
    display: grid;
    gap: 12px;
  }

  .category-issues-table tr {
    padding: 10px 14px;
    border: 1px solid #dbe4ef;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    background: #fff;
  }

  .category-issues-table tr.is-error {
    border-left-color: #f43f5e;
  }

  .category-issues-table td,
  .category-issues-table tr.is-error td:first-child,
  .category-issues-table tr.is-warning td:first-child {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .category-issues-table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }

  .category-issue-reason {
    min-width: 0;
  }

  .category-issue-open {
    justify-self: start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

#codex-browser-sidebar-comments-root {
  pointer-events: none !important;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  background: var(--sidebar);
  color: #d0d5dd;
}

.brand {
  height: 42px;
  padding: 0 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 42px;
}

.sidebar nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.sidebar a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: #cbd5e1;
  cursor: default;
}

.sidebar a.active {
  background: #1d2939;
  color: #fff;
}

.page {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  font-size: 18px;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.top-actions span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.top-link-button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.top-link-button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.top-actions select {
  width: min(360px, 42vw);
  height: 32px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

main {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 18px 24px 36px;
}

.status {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.dashboard {
  display: grid;
  gap: 14px;
}

.capture-audit {
  overflow: hidden;
}

.capture-audit-title {
  align-items: flex-start;
  min-height: auto;
  padding: 16px 16px 12px;
}

.capture-audit-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.capture-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.capture-badge.is-ok {
  background: #ecfdf3;
  color: #027a48;
}

.capture-badge.is-review {
  background: #fef3f2;
  color: #b42318;
}

.capture-badge.is-neutral {
  background: #eef4ff;
  color: #175cd3;
}

.capture-audit-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 16px 14px;
}

.capture-meta-card {
  min-width: 0;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.capture-meta-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.capture-meta-card strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.capture-audit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 8px;
  color: var(--text);
}

.capture-audit-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.capture-audit-table-wrap {
  overflow-x: auto;
  margin: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capture-audit-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.capture-audit-table th,
.capture-audit-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
  word-break: break-word;
}

.capture-audit-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
}

.capture-audit-table th:nth-child(1) {
  width: 180px;
}

.capture-audit-table th:nth-child(2) {
  width: 92px;
}

.capture-audit-table tr.ok strong {
  color: #027a48;
}

.capture-audit-table tr.ok {
  background: #fff;
}

.capture-audit-table tr.review {
  background: #fff6f6;
}

.capture-audit-table tr.review strong {
  color: #b42318;
}

.capture-audit-table tr.audit-empty td {
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
}

.capture-empty-state {
  display: grid;
  gap: 4px;
  margin: 0 16px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #027a48;
}

.capture-empty-state strong {
  font-size: 14px;
}

.capture-empty-state span {
  color: #047857;
  font-size: 13px;
}

.capture-audit-complete {
  margin: 12px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.capture-audit-complete summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.capture-audit-complete summary::marker {
  color: var(--muted);
}

.capture-audit-complete summary strong {
  color: #027a48;
}

.capture-audit-complete .capture-audit-table-wrap {
  margin: 0 12px 12px;
  border-radius: 6px;
}

.product-card,
.module,
.rank-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.product-catalog {
  overflow: hidden;
}

.product-catalog-title {
  align-items: flex-start;
}

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

.product-catalog-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

.product-catalog-table th {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.product-catalog-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #475467;
  vertical-align: middle;
}

.product-catalog-table tr.active {
  background: #fff7f9;
}

.catalog-product-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 360px;
}

.catalog-product-cell img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
  object-fit: cover;
}

.catalog-product-cell strong {
  display: -webkit-box;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-cell span {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
}

.catalog-action {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff1f5;
  color: #e11d48;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-action:hover {
  background: #ff2f6d;
  color: #fff;
}

.product-media img {
  display: block;
  width: 164px;
  height: 164px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f2f4f7;
}

.media-review {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f8fbff;
}

.media-review-title {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 11px;
}

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

.media-review-grid > div {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  background: #fff;
}

.media-review-grid span,
.media-review-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-review-grid span {
  margin-bottom: 3px;
  color: #98a2b3;
  font-size: 10px;
}

.media-review-grid strong {
  color: #172033;
  font-size: 13px;
}

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

.product-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-heading h2 {
  font-size: 20px;
  line-height: 1.35;
}

.category {
  margin-top: 9px;
  color: var(--muted);
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.platform-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #f8c4d5;
  border-radius: 999px;
  background: #fff5f8;
  color: #d92d67;
  font-size: 11px;
  font-weight: 800;
}

.outline-button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 600;
  line-height: 30px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.product-extra-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.product-extra-section {
  min-width: 0;
}

.product-extra-section + .product-extra-section {
  padding-left: 24px;
  border-left: 1px solid var(--line-soft);
}

.product-extra-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-extra-title h3 {
  font-size: 14px;
}

.product-extra-status {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
}

.product-extra-status.is-complete {
  color: #027a48;
}

.product-extra-status.is-missing {
  color: #b54708;
}

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

.product-extra-metrics span,
.product-option-groups > div > span,
.product-selling-points > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.product-extra-metrics strong {
  color: var(--ink);
  font-size: 14px;
}

.product-option-groups,
.product-selling-points,
.product-attribute-list {
  margin-top: 10px;
}

.product-option-groups p,
.product-selling-points p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-option-groups em,
.product-selling-points em {
  padding: 4px 7px;
  border-radius: 4px;
  background: #f2f4f7;
  color: #344054;
  font-size: 11px;
  font-style: normal;
}

.product-attribute-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.product-attribute-list div {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.product-attribute-list dt {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.product-attribute-list dd {
  overflow-wrap: anywhere;
  word-break: normal;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
}

.product-extra-empty,
.product-extra-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-extra-raw {
  margin-top: 10px;
}

.product-extra-raw > span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
}

.product-extra-raw p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.product-extra-raw em {
  padding: 3px 7px;
  border: 1px solid #dbe5f4;
  border-radius: 4px;
  background: #f7faff;
  color: #344054;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.product-extra-section.is-empty .product-extra-empty {
  padding: 10px 12px;
  border-left: 3px solid #f79009;
  background: #fffaeb;
  color: #7a2e0e;
}

.fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.fact strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-card {
  min-height: 76px;
  padding: 14px;
}

.rank-card strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.rank-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

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

.metric-card {
  min-height: 96px;
  padding: 16px;
}

.metric-card span {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.1;
}

.category-fastmoss-filter {
  display: grid;
  gap: 16px;
  padding: 26px 34px 28px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.category-fastmoss-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.category-fastmoss-label {
  padding-top: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.category-fastmoss-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 25px;
  min-width: 0;
}

.category-fastmoss-category-options {
  gap: 12px 29px;
}

.category-filter-option,
.category-filter-collapse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.category-filter-option.active {
  min-width: 58px;
  padding: 0 18px;
  background: #ff2368;
  color: #fff;
  font-weight: 900;
}

.category-filter-option em {
  position: absolute;
  top: -10px;
  right: -19px;
  height: 14px;
  padding: 0 4px;
  border-radius: 3px;
  background: #19d6bd;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 14px;
}

.category-filter-collapse {
  order: 20;
  margin-left: auto;
  padding: 0 16px;
  background: #fff2f6;
  color: #ff2368;
  font-weight: 800;
}

.category-fastmoss-filter.collapsed .extra-category:not(.active) {
  display: none;
}

.category-filter-option:hover {
  color: #ff2368;
}

.category-filter-option.active:hover {
  color: #fff;
}

.category-market-tabs {
  position: sticky;
  top: 66px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 50px;
  padding: 0 4px;
  border-bottom: 1px solid #e6eaf0;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(10px);
}

.category-market-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667d98;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.category-market-tabs a.active {
  color: #172033;
}

.category-market-tabs a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #ff2368;
}

.category-overview-module {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 0 0 16px;
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 124px;
}

.category-panel {
  display: block;
  scroll-margin-top: 124px;
}

.category-panel.active {
  box-shadow: 0 0 0 2px rgba(255, 35, 104, 0.04);
}

.fastmoss-industry-section {
  padding-bottom: 18px;
}

.industry-page-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 35, 104, 0.08), rgba(37, 99, 235, 0.05)),
    #fff;
}

.industry-page-hero::after {
  content: "FastMoss Market Analyze";
  position: absolute;
  right: -34px;
  bottom: 6px;
  color: rgba(208, 213, 221, 0.28);
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: 10px;
  white-space: nowrap;
}

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

.industry-page-hero h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 24px;
  line-height: 1.25;
}

.industry-page-hero p {
  max-width: 780px;
  color: #667d98;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.industry-page-hero > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.industry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
}

.industry-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.industry-analysis-grid.lower {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.industry-scatter-card,
.industry-list-card,
.industry-rank-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(250, 250, 251, 0.92);
}

.industry-scatter-card,
.industry-list-card {
  padding: 16px 16px 18px;
}

.industry-analysis-main {
  min-height: 0;
}

.industry-list-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fff;
}

.industry-list-table {
  width: 100%;
  border-collapse: collapse;
}

.industry-list-table th,
.industry-list-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  color: #172033;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.industry-list-table th {
  background: #f6f8fb;
  color: #426084;
  font-weight: 900;
}

.industry-list-table tr:last-child td {
  border-bottom: 0;
}

.industry-list-table td.up {
  color: #00a99d;
  font-weight: 900;
}

.industry-list-table td.down {
  color: #ff2368;
  font-weight: 900;
}

.category-pending-table-cell {
  height: 86px;
  color: #667d98 !important;
  font-weight: 800;
  text-align: center !important;
}

.category-pending-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.category-pending-notice strong {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
}

.category-pending-notice span {
  color: #315b9c;
}

.category-pending-notice.issue {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

.category-pending-notice.issue strong {
  background: #ffedd5;
  color: #9a3412;
}

.category-pending-notice.issue span {
  color: #9a3412;
}

.category-sync-status {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 6px 14px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20px 16px, rgba(34, 197, 94, 0.13), transparent 28px),
    linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
}

.category-sync-status strong {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
}

.category-sync-status span,
.category-sync-status em {
  color: #5b708a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.category-sync-status em {
  grid-column: 2;
}

.category-validation-report {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.category-validation-report.ok {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.78));
}

.category-validation-report.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.82));
}

.category-validation-report.error {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.82));
}

.category-validation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-validation-head strong {
  color: #0f172a;
  font-size: 13px;
}

.category-validation-head span {
  color: #64748b;
  text-align: right;
}

.category-validation-report.ok .category-validation-head strong {
  color: #047857;
}

.category-validation-report.warn .category-validation-head strong {
  color: #b45309;
}

.category-validation-report.error .category-validation-head strong {
  color: #be123c;
}

.category-validation-report ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.category-validation-report li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.category-validation-report li b {
  color: #102033;
  font-size: 12px;
  font-weight: 950;
}

.category-validation-report li span {
  color: #334155;
  font-size: 12px;
}

.category-validation-report li small {
  grid-column: 2;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.category-validation-report li.error {
  border-left: 4px solid #f43f5e;
}

.category-validation-report li.warn {
  border-left: 4px solid #f59e0b;
}

.category-validation-report li.more {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.category-sync-status.synced {
  border-color: #b7ebd0;
}

.category-sync-status.synced strong {
  color: #047857;
}

.category-sync-status.partial {
  border-color: #fdba74;
  background:
    radial-gradient(circle at 20px 16px, rgba(251, 146, 60, 0.16), transparent 28px),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-sync-status.partial > strong {
  color: #c2410c;
}

.category-sync-status.pending {
  border-color: #fed7aa;
  background:
    radial-gradient(circle at 20px 16px, rgba(251, 146, 60, 0.16), transparent 28px),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-sync-status.pending strong {
  color: #c2410c;
}

.industry-list-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff6fa2;
}

.industry-list-dot.mint {
  background: #22d4c8;
}

.industry-list-dot.blue {
  background: #7593ff;
}

.industry-list-dot.orange {
  background: #ffc261;
}

.industry-list-dot.purple {
  background: #a37aff;
}

.industry-heat {
  display: block;
  width: 120px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f3f7;
}

.industry-heat i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd1dc;
}

.industry-chart-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.industry-chart-toolbar strong {
  display: block;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.industry-chart-toolbar span {
  display: block;
  margin-top: 5px;
  color: #667d98;
  font-size: 12px;
}

.industry-chart-toolbar button,
.industry-toolbar-pill {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #fff2f5;
  color: #ff2368;
  font-size: 13px;
  font-weight: 900;
}

.industry-toolbar-pill {
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.industry-scatter {
  position: relative;
  min-height: 344px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px),
    repeating-linear-gradient(23deg, rgba(216, 221, 232, 0.12) 0 1px, transparent 1px 112px),
    #fff;
  background-size: 100% 25%, 20% 100%, auto, auto;
}

.industry-axis {
  position: absolute;
  z-index: 3;
  color: #426084;
  font-size: 12px;
  font-weight: 900;
}

.industry-axis.y {
  top: 18px;
  left: 18px;
}

.industry-axis.x {
  right: 18px;
  bottom: 18px;
}

.industry-zero-line {
  position: absolute;
  z-index: 1;
  background: rgba(255, 35, 104, 0.18);
}

.industry-zero-line.vertical {
  top: 34px;
  bottom: 36px;
  left: 50%;
  width: 1px;
}

.industry-zero-line.horizontal {
  right: 32px;
  bottom: 50%;
  left: 48px;
  height: 1px;
}

.industry-bubble {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  padding: 0;
  border: 1px solid rgba(255, 35, 104, 0.28);
  border-radius: 50%;
  background: rgba(255, 35, 104, 0.22);
  color: #9f1239;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(255, 35, 104, 0.12);
  cursor: pointer;
}

.industry-bubble.mint {
  border-color: rgba(34, 212, 200, 0.32);
  background: rgba(34, 212, 200, 0.28);
  color: #0f766e;
  box-shadow: 0 12px 30px rgba(34, 212, 200, 0.14);
}

.industry-bubble.blue {
  border-color: rgba(117, 147, 255, 0.26);
  background: rgba(117, 147, 255, 0.2);
  color: #3346a3;
}

.industry-bubble.orange {
  border-color: rgba(255, 194, 97, 0.34);
  background: rgba(255, 194, 97, 0.26);
  color: #9a5b00;
}

.industry-bubble.purple {
  border-color: rgba(163, 122, 255, 0.28);
  background: rgba(163, 122, 255, 0.2);
  color: #5b2abf;
}

.industry-bubble strong {
  font-size: 12px;
  font-weight: 900;
}

.industry-bubble em {
  color: inherit;
  font-size: 10px;
  font-style: normal;
  opacity: 0.76;
}

.industry-rank-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 430px;
  padding: 16px;
}

.industry-rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

.industry-rank-head h4 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
}

.industry-rank-head span {
  color: #667d98;
  font-size: 12px;
}

.industry-rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas:
    "rank name"
    "rank value";
  gap: 3px 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f5;
}

.industry-rank-row b {
  grid-area: rank;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff2f5;
  color: #ff2368;
  font-size: 12px;
}

.industry-rank-row span {
  grid-area: name;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.industry-rank-row strong {
  grid-area: value;
  color: #426084;
  font-size: 12px;
}

.industry-rank-row em {
  grid-area: value;
  justify-self: end;
  color: #00a99d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.industry-rank-row em.down {
  color: #ff2368;
}

.category-overview-module::before {
  content: "FastMoss  TikTok Analytics";
  position: absolute;
  inset: 48px 0 auto 0;
  height: 92px;
  color: rgba(208, 213, 221, 0.24);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 44px;
  line-height: 92px;
  text-align: center;
  transform: rotate(21deg);
  pointer-events: none;
}

.category-overview-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
}

.category-overview-title h3 {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}

.category-overview-meta {
  position: relative;
  z-index: 1;
  padding: 14px 16px 12px;
  color: #426084;
  font-size: 13px;
}

.fastmoss-overview-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 10px 20px;
}

.fastmoss-metric-card {
  display: grid;
  align-content: space-between;
  min-height: 134px;
  padding: 14px 12px;
  border-radius: 6px;
  background: #fff2f5;
}

.fastmoss-metric-card.mint {
  background: #dcfbf8;
}

.fastmoss-metric-card strong {
  color: #1f2a44;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.fastmoss-metric-card span {
  color: #1f2a44;
  font-size: 13px;
  font-weight: 700;
}

.fastmoss-metric-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fastmoss-metric-card small {
  color: #426084;
  font-size: 11px;
}

.fastmoss-metric-card em {
  color: #ff2368;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.fastmoss-metric-card em.down {
  color: #009b91;
}

.fastmoss-metric-card em.neutral {
  color: #667085;
}

.fastmoss-chart-card {
  position: relative;
  z-index: 1;
  margin: 0 10px;
  padding-top: 6px;
  border-radius: 8px;
  background: #fff;
}

.fastmoss-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 22px 0 0;
  color: #5b6b80;
  font-size: 11px;
}

.fastmoss-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fastmoss-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d4c8;
}

.fastmoss-chart-legend i.line {
  background: #ff2368;
}

.fastmoss-chart-card svg {
  display: block;
  width: 100%;
  height: 300px;
}

.chart-grid {
  stroke: #dbe4ef;
  stroke-dasharray: 4 4;
}

.chart-axis,
.chart-date {
  fill: #69788b;
  font-size: 11px;
}

.chart-axis.right {
  text-anchor: start;
}

.chart-date {
  text-anchor: middle;
}

.sales-bar {
  fill: #25d2c7;
}

.growth-line {
  fill: none;
  stroke: #ff2368;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chart-badge {
  fill: #fff;
  stroke: #ff9a40;
  stroke-width: 4;
}

.chart-badge.blue {
  stroke: #75b7e9;
}

.chart-badge.orange {
  stroke: #ffc261;
}

.category-daily-info {
  margin: 6px 12px 4px;
  padding: 14px;
  border-radius: 10px;
  background: #fafbfc;
}

.category-daily-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-daily-head > div {
  min-width: 0;
}

.category-daily-head h4 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.category-daily-head span {
  color: #667d98;
  font-size: 12px;
}

.category-daily-table-wrap {
  max-height: 452px;
  overflow: auto;
  border: 1px solid #edf1f6;
  border-radius: 9px;
  background: #fff;
}

.category-daily-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.category-daily-table {
  width: 100%;
  border-collapse: collapse;
}

.category-daily-table th,
.category-daily-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #edf1f6;
  color: #172033;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.category-daily-table th {
  background: #f6f8fb;
  color: #426084;
  font-weight: 900;
}

.category-daily-table tr:last-child td {
  border-bottom: 0;
}

.category-daily-table td.up {
  color: #00a99d;
  font-weight: 900;
}

.category-daily-table td.down {
  color: #ff2368;
  font-weight: 900;
}

.fastmoss-section {
  position: relative;
  overflow: hidden;
  padding: 0 12px 18px;
  border-radius: 12px;
  background: #fff;
}

.fastmoss-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(23deg, rgba(216, 221, 232, 0.2) 0 1px, transparent 1px 112px);
  pointer-events: none;
}

.fastmoss-section::after {
  content: "FastMoss";
  position: absolute;
  inset: 10px 0 auto 0;
  color: rgba(208, 213, 221, 0.18);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 92px;
  line-height: 80px;
  text-align: center;
  transform: rotate(18deg);
  pointer-events: none;
}

.fastmoss-section > * {
  position: relative;
  z-index: 1;
}

.fastmoss-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid #eef1f5;
}

.fastmoss-section-head h3 {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}

.fastmoss-section-meta {
  padding: 12px 0 16px;
  color: #426084;
  font-size: 13px;
}

.strategy-analysis-grid,
.price-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strategy-analysis-card,
.price-trend-card {
  position: relative;
  display: grid;
  min-height: 282px;
  padding: 24px 12px 14px;
  border-radius: 10px;
  background: rgba(250, 250, 251, 0.92);
}

.strategy-analysis-card {
  grid-template-columns: minmax(130px, 1fr) 110px minmax(260px, 1fr);
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
}

.strategy-analysis-copy {
  grid-column: 1 / -1;
}

.strategy-analysis-copy h4,
.price-card-head h4 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.strategy-analysis-copy i,
.price-card-head i,
.creator-matrix-table i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8dee8;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

.strategy-analysis-copy p {
  margin: 0;
  color: #426084;
  font-size: 13px;
}

.strategy-analysis-copy strong {
  color: #ff2368;
  font-weight: 900;
}

.strategy-visual-wrap {
  position: static;
  align-self: end;
  justify-self: start;
  grid-column: 1 / 3;
  padding-left: 12px;
}

.strategy-stacked-comparison {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 184px;
}

.strategy-stack-column {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #52637a;
  font-size: 11px;
}

.strategy-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 42px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px 4px 2px 2px;
  background: #eef2f7;
}

.strategy-stack i {
  display: block;
  width: 100%;
  min-height: 1px;
}

.strategy-stack i.pink {
  background: #ff6fa2;
}

.strategy-stack i.mint {
  background: #89eac7;
}

.strategy-stack i.blue {
  background: #7593ff;
}

.strategy-stack.empty {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.stacked-bars {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  align-items: end;
  gap: 0;
  height: 160px;
}

.stacked-bars div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.stacked-bars span:nth-child(1) {
  height: 70%;
  background: #7593ff;
}

.stacked-bars span:nth-child(2) {
  height: 16%;
  background: #9eeed7;
}

.stacked-bars span:nth-child(3) {
  height: 14%;
  background: #ff6fa2;
}

.stacked-bars.channel {
  grid-template-columns: repeat(3, 34px);
  height: 150px;
}

.stacked-bars.channel span:nth-child(1) {
  height: 76%;
  background: #90e7c6;
}

.stacked-bars.channel span:nth-child(2) {
  height: 24%;
  background: #ff6fa2;
}

.stacked-bars.channel span:nth-child(3) {
  display: none;
}

.period-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #344054;
  font-size: 11px;
}

.period-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dee8;
}

.strategy-table-card {
  position: relative;
  align-self: end;
  justify-self: end;
  grid-column: 3 / 4;
  width: min(300px, 100%);
  padding: 14px 12px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.strategy-table-switch {
  position: absolute;
  top: -40px;
  right: 0;
  display: flex;
  gap: 8px;
}

.strategy-table-switch button,
.fastmoss-section-actions button,
.price-card-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7c92;
  font-size: 13px;
  font-weight: 800;
}

.strategy-table-switch button.active,
.fastmoss-section-actions button.active,
.price-card-head button.active {
  background: #fff2f5;
  color: #ff2368;
}

.strategy-table-card table,
.creator-matrix-table table {
  width: 100%;
  border-collapse: collapse;
}

.strategy-table-card table {
  table-layout: fixed;
}

.strategy-table-card .strategy-name-col {
  width: 42%;
}

.strategy-table-card .strategy-value-col {
  width: 36%;
}

.strategy-table-card .strategy-change-col {
  width: 22%;
}

.strategy-table-card th,
.strategy-table-card td {
  padding: 8px 6px;
  color: #172033;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.strategy-table-card th:first-child,
.strategy-table-card td:first-child {
  padding-left: 0;
}

.strategy-table-card th:last-child,
.strategy-table-card td:last-child {
  padding-right: 0;
}

.strategy-table-card th {
  color: #426084;
  font-weight: 800;
}

.strategy-table-card td:nth-child(2),
.strategy-table-card td:nth-child(3) {
  text-align: right;
}

.strategy-table-card em {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff6fa2;
}

.strategy-table-card em.mint {
  background: #89eac7;
}

.strategy-table-card em.blue {
  background: #7593ff;
}

.strategy-table-card .positive {
  color: #00a99d;
}

.strategy-table-card .negative {
  color: #ff2368;
}

.fastmoss-section-actions {
  display: flex;
  gap: 10px;
}

.fastmoss-section-actions button.custom {
  background: #fff2f5;
  color: #ff2368;
}

.fastmoss-section-actions button.custom.active {
  background: #ccfbf1;
  color: #0f766e;
}

.price-custom-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 0 10px;
}

.price-card-head div {
  display: flex;
  gap: 8px;
}

.price-bars {
  padding: 12px 14px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.price-bars-title,
.price-bar-row {
  display: grid;
  grid-template-columns: 64px minmax(80px, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 8px;
}

.price-bars-title {
  margin-bottom: 10px;
  color: #426084;
  font-size: 12px;
  font-weight: 900;
}

.price-bar-row {
  min-height: 20px;
  color: #51657c;
  font-size: 12px;
}

.price-bar-row b {
  height: 12px;
  border-radius: 3px;
  background: transparent;
}

.price-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd4dd;
}

.price-bar-row:first-of-type i {
  background: #ff5d95;
}

.price-bar-row em {
  color: #475467;
  font-style: normal;
}

.creator-channel-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.creator-channel-tabs button {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f6f7f9;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.creator-channel-tabs button.active {
  background: #fff2f5;
  color: #ff2368;
}

.creator-matrix-table {
  overflow-x: auto;
}

.creator-matrix-table th,
.creator-matrix-table td {
  min-width: 180px;
  padding: 14px 12px;
  border-bottom: 1px solid #eef1f5;
  color: #172033;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.creator-matrix-table th:first-child,
.creator-matrix-table td:first-child {
  min-width: 116px;
}

.creator-matrix-table th {
  background: rgba(250, 250, 251, 0.72);
  font-weight: 900;
}

.creator-matrix-value {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.creator-matrix-value span {
  display: inline-block;
  min-width: 112px;
  color: #172033;
}

.creator-mini-bar {
  display: inline-block;
  width: 80px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f3f7;
}

.creator-mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd1dc;
}

.creator-mini-bar i.strong {
  background: #ff5d95;
}

/* ── 营销策略卡片 ── */
.strategy-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.strategy-group-col {
  padding: 16px 20px 20px;
  border-right: 1px solid var(--line-soft);
}

.strategy-group-col:last-child {
  border-right: none;
}

.strategy-group-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.strategy-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.strategy-card-item:last-child {
  margin-bottom: 0;
}

.strategy-card-label {
  color: #475467;
  font-weight: 600;
  font-size: 13px;
  min-width: 60px;
}

.strategy-card-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin: 0 10px;
}

.strategy-card-change {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.strategy-card-change.is-up {
  color: var(--green);
}

.strategy-card-change.is-down {
  color: var(--pink);
}

.strategy-card-change.is-neutral {
  color: var(--muted);
}

.category-summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.2;
}

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

.category-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.category-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.category-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #475467;
  vertical-align: middle;
}

.category-table td > span {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 12px;
}

.category-rank {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.category-product-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 360px;
  color: inherit;
}

.category-product-cell img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
  object-fit: cover;
}

.category-product-cell strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-product-cell em {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.category-bars {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.category-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(120px, 2fr) minmax(70px, auto);
  align-items: center;
  gap: 10px;
}

.category-bar-row span {
  overflow: hidden;
  color: #344054;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-bar-row b {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eef2f6;
}

.category-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}

.category-bar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.category-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.category-api-card {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.category-api-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-api-card span {
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.category-api-card span.is-ok {
  color: #027a48;
}

.category-api-card span.is-review {
  color: #b42318;
}

.category-empty {
  padding: 16px;
  color: var(--muted);
}

.data-freshness,
.monitor-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.data-freshness {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.5fr);
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.data-freshness > div:first-child {
  display: grid;
  align-content: center;
  gap: 5px;
}

.data-freshness b {
  color: #172033;
  font-size: 15px;
}

.data-freshness span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.freshness-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.freshness-item span,
.freshness-item em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.freshness-item b {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-board {
  overflow: hidden;
}

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

.monitor-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
}

.monitor-card.blue {
  border-left-color: #2563eb;
}

.monitor-card.green {
  border-left-color: #10b981;
}

.monitor-card.amber {
  border-left-color: #f59e0b;
}

.monitor-card.rose {
  border-left-color: #ff2f6d;
}

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

.monitor-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.monitor-card-head b {
  color: #172033;
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.monitor-spark {
  height: 58px;
  margin: 10px 0;
}

.monitor-spark svg {
  display: block;
  width: 100%;
  height: 58px;
}

.spark-area {
  fill: rgba(37, 99, 235, 0.09);
  stroke: none;
}

.spark-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.monitor-card.green .spark-line {
  stroke: #10b981;
}

.monitor-card.green .spark-area {
  fill: rgba(16, 185, 129, 0.1);
}

.monitor-card.amber .spark-line {
  stroke: #f59e0b;
}

.monitor-card.amber .spark-area {
  fill: rgba(245, 158, 11, 0.12);
}

.monitor-card.rose .spark-line {
  stroke: #ff2f6d;
}

.monitor-card.rose .spark-area {
  fill: rgba(255, 47, 109, 0.1);
}

.spark-empty {
  display: grid;
  height: 58px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.monitor-card strong,
.monitor-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-card strong {
  color: #172033;
  font-size: 13px;
}

.monitor-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.monitor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line-soft);
  background: #f8fafc;
}

.monitor-pill {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.monitor-pill span,
.monitor-pill b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.monitor-pill b {
  margin-top: 4px;
  color: #172033;
  font-size: 13px;
}

.agent-context-board {
  display: grid;
  gap: 10px;
}

.agent-context-board .data-freshness,
.agent-context-board .monitor-board {
  box-shadow: none;
}

.agent-context-board .data-freshness {
  grid-template-columns: 1fr;
  padding: 12px;
}

.agent-context-board .freshness-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-context-board .monitor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 12px;
}

.agent-context-board .monitor-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 12px 12px;
}

.agent-context-board .monitor-card-head b {
  font-size: 18px;
}

.agent-context-board .monitor-spark,
.agent-context-board .monitor-spark svg,
.agent-context-board .spark-empty {
  height: 42px;
}

.anchor-tabs {
  position: sticky;
  top: 66px;
  z-index: 15;
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  scrollbar-width: none;
  white-space: nowrap;
}

.anchor-tabs::-webkit-scrollbar {
  display: none;
}

.anchor-tabs a {
  flex: 0 0 auto;
  padding: 12px 10px 11px;
  border-bottom: 2px solid transparent;
  color: #344054;
  font-weight: 600;
  line-height: 1;
  scroll-margin-inline: 18px;
}

.anchor-tabs a:hover {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.anchor-tabs a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

@media (min-width: 961px) {
  .anchor-tabs {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 4px;
    padding: 6px 10px;
    mask-image: none;
    white-space: normal;
  }

  .anchor-tabs a {
    min-height: 38px;
    padding: 0 10px;
    line-height: 38px;
  }
}

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

.module {
  min-width: 0;
  padding: 0;
  scroll-margin-top: 126px;
}

.module.full {
  grid-column: 1 / -1;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.small-metric {
  position: relative;
  display: block;
  height: auto;
  min-height: 82px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.small-metric.selected {
  border-color: #ff9eb4;
  background: #fff5f7;
}

.small-metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.small-metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.small-metric em {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
}

.small-metric i {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border: 1px solid #cfd6e2;
  border-radius: 50%;
  background: #fff;
}

.small-metric.selected i {
  border-color: #ff3b6b;
  background: #ff3b6b;
}

.small-metric.selected i::after {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.trend-card {
  margin: 0 16px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.trend-head h4 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.trend-head h4 small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.trend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.trend-actions button {
  height: 28px;
  min-width: 58px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.trend-actions .range-tabs {
  gap: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #f7f8fb;
}

.trend-actions .range-tabs button {
  min-width: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trend-actions .range-tabs button.active {
  background: #fff1f2;
  color: #f43f5e;
}

.trend-actions button {
  background: #fff1f2;
  color: #f43f5e;
  cursor: pointer;
}

.trend-actions button.active {
  background: #ffe4e9;
  color: #e11d48;
}

.trend-actions .export-button {
  background: #eef4ff;
  color: #2563eb;
}

.trend-actions .export-button:hover {
  background: #dbeafe;
}

.trend-chart {
  position: relative;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 280px;
}

.grid-line {
  stroke: #e5eaf2;
  stroke-width: 1;
}

.axis-label {
  fill: #7a8699;
  font-size: 11px;
}

.trend-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-line.sales {
  stroke: #ff3b6b;
}

.trend-line.gmv {
  stroke: #2dd4bf;
}

.trend-line.tone-0 {
  stroke: #ff3b6b;
}

.trend-line.tone-1 {
  stroke: #2dd4bf;
}

.trend-line.tone-2 {
  stroke: #6366f1;
}

.trend-line.tone-3 {
  stroke: #f59e0b;
}

.trend-line.tone-4 {
  stroke: #10b981;
}

.trend-line.tone-5 {
  stroke: #8b5cf6;
}

.trend-line.tone-6 {
  stroke: #ef4444;
}

.trend-line.tone-7 {
  stroke: #64748b;
}

.trend-hit-area {
  fill: transparent;
  pointer-events: all;
}

.trend-hit > line {
  opacity: 0;
  stroke: #94a3b8;
  stroke-dasharray: 4 4;
}

.trend-hit > circle {
  opacity: 0;
  fill: #fff;
  stroke: #64748b;
  stroke-width: 2;
}

.trend-hit:hover > line,
.trend-hit:focus > line,
.trend-hit:hover > circle,
.trend-hit:focus > circle,
.trend-hit:hover .trend-tooltip,
.trend-hit:focus .trend-tooltip {
  opacity: 1;
}

.trend-tooltip {
  opacity: 0;
  pointer-events: none;
}

.trend-tooltip rect {
  fill: rgba(67, 85, 111, 0.94);
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

.trend-tooltip text {
  fill: #fff;
  font-size: 12px;
  font-weight: 600;
}

.trend-tooltip .tooltip-date {
  fill: #e8eef8;
  font-weight: 800;
}

.tooltip-dot.tone-0 {
  fill: #ff3b6b;
}

.tooltip-dot.tone-1 {
  fill: #2dd4bf;
}

.tooltip-dot.tone-2 {
  fill: #6366f1;
}

.tooltip-dot.tone-3 {
  fill: #f59e0b;
}

.tooltip-dot.tone-4 {
  fill: #10b981;
}

.tooltip-dot.tone-5 {
  fill: #8b5cf6;
}

.tooltip-dot.tone-6 {
  fill: #ef4444;
}

.tooltip-dot.tone-7 {
  fill: #64748b;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 6px;
  padding: 0 80px;
  color: var(--muted);
  font-size: 12px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.trend-legend i.sales {
  background: #ff3b6b;
}

.trend-legend i.gmv {
  background: #2dd4bf;
}

.trend-legend i.tone-0 {
  background: #ff3b6b;
}

.trend-legend i.tone-1 {
  background: #2dd4bf;
}

.trend-legend i.tone-2 {
  background: #6366f1;
}

.trend-legend i.tone-3 {
  background: #f59e0b;
}

.trend-legend i.tone-4 {
  background: #10b981;
}

.trend-legend i.tone-5 {
  background: #8b5cf6;
}

.trend-legend i.tone-6 {
  background: #ef4444;
}

.trend-legend i.tone-7 {
  background: #64748b;
}

.trend-table {
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trend-table table {
  min-width: 720px;
}

.trend-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.trend-table td,
.trend-table th {
  white-space: nowrap;
}

.overview-subtabs {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 10px;
}

.overview-subtabs .range-tabs {
  overflow: hidden;
  border-radius: 999px;
  background: #f7f8fb;
}

.overview-subtabs .range-tabs button {
  min-width: 72px;
  border: 0;
  border-radius: 0;
}

.three-columns,
.two-columns {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

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

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

.creator-distributions {
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
}

.creator-distribution-card {
  align-self: start;
  box-shadow: none;
}

.creator-distribution-card .table-caption-actions b {
  color: var(--muted);
  font-size: 12px;
}

.distribution-table-scroll {
  overflow-x: auto;
}

.distribution-table-scroll.is-folded {
  max-height: 314px;
  overflow-y: auto;
}

.distribution-table-scroll.is-folded thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-caption {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
  line-height: 42px;
}

.table-caption-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: 42px;
  line-height: 1.4;
}

.table-caption-actions .trend-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-caption-actions .trend-actions b {
  color: var(--muted);
  font-size: 12px;
}

.table-caption-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.creator-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 48px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.creator-pagination > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-pagination .trend-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.creator-pagination .trend-actions b {
  color: var(--muted);
  font-size: 12px;
}

.creator-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-page-jump input {
  width: 58px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.creator-page-jump input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(37, 99, 235, 0.14);
}

.creator-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.share-visual {
  display: grid;
  gap: 12px;
  margin: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.share-visual.empty {
  color: var(--muted);
}

.share-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #c7d2fe;
}

.share-visual-head span {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}

.share-visual-head b {
  height: 22px;
  padding: 0 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  line-height: 20px;
}

.share-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(82px, 1fr) minmax(48px, auto);
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.share-visual.no-extra .share-bar-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 1.4fr);
}

.share-bar-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.share-bar-label span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.share-bar-label b {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--blue);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.share-bar-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: #eaf0f8;
}

.share-bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: #2563eb;
}

.share-bar-track i[data-tone="1"] {
  background: #0f9f8f;
}

.share-bar-track i[data-tone="2"] {
  background: #f59e0b;
}

.share-bar-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.share-card table {
  border-top: 1px solid var(--line-soft);
}

.creator-ranking,
.live-ranking {
  margin-top: 14px;
}

#creators .creator-ranking {
  margin: 16px;
}

.creator-table-scroll,
.live-table-scroll {
  overflow-x: auto;
}

.creator-ranking table {
  min-width: 980px;
}

.live-ranking table {
  min-width: 920px;
}

.creator-ranking th:first-child,
.creator-ranking td:first-child {
  min-width: 220px;
}

.creator-ranking th:nth-child(4),
.creator-ranking td:nth-child(4),
.creator-ranking th:nth-child(5),
.creator-ranking td:nth-child(5),
.creator-ranking th:nth-child(7),
.creator-ranking td:nth-child(7) {
  min-width: 150px;
}

.creator-sort,
.live-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.creator-sort::after,
.live-sort::after {
  content: "";
  display: inline-block;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.45;
}

.creator-sort.desc::after,
.live-sort.desc::after {
  border-top: 5px solid currentColor;
}

.creator-sort.asc::after,
.live-sort.asc::after {
  border-bottom: 5px solid currentColor;
}

.creator-sort.active,
.live-sort.active {
  color: var(--blue);
}

.creator-sort:hover,
.live-sort:hover {
  color: var(--blue);
}

.creator-cell {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
}

.creator-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.creator-meta strong {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-meta em {
  width: fit-content;
  max-width: 180px;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #7a5060;
  font-style: normal;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-line {
  margin: 16px 16px 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #1e3a8a;
  font-weight: 600;
}

.range-note {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.module-title h3 {
  font-size: 16px;
}

.module-title span {
  color: var(--muted);
  font-size: 12px;
}

.module-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.comment-title {
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.comment-title > div:first-child {
  display: grid;
  gap: 4px;
}

.overview-date-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.date-range-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.date-range-control input {
  width: 126px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.date-range-control span {
  color: var(--muted);
  font-size: 12px;
}

.date-range-control b {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  line-height: 22px;
}

.live-title-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.live-date-range {
  height: 32px;
  border-color: transparent;
  background: #f8fafc;
}

.live-date-range b {
  background: transparent;
  color: #59708f;
}

.live-date-range .calendar-mark {
  width: 16px;
  overflow: hidden;
  color: transparent;
}

.live-date-range .calendar-mark::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #cbd5e1;
  border-top-width: 3px;
  border-radius: 3px;
  vertical-align: -2px;
}

.range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.range-tabs button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.range-tabs button.active {
  border-color: #bfdbfe;
  background: var(--blue-soft);
  color: var(--blue);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.video-filter-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.video-filter-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.video-filter-row .range-tabs {
  justify-content: flex-start;
}

.filter-label {
  flex: 0 0 64px;
  color: var(--muted);
  white-space: nowrap;
}

.video-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.video-filter-actions .export-button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
}

.video-filter-actions .export-button:hover {
  background: #ffe4e6;
}

.live-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-filter-actions .export-button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
}

.live-filter-actions .export-button:hover {
  background: #ffe4e6;
}

.video-table-summary {
  padding: 0 16px 10px;
  color: #59708f;
  font-size: 12px;
  font-weight: 800;
}

.comment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(220px, 1.4fr);
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdff;
}

.comment-metric,
.comment-note {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comment-metric.warning {
  border-color: #fecdd3;
  background: #fff1f2;
}

.comment-metric strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.comment-metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comment-note {
  display: flex;
  align-items: center;
  color: #59708f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.comment-detail {
  padding: 14px 16px 0;
}

.comment-detail .table-wrap {
  border-radius: 6px;
}

.comment-table th:nth-child(1),
.comment-table td:nth-child(1) {
  width: 72px;
}

.comment-table th:nth-child(2),
.comment-table td:nth-child(2) {
  width: 190px;
}

.comment-table th:nth-child(3),
.comment-table td:nth-child(3) {
  width: 190px;
}

.comment-table th:nth-child(4),
.comment-table td:nth-child(4) {
  width: auto;
}

.comment-table td {
  vertical-align: middle;
}

.comment-text {
  display: -webkit-box;
  max-height: 4.8em;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#comments {
  padding-bottom: 18px;
}

.agent-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 42;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 16px;
  background: #ff2f6d;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(255, 47, 109, 0.35);
}

.agent-fab b,
.agent-fab span {
  display: block;
  line-height: 1;
}

.agent-fab b {
  font-size: 14px;
}

.agent-fab span {
  font-size: 10px;
}

.agent-card {
  position: fixed;
  right: 108px;
  bottom: 28px;
  z-index: 43;
  width: min(680px, calc(100vw - 132px));
  max-height: min(620px, calc(100vh - 56px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.agent-card-head,
.agent-card-title,
.agent-chat-brand,
.agent-answer-head,
.agent-tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-card-head {
  justify-content: space-between;
}

.agent-card-head > div:nth-child(2) {
  flex: 1;
}

.agent-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff2f6d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.agent-card-head span {
  display: block;
  margin-top: 3px;
  color: #0f9f8f;
  font-size: 12px;
  font-weight: 700;
}

.agent-card-head [data-agent-close] {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 28px;
}

.agent-history-button {
  height: 30px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.agent-history-button:disabled {
  border-color: var(--line);
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.agent-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.agent-chat-main > .agent-source-card {
  margin-top: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.agent-source-product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.agent-source-product img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
  object-fit: cover;
}

.agent-source-product > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agent-source-product span,
.agent-source-product em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-source-product span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.agent-source-product strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.agent-source-product em {
  color: #64748b;
  line-height: 1.45;
  white-space: normal;
}

.agent-source-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #e5eefb;
}

.agent-source-actions .agent-product-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  max-width: none;
}

.agent-source-actions .agent-product-switch select {
  width: 100%;
  min-width: 0;
}

.agent-source-actions .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 36px;
  line-height: 34px;
}

.agent-card-title {
  justify-content: space-between;
  margin-top: 18px;
}

.agent-card-title button {
  height: 32px;
  min-width: 96px;
  padding: 0 12px;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
}

.agent-card-title button:hover {
  background: #ffe4e6;
}

.agent-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.agent-category-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.agent-category-tabs button.active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.agent-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.agent-prompt-grid button {
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: #344054;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.agent-prompt-grid button:hover {
  border-color: #fecdd3;
  background: #fff7f9;
  color: #e11d48;
}

.agent-card-input,
.agent-chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 10px;
  margin-top: 14px;
}

.agent-input-wrap {
  position: relative;
  min-width: 0;
}

.agent-card-input input,
.agent-chat-input input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.agent-mention-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 3;
  display: none;
  gap: 2px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.agent-input-wrap.mention-open .agent-mention-panel {
  display: grid;
}

.agent-mention-panel strong {
  padding: 2px 6px 0;
  color: #172033;
  font-size: 12px;
}

.agent-mention-panel small {
  padding: 0 6px 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.agent-mention-panel button {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  text-align: left;
}

.agent-mention-panel button:hover {
  background: #fff7f9;
}

.agent-mention-panel span {
  color: #e11d48;
  font-size: 12px;
  font-weight: 900;
}

.agent-mention-panel em {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-input > button,
.agent-chat-input > button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ff2f6d;
  color: #fff;
  font-weight: 900;
}

.agent-chat {
  position: fixed;
  top: 66px;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  width: min(1040px, calc(100vw - 48px));
  background: #f6f7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

@media (min-width: 761px) and (max-width: 1040px) {
  .agent-chat {
    right: 12px;
    left: 12px;
    grid-template-columns: 190px minmax(0, 1fr);
    width: auto;
  }

  .agent-chat-sidebar {
    padding: 16px 10px;
  }

}

.agent-chat-sidebar {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.agent-chat-brand {
  justify-content: space-between;
}

.agent-chat-brand strong {
  margin-right: auto;
  color: #ff2f6d;
  font-size: 18px;
}

.agent-chat-brand [data-agent-close] {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.agent-new-chat,
.agent-session {
  width: 100%;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.agent-new-chat {
  height: 36px;
  border-color: #fee2e2;
  background: #fff1f2;
  color: #ff2f6d;
  text-align: center;
  font-weight: 800;
}

.agent-new-chat.secondary {
  margin-top: 8px;
  border-color: var(--line);
  background: #fff;
  color: #475569;
}

.agent-chat-sidebar > span {
  display: block;
  margin: 22px 8px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-session-sync {
  display: block;
  margin: -4px 8px 10px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.agent-session-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 2px;
}

.agent-session-list p {
  margin: 8px;
  color: var(--muted);
  font-size: 12px;
}

.agent-session-row {
  position: relative;
  border-radius: 8px;
}

.agent-session {
  display: grid;
  gap: 5px;
  min-height: 54px;
  width: 100%;
  padding-right: 34px;
  border: 0;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.agent-session.active,
.agent-session-row.active .agent-session {
  background: #fff1f2;
  color: #ff2f6d;
}

.agent-session strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.agent-session em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.agent-session-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
}

.agent-session-delete:hover {
  background: #ffe4e6;
  color: #ff2f6d;
}

.agent-chat-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  padding: 18px 24px 0;
  overflow: hidden;
}

.agent-user-bubble {
  justify-self: end;
  width: min(680px, calc(100% - 18px));
  max-width: min(680px, calc(100% - 18px));
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.agent-answer {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.agent-answer-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 12px;
}

.agent-answer-head strong {
  color: #667085;
}

.agent-answer-head span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.agent-thinking,
.agent-tool-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agent-thinking {
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.agent-thinking summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.agent-thinking summary::-webkit-details-marker {
  display: none;
}

.agent-thinking summary span {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.agent-thinking summary span::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: #64748b;
}

.agent-thinking[open] summary span::before {
  transform: rotate(90deg);
}

.agent-thinking summary em {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-thinking p,
.agent-tool-card p,
.agent-report p,
.agent-report li {
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
}

.agent-thinking > p {
  padding: 0 14px;
}

.agent-thinking dl {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 0 14px;
}

.agent-thinking dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.agent-thinking dt {
  color: var(--muted);
}

.agent-data-calls,
.agent-steps {
  margin: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcff;
}

.agent-data-calls strong,
.agent-steps strong {
  display: block;
  color: #172033;
  font-size: 13px;
}

.agent-data-calls ul,
.agent-steps ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.agent-call-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.agent-call-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
  border-radius: 8px;
  background: #fff;
}

.agent-call-card span,
.agent-call-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-call-card b {
  display: block;
  overflow: hidden;
  margin: 5px 0 4px;
  color: #172033;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-call-card.blue {
  border-left-color: #2563eb;
}

.agent-call-card.green {
  border-left-color: #10b981;
}

.agent-call-card.slate {
  border-left-color: #64748b;
}

.agent-call-card.amber {
  border-left-color: #f59e0b;
}

.agent-call-card.rose {
  border-left-color: #ff2f6d;
}

@media (min-width: 761px) and (max-width: 1040px) {
  .agent-call-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.agent-steps ol {
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.agent-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-steps li b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff1f2;
  color: #ff2f6d;
  font-size: 12px;
}

.agent-steps li span {
  min-width: 0;
}

.agent-tool-card {
  border-color: #fecdd3;
}

.agent-tool-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #ff2f6d;
}

.agent-tool-title span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #ff2f6d;
  font-size: 12px;
}

.agent-result-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.agent-result-box p {
  margin-top: 8px;
}

.agent-result-box.agent-loading {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.agent-result-box.agent-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.agent-result-box.agent-error button {
  height: 32px;
  margin-top: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #ff2f6d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.agent-result-box ul {
  columns: 2;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
  line-height: 1.8;
}

.agent-report {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.agent-report ol {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.agent-markdown {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #334155;
}

.agent-warning {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.agent-evidence {
  display: block;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.agent-evidence-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.agent-evidence-head::-webkit-details-marker {
  display: none;
}

.agent-evidence-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agent-evidence-head strong {
  color: #172033;
  font-size: 14px;
}

.agent-evidence-head strong::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: #64748b;
}

.agent-evidence[open] .agent-evidence-head strong::before {
  transform: rotate(90deg);
}

.agent-evidence-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-evidence-head b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
}

.agent-evidence-body {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0 12px 12px;
}

.agent-evidence-body > * + * {
  margin-top: 10px;
}

.agent-evidence-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.agent-evidence-body th,
.agent-evidence-body td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: #475569;
  text-align: left;
  vertical-align: top;
}

.agent-evidence-body th {
  background: #f8fafc;
  color: #172033;
  font-weight: 900;
}

.agent-evidence-body tr:last-child td {
  border-bottom: 0;
}

.agent-evidence-source-bars {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-evidence-source-bars > span {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}

.agent-evidence-detail {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-evidence-detail > div {
  display: grid;
  gap: 3px;
}

.agent-evidence-detail strong {
  color: #172033;
  font-size: 12px;
}

.agent-evidence-detail span {
  color: #64748b;
  font-size: 12px;
}

.agent-evidence-detail .agent-report-table {
  display: table;
  width: 100%;
  min-width: 780px;
  margin: 0;
  font-size: 12px;
}

.agent-evidence-detail .agent-paged-table {
  overflow-x: visible;
}

.agent-live-summary-overview {
  overflow-x: hidden;
}

.agent-live-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.agent-live-summary-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  background: #f8fafc;
}

.agent-live-summary-metrics span,
.agent-live-summary-metrics em {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-live-summary-metrics strong {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  color: #172033;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-live-summary-copy {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.agent-live-summary-copy p {
  margin: 0 0 6px;
}

.agent-live-summary-copy ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.agent-live-summary-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-live-summary-hosts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.agent-live-summary-hosts b {
  color: #2563eb;
  font-size: 11px;
}

.agent-live-summary-text {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.agent-share-visuals {
  display: grid;
  gap: 10px;
}

.agent-share-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.agent-share-note > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agent-share-note strong {
  color: #172033;
  font-size: 13px;
}

.agent-share-note span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-share-group {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-share-group-inline {
  margin: 2px 0;
  border-color: #dbeafe;
}

.agent-share-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
}

.agent-share-group-head strong {
  color: #172033;
  font-size: 13px;
}

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

.agent-share-rows {
  display: grid;
}

.agent-dual-share-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.7fr) minmax(190px, 1.3fr) minmax(190px, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.agent-dual-share-row:last-child {
  border-bottom: 0;
}

.agent-dual-share-row > b {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-share-metric {
  display: grid;
  grid-template-columns: 42px minmax(76px, 1fr) minmax(68px, auto);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.agent-share-metric span,
.agent-share-metric em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-share-metric i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f8;
}

.agent-share-metric b {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: #2563eb;
}

.agent-share-metric b[data-tone="product"] {
  background: #2563eb;
}

.agent-share-metric b[data-tone="creator"] {
  background: #10b981;
}

.agent-share-metric b[data-tone="shop"] {
  background: #f59e0b;
}

.agent-share-metric b[data-tone="video"] {
  background: #ff2f6d;
}

.agent-share-metric b[data-tone="live"] {
  background: #f59e0b;
}

.agent-share-metric b[data-tone="ads"] {
  background: #f59e0b;
}

.agent-share-metric b[data-tone="other"] {
  background: #10b981;
}

.agent-share-metric b[data-tone="default"] {
  background: #2563eb;
}

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

.agent-evidence-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  background: #fff;
}

.agent-evidence-card.green {
  border-left-color: #10b981;
}

.agent-evidence-card.amber {
  border-left-color: #f59e0b;
}

.agent-evidence-card.rose {
  border-left-color: #ff2f6d;
}

.agent-evidence-card div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.agent-evidence-card span,
.agent-evidence-card em,
.agent-evidence-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-evidence-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.agent-evidence-card b {
  color: #172033;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

.agent-evidence-card em {
  margin-top: 6px;
  color: #667085;
  font-style: normal;
  font-size: 11px;
}

.agent-evidence-spark,
.agent-evidence-spark svg,
.agent-evidence-spark .spark-empty {
  height: 38px;
}

.agent-evidence-spark {
  margin: 8px 0;
}

.agent-evidence-card strong {
  color: #172033;
  font-size: 12px;
}

.agent-evidence-bars {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-evidence-bars > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-evidence-bars strong {
  color: #172033;
  font-size: 13px;
}

.agent-evidence-bars span {
  color: var(--muted);
  font-size: 12px;
}

.agent-evidence-bars p {
  color: var(--muted);
  font-size: 12px;
}

.agent-mini-bar {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(110px, 1.4fr) 46px;
  gap: 8px;
  align-items: center;
}

.agent-mini-bar span,
.agent-mini-bar em {
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mini-bar i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f8;
}

.agent-mini-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.agent-mini-bar b[data-tone="1"] {
  background: #10b981;
}

.agent-mini-bar b[data-tone="2"] {
  background: #f59e0b;
}

.agent-evidence-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.agent-meta-pill {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-meta-pill span,
.agent-meta-pill b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-meta-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.agent-meta-pill b {
  margin-top: 4px;
  color: #172033;
  font-size: 12px;
}

.agent-markdown h4 {
  margin: 8px 0 0;
  color: #172033;
  font-size: 15px;
}

.agent-markdown p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.agent-markdown strong {
  color: #172033;
  font-weight: 900;
}

.agent-markdown .agent-bullet {
  padding-left: 10px;
}

.agent-table-line {
  margin: 0;
  overflow-x: auto;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fbfcff;
  color: #475569;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

.agent-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.agent-structure-details {
  margin: 12px 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.agent-structure-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f4f5f7;
  color: #1f2937;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.agent-structure-details > summary::-webkit-details-marker {
  display: none;
}

.agent-structure-details > summary::after {
  content: "⌄";
  color: #6b7280;
  font-size: 16px;
  transition: transform .15s ease;
}

.agent-structure-details[open] > summary::after {
  transform: rotate(180deg);
}

.agent-structure-details > summary span {
  margin-left: auto;
  margin-right: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.agent-structure-content {
  padding: 10px 12px 12px;
}

.agent-structure-content > h4 {
  margin-top: 12px;
}

.agent-table-wrap table {
  min-width: 640px;
}

.agent-table-wrap th,
.agent-table-wrap td {
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.55;
  vertical-align: top;
}

.agent-followups {
  display: grid;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 12px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.agent-followups-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.agent-followups-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.agent-followups button {
  display: block;
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.agent-followups button:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
  text-decoration: none;
}

/* Formal analysis presentation: layout-only, the answer data remains unchanged. */
.formal-answer {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  color: #1a1b1c;
  font-family: Roboto, "PingFang SC", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.agent-tool-card:has(.formal-answer) {
  box-shadow: none;
  border-radius: 12px;
}

.formal-conclusion,
.formal-data-support,
.formal-actions,
.formal-path-card {
  box-shadow: none;
}

.formal-conclusion {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid rgba(82, 196, 26, .35);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(82, 196, 26, .10), rgba(82, 196, 26, .18));
}

.formal-conclusion strong {
  color: #1a1b1c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.formal-conclusion span {
  color: #4b5563;
  font-size: 12.5px;
}

.formal-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 10px;
  min-width: 0;
}

.formal-path-card {
  min-width: 0;
  padding: 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
}

.formal-path-card.recommended { border-color: #52c41a; }
.formal-path-card.optional { border-color: #faad14; }
.formal-path-card.avoid { border-color: #ea6668; }

.formal-path-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.formal-path-title strong {
  min-width: 0;
  color: #1a1b1c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.formal-path-title span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.formal-path-card.recommended .formal-path-title span { background: #52c41a; }
.formal-path-card.optional .formal-path-title span { background: #faad14; }
.formal-path-card.avoid .formal-path-title span { background: #ea6668; }

.formal-path-risk {
  margin-top: 5px;
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.45;
}

.formal-path-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(0, 0, 0, .08);
}

.formal-path-body {
  display: grid;
  gap: 7px;
}

.formal-path-body p {
  margin: 0;
  color: #374151;
  font-size: 12.5px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.formal-path-body p strong {
  margin-right: 3px;
  color: #1a1b1c;
  font-weight: 800;
}

.formal-data-support {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: rgba(0, 0, 0, .025);
}

.formal-section-title {
  margin-bottom: 9px;
  color: #1a1b1c;
  font-size: 14px;
  font-weight: 800;
}

.formal-data-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.formal-data-card {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 10px 11px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: #fff;
}

.formal-data-card span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.formal-data-card strong {
  display: block;
  margin-top: 4px;
  color: #1a1b1c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.formal-data-card strong em {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.formal-data-card strong em.positive { color: #3d9414; }
.formal-data-card strong em.negative { color: #d84f52; }

.formal-data-card small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.formal-data-card small.positive { color: #3d9414; }
.formal-data-card small.negative { color: #d84f52; }

.formal-data-notes {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.formal-data-notes p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.formal-actions {
  padding: 0;
}

.formal-actions ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 21px;
  color: #1a1b1c;
}

.formal-actions li {
  padding-left: 2px;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.formal-footer {
  padding-top: 3px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.formal-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .formal-path-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
}

@media (max-width: 480px) {
  .formal-answer { gap: 10px; }
  .formal-path-grid { grid-template-columns: minmax(0, 1fr); }
  .formal-path-card { padding: 11px; }
  .formal-data-card { flex-basis: 100%; min-width: 0; }
}

/* Keep the formal result specification authoritative over agent-answer-ui.css. */
body[data-page="agent"] .agent-tool-card:has(.formal-answer) {
  border-radius: 12px;
  box-shadow: none;
}

body[data-page="agent"] .agent-markdown .formal-answer {
  color: #1a1b1c;
  font-family: Roboto, "PingFang SC", "Segoe UI", sans-serif;
  font-size: 13px;
}

body[data-page="agent"] .agent-markdown .formal-conclusion strong,
body[data-page="agent"] .agent-markdown .formal-path-title strong,
body[data-page="agent"] .agent-markdown .formal-section-title,
body[data-page="agent"] .agent-markdown .formal-path-body p,
body[data-page="agent"] .agent-markdown .formal-actions li,
body[data-page="agent"] .agent-markdown .formal-data-card strong {
  color: #1a1b1c;
}

body[data-page="agent"] .agent-markdown .formal-conclusion span,
body[data-page="agent"] .agent-markdown .formal-path-risk,
body[data-page="agent"] .agent-markdown .formal-data-card > span,
body[data-page="agent"] .agent-markdown .formal-footer p {
  color: #6b7280;
}

body[data-page="agent"] .agent-markdown .formal-data-card strong em.positive { color: #3d9414; }
body[data-page="agent"] .agent-markdown .formal-data-card strong em.negative { color: #d84f52; }
body[data-page="agent"] .agent-markdown .formal-data-card small.positive { color: #3d9414; }
body[data-page="agent"] .agent-markdown .formal-data-card small.negative { color: #d84f52; }

.agent-chat-input button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.agent-chat-input {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -24px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
  background: rgba(246, 247, 251, 0.96);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.agent-page-main {
  width: min(1440px, 100%);
  overflow-x: hidden;
  padding-bottom: 18px;
}

.agent-dashboard {
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.agent-standalone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  min-height: calc(100vh - 120px);
}

.agent-standalone-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agent-standalone-product {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.agent-standalone-product > div {
  min-width: 0;
  overflow: hidden;
}

.agent-standalone-product img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
  object-fit: cover;
}

.agent-standalone-product span,
.agent-standalone-product p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-standalone-product h2 {
  overflow: hidden;
  max-width: 100%;
  margin: 3px 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-standalone-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.agent-product-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 360px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-product-switch select {
  width: min(260px, 45vw);
  min-width: 180px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.agent-standalone-body {
  min-height: 0;
  min-width: 0;
}

.agent-standalone .agent-chat {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  grid-template-columns: 240px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 214px);
  border-radius: 8px;
  box-shadow: none;
}

.agent-standalone .agent-chat-sidebar {
  min-width: 0;
}

.agent-standalone .agent-chat-main,
.agent-standalone .agent-answer-scroll,
.agent-standalone .agent-answer,
.agent-standalone .agent-tool-card,
.agent-standalone .agent-result-box,
.agent-standalone .agent-report-ui {
  max-width: 100%;
  min-width: 0;
}

.agent-standalone .agent-card {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: min(860px, 100%);
  max-height: none;
  margin: 0 auto;
  box-shadow: none;
}

.agent-standalone .agent-session-list {
  max-height: calc(100vh - 346px);
}

.agent-standalone .agent-chat-main {
  min-height: calc(100vh - 214px);
}

.agent-standalone .agent-answer-scroll {
  min-height: 0;
}

.agent-standalone .agent-report-head p,
.agent-standalone .agent-report-ui p,
.agent-standalone .agent-report-ui td,
.agent-standalone .agent-report-ui h3 {
  overflow-wrap: anywhere;
}

.agent-standalone .agent-table-wrap,
.agent-standalone .agent-report-chart {
  max-width: 100%;
  overflow-x: auto;
}

.agent-standalone .agent-report-table {
  display: block;
  max-width: calc(100% - 40px);
  overflow-x: auto;
  white-space: nowrap;
}

.agent-standalone .agent-evidence-detail .agent-report-table {
  display: table;
  width: 100%;
  max-width: none;
  min-width: 780px;
  margin: 0;
}

.agent-report-ui {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.agent-report-head {
  padding: 18px 20px;
  border-top: 8px solid #fff1f5;
  border-bottom: 1px solid var(--line);
}

.agent-report-head span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
}

.agent-report-head h3 {
  margin: 8px 0 6px;
  color: #172033;
  font-size: 24px;
}

.agent-report-head p {
  margin: 0;
  color: #475569;
}

.agent-report-read,
.agent-report-decision,
.agent-report-note,
.agent-report-final {
  margin: 16px 20px;
  padding: 13px 16px;
  border-left: 4px solid #2f6bff;
  background: #edf4ff;
}

.agent-report-decision {
  border-left-color: #ff2f6d;
  background: #fff1f5;
}

.agent-report-final {
  border-left-color: #18a66a;
  background: #ecfdf5;
  color: #14532d;
}

.agent-report-read strong,
.agent-report-decision strong,
.agent-report-note strong,
.agent-report-final strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
}

.agent-report-read span,
.agent-report-decision span,
.agent-report-note span {
  color: #475569;
  line-height: 1.7;
}

.agent-report-ui > h4 {
  margin: 20px 20px 10px;
  color: #172033;
  font-size: 16px;
}

.agent-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 20px 16px;
  border: 1px solid var(--line);
}

.agent-report-metrics > div {
  min-height: 82px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agent-report-metrics > div:nth-child(4n) {
  border-right: 0;
}

.agent-report-metrics span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.agent-report-metrics b {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 21px;
}

.agent-report-metrics em {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.agent-report-chart {
  margin: 0 20px 16px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.agent-report-list-note {
  margin: 0 20px 8px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.agent-paged-table {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.agent-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.agent-table-scroll .agent-report-table {
  margin-bottom: 0;
}

.agent-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 0 20px;
  color: #64748b;
  font-size: 12px;
}

.agent-table-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.agent-table-pagination button {
  min-width: 58px;
  padding: 6px 10px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.agent-table-pagination button:disabled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.agent-evidence-detail .agent-table-pagination {
  width: 100%;
  margin: 0;
}

.agent-report-table {
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.agent-report-table th {
  background: #fff1f5;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.agent-report-table th,
.agent-report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.agent-report-shares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 20px 16px;
}

.agent-report-shares section {
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
}

.agent-report-shares h5 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 14px;
}

.agent-report-share-row {
  display: grid;
  grid-template-columns: 76px 1fr 48px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.agent-report-share-row i {
  height: 9px;
  overflow: hidden;
  background: #edf1f7;
  border-radius: 999px;
}

.agent-report-share-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff2f6d;
}

.agent-report-share-row:nth-child(3n) b {
  background: #2f6bff;
}

.agent-report-share-row:nth-child(4n) b {
  background: #18a66a;
}

.agent-risk {
  font-weight: 900;
}

.agent-risk.high {
  color: #e11d48;
}

.agent-risk.mid {
  color: #b45309;
}

.agent-risk.low {
  color: #15803d;
}

.agent-text-answer {
  margin-top: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agent-text-answer summary {
  padding: 12px 14px;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.agent-text-answer > *:not(summary) {
  margin-right: 14px;
  margin-left: 14px;
}

.status-table {
  display: grid;
  padding: 4px 16px 12px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(110px, 190px) minmax(0, 1fr);
  gap: 14px;
  min-height: 38px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.table-row b {
  color: var(--muted);
  font-weight: 600;
}

.table-row span {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

td {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.video-data-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.video-data-item {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1fr) repeat(4, minmax(92px, 120px));
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.video-data-item img {
  width: 70px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f4f7;
}

.video-copy {
  min-width: 0;
}

.video-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-copy span,
.video-data-item div span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.video-data-item > div:not(.video-copy) {
  font-weight: 700;
}

.video-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.video-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
}

.video-table {
  min-width: 1320px;
  table-layout: fixed;
}

.video-table th {
  height: 44px;
  color: #59708f;
  font-weight: 800;
  white-space: nowrap;
}

.video-table th:first-child {
  width: 330px;
}

.video-table th:not(:first-child),
.video-table td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

.video-table td {
  height: 92px;
  font-size: 12px;
}

.video-table td:nth-child(2) {
  background: #fafafa;
}

.video-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.video-sort::after {
  content: "";
  display: inline-block;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.5;
}

.video-sort.desc::after {
  border-top: 5px solid currentColor;
}

.video-sort.asc::after {
  border-bottom: 5px solid currentColor;
}

.video-sort.active {
  color: #f43f5e;
}

.video-sort:hover {
  color: #f43f5e;
}

.video-table-info {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.video-cover-wrap {
  position: relative;
  display: block;
  width: 56px;
  height: 78px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
}

.video-cover-wrap b {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 18px;
  padding: 0 5px;
  border-bottom-right-radius: 5px;
  background: #ff2d68;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
}

.video-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.video-table-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.video-table-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-table-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.video-table-copy span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
}

.video-table-copy span img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.voc-summary {
  margin: 16px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  line-height: 1.7;
}

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

.similar-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.similar-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--ink);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.similar-card > span {
  color: var(--muted);
}

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

.similar-stats b {
  padding: 8px;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 15px;
}

.similar-stats small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

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

.video-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  min-height: 114px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.video-item img {
  width: 86px;
  height: 94px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f4f7;
}

.video-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.video-item span {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
}

.empty {
  padding: 16px;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 品类页视觉增强：统一为当前商品/大盘页面的卡片、筛选器和表格语言。 */
.category-fastmoss-filter {
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98)),
    #fff;
  box-shadow: var(--card-shadow);
}

.category-fastmoss-label {
  color: #344054;
  letter-spacing: 0.01em;
}

.category-fastmoss-options {
  gap: 8px 12px;
}

.category-fastmoss-category-options {
  gap: 8px 12px;
}

.category-filter-option,
.category-filter-collapse {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 28px;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.category-filter-option:not(.active):hover,
.category-filter-collapse:hover {
  border-color: #ffd2dd;
  background: var(--pink-soft);
  color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(255, 47, 109, 0.04);
}

.category-filter-option.active {
  min-width: 0;
  padding: 0 16px;
  border-color: rgba(255, 47, 109, 0.18);
  background: linear-gradient(135deg, #ff2f6d, #ff5d95);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 47, 109, 0.18);
}

.category-filter-collapse {
  border-color: #ffd2dd;
  background: var(--pink-soft);
  color: var(--pink);
}

.category-fastmoss-row-subcategories {
  padding-top: 2px;
}

.category-fastmoss-subcategory-options {
  gap: 8px 10px;
}

.category-filter-option.subcategory-option {
  border-color: #d7e6ff;
  background: #f8fbff;
  color: #365372;
  font-size: 13px;
}

.category-filter-option.subcategory-option.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, #eaf3ff, #dbeafe);
  color: #1762d0;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 8px 18px rgba(37, 99, 235, 0.12);
}

.category-filter-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px dashed #c8d9f0;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.82);
  color: #6b7c93;
  font-size: 13px;
  font-weight: 700;
}

.category-market-tabs {
  gap: 22px;
  height: 54px;
  padding: 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--card-shadow);
  scrollbar-width: none;
}

.category-market-tabs::-webkit-scrollbar {
  display: none;
}

.category-market-tabs a {
  flex: 0 0 auto;
  height: 52px;
  color: #52637a;
  font-size: 14px;
  transition: color 0.16s ease;
}

.category-market-tabs a:hover,
.category-market-tabs a.active {
  color: #172033;
}

.category-market-tabs a.active::after {
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), #ff8aaf);
}

.category-overview-module,
.fastmoss-section,
.industry-page-hero,
.industry-scatter-card,
.industry-list-card,
.industry-rank-card,
.strategy-analysis-card,
.price-trend-card,
.trend-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.category-overview-module,
.fastmoss-section {
  overflow: hidden;
}

.category-overview-module::before {
  color: rgba(208, 213, 221, 0.16);
  letter-spacing: 36px;
}

.fastmoss-section::before {
  background-image: repeating-linear-gradient(23deg, rgba(216, 221, 232, 0.11) 0 1px, transparent 1px 118px);
}

.fastmoss-section::after {
  color: rgba(208, 213, 221, 0.11);
  letter-spacing: 72px;
}

.category-overview-title,
.fastmoss-section-head {
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.92));
}

.category-overview-title h3,
.fastmoss-section-head h3 {
  color: #172033;
  font-size: 19px;
}

.category-overview-meta,
.fastmoss-section-meta {
  padding: 13px 18px 16px;
  color: #52637a;
}

.fastmoss-overview-cards {
  gap: 12px;
  padding: 0 16px 20px;
}

.fastmoss-metric-card {
  min-height: 124px;
  padding: 15px 14px;
  border: 1px solid #ffe0e8;
  border-left: 4px solid var(--pink);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fff7fa);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.fastmoss-metric-card.mint {
  border-color: #ccfbf1;
  border-left-color: #14b8a6;
  background: linear-gradient(180deg, #fff, #f0fdfa);
}

.fastmoss-metric-card strong {
  color: #172033;
  font-size: 21px;
}

.fastmoss-metric-card span,
.fastmoss-metric-card small {
  color: #52637a;
}

.fastmoss-chart-card,
.category-daily-info,
.price-bars,
.strategy-table-card,
.share-visual {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.category-daily-table-wrap,
.industry-list-table-wrap,
.creator-matrix-table,
.trend-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.category-daily-table th,
.industry-list-table th,
.creator-matrix-table th,
.category-table th {
  background: #f8fafc;
  color: #475467;
  font-weight: 900;
}

.category-daily-table tbody tr,
.industry-list-table tbody tr,
.creator-matrix-table tbody tr,
.category-table tbody tr {
  transition: background 0.15s ease;
}

.category-daily-table tbody tr:hover,
.industry-list-table tbody tr:hover,
.creator-matrix-table tbody tr:hover,
.category-table tbody tr:hover {
  background: #fbfdff;
}

.industry-page-hero {
  background:
    radial-gradient(circle at 0 0, rgba(255, 47, 109, 0.11), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.1), transparent 32%),
    #fff;
}

.industry-page-hero::after {
  color: rgba(208, 213, 221, 0.18);
}

.industry-scatter-card,
.industry-list-card,
.industry-rank-card,
.strategy-analysis-card,
.price-trend-card {
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.creator-channel-tabs {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f8fafc;
  scrollbar-width: none;
  white-space: nowrap;
}

.creator-channel-tabs::-webkit-scrollbar {
  display: none;
}

.creator-channel-tabs button {
  flex: 0 0 auto;
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.creator-channel-tabs button:hover {
  color: var(--pink);
}

.creator-channel-tabs button.active {
  border-color: #ffd2dd;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 6px 16px rgba(255, 47, 109, 0.12);
}

.creator-matrix-table table {
  min-width: 980px;
}

.creator-matrix-table th,
.creator-matrix-table td {
  border-bottom-color: var(--line-soft);
}

.creator-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.creator-matrix-value span {
  color: #24324a;
  font-weight: 700;
}

.creator-mini-bar {
  background: #eef2f6;
}

.creator-mini-bar i {
  background: linear-gradient(90deg, #ffd1dc, #ff7aa5);
}

.creator-mini-bar i.strong {
  background: linear-gradient(90deg, #ff2f6d, #ff7aa5);
}

.creator-matrix-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 47, 109, 0.1), transparent 34%),
    linear-gradient(135deg, #fff, #f8fbff);
}

.creator-matrix-hero b {
  display: block;
  color: #172033;
  font-size: 16px;
  font-weight: 950;
}

.creator-matrix-hero span {
  color: #667085;
  font-size: 12px;
}

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

.creator-matrix-summary article {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.creator-matrix-summary article::after {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 47, 109, 0.08);
  content: "";
}

.creator-matrix-summary span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.creator-matrix-summary strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 20px;
  font-weight: 950;
}

.creator-matrix-summary em {
  display: block;
  margin-top: 4px;
  color: #52637a;
  font-size: 12px;
  font-style: normal;
}

.creator-table-hint {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
}

.creator-matrix-table-polished {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.creator-matrix-table-polished table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.creator-matrix-table-polished th {
  background: linear-gradient(180deg, #f8fbff, #f3f7fc);
}

.creator-matrix-table-polished th:first-child,
.creator-matrix-table-polished td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #edf2f7;
}

.creator-matrix-table-polished th:first-child {
  z-index: 3;
  background: #f7faff;
}

.creator-sales-amount {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c05621;
  font-weight: 950;
}

@media (max-width: 900px) {
  .creator-matrix-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-matrix-summary {
    grid-template-columns: 1fr;
  }

  .creator-matrix-table-polished table {
    min-width: 1080px;
  }
}

/* Unified product dashboard polish */
body {
  background:
    linear-gradient(180deg, #f8fafc 0, #f3f6fb 280px, #f5f7fb 100%);
}

button,
.top-link-button,
.outline-button,
.catalog-action {
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

button:hover,
.top-link-button:hover,
.outline-button:hover,
.catalog-action:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.topbar {
  height: 70px;
  border-bottom-color: #e7ebf2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.breadcrumb {
  color: #7b8798;
  font-weight: 700;
}

h1 {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.top-actions span,
.top-link-button {
  height: 34px;
  border-color: #d9e1ec;
  border-radius: 8px;
  background: #fff;
}

.top-actions button,
#refreshBtn {
  height: 36px;
  border-color: #1d4ed8;
  border-radius: 8px;
  background: #2563eb;
  font-weight: 800;
}

main {
  padding-top: 20px;
}

.dashboard {
  gap: 16px;
}

.product-card,
.module,
.rank-card,
.metric-card,
.table-wrap,
.trend-card {
  border-color: #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.product-card {
  gap: 20px;
  padding: 18px;
  background: #fff;
}

.product-media img {
  border-color: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.product-heading h2 {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.category,
.product-facts span,
.metric-card span,
.small-metric span {
  color: #667085;
}

.product-facts {
  gap: 12px;
}

.product-facts > div,
.rank-card,
.metric-card,
.small-metric,
.capture-meta-card {
  border-color: #e5eaf2;
  background: #fbfcff;
}

.metric-row,
.ranking-row {
  gap: 12px;
}

.metric-card strong {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.rank-card strong {
  color: #111827;
}

.anchor-tabs {
  top: 70px;
  gap: 2px;
  min-height: 48px;
  padding: 0 12px;
  border-color: #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.anchor-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-bottom-width: 3px;
  color: #475467;
  font-weight: 800;
}

.anchor-tabs a.active,
.anchor-tabs a:hover {
  color: #175cd3;
}

.module {
  overflow: hidden;
  background: #fff;
}

.module-title {
  min-height: 58px;
  padding: 0 18px;
  border-bottom-color: #edf1f6;
  background: #fff;
}

.module-title h3 {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.module-title span {
  color: #667085;
  font-weight: 600;
}

.mini-metrics {
  gap: 12px;
  padding: 18px;
}

.small-metric {
  min-height: 90px;
  padding: 15px;
}

.small-metric strong {
  color: #111827;
  font-size: 23px;
  font-weight: 900;
}

.small-metric.selected {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.small-metric.selected i {
  border-color: #2563eb;
  background: #2563eb;
}

.trend-card {
  margin: 0 18px 18px;
  padding: 18px;
}

.trend-head {
  margin-bottom: 14px;
}

.trend-head h4 {
  color: #111827;
  font-weight: 900;
}

.trend-actions button,
.creator-pagination button {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #175cd3;
}

.trend-actions button:hover,
.creator-pagination button:hover {
  background: #dbeafe;
}

.trend-actions button.active,
.trend-actions .range-tabs button.active {
  border-color: #bfdbfe;
  background: #2563eb;
  color: #fff;
}

.trend-actions .range-tabs {
  border: 1px solid #dbeafe;
  background: #f8fafc;
}

.trend-actions .export-button {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #027a48;
}

.trend-actions .export-button:hover {
  background: #dcfae6;
}

.three-columns,
.two-columns,
.creator-distributions {
  gap: 16px;
  padding: 16px 18px 18px;
}

.creator-distributions {
  background: #f8fafc;
}

.table-wrap {
  background: #fff;
}

.table-caption,
.table-caption-actions {
  min-height: 46px;
  padding: 0 14px;
  border-bottom-color: #edf1f6;
  background: #fbfcff;
  color: #111827;
  font-weight: 900;
}

th {
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

td {
  color: #1f2937;
}

tbody tr:hover {
  background: #f8fbff;
}

.creator-table-scroll,
.live-table-scroll,
.distribution-table-scroll {
  scrollbar-color: #cbd5e1 transparent;
}

.creator-ranking,
.live-ranking {
  margin-top: 16px;
}

#creators .creator-ranking {
  margin: 18px;
}

.creator-cell strong,
.creator-meta strong {
  color: #111827;
}

.creator-meta em {
  margin-top: 7px;
  background: #fff1f3;
  color: #b42318;
}

.creator-pagination {
  min-height: 54px;
  padding: 11px 14px;
  background: #fbfcff;
}

.creator-pagination > span {
  margin-right: auto;
  color: #667085;
}

.creator-page-jump input {
  border-color: #d9e1ec;
  background: #fff;
}

.share-visual {
  border-color: #dbeafe;
  background: #f8fbff;
}

.share-bar-track {
  background: #edf2f7;
}

.status-table {
  padding: 8px 18px 16px;
}

.table-row {
  min-height: 42px;
}

.capture-audit,
.plugin-run-log {
  background: #fff;
}

.capture-audit-title {
  padding: 16px 18px 12px;
}

.capture-audit-meta,
.capture-audit-section-head,
.capture-empty-state,
.capture-audit-table-wrap,
.capture-audit-complete {
  margin-right: 18px;
  margin-left: 18px;
}

.capture-audit-complete {
  margin-bottom: 18px;
}

.capture-empty-state {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.capture-audit-table-wrap {
  border-color: #e2e8f0;
}

.capture-audit-table th {
  background: #f8fafc;
  color: #475467;
}

.video-table,
.comment-table,
.live-summary-table {
  border-color: #e2e8f0;
}

.empty {
  color: #667085;
}

/* Product dashboard polish refinements */
.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content-grid {
  gap: 16px;
}

.product-heading {
  align-items: flex-start;
}

.product-facts > div {
  min-height: 58px;
  padding: 11px 12px;
}

.rank-card,
.metric-card {
  min-height: 86px;
}

.metric-card,
.small-metric {
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.small-metric:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.055);
}

.anchor-tabs {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

@media (min-width: 961px) {
  .anchor-tabs {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 4px;
    padding: 6px 10px;
    mask-image: none;
    white-space: normal;
  }

  .anchor-tabs a {
    min-height: 38px;
    padding: 0 10px;
    line-height: 38px;
  }
}

.anchor-tabs a {
  border-radius: 6px 6px 0 0;
  font-size: 13px;
}

.anchor-tabs a.active {
  background: #eff6ff;
}

.module {
  scroll-margin-top: 136px;
}

.module-title {
  flex-wrap: wrap;
}

.module-title h3 {
  line-height: 1.3;
}

.overview-date-tools,
.live-title-tools,
.filter-row,
.table-caption-actions,
.trend-head {
  flex-wrap: wrap;
}

.range-tabs {
  gap: 6px;
}

.range-tabs button {
  border-color: #e5eaf2;
  background: #fff;
  font-weight: 800;
}

.range-tabs button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #175cd3;
}

.date-range-control {
  min-height: 34px;
  border-color: #d9e1ec;
  background: #fbfcff;
}

.date-range-control input {
  min-width: 118px;
}

.creator-table-scroll,
.live-table-scroll,
.distribution-table-scroll,
.video-table-wrap,
.trend-table {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.creator-ranking table,
.live-ranking table,
.video-table,
.comment-table {
  font-size: 13px;
}

.creator-ranking th,
.creator-ranking td,
.live-ranking th,
.live-ranking td {
  vertical-align: middle;
}

.live-summary-table th:not(:first-child),
.live-summary-table td:not(:first-child),
.live-table th:not(:first-child),
.live-table td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}

.live-summary-table th:first-child,
.live-summary-table td:first-child,
.live-table th:first-child,
.live-table td:first-child {
  min-width: 156px;
  line-height: 1.45;
}

.video-table th,
.video-table td {
  vertical-align: middle;
}

.creator-pagination {
  flex-wrap: wrap;
  gap: 10px;
}

.creator-pagination .trend-actions {
  gap: 6px;
}

.creator-page-jump input {
  height: 32px;
}

.capture-audit-meta {
  gap: 12px;
}

.capture-empty-state {
  padding: 14px 16px;
}

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

  .sidebar {
    display: none;
  }

  .agent-standalone-head {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-standalone-product {
    flex-basis: auto;
    width: 100%;
  }

  .agent-standalone-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .agent-product-switch {
    width: 100%;
    max-width: 100%;
  }

  .agent-product-switch select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .agent-source-card {
    align-items: stretch;
    width: 100%;
  }

  .agent-source-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .agent-source-product strong,
  .agent-source-product em {
    white-space: normal;
  }

  .agent-live-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-facts,
  .ranking-row,
  .metric-row,
  .category-overview-grid,
  .strategy-cards-grid,
  .category-api-grid,
  .freshness-grid,
  .monitor-grid,
  .monitor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-freshness {
    grid-template-columns: 1fr;
  }

  .capture-audit-meta {
    grid-template-columns: 1fr;
  }

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

  .mini-metrics,
  .three-columns,
  .two-columns,
  .similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-data-item {
    grid-template-columns: 70px minmax(0, 1fr) repeat(2, minmax(90px, 1fr));
  }

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

  .agent-report-metrics,
  .agent-report-shares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-report-metrics > div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .agent-report-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .agent-share-metric {
    grid-template-columns: 42px minmax(76px, 1fr) minmax(68px, auto);
  }

  .strategy-analysis-grid,
  .price-trend-grid,
  .industry-layout,
  .industry-analysis-grid,
  .industry-analysis-grid.lower {
    grid-template-columns: 1fr;
  }

  .strategy-analysis-card {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, auto);
  }

  .strategy-visual-wrap {
    grid-column: 1 / 2;
  }

  .strategy-table-card {
    grid-column: 2 / 3;
  }

}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 14px 16px;
  }

  main {
    padding: 14px;
  }

  .industry-page-hero {
    flex-direction: column;
  }

  .industry-page-hero h2 {
    font-size: 20px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media img {
    width: 160px;
    height: 160px;
  }

  .product-heading {
    flex-direction: column;
  }

  .product-extra-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-extra-section + .product-extra-section {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

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

  .capture-audit-title {
    gap: 10px;
  }

  .capture-audit-badges {
    justify-content: flex-start;
  }

  .product-facts,
  .ranking-row,
  .metric-row,
  .category-overview-grid,
  .category-api-grid,
  .freshness-grid,
  .monitor-grid,
  .monitor-strip,
  .agent-context-board .freshness-grid,
  .agent-context-board .monitor-grid,
  .agent-context-board .monitor-strip,
  .agent-evidence-grid,
  .agent-evidence-meta,
  .agent-live-summary-metrics,
  .content-grid,
  .video-list,
  .mini-metrics,
  .three-columns,
  .two-columns,
  .similar-grid {
    grid-template-columns: 1fr;
  }

  .category-fastmoss-filter {
    padding: 18px 16px;
  }

  .category-fastmoss-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .category-fastmoss-options,
  .category-fastmoss-category-options {
    gap: 8px 16px;
  }

  .category-filter-collapse {
    margin-left: 0;
  }

  .fastmoss-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .strategy-analysis-card {
    grid-template-columns: 1fr;
  }

  .strategy-analysis-copy,
  .strategy-visual-wrap,
  .strategy-table-card {
    grid-column: 1 / -1;
  }

  .strategy-table-card {
    justify-self: stretch;
    width: 100%;
    margin-top: 28px;
  }

  .strategy-table-switch {
    top: -34px;
  }

  .category-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .category-bar-row em {
    text-align: left;
  }

  .video-data-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .agent-share-note,
  .agent-share-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-share-metric {
    grid-template-columns: 42px minmax(0, 1fr) minmax(68px, auto);
  }

  .agent-share-metric em {
    grid-column: auto;
  }

  .agent-report-head,
  .agent-report-read,
  .agent-report-decision,
  .agent-report-note,
  .agent-report-final,
  .agent-report-ui > h4,
  .agent-report-chart,
  .agent-report-list-note,
  .agent-report-table {
    margin-right: 14px;
    margin-left: 14px;
  }

  .agent-report-head {
    padding: 16px 14px;
  }

  .agent-report-head h3 {
    font-size: 20px;
  }

  .agent-report-metrics,
  .agent-report-shares {
    grid-template-columns: 1fr;
    margin-right: 14px;
    margin-left: 14px;
  }

  .agent-report-metrics > div,
  .agent-report-metrics > div:nth-child(2n),
  .agent-report-metrics > div:nth-child(4n) {
    border-right: 0;
  }

  .agent-report-table {
    display: block;
    width: calc(100% - 28px);
    overflow-x: auto;
    white-space: nowrap;
  }

  .agent-table-pagination {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .video-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-label {
    flex-basis: auto;
  }

  .video-filter-actions {
    justify-content: space-between;
    margin-left: 0;
  }

  .live-filter-actions {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }

  .comment-summary {
    grid-template-columns: 1fr;
  }

  .agent-card {
    right: 14px;
    bottom: 92px;
    width: calc(100vw - 28px);
  }

  .product-heading-actions,
  .agent-standalone-head,
  .agent-standalone-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-standalone-product h2 {
    max-width: 100%;
    white-space: normal;
  }

  .agent-standalone .agent-card {
    width: 100%;
  }

  .agent-prompt-grid,
  .agent-chat {
    grid-template-columns: 1fr;
  }

  .agent-mention-panel button {
    grid-template-columns: 1fr;
  }

  .agent-chat {
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .agent-standalone .agent-chat {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: calc(100vh - 240px);
  }

  .agent-chat-sidebar {
    display: none;
  }

  .agent-chat-main {
    padding: 14px 14px 0;
  }

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

  .agent-chat-input {
    margin: 0 -14px;
    padding: 10px 14px 14px;
  }

  .anchor-tabs {
    top: 0;
  }
}

/* 2026-06-13 其他页面 UI 同步：商品详情 / 品类验证 / FastMoss Agent。 */
.dashboard,
.agent-dashboard {
  gap: 18px;
}

.product-card {
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.product-media img {
  border-radius: 12px;
}

.product-heading h2,
.module-title h3,
.category-overview-title h3,
.fastmoss-section-head h3 {
  color: #111827;
  letter-spacing: 0;
}

.product-facts > div,
.rank-card,
.metric-card,
.small-metric,
.capture-meta-card {
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.metric-card strong,
.small-metric strong,
.rank-card strong,
.fastmoss-metric-card strong {
  color: #111827;
}

.small-metric.selected,
.category-filter-option.active,
.trend-actions button.active,
.trend-actions .range-tabs button.active {
  border-color: #b9d4ff;
  background: #eff6ff;
  color: #175cd3;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.small-metric.selected i,
.trend-card.active i,
.trend-actions button.active,
.trend-actions .range-tabs button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.anchor-tabs,
.category-market-tabs {
  border-radius: 12px;
}

.anchor-tabs a.active,
.anchor-tabs a:hover,
.category-market-tabs a.active,
.category-market-tabs a:hover {
  color: #175cd3;
}

.anchor-tabs a.active,
.category-market-tabs a.active {
  background: #eff6ff;
}

.module {
  border-radius: 14px;
}

.module-title {
  min-height: 60px;
}

.table-wrap,
.trend-table,
.category-daily-table-wrap,
.industry-list-table-wrap,
.creator-matrix-table,
.strategy-table-card {
  border-radius: 12px;
}

.share-visual,
.fastmoss-chart-card,
.category-daily-info,
.price-bars {
  border-color: #dce5f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.category-fastmoss-filter {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    #fff;
}

.category-filter-option,
.category-filter-collapse {
  border-color: #d9e3f0;
  background: #fff;
}

.category-filter-option:not(.active):hover,
.category-filter-collapse:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #175cd3;
}

.category-overview-module,
.fastmoss-section,
.industry-page-hero,
.industry-scatter-card,
.industry-list-card,
.industry-rank-card,
.strategy-analysis-card,
.price-trend-card {
  border-radius: 14px;
}

.fastmoss-metric-card {
  border-color: #dbeafe;
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #fff, #eff6ff);
}

.fastmoss-metric-card.mint {
  border-color: #ccfbf1;
  border-left-color: #14b8a6;
  background: linear-gradient(180deg, #fff, #f0fdfa);
}

.industry-page-hero {
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.1), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(20, 184, 166, 0.09), transparent 30%),
    #fff;
}

body[data-page="agent"] .agent-page-main {
  max-width: 1280px;
  margin: 0 auto;
}

.agent-standalone .agent-chat {
  min-height: calc(100vh - 220px);
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  background: #f6f8fc;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.agent-chat-sidebar {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.agent-chat-main {
  background: #f6f8fc;
}

.agent-source-card {
  border-color: #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.agent-source-product img {
  border-radius: 10px;
}

.agent-source-product strong {
  color: #111827;
}

.agent-card,
.agent-tool-card,
.agent-answer,
.agent-report-ui,
.agent-evidence-card,
.agent-call-card {
  border-radius: 12px;
}

.agent-prompt-grid button,
.agent-session,
.agent-new-chat,
.agent-category-tabs button {
  border-color: #d9e3f0;
  border-radius: 10px;
}

.agent-prompt-grid button:hover,
.agent-category-tabs button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #175cd3;
}

.agent-card-input > button,
.agent-chat-input > button {
  border-radius: 10px;
  background: #2563eb;
}

.agent-chat-input {
  border-top-color: #dce5f2;
  background: rgba(255, 255, 255, 0.96);
}

/* 2026-06-13 Agent 对话页宽度统一：让商品卡、问题、数据调用和正式结果齐边。 */
.agent-standalone .agent-chat-main {
  gap: 14px;
  padding: 20px 26px 0;
}

.agent-chat-main > .agent-source-card,
.agent-chat-main > .agent-user-bubble,
.agent-chat-main > .agent-answer-scroll,
.agent-chat-main > .agent-chat-input {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
}

.agent-user-bubble {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.agent-answer-scroll {
  padding-right: 0;
}

.agent-answer,
.agent-answer > *,
.agent-markdown,
.agent-markdown > *,
.agent-tool-card,
.agent-thinking {
  width: 100%;
  max-width: 100%;
}

.agent-tool-card {
  border-color: #dce5f2;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.agent-tool-title {
  justify-content: space-between;
  gap: 12px;
  color: #172033;
}

.agent-tool-title strong {
  color: #ff2f6d;
}

.agent-tool-title span {
  flex: 0 0 auto;
}

.agent-report-ui,
.agent-evidence {
  border-color: #dce5f2;
}

.agent-report-head {
  border-top-color: #eff6ff;
}

@media (max-width: 1120px) {
  .agent-standalone .agent-chat-main {
    padding: 14px 14px 0;
  }
}

/* 2026-06-14 Agent 会话栏高度修复：避免侧栏跟随长报告撑到几千像素。 */
@media (min-width: 1121px) {
  .agent-standalone .agent-chat {
    height: calc(100vh - 112px);
    min-height: 0;
    max-height: calc(100vh - 112px);
  }

  .agent-standalone .agent-chat-sidebar {
    display: grid;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }

  .agent-standalone .agent-session-list {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .agent-standalone .agent-chat-main {
    height: 100%;
    min-height: 0;
  }
}

/* 2026-06-17 Agent 中窄屏修复：隐藏会话记录列，避免右侧报告被挤窄和选中框罩满整页。 */
@media (max-width: 1120px) {
  body[data-page="agent"] .agent-standalone .agent-chat {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100vh - 112px);
    min-height: 0;
    max-height: calc(100vh - 112px);
  }

  body[data-page="agent"] .agent-standalone .agent-chat-sidebar {
    display: none;
  }

  body[data-page="agent"] .agent-standalone .agent-chat-main {
    height: 100%;
    min-height: 0;
    padding: 16px 16px 0;
  }

  body[data-page="agent"] .agent-answer-scroll {
    min-height: 0;
  }
}

/* 2026-06-20 Agent 会话记录优化：提升记录卡片可读性，避免删除按钮和滚动条压住文字。 */
@media (min-width: 1121px) {
  body[data-page="agent"] .agent-standalone .agent-chat {
    grid-template-columns: 292px minmax(0, 1fr);
  }
}

body[data-page="agent"] .agent-standalone .agent-chat-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

body[data-page="agent"] .agent-session-list {
  gap: 10px;
  padding-right: 8px;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

body[data-page="agent"] .agent-session-list::-webkit-scrollbar {
  width: 8px;
}

body[data-page="agent"] .agent-session-list::-webkit-scrollbar-track {
  background: transparent;
}

body[data-page="agent"] .agent-session-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: padding-box;
}

body[data-page="agent"] .agent-session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body[data-page="agent"] .agent-session-row.active {
  border-color: #fecdd3;
  background: #fff1f2;
}

body[data-page="agent"] .agent-session {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 11px 4px 11px 12px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
}

body[data-page="agent"] .agent-session.active,
body[data-page="agent"] .agent-session-row.active .agent-session {
  background: transparent;
}

body[data-page="agent"] .agent-session strong {
  min-width: 0;
  color: #172033;
  font-size: 12.5px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
}

body[data-page="agent"] .agent-session.active strong,
body[data-page="agent"] .agent-session-row.active .agent-session strong {
  color: #ff2f6d;
}

body[data-page="agent"] .agent-session em {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="agent"] .agent-session-delete {
  position: static;
  align-self: start;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 8px 6px 0 0;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 18px;
}

body[data-page="agent"] .agent-session-delete:hover {
  background: #ffe4e6;
  color: #ff2f6d;
}

/* 2026-06-20 Agent 顶部数据来源卡片压缩：减少首屏占用，让对话内容更快露出。 */
body[data-page="agent"] .agent-standalone .agent-source-card {
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.05);
}

body[data-page="agent"] .agent-standalone .agent-source-product {
  align-items: center;
  gap: 10px;
}

body[data-page="agent"] .agent-standalone .agent-source-product img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

body[data-page="agent"] .agent-standalone .agent-source-product > div {
  gap: 2px;
}

body[data-page="agent"] .agent-standalone .agent-source-product span {
  font-size: 11px;
  line-height: 1.2;
}

body[data-page="agent"] .agent-standalone .agent-source-product strong {
  font-size: 14px;
  line-height: 1.28;
  -webkit-line-clamp: 1;
}

body[data-page="agent"] .agent-standalone .agent-source-product em {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="agent"] .agent-standalone .agent-source-actions {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

body[data-page="agent"] .agent-standalone .agent-source-actions .agent-product-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-page="agent"] .agent-standalone .agent-source-actions .agent-product-switch span {
  flex: 0 0 auto;
  font-size: 11.5px;
}

body[data-page="agent"] .agent-standalone .agent-source-actions .agent-product-switch select {
  height: 32px;
  font-size: 12px;
}

body[data-page="agent"] .agent-standalone .agent-source-actions .outline-button {
  min-width: 92px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 30px;
}

/* 2026-07-20 品类验证：显示真实采集范围，并区分销量与增长率双坐标。 */
.category-fastmoss-date-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid #d9e3f0;
  color: #52637a;
  font-size: 12px;
}

.category-fastmoss-date-summary strong {
  color: #175cd3;
  font-weight: 900;
}

.category-fastmoss-date-summary.pending strong {
  color: #b54708;
}

.category-fastmoss-date-summary span {
  color: #667085;
}

.category-capture-picker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-capture-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.category-capture-picker select {
  width: 132px;
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #bfd3f5;
  border-radius: 6px;
  background: #fff;
  color: #175cd3;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.category-capture-quick {
  display: inline-flex;
  gap: 4px;
}

.category-capture-quick button,
.category-capture-history-button {
  height: 30px;
  border: 1px solid #d0d9e8;
  border-radius: 5px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  cursor: pointer;
}

.category-capture-quick button {
  min-width: 44px;
  padding: 0 7px;
}

.category-capture-quick button.active {
  border-color: #84adf4;
  background: #eaf2ff;
  color: #175cd3;
  font-weight: 900;
}

.category-capture-history-button {
  padding: 0 10px;
  color: #344054;
  font-weight: 800;
}

.category-capture-dialog-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.42);
}

.category-capture-dialog {
  width: min(560px, 100%);
  max-height: min(620px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.22);
}

.category-capture-dialog > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #eaecf0;
  background: #fff;
}

.category-capture-dialog h2 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 18px;
}

.category-capture-dialog p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.category-capture-dialog > header > button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 24px;
  line-height: 32px;
  cursor: pointer;
}

.category-capture-batch-list {
  display: grid;
  gap: 8px;
  padding: 14px 20px 20px;
}

.category-capture-batch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.category-capture-batch.active {
  border-color: #84adf4;
  background: #f5f8ff;
}

.category-capture-batch span {
  display: grid;
  gap: 3px;
}

.category-capture-batch strong {
  color: #101828;
  font-size: 14px;
}

.category-capture-batch small {
  color: #667085;
}

.category-capture-batch em {
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.category-capture-batch em.complete { color: #067647; }
.category-capture-batch em.partial { color: #b54708; }
.category-capture-dialog-empty { padding: 20px; text-align: center; }

.fastmoss-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px 4px;
}

.fastmoss-chart-head > div:first-child {
  display: grid;
  gap: 4px;
}

.fastmoss-chart-head strong {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.fastmoss-chart-head > div:first-child span {
  color: #667085;
  font-size: 12px;
}

.fastmoss-chart-head .fastmoss-chart-legend {
  padding: 2px 0 0;
}

.growth-zero-line {
  stroke: #94a3b8;
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.growth-dot {
  fill: #fff;
  stroke: #ff2368;
  stroke-width: 2;
}

.fastmoss-chart-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 190px;
  padding: 24px;
  text-align: center;
}

.fastmoss-chart-empty strong {
  color: #344054;
  font-size: 15px;
}

.fastmoss-chart-empty span {
  color: #667085;
  font-size: 13px;
}

@media (max-width: 760px) {
  .category-capture-picker,
  .category-capture-quick {
    width: 100%;
  }

  .category-capture-quick {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-capture-quick button {
    flex: 0 0 auto;
  }

  .category-fastmoss-date-summary {
    flex: 1 0 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }

  .fastmoss-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  body[data-page="agent"] .agent-standalone .agent-source-actions {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="agent"] .agent-standalone .agent-source-actions .agent-product-switch {
    grid-column: 1 / -1;
  }
}

/* 2026-07-21 品类验证数据总览：固定采集近 28 天，按已有历史日期筛选查看。 */
.category-fixed-period {
  cursor: default;
  pointer-events: none;
}

.category-overview-title {
  justify-content: space-between;
  gap: 16px;
}

.category-overview-title > span {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.category-overview-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f8fafc;
}

.category-overview-range-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.category-overview-control-label {
  flex: 0 0 auto;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.category-overview-range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-overview-range-tabs button,
.category-overview-chart-toggle {
  min-height: 34px;
  border: 1px solid #d5dfed;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.category-overview-range-tabs button {
  padding: 0 12px;
}

.category-overview-range-tabs button:hover,
.category-overview-chart-toggle:hover {
  border-color: #93b9f5;
  background: #eff6ff;
  color: #175cd3;
}

.category-overview-range-tabs button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

.category-overview-range-tabs button:disabled,
.category-overview-chart-toggle:disabled,
.category-overview-date-fields input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.category-overview-date-fields {
  display: inline-grid;
  grid-template-columns: minmax(132px, 156px) auto minmax(132px, 156px);
  align-items: center;
  gap: 7px;
}

.category-overview-date-fields input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #d5dfed;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 13px;
}

.category-overview-date-fields input:focus {
  border-color: #6097eb;
  outline: 3px solid rgba(37, 99, 235, 0.1);
}

.category-overview-date-fields > span {
  color: #667085;
  font-size: 12px;
}

.category-overview-chart-toggle {
  align-self: start;
  min-width: 92px;
  padding: 0 13px;
  white-space: nowrap;
}

.category-overview-range-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 1px;
  color: #667085;
  font-size: 12px;
}

.category-overview-range-summary strong {
  flex: 0 0 auto;
  color: #175cd3;
  font-size: 12px;
}

.category-overview-range-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fastmoss-chart-visual.is-hidden {
  display: none;
}

.fastmoss-chart-card.chart-hidden {
  padding-top: 0;
}

.fastmoss-chart-card.chart-hidden .category-daily-info {
  margin-top: 0;
}

.category-daily-empty {
  height: 110px;
  color: #667085 !important;
  text-align: center !important;
}

@media (max-width: 1180px) {
  .category-overview-controls {
    grid-template-columns: 1fr;
  }

  .category-overview-chart-toggle {
    grid-row: 2;
    justify-self: start;
  }

  .category-overview-range-summary {
    grid-row: 3;
  }
}

@media (max-width: 760px) {
  .category-overview-title {
    min-height: 60px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .category-overview-meta {
    line-height: 1.55;
  }

  .category-overview-controls {
    gap: 10px;
    margin: 0 12px 14px;
    padding: 12px;
  }

  .category-overview-range-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-overview-range-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-overview-range-tabs button {
    width: 100%;
    padding: 0 6px;
    white-space: nowrap;
  }

  .category-overview-date-fields {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
  }

  .category-overview-date-fields input {
    padding: 0 5px;
    font-size: 12px;
  }

  .category-overview-chart-toggle {
    width: 100%;
  }

  .category-overview-range-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    line-height: 1.5;
  }

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

  .fastmoss-overview-cards .fastmoss-metric-card:last-child {
    grid-column: 1 / -1;
  }

  .fastmoss-chart-card {
    margin: 0 12px;
  }

  .fastmoss-chart-card svg {
    min-width: 720px;
  }

  .fastmoss-chart-visual:not(.is-hidden) {
    overflow-x: auto;
  }

  .category-daily-info {
    margin-right: 8px;
    margin-left: 8px;
    padding: 10px;
  }
}
