:root {
  color-scheme: light;
  --ink: #171615;
  --muted: #69645f;
  --paper: #f8f6f1;
  --surface: #ffffff;
  --line: #ddd7ce;
  --accent: #b41f2a;
  --accent-dark: #711820;
  --teal: #0f766e;
  --gold: #a66d1f;
  --shadow: 0 20px 70px rgba(23, 22, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button {
  font: inherit;
}

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

.nav-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--line);
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-nav {
  display: grid;
  gap: 8px;
}

.module-nav a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-status {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.module-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.runtime-panel {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.runtime-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.content {
  min-width: 0;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  padding: clamp(48px, 5.6vw, 92px);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: white;
  background: #171615;
}

.hero-carousel,
.hero-overlay,
.carousel-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 42%),
    #171615;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.carousel-slide.active {
  opacity: 1;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 13, 12, 0.88), rgba(15, 13, 12, 0.22)),
    linear-gradient(0deg, rgba(15, 13, 12, 0.24), rgba(15, 13, 12, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(100%, 560px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-stage .eyebrow {
  color: #ffced2;
}

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

.hero-title {
  margin-bottom: 14px;
  font-family: "Instrument Sans", "Microsoft YaHei", sans-serif;
  font-size: clamp(44px, 3.75vw, 68px);
  font-stretch: normal;
  font-synthesis: none;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-summary {
  max-width: min(100%, 640px);
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.32;
  white-space: nowrap;
}

.home-action-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 17, 16, 0.58);
  backdrop-filter: blur(12px);
}

.home-action-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.home-action-card:hover,
.home-action-card:focus-visible {
  border-color: rgba(255, 206, 210, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.home-action-card.primary {
  background: rgba(180, 31, 42, 0.28);
  border-color: rgba(255, 206, 210, 0.46);
}

.action-index {
  color: #ffced2;
  font-size: 12px;
  font-weight: 900;
}

.action-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.action-copy strong {
  color: white;
  font-size: 18px;
  line-height: 1.1;
}

.action-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.action-state {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffced2;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.runway-brief {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  width: fit-content;
  max-width: min(760px, 100%);
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.brief-label {
  margin: 0;
  color: #ffced2;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border-bottom: 0;
  white-space: nowrap;
}

.brief-line strong {
  font-size: 19px;
  line-height: 1;
}

.brief-line span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.brief-primary {
  padding-top: 0;
}

.work-section {
  padding: clamp(22px, 2.8vw, 34px);
  border-bottom: 1px solid var(--line);
}

.poster-index {
  position: absolute;
  top: 34px;
  right: 38px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #ffced2;
  text-align: right;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-index strong {
  color: white;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 74px;
  font-weight: 400;
  line-height: 0.82;
}

.impact-ribbon {
  position: absolute;
  left: clamp(48px, 5.6vw, 92px);
  top: clamp(30px, 4vw, 50px);
  z-index: 2;
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.impact-ribbon strong {
  color: #ffced2;
}

.module-page {
  min-height: 100vh;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-family: "Instrument Sans", "Microsoft YaHei", sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.module-page .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.section-deck {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#trend-intelligence-page .module-header {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.4fr);
  gap: 24px;
  align-items: end;
}

.module-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.module-search span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.module-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.module-search input::placeholder {
  color: var(--muted);
  font-weight: 700;
}

.loading-row {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.section-grid {
  display: grid;
  gap: 22px;
}

.trend-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.trend-tab {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.trend-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.trend-panel {
  display: grid;
  gap: 12px;
}

.trend-panel[hidden] {
  display: none;
}

.section-band {
  display: grid;
  gap: 12px;
}

.band-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.band-heading h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.band-heading span {
  max-width: 55%;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.brand-filter-panel {
  display: grid;
  gap: 10px;
}

.brand-filter-trigger {
  min-height: 36px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
}

.brand-filter-trigger.active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.brand-filter-trigger strong {
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--teal);
  padding: 0 8px;
}

.brand-filter-menu {
  display: grid;
  gap: 10px;
}

.brand-directory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-filter-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.brand-filter-chip strong {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-size: 11px;
}

.brand-filter-chip.active {
  border-color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
}

.brand-filter-chip.active strong {
  background: var(--teal);
  color: var(--surface);
}

.product-filter-stack {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.filter-result-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-result-count strong {
  color: var(--teal);
}

.opportunity-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.opportunity-filter-row .brand-filter-panel {
  min-width: 220px;
}

.category-filter-panel {
  min-width: 240px;
}

.category-filter-menu {
  width: min(520px, calc(100vw - 40px));
  max-height: min(560px, 58vh);
  overflow: auto;
}

.category-directory {
  display: grid;
  gap: 8px;
}

.category-directory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-directory-level {
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  border-left: 2px solid var(--teal);
  background: rgba(15, 118, 110, 0.035);
}

.category-directory-level-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.category-directory-level-heading span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.category-directory-level-heading small {
  color: var(--muted);
  font-size: 11px;
}

.category-directory-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.category-directory-breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.category-directory-breadcrumb button:hover,
.category-directory-breadcrumb button.active {
  color: var(--teal);
}

.category-directory-breadcrumb i {
  color: var(--muted);
  font-style: normal;
}

.category-directory-branch > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-directory-branch b {
  font: inherit;
}

.category-directory-child-hint {
  color: var(--teal);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.category-directory-branch.ancestor {
  border-color: rgba(15, 118, 110, 0.48);
  background: rgba(15, 118, 110, 0.04);
}

.product-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

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

.product-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.development-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opportunity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.opportunity-filter-sidebar {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.opportunity-products-pane {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.opportunity-products-pane .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.brand-tree {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.brand-tree {
  max-height: min(460px, 46vh);
  overflow: auto;
}

.brand-tree button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-tree button span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.brand-tree-list {
  display: grid;
  gap: 6px;
}

.brand-tree-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-tree .brand-tree-level {
  min-height: 30px;
  justify-content: center;
}

.brand-tree .brand-tree-level strong {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
}

.brand-tree button.active,
.brand-tree button:hover {
  border-color: var(--teal);
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
}

.brand-tree strong {
  color: var(--muted);
  font-size: 11px;
}

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

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

.trend-panel .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-tile {
  min-height: 620px;
  display: grid;
  grid-template-rows: 310px auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 620px 420px;
}

.tile-media {
  min-width: 0;
  display: grid;
  place-items: center;
  background: #f5f2ec;
  overflow: hidden;
  padding: 18px;
}

.tile-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
  background: #f5f2ec;
}

.tile-image-placeholder {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-image-gallery {
  display: grid;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}

.trend-main-strip,
.trend-sku-strip {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.trend-main-strip > span,
.trend-sku-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-main-strip div,
.trend-sku-strip div {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}

.trend-thumb {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f5f2ec;
  cursor: pointer;
}

.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.trend-thumb.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.trend-thumb:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.trend-lazy-image {
  opacity: 0;
  transition: opacity 160ms ease;
}

.trend-lazy-image.loaded {
  opacity: 1;
}

.trend-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-load-status {
  position: sticky;
  top: 8px;
  z-index: 8;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  color: var(--teal);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(36,31,25,.08);
}

.trend-load-status.error {
  border-color: rgba(180,31,42,.35);
  color: var(--accent-dark);
}

.trend-load-retry {
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.trend-load-retry:hover {
  background: rgba(180,31,42,.08);
}

.trend-products-loading .product-grid,
.trend-products-loading .trend-pagination {
  opacity: .58;
}

.trend-products-loading .trend-pagination {
  pointer-events: auto;
}

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

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

.trend-page-gap {
  min-width: 16px;
  color: var(--muted);
  text-align: center;
}

.trend-page-button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.trend-page-button.trend-page-number {
  min-width: 34px;
  padding-inline: 8px;
  color: var(--ink);
  background: transparent;
}

.trend-page-button.trend-page-number.active {
  color: var(--paper);
  background: var(--ink);
}

.trend-rotate-button {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.trend-rotate-button:hover {
  color: var(--paper);
  background: var(--teal);
}

.trend-page-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.tile-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tile-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.brand-development-unclassified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.brand-development-unclassified strong {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.product-tile h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.attribute-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attribute-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.sourcing-best-match {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.06);
}

.sourcing-best-image {
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sourcing-best-reference {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sourcing-best-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sourcing-best-meta strong {
  color: var(--ink);
  font-size: 11px;
}

.sourcing-best-meta a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sourcing-best-meta small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sourcing-reference-gallery {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.sourcing-reference-gallery strong,
.sourcing-reference-placeholder strong {
  color: var(--ink);
  font-size: 11px;
}

.sourcing-reference-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sourcing-reference-gallery a {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 1;
  overflow: hidden;
}

.sourcing-reference-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sourcing-reference-placeholder {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.sourcing-reference-placeholder span {
  color: var(--muted);
  font-size: 12px;
}

.sourcing-media-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 310px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.sourcing-media-placeholder strong {
  font-size: 13px;
}

.sourcing-media-placeholder span {
  font-size: 18px;
  font-weight: 900;
}

.sourcing-media-placeholder small,
.category-path {
  color: var(--muted);
  font-size: 12px;
}

.priority-gold {
  border-color: rgba(196, 145, 45, 0.75);
  color: #9a6a13;
  background: rgba(226, 185, 74, 0.18);
}

.priority-blue {
  border-color: rgba(59, 130, 246, 0.58);
  color: #2563eb;
  background: rgba(96, 165, 250, 0.13);
}

.tag-row span,
.risk-pill,
.safe-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.risk-pill {
  border-color: rgba(180, 31, 42, 0.4);
  color: var(--accent-dark);
  background: rgba(180, 31, 42, 0.08);
}

.safe-pill {
  border-color: rgba(15, 118, 110, 0.34);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.tile-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tile-actions a,
.listing-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.listing-button {
  background: var(--ink);
  color: var(--paper);
}

.listing-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.hot-product-board {
  display: grid;
  gap: 20px;
}

.hot-product-section {
  display: grid;
  gap: 16px;
}

.hot-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.hot-load-more {
  width: fit-content;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.hot-product-card {
  min-height: 460px;
  display: grid;
  grid-template-rows: 240px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hot-product-media {
  min-width: 0;
  display: grid;
  place-items: center;
  background: #f0ede7;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hot-product-media img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.hot-product-placeholder {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.hot-product-body {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hot-product-body h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.hot-product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hot-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hot-metric-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hot-main-strip,
.hot-sku-strip {
  display: grid;
  gap: 6px;
}

.hot-main-strip > span,
.hot-sku-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hot-main-strip div,
.hot-sku-strip div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.hot-main-strip img,
.hot-sku-strip img {
  width: 38px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: contain;
  background: #f5f2ec;
  border: 1px solid var(--line);
}

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

.hot-attribute-grid span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hot-attribute-grid b {
  color: var(--ink);
  font-size: 11px;
}

.crawl-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hot-metric-row,
.hot-main-strip,
.hot-sku-strip {
  display: grid;
  gap: 8px;
}

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

.hot-metric-row span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.hot-main-strip > span,
.hot-sku-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hot-main-strip div,
.hot-sku-strip div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.hot-main-strip img {
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f5f2ec;
}

.hot-sku-strip img {
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: contain;
}

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

.hot-attribute-grid span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.hot-attribute-grid b {
  color: var(--ink);
}

.hot-gender-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.hot-gender-tab {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.hot-gender-tab b {
  min-width: 24px;
  padding: 2px 6px;
  background: #f0ede7;
  color: var(--muted);
  font-size: 12px;
}

.hot-gender-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.hot-gender-tab.active b {
  background: var(--accent);
  color: var(--ink);
}

.hot-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
  align-items: start;
}

.hot-product-card {
  min-height: 0;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  grid-template-rows: auto;
}

.hot-product-gallery {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto auto;
  gap: 12px;
  padding: 14px;
  background: #f0ede7;
  border-right: 1px solid var(--line);
}

.hot-product-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hot-product-hero img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.hot-thumb-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.hot-thumb {
  width: 70px;
  flex: 0 0 70px;
  display: grid;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.hot-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f4ee;
}

.hot-lazy-image {
  opacity: 0;
  transition: opacity 160ms ease;
}

.hot-lazy-image.loaded {
  opacity: 1;
}

.hot-thumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.hot-thumb.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}

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

.hot-price-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 7px;
}

.hot-price-tiers span {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hot-price-tiers b {
  color: var(--ink);
  font-size: 13px;
}

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

.hot-feature-tags {
  align-content: start;
}

#hot-product-references-page {
  padding: 18px 24px 32px;
}

#hot-product-references-page .module-header {
  margin-bottom: 10px;
}

#hot-product-references-page .section-heading {
  max-width: none;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#hot-product-references-page .eyebrow {
  margin: 0;
  font-size: 10px;
}

#hot-product-references-page .section-heading h2 {
  margin: 0;
  font-family: "Instrument Sans", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  line-height: 1;
}

#hot-product-references-page .section-deck {
  display: none;
}

#hot-product-references-page .hot-product-board {
  gap: 12px;
}

#hot-product-references-page .hot-gender-nav {
  gap: 6px;
  padding-bottom: 8px;
}

#hot-product-references-page .hot-gender-tab {
  min-height: 28px;
  gap: 5px;
  padding: 4px 8px;
  font-size: 12px;
}

#hot-product-references-page .hot-gender-tab b {
  min-width: 20px;
  padding: 1px 5px;
  font-size: 11px;
}

#hot-product-references-page .hot-product-section {
  gap: 10px;
}

#hot-product-references-page .band-heading {
  padding-top: 2px;
}

#hot-product-references-page .band-heading h3 {
  font-size: 14px;
}

#hot-product-references-page .hot-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-content: stretch;
}

#hot-product-references-page .hot-product-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 0;
  box-shadow: none;
  background: var(--surface);
}

#hot-product-references-page .hot-product-gallery {
  grid-template-rows: 220px auto auto;
  gap: 7px;
  padding: 10px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

#hot-product-references-page .hot-product-hero {
  min-height: 220px;
  border: 0;
  background: var(--surface);
}

#hot-product-references-page .hot-product-hero img {
  max-height: 220px;
}

#hot-product-references-page .hot-main-strip,
#hot-product-references-page .hot-sku-strip {
  gap: 5px;
}

#hot-product-references-page .hot-main-strip > span,
#hot-product-references-page .hot-sku-strip > span {
  font-size: 12px;
  line-height: 1;
}

#hot-product-references-page .hot-thumb-row {
  gap: 5px;
  padding-bottom: 4px;
  scrollbar-color: #8d8a86 #e9e4dc;
}

#hot-product-references-page .hot-thumb {
  width: 54px;
  flex-basis: 54px;
  gap: 2px;
  padding: 3px;
}

#hot-product-references-page .hot-thumb span {
  font-size: 10px;
  line-height: 1.05;
}

#hot-product-references-page .hot-product-body {
  padding: 10px;
  gap: 8px;
}

#hot-product-references-page .hot-product-body h3,
#hot-product-references-page .hot-product-body p {
  display: none;
}

.hot-product-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#hot-product-references-page .hot-compact-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

#hot-product-references-page .hot-compact-meta b {
  color: var(--ink);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hot-product-references-page .hot-compact-meta a {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hot-product-hero {
  position: relative;
}

.sourcing-hero-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(0, 121, 111, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  pointer-events: none;
}

#hot-product-references-page .hot-compact-meta .safe-pill,
#hot-product-references-page .hot-compact-meta .risk-pill {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

#hot-product-references-page .hot-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

#hot-product-references-page .hot-metric-row span,
#hot-product-references-page .tag-row span {
  min-height: 0;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.15;
}

#hot-product-references-page .hot-attribute-grid span {
  min-height: 42px;
  padding: 5px 6px;
  font-size: 11px;
  line-height: 1.14;
  background: rgba(255, 255, 255, 0.72);
}

#hot-product-references-page .hot-attribute-grid b {
  font-size: 11px;
  line-height: 1.05;
}

#hot-product-references-page .hot-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 0;
}

#hot-product-references-page .hot-spec-grid span {
  font-size: 8px;
}

#hot-product-references-page .hot-detail-columns {
  gap: 6px;
}

#hot-product-references-page .hot-feature-tags {
  gap: 4px;
}

#hot-product-references-page .hot-more-specs {
  display: grid;
  gap: 8px;
}

#hot-product-references-page .hot-more-specs summary {
  width: fit-content;
  cursor: pointer;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

#hot-product-references-page .hot-more-specs[open] summary {
  margin-bottom: 8px;
  color: var(--ink);
}

.link-column {
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}

.link-column h3 {
  font-size: 17px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.hot-link {
  min-height: 56px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.hot-link span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.hot-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-board {
  display: grid;
  gap: 18px;
}

.trend-hotword-strip {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trend-hotword-strip > strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.trend-hotword-group {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.035);
}

.trend-hotword-group h4 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.trend-hotword-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.trend-hotword-chip {
  min-height: 28px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal);
  font-weight: 900;
  line-height: 1;
}

.trend-hotword-chip b {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.trend-hotword-chip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.signal-panel {
  display: grid;
  border-top: 1px solid var(--ink);
}

.signal-panel[hidden] {
  display: none;
}

.dhgate-policy-panel {
  gap: 14px;
}

.dhgate-policy-panel .dhgate-policy-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.dhgate-policy-panel .dhgate-policy-card > .band-heading {
  display: none;
}

.dhgate-policy-panel .dhgate-policy-card p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.policy-interpretation {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.06);
}

.policy-interpretation strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.policy-interpretation span {
  color: var(--muted);
  line-height: 1.55;
}

.dhgate-announcement-list {
  display: grid;
  gap: 10px;
}

.dhgate-announcement-list > h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.dhgate-announcement-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.dhgate-announcement-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.dhgate-announcement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.48;
}

.dhgate-announcement-card a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

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

.policy-section-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.policy-section-card h4,
.policy-checklist h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.policy-section-card ul,
.policy-checklist ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.policy-section-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.policy-section-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid var(--teal);
  background: rgba(15, 118, 110, 0.14);
  vertical-align: 2px;
}

.policy-checklist {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.34);
}

.policy-checklist li {
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.policy-checklist li span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.policy-checklist li strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.policy-meta a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.signal-row {
  min-height: 108px;
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.signal-card {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.signal-media {
  position: relative;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  text-decoration: none;
}

.signal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.signal-media-broken::before {
  content: "No cover";
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.signal-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f5f2ec;
}

.signal-video-media {
  max-width: 360px;
}

.signal-panel[data-trend-panel="tiktok"] .signal-card {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  min-height: 520px;
  align-items: start;
}

.signal-panel[data-trend-panel="tiktok"] .signal-media {
  max-width: 380px;
}

.signal-panel[data-trend-panel="reddit"] .signal-card {
  grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
  align-items: start;
}

.signal-panel[data-trend-panel="reddit"] .signal-media {
  width: 100%;
  min-width: 420px;
  max-width: 560px;
  aspect-ratio: 4 / 3;
}

.signal-panel[data-trend-panel="reddit"] .signal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signal-media span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.signal-media-placeholder {
  background: #191816;
}

.signal-media-placeholder strong {
  font-size: 20px;
  letter-spacing: 0;
}

.signal-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.signal-body > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.signal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signal-content {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.signal-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-tag-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

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

.signal-metric-grid span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.signal-metric-grid b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.signal-translate-button {
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.signal-translate-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.signal-translation {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.06);
}

.signal-translation[hidden] {
  display: none;
}

.signal-translation h4 {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
}

.signal-translation article {
  display: grid;
  gap: 3px;
}

.signal-translation span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.signal-translation p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.signal-comments {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.signal-post-content {
  min-height: 300px;
  max-height: 480px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.signal-post-content h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.signal-post-content p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.signal-comments h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.signal-comments article {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.signal-comments p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.38;
}

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

.refresh-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.signal-row a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.platform {
  color: var(--accent);
  font-weight: 900;
}

.rank {
  color: var(--muted);
  text-align: right;
}

/* Home overview dashboard */
.app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.nav-rail {
  padding: 20px 16px;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    #101010;
  color: #f7f4ef;
}

.brand-lockup {
  gap: 10px;
  padding: 4px 4px 14px;
}

.brand-mark {
  display: none;
}

.brand-name {
  display: grid;
  gap: 5px;
  text-transform: none;
}

.brand-name strong {
  color: #fffaf3;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 0.94;
}

.brand-name span {
  color: #e23d43;
}

.brand-name small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.module-nav {
  gap: 4px;
  margin: 0 -16px;
}

.module-nav a,
.nav-disabled {
  min-height: 48px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.module-nav a:hover,
.module-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.module-nav a.active {
  color: #ffffff;
  border-left-color: #e23d43;
  background: linear-gradient(90deg, rgba(180, 31, 42, 0.74), rgba(180, 31, 42, 0.22));
}

.nav-disabled {
  cursor: default;
  opacity: 0.68;
}

.nav-icon {
  width: 24px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1;
}

.runtime-panel {
  margin-top: auto;
  padding: 15px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.runtime-panel > span:last-child {
  display: grid;
  gap: 3px;
}

.runtime-panel strong {
  color: #fff;
}

.runtime-panel small {
  color: #d7a046;
  font-size: 11px;
  font-weight: 800;
}

.seller-avatar {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.content {
  background: #f7f4ee;
}

.home-dashboard.hero-stage {
  min-height: 100vh;
  padding: 0;
  display: block;
  overflow: visible;
  color: var(--ink);
  background: #f7f4ee;
}

.home-topbar {
  min-height: 58px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 112px minmax(260px, 440px) 1fr;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  background: #0f0f0f;
}

.range-button,
.home-update button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.range-button {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.home-search {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.home-search span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
}

.home-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
}

.home-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.home-update {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.home-update button {
  width: 38px;
  aspect-ratio: 1;
  padding: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 486px;
  background: #101010;
}

.home-dashboard .hero-visual {
  position: relative;
  min-height: 486px;
  overflow: hidden;
  background: #111;
}

.home-dashboard .hero-visual::before,
.home-dashboard .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-dashboard .hero-visual::before {
  background:
    linear-gradient(90deg, #101010 0%, rgba(16, 16, 16, 0.82) 15%, rgba(16, 16, 16, 0.2) 38%, rgba(16, 16, 16, 0.12) 68%, #101010 100%),
    radial-gradient(circle at 52% 38%, transparent 0 28%, rgba(16, 16, 16, 0.28) 62%, rgba(16, 16, 16, 0.64) 100%);
}

.home-dashboard .hero-visual::after {
  background:
    linear-gradient(0deg, rgba(16, 16, 16, 0.58), transparent 28%, transparent 72%, rgba(16, 16, 16, 0.42)),
    linear-gradient(90deg, rgba(16, 16, 16, 0.54), transparent 24%, transparent 76%, rgba(16, 16, 16, 0.42));
}

.home-dashboard .hero-carousel,
.home-dashboard .hero-overlay,
.home-dashboard .carousel-slide {
  position: absolute;
  inset: 0;
}

.home-dashboard .hero-carousel {
  background:
    radial-gradient(circle at 56% 48%, rgba(255, 255, 255, 0.12), transparent 34%),
    #101010;
}

.home-dashboard .carousel-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101010;
  transform: none;
}

.home-dashboard .carousel-slide::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.08);
  opacity: 0.5;
}

.home-dashboard .carousel-slide img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-dashboard .hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.8), rgba(16, 16, 16, 0.2) 34%, rgba(16, 16, 16, 0.02) 58%, rgba(16, 16, 16, 0.22)),
    linear-gradient(0deg, rgba(16, 16, 16, 0.26), rgba(16, 16, 16, 0.04));
}

.home-dashboard .hero-copy {
  position: absolute;
  left: clamp(34px, 3.2vw, 52px);
  bottom: 118px;
  z-index: 3;
  max-width: 390px;
}

.home-dashboard .eyebrow {
  margin-bottom: 14px;
  color: #e23d43;
  font-size: 12px;
  font-weight: 900;
}

.home-dashboard .hero-title {
  margin-bottom: 13px;
  color: #fffaf3;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.25vw, 54px);
  font-weight: 400;
  line-height: 0.98;
  white-space: normal;
}

.home-dashboard .hero-summary {
  max-width: 360px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  white-space: normal;
}

.hero-cta {
  width: fit-content;
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.carousel-dots span {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dots span.active {
  background: #e23d43;
}

.home-insights {
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #101010;
}

.insight-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #181818;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.insight-card header,
.preview-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.insight-card h2,
.preview-panel h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.insight-card header a {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.platform-tabs {
  margin: 14px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tabs span {
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.platform-tabs .active {
  color: #fff;
  background: #e23d43;
}

.signal-list {
  margin: 0;
  padding: 0;
  display: grid;
}

.signal-list li {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.signal-list b {
  color: #fff;
  font-size: 17px;
}

.signal-list span {
  display: grid;
  gap: 3px;
}

.signal-list strong {
  color: #fff;
  font-size: 13px;
}

.signal-list small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.signal-list i {
  height: 18px;
  background:
    linear-gradient(135deg, transparent 10%, rgba(226, 61, 67, 0.9) 11% 16%, transparent 17% 30%, rgba(226, 61, 67, 0.7) 31% 36%, transparent 37% 52%, rgba(72, 181, 166, 0.85) 53% 58%, transparent 59%);
}

.home-kpi-strip {
  margin: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e2ddd5;
  background: #fffdf8;
}

.home-kpi-strip a {
  min-height: 60px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 42px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-right: 1px solid #e7e1d7;
}

.home-kpi-strip a:last-child {
  border-right: 0;
}

.home-kpi-strip span {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #e23d43;
  background: #f7f4ee;
  font-size: 20px;
}

.home-kpi-strip strong {
  color: #111;
  font-size: 27px;
  line-height: 1;
}

.home-kpi-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-preview-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 14px;
}

.preview-panel {
  padding: 16px;
  border: 1px solid #e1dbd0;
  background: #fffdf8;
}

.preview-panel header {
  margin-bottom: 14px;
}

.preview-panel header a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

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

.preview-products article {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 7px;
  border: 1px solid #ded8ce;
  background: #fff;
}

.preview-products img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: contain;
  object-position: center;
  background: #f2eee7;
}

.preview-products strong {
  min-width: 0;
  color: #151515;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-products span {
  color: #171615;
  font-size: 12px;
  font-weight: 900;
}

.preview-products small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-products b {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.36);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.06);
  font-size: 11px;
}

.preview-badge {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.36);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.06);
  font-size: 11px;
  font-weight: 900;
}

.preview-loading {
  grid-column: 1 / -1;
  min-height: 190px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px dashed #ded8ce;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 800;
}

:root[data-theme="day"] body {
  color: #171615;
  background: #f7f4ee;
}

:root[data-theme="day"] .nav-rail {
  border-right-color: #ded8ce;
  background:
    linear-gradient(180deg, rgba(180, 31, 42, 0.06), transparent 24%),
    #fbf8f1;
  color: #171615;
}

:root[data-theme="day"] .brand-name strong {
  color: #171615;
}

:root[data-theme="day"] .brand-name small,
:root[data-theme="day"] .module-nav a {
  color: rgba(23, 22, 21, 0.72);
}

:root[data-theme="day"] .module-nav a:hover,
:root[data-theme="day"] .module-nav a:focus-visible {
  color: #171615;
  background: rgba(180, 31, 42, 0.08);
}

:root[data-theme="day"] .module-nav a.active {
  color: #171615;
  border-left-color: #b41f2a;
  background: linear-gradient(90deg, rgba(180, 31, 42, 0.18), rgba(180, 31, 42, 0.04));
}

:root[data-theme="day"] .nav-icon {
  color: rgba(23, 22, 21, 0.62);
}

:root[data-theme="day"] .runtime-panel strong {
  color: #171615;
}

:root[data-theme="day"] .runtime-panel {
  color: rgba(23, 22, 21, 0.68);
}

:root[data-theme="day"] .runtime-panel {
  border-top-color: #ded8ce;
}

:root[data-theme="day"] .seller-avatar {
  color: #ffffff;
  background: #171615;
}

:root[data-theme="day"] .home-dashboard.hero-stage,
:root[data-theme="day"] .content {
  background: #f7f4ee;
}

:root[data-theme="day"] .home-topbar {
  color: rgba(23, 22, 21, 0.72);
  border-bottom: 1px solid #ded8ce;
  background: #fffdf8;
}

:root[data-theme="day"] .range-button,
:root[data-theme="day"] .home-update button,
:root[data-theme="day"] .home-search {
  border-color: #ded8ce;
  color: #171615;
  background: #ffffff;
}

:root[data-theme="day"] .home-search span {
  color: rgba(23, 22, 21, 0.42);
}

:root[data-theme="day"] .home-search input {
  color: #171615;
}

:root[data-theme="day"] .home-search input::placeholder {
  color: rgba(23, 22, 21, 0.45);
}

:root[data-theme="day"] .home-hero-grid {
  background: #fffdf8;
}

:root[data-theme="day"] .home-dashboard .hero-visual,
:root[data-theme="day"] .home-dashboard .hero-carousel,
:root[data-theme="day"] .home-dashboard .carousel-slide {
  background: #fffdf8;
}

:root[data-theme="day"] .home-dashboard .carousel-slide::before {
  filter: blur(18px) saturate(0.95) brightness(1.12);
  opacity: 0.28;
}

:root[data-theme="day"] .home-dashboard .carousel-slide img {
  filter: saturate(0.92) brightness(1.06);
}

:root[data-theme="day"] .home-dashboard .hero-visual::before {
  background:
    linear-gradient(90deg, #fffdf8 0%, rgba(255, 253, 248, 0.86) 17%, rgba(255, 253, 248, 0.24) 44%, rgba(255, 253, 248, 0.08) 70%, #fffdf8 100%),
    radial-gradient(circle at 52% 38%, transparent 0 30%, rgba(255, 253, 248, 0.28) 65%, rgba(255, 253, 248, 0.7) 100%);
}

:root[data-theme="day"] .home-dashboard .hero-visual::after {
  background:
    linear-gradient(0deg, rgba(255, 253, 248, 0.62), transparent 30%, transparent 70%, rgba(255, 253, 248, 0.5)),
    linear-gradient(90deg, rgba(255, 253, 248, 0.78), transparent 30%, transparent 76%, rgba(255, 253, 248, 0.52));
}

:root[data-theme="day"] .home-dashboard .hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.38) 36%, rgba(255, 253, 248, 0.1) 62%, rgba(255, 253, 248, 0.52)),
    linear-gradient(0deg, rgba(255, 253, 248, 0.34), rgba(255, 253, 248, 0.08));
}

:root[data-theme="day"] .home-dashboard .hero-title {
  color: #151515;
}

:root[data-theme="day"] .home-dashboard .hero-summary {
  color: rgba(23, 22, 21, 0.86);
}

:root[data-theme="day"] .hero-cta {
  border-color: rgba(23, 22, 21, 0.18);
  color: #171615;
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="day"] .carousel-dots span {
  background: rgba(23, 22, 21, 0.28);
}

:root[data-theme="day"] .carousel-dots span.active {
  background: #e23d43;
}

:root[data-theme="day"] .home-insights {
  background: #fffdf8;
}

:root[data-theme="day"] .insight-card {
  color: #171615;
  border-color: #ded8ce;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(23, 22, 21, 0.08);
}

:root[data-theme="day"] .insight-card h2,
:root[data-theme="day"] .signal-list b,
:root[data-theme="day"] .signal-list strong {
  color: #171615;
}

:root[data-theme="day"] .insight-card header a,
:root[data-theme="day"] .signal-list small {
  color: rgba(23, 22, 21, 0.55);
}

:root[data-theme="day"] .signal-list li {
  border-top-color: #e8e1d7;
}

:root[data-theme="day"] .platform-tabs span {
  color: rgba(23, 22, 21, 0.72);
}

:root[data-theme="day"] .platform-tabs .active {
  color: #ffffff;
}



:root[data-theme="day"] .home-kpi-strip,
:root[data-theme="day"] .home-preview-grid {
  background: #0f0f0f;
}

:root[data-theme="day"] .home-kpi-strip {
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="day"] .home-kpi-strip a {
  border-right-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="day"] .home-kpi-strip strong,
:root[data-theme="day"] .preview-panel h2,
:root[data-theme="day"] .preview-products strong {
  color: #fffaf3;
}

:root[data-theme="day"] .home-kpi-strip small,
:root[data-theme="day"] .preview-products small {
  color: rgba(255, 255, 255, 0.62);
}

:root[data-theme="day"] .preview-panel {
  border-color: rgba(255, 255, 255, 0.11);
  color: #fffaf3;
  background: #171717;
}

:root[data-theme="day"] .preview-products article {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101010;
}

:root[data-theme="day"] .preview-products span {
  color: rgba(255, 250, 243, 0.92);
}

@media (max-width: 720px) {
  .trend-hotword-groups {
    grid-template-columns: 1fr;
  }

  .signal-card {
    grid-template-columns: 1fr;
  }

  .signal-panel[data-trend-panel="reddit"] .signal-card {
    grid-template-columns: 1fr;
  }

  .signal-panel[data-trend-panel="reddit"] .signal-media {
    min-width: 0;
  }

  .signal-media {
    max-height: 320px;
  }
}

@media (max-width: 860px) {
  .trend-hotword-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .nav-rail {
    position: static;
    height: auto;
    padding: 16px;
  }

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

  .module-nav a {
    font-size: 13px;
  }

  .hero-stage {
    min-height: 68vh;
    padding: 32px 18px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-title,
  .hero-summary {
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-summary {
    font-size: 20px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .home-action-panel {
    width: 100%;
  }

  .home-action-card {
    min-height: 74px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .action-state {
    grid-column: 2;
    width: fit-content;
  }

  .poster-index,
  .impact-ribbon {
    display: none;
  }

  .runway-brief,
  .link-columns,
  .opportunity-layout,
  .product-grid,
  .hot-product-grid {
    grid-template-columns: 1fr;
  }

  .trend-panel .product-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-filter-sidebar {
    position: static;
  }

  .opportunity-products-pane .product-grid {
    grid-template-columns: 1fr;
  }

  .hot-product-card {
    grid-template-columns: 1fr;
  }

  .hot-product-gallery {
    grid-template-rows: minmax(280px, auto) auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hot-product-hero {
    min-height: 280px;
  }

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

  #hot-product-references-page .hot-product-grid {
    grid-template-columns: 1fr;
  }

  #hot-product-references-page .section-heading {
    display: grid;
    gap: 4px;
  }

  .product-tile {
    min-height: 660px;
    grid-template-rows: 300px auto 1fr;
  }

  .tile-media img {
    max-height: 300px;
  }

  .runway-brief {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
  }

  .brief-line {
    display: grid;
    gap: 3px;
  }

  .work-section {
    padding: 34px 18px;
  }

  .band-heading,
  .signal-row {
    display: grid;
  }

  .band-heading span {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  #trend-intelligence-page .module-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .module-search {
    min-height: 46px;
  }

  .trend-hotword-groups {
    grid-template-columns: 1fr;
  }
}


.store-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 22, 21, 0.38);
}

.store-select-dialog {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-select-dialog h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.store-select-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.store-select-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.store-select-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.store-select-actions button {
  min-width: 88px;
  min-height: 40px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.store-select-actions button:last-child {
  background: var(--ink);
  color: #fff;
}

.task-center {
  display: grid;
  gap: 14px;
}

.task-center-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.task-card-image {
  width: 86px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.task-card-main {
  min-width: 0;
}

.task-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.task-card h3,
.task-card p {
  margin: 0;
}

.task-card h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-status {
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.task-status-success { color: var(--teal); }
.task-status-error { color: var(--accent); }
.task-status-running { color: var(--gold); }

.task-card-meta,
.task-card-node,
.task-card-side time {
  color: var(--muted);
  font-size: 12px;
}

.task-card-meta { margin-top: 8px !important; }
.task-card-node { margin-top: 4px !important; }
.task-card-failure {
  margin-top: 4px !important;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
}

.task-progress {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--paper);
}

.task-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.task-card-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.task-card-side strong {
  color: var(--ink);
  font-size: 18px;
}

.task-republish-button,
.task-detail-button,
.task-erp-button {
  min-height: 32px;
  margin-top: 4px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.task-republish-button:disabled {
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
  cursor: not-allowed;
}

.task-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.task-pagination button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.task-pagination button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .task-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .task-card-image {
    width: 72px;
    height: 92px;
  }

  .task-card-side {
    justify-items: start;
    text-align: left;
  }
}
