:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f0eee8;
  --ink: #171717;
  --muted: #706f68;
  --line: #dedbd2;
  --olive: #69715a;
  --burgundy: #7a3f46;
  --gold: #a4864a;
  --bluegray: #64748b;
  --shadow: 0 18px 50px rgba(26, 24, 20, 0.08);
}* {
  box-sizing: border-box;
}body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}button,
input,
select {
  font: inherit;
}button:disabled {
  cursor: wait;
  opacity: 0.62;
}.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: #fff;
}.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}.brand-name {
  font-size: 20px;
  font-weight: 700;
}.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}.nav {
  display: grid;
  gap: 6px;
}.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
}.nav-item.active,
.nav-item:hover {
  background: var(--surface-soft);
  color: var(--ink);
}.icon {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  display: inline-block;
  position: relative;
}.icon.line-chart::after,
.icon.spark::after,
.icon.search::after,
.icon.nodes::after,
.icon.settings::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 1.5px solid currentColor;
  transform: rotate(-28deg);
}.sidebar-status {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 8px;
}.main {
  margin-left: 264px;
  padding: 34px 42px 56px;
}.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 680;
}h2 {
  margin: 0;
  font-size: 18px;
}p {
  margin: 0;
}.top-actions,
.toolbar,
.task-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}.primary-btn,
.ghost-btn {
  min-height: 38px;
  border: 1px solid var(--ink);
  padding: 0 16px;
  cursor: pointer;
}.primary-btn {
  background: var(--ink);
  color: #fff;
}.progress-btn {
  --progress: 0%;
  position: relative;
  overflow: hidden;
  min-width: 168px;
  isolation: isolate;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}.progress-btn .btn-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: rgba(196, 130, 55, 0.52);
  z-index: -1;
  transition: width 0.35s ease;
}.progress-btn.is-running .btn-progress-fill {
  background:
    linear-gradient(90deg, rgba(196, 130, 55, 0.62), rgba(232, 210, 174, 0.66)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 8px, transparent 8px 16px);
}.progress-btn.is-complete {
  border-color: #57745a;
  background: #57745a;
}.progress-btn.is-error {
  border-color: #9d3c32;
  background: #9d3c32;
}.progress-btn.is-sample .btn-progress-fill {
  background: rgba(120, 120, 120, 0.35);
}.progress-btn .btn-progress-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}.ghost-btn {
  background: transparent;
  color: var(--ink);
}.publish-progress-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(43, 40, 34, 0.22);
  background: rgba(255, 252, 245, 0.96);
  color: #211d18;
}.publish-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}.publish-progress-head strong {
  font-size: 15px;
}.publish-progress-head span {
  flex: 0 0 auto;
  font-weight: 800;
  color: #7b271f;
}.publish-progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(43, 40, 34, 0.2);
  background: rgba(43, 40, 34, 0.08);
}.publish-progress-track i {
  display: block;
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg, #7b271f, #c08a45),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 7px, transparent 7px 14px);
  transition: width 0.35s ease;
}.publish-progress-panel p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(33, 29, 24, 0.72);
}.publish-progress-panel[data-status="done"] {
  border-color: rgba(87, 116, 90, 0.45);
  background: rgba(243, 249, 242, 0.98);
}.publish-progress-panel[data-status="done"] .publish-progress-head span {
  color: #57745a;
}.publish-progress-panel[data-status="done"] .publish-progress-track i {
  background: #57745a;
}.publish-progress-panel[data-status="error"] {
  border-color: rgba(157, 60, 50, 0.45);
  background: rgba(255, 244, 242, 0.98);
}.publish-progress-panel[data-status="error"] .publish-progress-head span {
  color: #9d3c32;
}.publish-progress-panel[data-status="error"] .publish-progress-track i {
  background: #9d3c32;
}.button-row,
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 10px;
}.module-refresh-btn {
  margin-left: auto;
  min-width: 88px;
}.batch-listing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}.batch-listing-actions .module-refresh-btn {
  margin-left: 0;
}.buyer-pick-btn {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 12px;
}.buyer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  margin-bottom: 8px;
  background: #dbe3dc;
  color: #334238;
  font-size: 11px;
  letter-spacing: 0;
}.rec-card.buyer-rec-card {
  background: linear-gradient(90deg, rgba(219, 227, 220, 0.72), rgba(246, 247, 243, 0.76));
  border-color: rgba(98, 116, 101, 0.26);
}.view {
  display: none;
}.view.active {
  display: block;
}.health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}.health-item,
.panel,
.rec-card,
.product-card,
.post-row {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}.health-item {
  padding: 18px;
  display: grid;
  gap: 8px;
}.health-item span {
  color: var(--muted);
  font-size: 12px;
}.health-item strong {
  font-size: 28px;
}.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}.panel {
  padding: 20px;
}.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}.panel-head p,
.muted {
  color: var(--muted);
  font-size: 13px;
}.recommendation-preview,
.recommendation-list,
.keyword-list,
.social-list,
.handoff-list,
.job-list {
  display: grid;
  gap: 12px;
}.subhead {
  margin: 18px 0 10px;
  font-size: 15px;
}.rec-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  padding: 14px;
  align-items: center;
}.rec-image,
.product-image {
  width: 92px;
  aspect-ratio: 1;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}.rec-image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}#dashboardRecommendations .rec-image {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}#dashboardRecommendations .rec-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: var(--surface-soft);
}.image-fallback {
  width: 48px;
  height: 48px;
  border: 1px solid var(--muted);
  position: relative;
}.image-fallback::before,
.image-fallback::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  border-top: 1px solid var(--muted);
}.image-fallback::before {
  top: 18px;
  transform: rotate(24deg);
}.image-fallback::after {
  top: 29px;
  transform: rotate(-18deg);
}.rec-title {
  font-weight: 650;
  line-height: 1.35;
}.rec-reason {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}.source-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}.chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 11px;
}.score {
  min-width: 58px;
  text-align: center;
  color: var(--olive);
  font-size: 24px;
  font-weight: 700;
}.segmented {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3px;
  display: flex;
}.segment {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  cursor: pointer;
  color: var(--muted);
}.segment.active {
  background: var(--ink);
  color: #fff;
}.keyword-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}.keyword-item:last-child {
  border-bottom: 0;
}.keyword-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}.product-card {
  padding: 14px;
}.product-image {
  width: 100%;
  margin-bottom: 12px;
}.post-row {
  padding: 14px;
}.social-post-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: stretch;
}.social-post-card:not(:has(.social-thumb)) {
  grid-template-columns: 1fr;
}.social-thumb {
  min-height: 118px;
  background: var(--surface-soft);
  overflow: hidden;
}.social-thumb img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  display: block;
}.social-post-body {
  min-width: 0;
}#view-social .social-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  columns: auto !important;
  align-items: start;
}#view-social .social-platform-column {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}#view-social .social-column-head {
  min-height: 54px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}#view-social .social-column-head h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}#view-social .social-column-head span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}#view-social .social-column-feed {
  display: grid;
  gap: 10px;
  padding: 10px;
}#view-social .social-post-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 116px;
  padding: 8px !important;
  margin: 0 !important;
  overflow: hidden;
  break-inside: auto;
}#view-social .social-post-card.has-image {
  background: rgba(255, 255, 255, 0.72);
}#view-social .social-thumb {
  width: 92px;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(32, 27, 22, 0.08);
}#view-social .social-thumb img {
  min-height: 0;
}#view-social .social-post-body {
  padding: 1px 0 0;
}#view-social .social-post-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.38;
  font-size: 12px;
}#view-social .social-post-body .keyword-meta {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10px;
}#view-social .social-post-body .source-row {
  gap: 4px;
  margin-top: 7px;
}#view-social .social-post-body .product-keyword-row {
  margin-top: 8px;
}#view-social .social-post-body .product-keyword-row .chip {
  border-color: rgba(123, 51, 41, 0.24);
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.58);
}#view-social .social-post-body .metric-row .chip {
  color: var(--muted);
}#view-social .social-post-body .chip {
  padding: 2px 6px;
  font-size: 10px;
}#view-social .social-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: 13px;
}

@media (max-width: 1100px) {
#view-social .social-list {
    grid-template-columns: 1fr !important;
  }
}
.task-form {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  margin-bottom: 12px;
}.task-form label {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 5px;
}.task-form input[type="number"] {
  width: 96px;
  height: 36px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
}.checkbox-label {
  display: flex !important;
  align-items: center;
  grid-auto-flow: column;
}.budget-note {
  margin-bottom: 14px;
  color: var(--burgundy);
  font-size: 13px;
}.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  max-width: 360px;
}.toast.show {
  opacity: 1;
}

@media (max-width: 960px) {
.sidebar {
    position: static;
    width: 100%;
  }.main {
    margin-left: 0;
    padding: 22px;
  }.health-strip,
.section-grid {
    grid-template-columns: 1fr;
  }.rec-card {
    grid-template-columns: 74px 1fr;
  }.score {
    grid-column: 1 / -1;
    text-align: left;
  }
}
body[data-theme="noir"] {
  --bg: #f1f1ef;
  --surface: rgba(250, 250, 248, 0.9);
  --surface-soft: #e6e3dd;
  --ink: #080808;
  --muted: #585858;
  --line: rgba(8, 8, 8, 0.18);
  --olive: #111111;
  --burgundy: #8f1d2c;
  --gold: #6d6d6d;
  --hero-a: url("./assets/home-gallery/hero-brown-tote-bag.png");
  --hero-b: url("./assets/home-gallery/hero-quilted-chain-bag.png");
  --hero-c: url("./assets/home-gallery/hero-brown-tote-bag.png");
}.style-stage {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}.hero-media,
.hero-shade,
.hero-slide {
  position: absolute;
  inset: 0;
}.hero-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
}.hero-slide-a {
  background-image: var(--hero-a);
}.hero-slide-b {
  background-image: var(--hero-b);
}.hero-slide-c {
  background-image: var(--hero-c);
}body[data-hero-index="0"] .hero-slide-a,
body[data-hero-index="1"] .hero-slide-b,
body[data-hero-index="2"] .hero-slide-c {
  opacity: 1;
  transform: scale(1);
}.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.14) 45%, rgba(255, 255, 255, 0.14)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 48%);
}.style-topline,
.hero-content {
  position: relative;
  z-index: 1;
}.style-topline {
  min-height: 92px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}.style-topline h2 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 560;
}.collection-label {
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}.prompt-chip {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}.hero-content {
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(360px, 520px);
  align-items: end;
  gap: 28px;
  padding: 28px;
}.hero-copy {
  max-width: 650px;
  color: #fff;
  padding-bottom: 12px;
}.hero-eyebrow {
  color: rgba(255,255,255,0.72);
}.hero-copy h2 {
  margin: 8px 0 14px;
  font-size: 56px;
  line-height: 1;
  font-weight: 680;
}.hero-copy p {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.8;
}.hero-metrics {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}.hero-metrics div {
  min-width: 118px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}.hero-metrics strong {
  display: block;
  font-size: 26px;
}.hero-metrics span {
  font-size: 11px;
  color: rgba(255,255,255,0.76);
}.conversation-panel {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  padding: 18px;
}body[data-theme="noir"] .conversation-panel {
  background: rgba(248, 248, 247, 0.9);
  border-color: rgba(255,255,255,0.22);
}.conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}.conversation-head span {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}.conversation-head h2 {
  margin-top: 5px;
  font-size: 20px;
}.live-dot {
  height: 25px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--olive) !important;
}.chat-messages {
  min-height: 210px;
  max-height: 270px;
  overflow: auto;
  padding: 12px;
  background: rgba(255,255,255,0.48);
  border: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 10px;
}.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  background: #fff;
}.chat-message.user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}.chat-message.assistant {
  justify-self: start;
}.chat-message strong {
  display: block;
  margin-bottom: 4px;
}.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}.prompt-chip {
  color: var(--ink);
  background: rgba(255,255,255,0.66);
  border-color: var(--line);
  text-align: left;
}.prompt-chip:hover {
  background: var(--surface-soft);
}.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}.chat-input-row input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}.home-below {
  margin-top: 18px;
}body[data-theme="noir"] .brand-mark,
body[data-theme="noir"] .primary-btn,
body[data-theme="noir"] .segment.active,
body[data-theme="noir"] .chat-message.user {
  background: #000;
}

@media (max-width: 1080px) {
.hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }.hero-copy h2 {
    font-size: 42px;
  }.style-topline {
    display: grid;
  }
}

@media (max-width: 960px) {
.sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 12px 14px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }.brand-mark {
    width: 40px;
    height: 40px;
  }.brand-mark svg {
    width: 29px;
    height: 29px;
  }.brand-name {
    font-size: 17px;
  }.nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }.nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    flex: 0 0 auto;
  }.sidebar-status,
.topbar {
    display: none;
  }.main {
    margin-left: 0;
    padding: 12px 14px 40px;
  }.style-stage {
    min-height: auto;
  }.style-topline {
    min-height: auto;
    padding: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    backdrop-filter: blur(16px);
  }.collection-label {
    color: var(--muted);
  }.style-topline h2 {
    color: var(--ink);
  }.hero-content {
    min-height: auto;
    padding: 14px;
    gap: 16px;
  }.hero-copy h2 {
    font-size: 34px;
  }.hero-copy p {
    font-size: 14px;
  }.conversation-panel {
    padding: 14px;
    order: -1;
  }
}
/* Full-screen fashion homepage redesign */
body[data-view="dashboard"] .topbar {
  display: none;
}body[data-view="dashboard"] .main {
  padding: 0 0 56px;
}

@media (min-width: 961px) {
body[data-view="dashboard"] .main {
    margin-left: 0;
  }body[data-view="dashboard"] .sidebar {
    z-index: 8;
    background: rgba(255, 255, 255, 0.68);
    border-right-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
  }body[data-view="dashboard"] .style-topline {
    padding-left: calc(264px + clamp(20px, 3vw, 44px));
  }body[data-view="dashboard"] .theme-layout {
    padding-left: calc(264px + clamp(24px, 4vw, 64px));
  }body[data-view="dashboard"] .home-below {
    padding-left: 306px;
  }
}
body[data-view="dashboard"] .style-stage {
  min-height: 100vh;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}body[data-view="dashboard"] .home-below {
  margin-top: 0;
  padding: 24px 42px 0;
}.hero-media {
  z-index: 0;
}.hero-shade {
  z-index: 0;
}.style-topline {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  min-height: 112px;
  padding: clamp(18px, 2.4vw, 32px) clamp(20px, 3vw, 44px);
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent);
}.style-topline h2 {
  max-width: 520px;
  font-size: clamp(17px, 1.7vw, 25px);
  line-height: 1.22;
}.collection-label {
  letter-spacing: 0;
}.theme-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(118px, 11vh, 156px) clamp(24px, 4vw, 64px) clamp(42px, 5vw, 72px);
  color: #fff;
  display: none;
}.theme-layout.active {
  display: grid;
}.theme-copy {
  position: relative;
  max-width: 620px;
}.theme-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  font-weight: 660;
}.theme-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.82;
}.conversation-wide {
  width: 100%;
  min-height: 390px;
  max-height: 540px;
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: auto minmax(130px, 1fr) auto auto;
  align-self: end;
  padding: clamp(18px, 2vw, 26px);
}.conversation-wide .chat-messages {
  min-height: 0;
  max-height: none;
}.conversation-wide .conversation-head h2 {
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.12;
}.theme-noir.active {
  grid-template-columns: minmax(460px, 1.15fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}body[data-theme="noir"] .hero-slide {
  filter: grayscale(1) contrast(1.05);
}body[data-theme="noir"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 48%, rgba(255, 255, 255, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
}.gallery-wall {
  height: min(68vh, 640px);
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.02fr 0.82fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}.gallery-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}.gallery-frame span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}.gallery-frame.tall {
  grid-row: 1 / 3;
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.18)), var(--hero-a);
}.gallery-frame.square {
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.18)), var(--hero-b);
}.gallery-frame.wide {
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.18)), var(--hero-c);
}.noir-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(18px, 3vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}.noir-panel h2 {
  font-size: clamp(48px, 6vw, 92px);
}.gallery-list {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}.gallery-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}.gallery-list strong {
  display: block;
  font-size: 32px;
}.gallery-list span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}.travel-card {
  position: absolute;
  width: min(220px, 16vw);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-weight: 650;
  background-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.56)), var(--hero-b);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 70px rgba(13, 74, 72, 0.24);
}.travel-card.large {
  left: 10%;
  top: 0;
  width: min(310px, 23vw);
  background-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.56)), var(--hero-a);
}.travel-card:not(.large):nth-child(2) {
  right: 24%;
  top: 78px;
  background-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.56)), var(--hero-c);
}.travel-card:not(.large):nth-child(3) {
  right: 0;
  top: 168px;
}.signal-board {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 34px);
  background: rgba(7, 15, 18, 0.58);
  border: 1px solid rgba(213, 230, 236, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}.signal-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-transform: uppercase;
}.signal-row i {
  height: 2px;
  background: linear-gradient(90deg, #f8fbff, rgba(111, 211, 206, 0.68), transparent);
  box-shadow: 0 0 18px rgba(111, 211, 206, 0.62);
}.signal-row:nth-child(2) i {
  width: 84%;
}.signal-row:nth-child(3) i {
  width: 68%;
}.signal-row:nth-child(4) i {
  width: 76%;
}.magazine-cover {
  width: min(430px, 34vw);
  aspect-ratio: 3 / 4;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.54)), var(--hero-b);
  background-size: cover;
  background-position: center;
  border: 8px solid #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(-2deg);
}.mag-issue {
  align-self: flex-start;
  padding: 6px 10px;
  background: #b51d29;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}.magazine-cover strong {
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 0.92;
}.magazine-cover p {
  max-width: 230px;
  line-height: 1.5;
}.floating-mini-actions {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 3vw, 46px);
  bottom: clamp(22px, 3.2vw, 46px);
  display: flex;
  gap: 10px;
  align-items: center;
}.floating-mini-actions .prompt-chip {
  min-height: 40px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}.dialog-dock {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 4px 0 0;
}.dialog-dock .panel-head {
  margin-bottom: 12px;
}.dialog-dock-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 0.6fr);
  gap: 14px;
}.chat-messages-dock {
  min-height: 150px;
  max-height: 240px;
  background: rgba(255, 255, 255, 0.72);
}.dock-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}.dock-input-row {
  margin-top: 0;
}

@media (max-width: 1180px) {
.theme-noir.active {
    grid-template-columns: 1fr;
  }.conversation-wide {
    width: min(760px, 100%);
    justify-self: end;
  }.gallery-wall {
    height: 46vh;
    min-height: 360px;
  }
}

@media (max-width: 960px) {
body[data-view="dashboard"] .main {
    padding: 0 0 38px;
  }body[data-view="dashboard"] .style-stage {
    min-height: calc(100vh - 112px);
  }body[data-view="dashboard"] .home-below {
    padding: 18px 14px 0;
  }.style-topline {
    position: absolute;
    min-height: 126px;
    padding: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent);
  }.collection-label,
.style-topline h2 {
    color: #fff;
  }.style-topline h2 {
    font-size: 16px;
  }.theme-layout {
    min-height: calc(100vh - 112px);
    padding: 158px 14px 24px;
  }.theme-copy h2 {
    font-size: 42px;
  }.theme-copy p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.68;
  }.hero-metrics {
    margin-top: 16px;
    gap: 8px;
  }.hero-metrics div {
    min-width: 96px;
    padding: 10px;
  }.conversation-wide {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    padding: 14px;
  }.conversation-wide .chat-messages {
    min-height: 128px;
    max-height: 176px;
  }.prompt-grid {
    grid-template-columns: 1fr 1fr;
  }.theme-noir.active {
    align-content: end;
    gap: 18px;
  }.theme-noir.active {
    padding-bottom: 124px;
  }.gallery-wall {
    height: 36vh;
    min-height: 260px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }.noir-panel {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    padding-top: 16px;
  }.travel-card,
.travel-card.large,
.travel-card:not(.large):nth-child(2),
.travel-card:not(.large):nth-child(3) {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 138px;
    padding: 10px;
    font-size: 12px;
  }.signal-board {
    padding: 16px;
  }.signal-row {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }.magazine-cover {
    width: min(250px, 72vw);
    justify-self: center;
    padding: 18px;
    border-width: 6px;
  }.floating-mini-actions {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    justify-content: stretch;
  }.floating-mini-actions .prompt-chip {
    flex: 1;
    text-align: center;
  }.dialog-dock-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
body[data-view="dashboard"] .style-stage,
.theme-layout {
    min-height: calc(100vh - 104px);
  }.style-topline {
    min-height: 150px;
  }.theme-layout {
    padding-top: 156px;
  }.theme-copy h2 {
    font-size: 34px;
  }.conversation-head {
    display: grid;
  }.conversation-wide .conversation-head h2 {
    font-size: 20px;
  }.chat-input-row {
    grid-template-columns: 1fr;
  }.travel-card,
.travel-card.large,
.travel-card:not(.large):nth-child(2),
.travel-card:not(.large):nth-child(3) {
    aspect-ratio: 16 / 7;
    min-height: 0;
  }
}
/* Refinement pass: softer dialog,
mixed navigation,
theme-specific subpages */
.conversation-panel {
  border-radius: 8px;
}.conversation-wide {
  min-height: 330px;
  max-height: 480px;
  aspect-ratio: 19 / 10;
  grid-template-rows: auto minmax(96px, 1fr) auto auto;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.64)),
    rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 58px rgba(25, 18, 12, 0.18);
}.conversation-wide .conversation-head {
  margin-bottom: 8px;
}.conversation-wide .conversation-head h2 {
  font-weight: 560;
}.conversation-wide .chat-messages {
  min-height: 96px;
  padding: 2px;
  border: 0;
  background: transparent;
  gap: 8px;
}.conversation-wide .chat-message {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(48, 31, 18, 0.07);
}.conversation-wide .chat-message.user {
  max-width: 78%;
  background: rgba(34, 23, 13, 0.88);
}.conversation-wide .prompt-grid {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
}.conversation-wide .prompt-chip {
  flex: 0 1 auto;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}.conversation-wide .chat-input-row input {
  border-radius: 8px;
  border-color: rgba(55, 35, 18, 0.16);
  background: rgba(255, 255, 255, 0.7);
}.conversation-wide .chat-input-row .primary-btn {
  border-radius: 8px;
  min-width: 78px;
}

@media (min-width: 961px) {
body[data-nav="top"] .sidebar {
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 82px;
    padding: 14px 28px;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.78);
    z-index: 12;
  }body[data-nav="top"] .brand {
    min-width: 214px;
    flex: 0 0 auto;
  }body[data-nav="top"] .nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
  }body[data-nav="top"] .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 9px 12px;
  }body[data-nav="top"] .sidebar-status {
    margin: 0;
    padding: 0;
    border-top: 0;
    display: flex;
    gap: 12px;
    white-space: nowrap;
  }body[data-nav="top"] .main {
    margin-left: 0;
    padding: 112px 42px 56px;
  }body[data-nav="top"][data-view="dashboard"] .main {
    padding: 0 0 56px;
  }body[data-nav="top"][data-view="dashboard"] .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(22px);
  }body[data-nav="top"][data-view="dashboard"] .style-topline {
    padding-top: 104px;
    padding-left: clamp(20px, 3vw, 44px);
  }body[data-nav="top"][data-view="dashboard"] .theme-layout {
    padding-top: clamp(178px, 19vh, 224px);
    padding-left: clamp(24px, 4vw, 64px);
  }body[data-nav="top"][data-view="dashboard"] .home-below {
    padding-left: 42px;
  }
}
body:not([data-view="dashboard"]) .topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}body:not([data-view="dashboard"]) .panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}body:not([data-view="dashboard"]) .toolbar {
  margin-bottom: 18px;
  justify-content: space-between;
}body:not([data-view="dashboard"]) .panel-head {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}body[data-theme="noir"]:not([data-view="dashboard"]) .recommendation-list,
body[data-theme="noir"]:not([data-view="dashboard"]) .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: #111;
  border: 1px solid #111;
}body[data-theme="noir"]:not([data-view="dashboard"]) .rec-card,
body[data-theme="noir"]:not([data-view="dashboard"]) .product-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #f7f7f4;
}body[data-theme="noir"]:not([data-view="dashboard"]) .rec-image,
body[data-theme="noir"]:not([data-view="dashboard"]) .product-image {
  width: 100%;
  border: 0;
}body[data-theme="noir"]:not([data-view="dashboard"]) .rec-card > div:not(.rec-image),
body[data-theme="noir"]:not([data-view="dashboard"]) .product-card > :not(.product-image) {
  padding: 12px;
}body[data-theme="noir"]:not([data-view="dashboard"]) .social-list .post-row,
body[data-theme="noir"]:not([data-view="dashboard"]) .job-list .post-row,
body[data-theme="noir"]:not([data-view="dashboard"]) .handoff-list .post-row {
  box-shadow: none;
  border-width: 0 0 0 4px;
  border-left-color: #111;
  background: #fbfbfa;
}

@media (max-width: 960px) {
.conversation-wide {
    aspect-ratio: auto;
  }.conversation-wide .prompt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }body:not([data-view="dashboard"]) .panel {
    padding: 0;
  }body[data-theme]:not([data-view="dashboard"]) .recommendation-list,
body[data-theme]:not([data-view="dashboard"]) .product-grid,
body[data-theme]:not([data-view="dashboard"]) .social-list {
    display: grid;
    grid-template-columns: 1fr;
    columns: auto;
    background: transparent;
    border: 0;
  }body[data-theme]:not([data-view="dashboard"]) .rec-card,
body[data-theme]:not([data-view="dashboard"]) .product-card,
body[data-theme]:not([data-view="dashboard"]) .social-list .post-row {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 74px 1fr;
    margin: 0;
    box-shadow: var(--shadow);
  }body[data-theme]:not([data-view="dashboard"]) .product-card {
    grid-template-columns: 1fr;
  }body[data-theme]:not([data-view="dashboard"]) .rec-card:first-child,
body[data-theme]:not([data-view="dashboard"]) .rec-card:nth-child(3n + 1) {
    grid-column: auto;
    grid-template-columns: 74px 1fr;
  }body[data-theme]:not([data-view="dashboard"]) .product-card:nth-child(5n + 1) {
    grid-column: auto;
  }
}
/* Navigation,
logos,
and system configuration */
.brand-mark .logo-svg {
  display: none;
}body[data-theme="noir"] .brand-mark .logo-noir {
  display: block;
}body[data-theme="noir"] .brand-mark {
  border-color: #111;
  background: #fff;
}.sidebar-status {
  gap: 10px;
}.sidebar-status .config-open-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.42);
}.config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}.config-pills span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}.config-pills b {
  color: var(--ink);
  font-weight: 560;
}

@media (min-width: 961px) {
body[data-nav="top"] .sidebar-status {
    align-items: center;
  }body[data-nav="top"] .sidebar-status .config-open-btn {
    width: auto;
  }body[data-nav="top"] .config-pills {
    justify-content: flex-end;
  }
}
.config-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}.config-modal.show {
  display: block;
}.config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.34);
  backdrop-filter: blur(8px);
}.config-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(920px, calc(100vw - 36px));
  padding: 24px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 243, 236, 0.88)),
    var(--surface);
  box-shadow: 0 28px 86px rgba(20, 18, 15, 0.24);
}.config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}.config-head h2 {
  font-size: 26px;
}.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}.config-block {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}.config-block .panel-head {
  padding: 0;
  border-bottom: 0;
  margin-bottom: 14px;
}.config-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}.config-field input,
.config-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 11px;
}.config-field input[readonly] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
}.config-mini-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}.config-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}.config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}.config-maintenance {
  margin-top: 16px;
}.compact-job-list {
  max-height: 210px;
  overflow: auto;
}.compact-job-list .post-row {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.5);
}.config-result {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 42px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(105, 113, 90, 0.28);
  background: rgba(244, 248, 238, 0.92);
  color: var(--olive);
  font-size: 13px;
}.config-result[data-status="error"] {
  border-color: rgba(122, 63, 70, 0.36);
  background: rgba(255, 238, 240, 0.94);
  color: var(--burgundy);
}

@media (max-width: 960px) {
.nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }.nav-item {
    width: 100%;
    min-width: 0;
  }.sidebar {
    position: relative;
  }.sidebar-status {
    display: flex;
    position: absolute;
    right: 14px;
    top: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    z-index: 4;
  }.sidebar-status .config-open-btn {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
  }.config-pills {
    display: none;
  }.config-panel {
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100vh - 42px);
    padding: 18px 14px 24px;
  }.config-grid,
.config-mini-row {
    grid-template-columns: 1fr;
  }.config-head {
    align-items: center;
  }
}
/* Final polish: remove explanatory copy,
simplify identity,
align layouts */
.config-pills {
  display: none !important;
}.brand-mark {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.72);
}.brand-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}.style-topline {
  justify-content: flex-end;
  min-height: 92px;
}.theme-copy h2 {
  margin: 0;
}.theme-copy p,
.hero-eyebrow,
.collection-label,
.style-topline h2,
.magazine-cover p,
.conversation-head span {
  display: none !important;
}.signal-row {
  grid-template-columns: 1fr;
}.signal-row span,
.mag-issue,
.magazine-cover strong,
.gallery-frame span {
  display: none;
}.travel-card {
  color: transparent;
}.conversation-wide {
  width: min(680px, 100%);
  min-height: 212px;
  max-height: none;
  aspect-ratio: auto;
  align-self: end;
  grid-template-rows: auto minmax(42px, auto) auto auto;
  gap: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)),
    rgba(18, 15, 12, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 13, 10, 0.14);
  backdrop-filter: blur(20px);
}.conversation-wide .conversation-head {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}.conversation-wide .conversation-head h2 {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 520;
  color: rgba(255,255,255,0.94);
}.conversation-wide .chat-messages {
  min-height: 42px;
  max-height: 76px;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  display: grid;
  gap: 8px;
}.conversation-wide .chat-message {
  max-width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  line-height: 1.55;
}.conversation-wide .chat-message.user {
  justify-self: end;
  max-width: 80%;
  padding: 7px 10px;
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  border: 0;
}.conversation-wide .prompt-grid {
  display: flex;
  gap: 8px;
  margin: 0;
}.conversation-wide .prompt-chip {
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
}.conversation-wide .chat-input-row {
  grid-template-columns: 1fr auto;
  gap: 0;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.82);
  border-radius: 999px;
  overflow: hidden;
}.conversation-wide .chat-input-row input {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
}.conversation-wide .chat-input-row .primary-btn {
  min-height: 44px;
  min-width: 86px;
  border: 0;
  border-left: 1px solid rgba(0,0,0,0.12);
  border-radius: 0;
}body[data-view="dashboard"] .home-below {
  padding-top: 52px;
  padding-bottom: 64px;
  background:
    linear-gradient(180deg, rgba(247, 248, 244, 0.78), rgba(228, 232, 224, 0.96)),
    #e7e9e2;
}.home-below .panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}.home-below .panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}.home-below .dialog-dock {
  margin-bottom: 34px;
}.home-below .dialog-dock-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
}.home-below .chat-messages-dock {
  min-height: 132px;
  max-height: 190px;
  border: 0;
  background: rgba(255,255,255,0.36);
}.home-below .health-strip {
  margin: 0 0 34px;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}.home-below .health-item {
  padding: 18px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  text-align: center;
  place-items: center;
}.home-below .health-item:last-child {
  border-right: 0;
}.home-below .section-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.58fr);
  gap: 30px;
  align-items: stretch;
}.dashboard-left-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  align-content: stretch;
}.dashboard-left-stack,
.dashboard-section-grid > .panel {
  min-height: 100%;
}.dashboard-left-stack .panel,
.dashboard-section-grid > .panel {
  display: flex;
  flex-direction: column;
}.dashboard-section-grid > .panel .keyword-list,
.dashboard-left-stack .recommendation-preview {
  flex: 1;
}.fashion-news-list {
  display: grid;
  border-top: 1px solid var(--line);
}.fashion-news-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: transform 0.18s ease, color 0.18s ease;
}.fashion-news-item:hover {
  color: var(--burgundy);
  transform: translateX(4px);
}.news-index,
.news-score {
  color: var(--muted);
  font-size: 12px;
}.news-body {
  min-width: 0;
  display: grid;
  gap: 7px;
}.news-body strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 580;
  overflow-wrap: anywhere;
}.news-body em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}.news-score {
  justify-self: end;
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
}.recommendation-preview .rec-card,
.keyword-list .keyword-item {
  background: transparent;
  border-width: 0 0 1px;
  box-shadow: none;
}.home-below .recommendation-preview,
.home-below .keyword-list {
  gap: 0;
  border-top: 1px solid var(--line);
}.home-below .recommendation-preview .rec-card,
.home-below .keyword-list .keyword-item {
  min-height: 104px;
  padding-top: 16px;
  padding-bottom: 16px;
}.home-below .recommendation-preview .rec-card {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  padding-left: 0;
  padding-right: 0;
}.home-below .recommendation-preview .rec-image {
  width: 76px;
}.home-below .recommendation-preview .rec-card > div:last-child {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}.home-below .recommendation-preview .score {
  min-width: 44px;
  font-size: 22px;
}.home-below .recommendation-preview .card-actions {
  justify-content: flex-end;
}body[data-theme="noir"][data-view="dashboard"] .home-below {
  background: #f2f2ef;
}body:not([data-view="dashboard"]) .main {
  max-width: 1480px;
}body:not([data-view="dashboard"]) .toolbar,
body:not([data-view="dashboard"]) .panel-head {
  align-items: center;
}body:not([data-view="dashboard"]) .rec-card,
body:not([data-view="dashboard"]) .product-card,
body:not([data-view="dashboard"]) .post-row {
  min-width: 0;
}body:not([data-view="dashboard"]) .rec-card > *,
body:not([data-view="dashboard"]) .product-card > *,
body:not([data-view="dashboard"]) .post-row > * {
  min-width: 0;
}body:not([data-view="dashboard"]) .rec-card > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}body:not([data-view="dashboard"]) .rec-title,
body:not([data-view="dashboard"]) .rec-reason,
body:not([data-view="dashboard"]) .keyword-meta {
  overflow-wrap: anywhere;
}body:not([data-view="dashboard"]) .handoff-btn {
  white-space: nowrap;
  padding-inline: 12px;
}

@media (max-width: 960px) {
.style-topline {
    min-height: 142px;
  }.theme-layout {
    padding-top: 166px;
  }.conversation-wide {
    min-height: 220px;
    padding: 14px;
  }.conversation-wide .chat-messages {
    max-height: 92px;
  }body[data-view="dashboard"] .home-below {
    padding: 34px 14px 44px;
  }.home-below .dialog-dock-grid,
.home-below .section-grid,
.dashboard-left-stack,
.home-below .health-strip {
    grid-template-columns: 1fr;
  }.home-below .health-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }.home-below .health-item:last-child {
    border-bottom: 0;
  }body[data-theme]:not([data-view="dashboard"]) .rec-card,
body[data-theme]:not([data-view="dashboard"]) .rec-card:first-child,
body[data-theme]:not([data-view="dashboard"]) .rec-card:nth-child(3n + 1) {
    grid-template-columns: 82px minmax(0, 1fr);
  }body[data-theme]:not([data-view="dashboard"]) .rec-card > div:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }body:not([data-view="dashboard"]) .main,
body:not([data-view="dashboard"]) .view.active,
body:not([data-view="dashboard"]) .panel,
body:not([data-view="dashboard"]) .toolbar,
body:not([data-view="dashboard"]) .recommendation-list,
body:not([data-view="dashboard"]) .product-grid,
body:not([data-view="dashboard"]) .social-list,
body:not([data-view="dashboard"]) .job-list,
body:not([data-view="dashboard"]) .handoff-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
}
/* Search-led navigation and frameless identity */
body[data-theme] .brand-mark {
  border: 0;
  background: transparent;
  box-shadow: none;
}.brand-mark {
  width: 48px;
  height: 48px;
}.brand-mark svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.1;
}body[data-theme="noir"] .brand-mark svg {
  stroke: #080808;
}.nav-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px);
}.nav-search-icon {
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.62;
}.nav-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  border-top: 1.6px solid currentColor;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
}.nav-search input {
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}.nav-search input::placeholder {
  color: rgba(112, 111, 104, 0.72);
}.nav-search-btn {
  right: 1px;
  bottom: 0;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  position: absolute;
  cursor: pointer;
}.nav-search-btn::before,
.nav-search-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  border-top: 1.6px solid currentColor;
  transform-origin: right center;
}.nav-search-btn::before {
  transform: translate(-50%, -50%);
}.nav-search-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}.health-item,
.home-below .health-item {
  text-align: center;
  justify-items: center;
  align-content: center;
}.health-item strong,
.home-below .health-item strong {
  text-align: center;
}

@media (min-width: 961px) {
body[data-nav="top"] .nav-search {
    flex: 0 1 min(30vw, 360px);
    width: auto;
    max-width: 360px;
  }body[data-nav="top"] .nav {
    flex: 1 1 420px;
  }body[data-nav="side"][data-view="dashboard"] .sidebar {
    position: absolute;
    inset: 0 auto auto 0;
    min-height: 100vh;
    height: 100vh;
  }body[data-nav="side"][data-view="dashboard"] .home-below {
    padding-left: 42px;
  }
}

@media (max-width: 960px) {
.brand-mark {
    width: 40px;
    height: 40px;
  }.brand-mark svg {
    width: 36px;
    height: 36px;
  }.nav-search {
    order: 3;
    min-height: 38px;
  }.nav-search input {
    height: 34px;
  }.hero-slide,
body[data-hero-index="0"] .hero-slide-a,
body[data-hero-index="1"] .hero-slide-b,
body[data-hero-index="2"] .hero-slide-c {
    transform: none;
  }
}
body[data-theme="noir"] {
  --hero-a: url("./assets/home-gallery/hero-brown-tote-bag.png");
  --hero-b: url("./assets/home-gallery/hero-quilted-chain-bag.png");
  --hero-c: url("./assets/home-gallery/hero-brown-tote-bag.png");
}.brand-mark svg {
  width: 44px;
  height: 44px;
  stroke-width: 2.05;
}/* Rebuild Tokyo as an editorial contact-sheet wall {
  grid-template-columns: minmax(300px, 0.64fr) minmax(520px, 1.28fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 68px);
  overflow: hidden;
}.hero-slide,
body[data-hero-index="0"] .hero-slide-a,
body[data-hero-index="1"] .hero-slide-b,
body[data-hero-index="2"] .hero-slide-c {
  transform: none !important;
}/* Current production layout refinements */
.brand {
  gap: 6px;
}body[data-theme] .brand-mark {
  width: 62px;
  height: 62px;
  margin-right: -2px;
}.brand-mark svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.9;
}.listing-btn,
.buyer-pick-btn {
  min-width: 78px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}.listing-btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}.buyer-pick-btn {
  background: rgba(219, 227, 220, 0.62);
  color: #334238;
  border-color: rgba(93, 114, 97, 0.36);
}body:not([data-view="dashboard"]) .recommendation-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-card,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(3n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) {
  min-height: 248px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: 164px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  padding: 14px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 252, 0.78) !important;
  box-shadow: none !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) .rec-image {
  width: 164px !important;
  aspect-ratio: 4 / 5 !important;
  filter: none !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-card > div:not(.rec-image) {
  padding: 0 !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-title,
body:not([data-view="dashboard"]) .recommendation-list .rec-reason {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}body:not([data-view="dashboard"]) .recommendation-list .rec-title {
  -webkit-line-clamp: 3;
}body:not([data-view="dashboard"]) .recommendation-list .rec-reason {
  -webkit-line-clamp: 4;
}#view-dhgate .product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  columns: auto !important;
}#view-dhgate .product-card,
#view-dhgate .product-card:nth-child(5n + 1) {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  min-height: 548px;
  padding: 12px !important;
  margin: 0 !important;
  break-inside: auto;
  background: rgba(255, 255, 252, 0.76) !important;
  box-shadow: none !important;
}#view-dhgate .product-image,
#view-dhgate .product-card:nth-child(3n + 1) .product-image,
#view-dhgate .product-card:nth-child(5n + 1) .product-image {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 10px;
  filter: none;
}#view-dhgate .main-image-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 54px;
  margin: -2px 0 9px;
}#view-dhgate .main-image-thumb {
  display: block;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 51, 41, 0.16);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}#view-dhgate .main-image-thumb.active {
  border-color: var(--burgundy);
  box-shadow: inset 0 0 0 1px var(--burgundy);
}#view-dhgate .main-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}#view-dhgate .product-card strong {
  display: block;
  min-height: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}#view-dhgate .series-confidence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 4px 0 7px;
  padding: 6px 8px;
  border: 1px solid rgba(123, 51, 41, 0.14);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  font-size: 10px;
  line-height: 1.25;
}#view-dhgate .series-confidence b {
  color: var(--burgundy);
  font-weight: 700;
}#view-dhgate .series-confidence span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}#view-dhgate .series-confidence em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}#view-dhgate .series-confidence.needs-review {
  border-style: dashed;
  background: rgba(238, 231, 224, 0.46);
}#view-dhgate .brand-series-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: -2px 0 8px;
}#view-dhgate .brand-series-detail span {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(66, 44, 36, 0.1);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}#view-dhgate .brand-series-detail em {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}#view-dhgate .red-ocean-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 18px 12px;
  padding: 9px 10px;
  border: 1px solid rgba(188, 35, 35, 0.32);
  background: #fff1f0;
  color: #8f1d1d;
  font-size: 12px;
  line-height: 1.35;
}#view-dhgate .red-ocean-warning b {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
}#view-dhgate .red-ocean-warning span {
  min-width: 0;
  color: #5f2424;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}#view-dhgate .product-card .source-row {
  max-height: none;
  overflow: visible;
  align-self: start;
  row-gap: 7px;
  margin-bottom: 6px;
}#view-dhgate .dhgate-series-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}#view-dhgate .dhgate-series-summary span,
#view-dhgate .dhgate-series-summary b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-weight: 650;
}#view-dhgate .dhgate-series-summary b {
  max-width: 100%;
  overflow: hidden;
  color: var(--burgundy);
  text-overflow: ellipsis;
  white-space: nowrap;
}#view-dhgate .color-specs {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 2px 0 7px;
}#view-dhgate .color-spec-line {
  display: grid;
  gap: 3px;
  min-width: 0;
}#view-dhgate .color-spec-line b {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 650;
}#view-dhgate .color-spec-line span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}#view-dhgate .color-swatch-strip {
  display: flex;
  gap: 6px;
  min-height: 60px;
  overflow-x: auto;
  padding: 1px 0 4px;
  scrollbar-width: thin;
}#view-dhgate .color-swatch {
  display: grid;
  flex: 0 0 48px;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}#view-dhgate .color-swatch.active img {
  border-color: var(--burgundy);
  box-shadow: inset 0 0 0 1px var(--burgundy);
}#view-dhgate .color-swatch img {
  width: 48px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(123, 51, 41, 0.16);
  background: rgba(255, 255, 255, 0.76);
}#view-dhgate .color-swatch em {
  display: block;
  max-width: 48px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}#view-dhgate .listing-specs {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(123, 51, 41, 0.12);
  background: rgba(255, 255, 255, 0.48);
}#view-dhgate .listing-specs b {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 650;
}#view-dhgate .listing-specs span {
  display: grid;
  grid-template-columns: minmax(74px, 0.42fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 10px;
  line-height: 1.25;
}#view-dhgate .listing-specs em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}#view-dhgate .feature-keywords {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0 0 8px;
}#view-dhgate .feature-keywords b {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 650;
}#view-dhgate .feature-keywords div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}#view-dhgate .feature-keywords span {
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid rgba(123, 51, 41, 0.14);
  background: rgba(238, 231, 224, 0.44);
  color: var(--text);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}#view-dhgate .product-card .card-actions {
  align-self: end;
}.social-hotbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  min-height: 0;
}.social-hotbar span {
  color: var(--muted);
  font-size: 12px;
}.social-hotbar b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(123, 51, 41, 0.18);
  background: rgba(238, 231, 224, 0.58);
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 560;
}.social-hotbar em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}#view-social .social-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
  columns: auto !important;
}#view-social .social-post-card,
#view-social .social-post-card.has-image {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 0;
  padding: 10px !important;
  background: rgba(255, 255, 252, 0.78);
  box-shadow: none;
}#view-social .social-media-wrap {
  display: grid;
  gap: 8px;
}#view-social .social-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
}#view-social .social-thumb img {
  min-height: 0;
}#view-social .social-post-body strong {
  -webkit-line-clamp: 2;
  min-height: 34px;
}#view-social .social-post-body .keyword-meta {
  margin-top: 5px;
}#view-social .social-post-body .source-row {
  gap: 5px;
  margin-top: 8px;
}#view-social .social-post-body .product-keyword-row .chip {
  border-color: rgba(91, 113, 96, 0.24);
  color: #415443;
  background: rgba(219, 227, 220, 0.48);
}#view-social .social-post-body .metric-row .chip {
  background: rgba(238, 231, 224, 0.55);
}

@media (max-width: 1180px) {
#view-dhgate .product-grid,
#view-social .social-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
body:not([data-view="dashboard"]) .recommendation-list,
#view-dhgate .product-grid,
#view-social .social-list {
    grid-template-columns: 1fr !important;
  }body:not([data-view="dashboard"]) .recommendation-list .rec-card,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(3n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    min-height: 0 !important;
  }body:not([data-view="dashboard"]) .recommendation-list .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) .rec-image {
    width: 112px !important;
  }
}
/* Final interaction and merchandising polish */
.top-actions #rebuildBtn,
.top-actions .config-open-btn,
.sidebar-status {
  display: none !important;
}.top-actions {
  justify-content: flex-end;
}.trend-news-search {
  display: none;
  align-items: center;
  gap: 10px;
  width: min(640px, 42vw);
  min-width: 280px;
  height: 46px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid rgba(33, 30, 25, 0.16);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 24, 18, 0.06);
}.trend-news-search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid #6f746f;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}.trend-news-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #6f746f;
  transform: rotate(45deg);
}.trend-news-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}.trend-news-search input::placeholder {
  color: #9a9b96;
}body[data-view="trend-news"] .trend-news-search {
  display: flex;
}@media (max-width: 980px) {
  body[data-view="trend-news"] .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  body[data-view="trend-news"] .trend-news-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }
}.rec-card,
.product-card,
.social-post-card {
  position: relative;
}.pick-feedback {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(91, 113, 96, 0.36);
  background: rgba(240, 246, 238, 0.96);
  color: #304737;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(28, 24, 18, 0.12);
}.pick-error .pick-feedback {
  border-color: rgba(141, 55, 43, 0.3);
  background: rgba(250, 238, 235, 0.96);
  color: #7b3329;
}.just-picked {
  outline: 2px solid rgba(91, 113, 96, 0.22);
  outline-offset: -2px;
}.buyer-pick-btn {
  gap: 5px;
  border-color: rgba(91, 113, 96, 0.4);
  background: rgba(230, 237, 229, 0.72);
  color: #314839;
  font-weight: 640;
}.buyer-pick-btn:hover,
.buyer-pick-btn.is-picked {
  border-color: rgba(91, 113, 96, 0.62);
  background: #d8e3d8;
}.buyer-badge {
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  background: #34483a;
  color: #fff;
  font-weight: 700;
}.buyer-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #f2eee7;
  transform: rotate(45deg);
  box-shadow: 7px -7px 0 rgba(242, 238, 231, 0.72);
}.home-below .buyer-rec-card {
  border-color: rgba(52, 72, 58, 0.3);
  background:
    linear-gradient(90deg, rgba(218, 228, 219, 0.86), rgba(255, 255, 252, 0.78));
}.home-below .recommendation-preview .buyer-rec-card .buyer-badge {
  margin-bottom: 7px;
}body:not([data-view="dashboard"]) .recommendation-list .rec-card,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(3n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) {
  grid-template-columns: 146px minmax(0, 1fr) 116px !important;
  min-height: 202px !important;
  gap: 14px !important;
  align-items: start !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) .rec-image {
  width: 146px !important;
  aspect-ratio: 4 / 5 !important;
}body:not([data-view="dashboard"]) .recommendation-list .rec-card > div:last-child {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}body:not([data-view="dashboard"]) .recommendation-list .score {
  text-align: center;
  font-size: 34px;
  line-height: 1;
}body:not([data-view="dashboard"]) .recommendation-list .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}body:not([data-view="dashboard"]) .recommendation-list .card-actions button {
  width: 100%;
}body:not([data-view="dashboard"]) .recommendation-list .rec-title {
  -webkit-line-clamp: 2;
}body:not([data-view="dashboard"]) .recommendation-list .rec-reason {
  -webkit-line-clamp: 3;
}#view-social .social-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  grid-auto-flow: row dense;
}#view-social .social-post-card,
#view-social .social-post-card.has-image {
  grid-template-rows: auto auto;
  align-content: start;
  gap: 8px;
  padding: 9px !important;
  height: 100%;
}#view-social .social-media-wrap {
  gap: 7px;
}#view-social .social-thumb {
  aspect-ratio: 1 / 1.12;
}#view-social .social-post-body {
  display: grid;
  gap: 5px;
}#view-social .social-post-body strong {
  min-height: 0;
  font-size: 13px;
  line-height: 1.34;
}#view-social .social-post-body .keyword-meta {
  margin-top: 0;
  font-size: 11px;
}#view-social .social-post-body .source-row {
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}#view-social .social-post-body .source-row::-webkit-scrollbar {
  display: none;
}#view-social .social-post-body .chip {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 5px;
  font-size: 10px;
  white-space: nowrap;
}#view-social .social-media-wrap .buyer-pick-btn {
  width: 100%;
}#view-dhgate .product-card .buyer-pick-btn,
#view-social .buyer-pick-btn,
#view-recommendations .buyer-pick-btn {
  min-height: 34px;
}/* Final polish for the selected Maison build */
.brand {
  gap: 2px;
}body[data-theme] .brand-mark {
  margin-right: -2px;
  transform: translate(-4px, -5px);
}.social-hotbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
}.social-hot-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.76);
}.social-hot-row > span {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}.social-hot-row > div {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}.social-hot-instagram {
  background: rgba(247, 239, 233, 0.78);
}.social-hot-tiktok {
  background: rgba(232, 238, 231, 0.74);
}.social-hotbar b {
  min-height: 30px;
  padding: 0 11px;
  background: rgba(255, 255, 252, 0.62);
  border-color: rgba(123, 51, 41, 0.16);
  white-space: nowrap;
}#view-social .social-post-body .source-row {
  flex-wrap: wrap;
  overflow: visible;
  gap: 5px;
  margin-top: 2px;
  scrollbar-width: auto;
}#view-social .social-post-body .source-row::-webkit-scrollbar {
  display: initial;
}#view-social .social-post-body .chip,
#view-social .social-post-body .metric-row .chip:nth-child(2) {
  flex: 0 1 auto;
  max-width: none;
  min-height: 24px;
  padding: 0 7px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.12;
  text-align: center;
}

@media (max-width: 760px) {
.social-hotbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
#view-social .social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }body:not([data-view="dashboard"]) .recommendation-list .rec-card,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(3n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) {
    grid-template-columns: 132px minmax(0, 1fr) !important;
  }body:not([data-view="dashboard"]) .recommendation-list .rec-card > div:last-child {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }body:not([data-view="dashboard"]) .recommendation-list .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}

@media (max-width: 760px) {
body:not([data-view="dashboard"]) .recommendation-list .rec-card,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(3n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 1),
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }body:not([data-view="dashboard"]) .recommendation-list .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:first-child .rec-image,
body:not([data-view="dashboard"]) .recommendation-list .rec-card:nth-child(4n + 2) .rec-image {
    width: 104px !important;
  }
}
/* Engine entry,
floating consultation,
and compact feed refinements */
.top-actions #rebuildBtn {
  display: none !important;
}.sidebar-status {
  display: inline-flex !important;
}.top-actions .config-open-btn {
  display: none !important;
}.sidebar-status {
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  padding: 0;
  border: 0;
}.sidebar-status .config-open-btn {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(92, 58, 28, 0.28);
  background: rgba(255, 252, 246, 0.58);
}.config-pills {
  display: none !important;
}.consult-widget {
  position: fixed;
  z-index: 80;
  right: 28px;
  bottom: 28px;
  width: max-content;
  touch-action: none;
}.consult-toggle {
  min-width: 138px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(92, 58, 28, 0.24);
  background: rgba(34, 23, 13, 0.92);
  color: #fff;
  box-shadow: 0 18px 46px rgba(28, 24, 18, 0.18);
  cursor: grab;
  user-select: none;
}.consult-widget.dragging .consult-toggle {
  cursor: grabbing;
}.consult-mark {
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  position: relative;
}.consult-mark::before,
.consult-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  border-top: 1.5px solid currentColor;
}.consult-mark::before {
  top: 7px;
  transform: rotate(25deg);
}.consult-mark::after {
  top: 12px;
  transform: rotate(-18deg);
}.consult-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(372px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(92, 58, 28, 0.24);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 24px 70px rgba(28, 24, 18, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}.consult-widget.align-left .consult-panel {
  right: auto;
  left: 0;
}.consult-widget.open .consult-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}.consult-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}.consult-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}.consult-head strong {
  font-size: 18px;
}.consult-close {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}.chat-messages-dock {
  min-height: 118px;
  max-height: 230px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  background: rgba(236, 233, 225, 0.52);
}.chat-messages-dock .chat-message {
  max-width: 94%;
  padding: 9px 10px;
  background: rgba(255, 255, 252, 0.86);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.48;
}.chat-messages-dock .chat-message.user {
  justify-self: end;
  background: rgba(52, 72, 58, 0.9);
  color: #fff;
}.consult-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}.consult-prompts .prompt-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.72);
  color: var(--muted);
}.consult-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.78);
}.consult-input-row input {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
}.consult-input-row .primary-btn {
  min-width: 66px;
  min-height: 38px;
}.chip,
.social-hotbar b,
.segment,
.listing-btn,
.buyer-pick-btn,
.news-score,
.source-row .chip,
.metric-row .chip,
.product-keyword-row .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}.chip {
  min-height: 24px;
}.social-hotbar {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}.social-hot-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}.social-hot-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}.social-hotbar span {
  font-size: 12px;
  color: var(--muted);
}.social-hotbar b {
  min-height: 28px;
  padding: 0 10px;
}.social-hotbar em {
  margin-left: 4px;
  line-height: 1;
}.home-below .section-grid {
  gap: 42px;
}.home-below .recommendation-preview .rec-card {
  grid-template-columns: 76px minmax(0, 1fr) 118px;
  column-gap: 16px;
  padding-right: 22px;
}.home-below .recommendation-preview .rec-card > div:last-child {
  justify-items: center;
}.home-below .recommendation-preview .listing-btn {
  min-width: 104px;
  min-height: 36px;
}.buyer-badge,
.home-below .buyer-rec-card .buyer-badge {
  min-height: 30px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(94, 72, 46, 0.36);
  background: rgba(255, 248, 236, 0.96);
  color: #2f2418;
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}.buyer-badge::before {
  width: 8px;
  height: 8px;
  background: #8b6a3c;
  box-shadow: 6px -6px 0 rgba(139, 106, 60, 0.36);
}.home-below .buyer-rec-card {
  background:
    linear-gradient(90deg, rgba(236, 241, 234, 0.88), rgba(255, 255, 252, 0.7));
}#view-social .social-list {
  display: block !important;
  columns: 4 220px !important;
  column-gap: 14px !important;
}#view-social .social-post-card,
#view-social .social-post-card.has-image {
  display: inline-block !important;
  width: 100%;
  margin: 0 0 14px !important;
  break-inside: avoid;
  padding: 8px !important;
  background: rgba(255, 255, 252, 0.8);
  height: auto;
}#view-social .social-media-wrap {
  display: grid;
  gap: 6px;
}#view-social .social-thumb {
  width: 100%;
  aspect-ratio: 1 / 0.88;
}#view-social .social-post-card:nth-child(5n + 2) .social-thumb {
  aspect-ratio: 1 / 1.06;
}#view-social .social-post-card:nth-child(7n + 3) .social-thumb {
  aspect-ratio: 1 / 0.74;
}#view-social .social-post-body {
  padding-top: 8px;
  gap: 4px;
}#view-social .social-post-body strong {
  min-height: 0;
  font-size: 12px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
}#view-social .social-post-body .keyword-meta {
  font-size: 10px;
}#view-social .social-post-body .source-row {
  gap: 3px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-top: 5px;
}#view-social .social-post-body .chip {
  min-height: 22px;
  padding: 0 5px;
  font-size: 10px;
  white-space: nowrap;
}#view-social .social-post-body .metric-row .chip:nth-child(2) {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}#view-social .social-media-wrap .buyer-pick-btn {
  width: 100%;
  min-height: 30px;
}

@media (max-width: 1180px) {
#view-social .social-list {
    columns: 3 220px !important;
  }
}

@media (max-width: 760px) {
.consult-widget {
    right: 14px;
    bottom: 14px;
  }.consult-panel {
    width: calc(100vw - 28px);
  }.home-below .recommendation-preview .rec-card {
    grid-template-columns: 68px minmax(0, 1fr);
    padding-right: 0;
  }.home-below .recommendation-preview .rec-card > div:last-child {
    grid-column: 1 / -1;
    justify-items: start;
  }#view-social .social-list {
    columns: 1 !important;
  }
}
/* End-of-file overrides: keep the selected Maison layout from being compressed by older iterations. */
.brand {
  gap: 2px;
}body[data-theme] .brand-mark {
  margin-right: -2px;
  transform: translate(-4px, -5px);
}.theme-layout .hero-metrics {
  margin-top: clamp(22px, 3vh, 34px);
  gap: 14px;
}.theme-layout .hero-metrics div {
  min-width: clamp(126px, 13vw, 190px);
  padding: clamp(14px, 1.5vw, 22px) clamp(16px, 2vw, 24px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}.theme-layout .hero-metrics strong {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
}.theme-layout .hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(12px, 1.1vw, 16px);
}.social-hotbar {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  margin-bottom: 18px !important;
}.social-hot-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 10px !important;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.76);
}.social-hot-row > span {
  font-size: 13px !important;
  font-weight: 650;
  color: var(--ink) !important;
}.social-hot-row > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start;
  gap: 8px !important;
}.social-hot-instagram {
  background: rgba(247, 239, 233, 0.78);
}.social-hot-tiktok {
  background: rgba(232, 238, 231, 0.74);
}.social-hotbar b {
  min-height: 30px !important;
  padding: 0 11px !important;
  background: rgba(255, 255, 252, 0.62) !important;
  border-color: rgba(123, 51, 41, 0.16) !important;
  white-space: nowrap;
}#view-social .social-post-body .source-row,
#view-social .social-post-body .metric-row,
#view-social .social-post-body .product-keyword-row {
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  gap: 5px !important;
  margin-top: 2px !important;
  scrollbar-width: auto !important;
}#view-social .social-post-body .source-row::-webkit-scrollbar {
  display: initial !important;
}#view-social .social-post-body .chip,
#view-social .social-post-body .metric-row .chip,
#view-social .social-post-body .metric-row .chip:nth-child(2) {
  flex: 0 1 auto !important;
  max-width: none !important;
  min-width: max-content;
  min-height: 24px !important;
  padding: 0 7px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  line-height: 1.12 !important;
  text-align: center;
}

@media (max-width: 760px) {
.social-hotbar {
    grid-template-columns: 1fr !important;
  }
}
/* Compact one-line hero copy for the four alternate homepage directions. */
.theme-layout .theme-copy {
  max-width: 760px !important;
}.theme-layout .theme-copy h2,
body[data-theme="noir"] .noir-panel h2 {
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px !important;
  font-size: 44px !important;
  line-height: 1.08 !important;
  white-space: nowrap;
  letter-spacing: 0 !important;
}.theme-layout .hero-metrics {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 18px !important;
}.theme-layout .hero-metrics div {
  min-width: 96px !important;
  width: 96px !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
}.theme-layout .hero-metrics strong {
  font-size: 22px !important;
  line-height: 1 !important;
}.theme-layout .hero-metrics span {
  margin-top: 7px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

@media (max-width: 960px) {
.theme-layout .theme-copy h2,
body[data-theme="noir"] .noir-panel h2 {
    font-size: 34px !important;
  }.theme-layout .hero-metrics div {
    min-width: 84px !important;
    width: 84px !important;
  }
}

body[data-theme="noir"] .noir-panel {
  min-width: 0;
}

body[data-theme="noir"] .noir-panel h2 {
  width: auto;
  max-width: min(42vw, 520px);
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Wide-content correction for data-heavy workspaces. */
body:not([data-view="dashboard"]) .main {
  width: auto;
  max-width: none;
}

body:not([data-view="dashboard"]) .view.active,
body:not([data-view="dashboard"]) .panel,
body:not([data-view="dashboard"]) .toolbar,
body:not([data-view="dashboard"]) .recommendation-list,
#view-dhgate .product-grid,
#view-social .social-list {
  max-width: none;
  min-width: 0;
  width: 100%;
}

#view-recommendations .recommendation-list {
  grid-template-columns: repeat(auto-fit, minmax(620px, 1fr)) !important;
}

#view-dhgate .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
}

#view-social .social-list {
  display: grid !important;
  columns: auto !important;
  column-gap: normal !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
}

#view-social .social-post-card,
#view-social .social-post-card.has-image {
  display: grid !important;
}

@media (max-width: 1600px) {
  #view-recommendations .recommendation-list {
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)) !important;
  }

  #view-dhgate .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #view-recommendations .recommendation-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  #view-recommendations .recommendation-list,
  #view-dhgate .product-grid,
  #view-social .social-list {
    grid-template-columns: 1fr !important;
  }
}

/* Evergreen luxury resale */
.evergreen-toolbar {
  align-items: stretch;
  margin-bottom: 16px;
}

.evergreen-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 1px;
  min-width: min(460px, 100%);
  background: #111;
  border: 1px solid #111;
}

.evergreen-stats div {
  min-height: 66px;
  padding: 12px 14px;
  background: #fbfbfa;
  display: grid;
  align-content: center;
  gap: 5px;
}

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

.evergreen-stats strong {
  font-size: 28px;
  line-height: 1;
}

.evergreen-filters {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.evergreen-filters select,
.evergreen-filters input {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 11px;
}

.evergreen-filters input {
  min-width: 220px;
}

.evergreen-brand-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.brand-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  padding: 0 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.brand-chip.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.brand-chip.active span {
  color: rgba(255, 255, 255, 0.68);
}

.evergreen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  justify-content: stretch;
  gap: 14px;
  background: transparent;
  border: 0;
}

.evergreen-card {
  min-width: 0;
  background: #f7f7f4;
  border: 1px solid #111;
  display: grid;
  grid-template-rows: auto 1fr;
}

.evergreen-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-soft);
  overflow: hidden;
}

.evergreen-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evergreen-body {
  min-width: 0;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.evergreen-body strong {
  min-height: 38px;
  line-height: 1.32;
  font-size: 14px;
}

.evergreen-brand {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 650;
}

.evergreen-link {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* 价格 */
body[data-view="evergreen"] .evergreen-card .card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin-top: auto;
}

body[data-view="evergreen"] .evergreen-card .evergreen-body {
  display: flex;
  flex-direction: column;
}

body[data-view="evergreen"] .evergreen-card .card-actions .evergreen-link {
  grid-column: 1;
}

body[data-view="evergreen"] .evergreen-card .card-actions .listing-btn {
  grid-column: 2;
}

body[data-view="evergreen"] .evergreen-card .card-actions .buyer-pick-btn {
  grid-column: 3;
}

body[data-view="evergreen"] .evergreen-card .card-actions button,
body[data-view="evergreen"] .evergreen-card .card-actions a {
  width: 100%;
  min-width: 0;
  padding-inline: 6px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.evergreen-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.price-current {
  font-weight: 700;
  font-size: 16px;
  color: #111;
}
.price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}
.price-discount {
  font-size: 12px;
  font-weight: 650;
  color: #c62828;
  background: #fce4ec;
  padding: 1px 6px;
  border-radius: 3px;
}

/* 成色+认证 */
.evergreen-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.condition-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 3px;
}
.auth-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1565c0;
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 3px;
}

/* 材质颜色 */
.evergreen-specs {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* 发货地 */
.location-tag {
  font-size: 11px;
  color: #777;
}

/* 关键词 */
.evergreen-keywords {
  margin-top: 2px;
}

/* 语言切换按钮 */
.lang-toggle-btn {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-soft, #eee);
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle-btn.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.lang-toggle-btn:hover {
  opacity: 0.85;
}

/* 描述 */
.evergreen-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-top: 4px;
  max-height: 3em;
  overflow: hidden;
}

/* 测量 / 尺码 */
.evergreen-meas {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
  font-weight: 500;
}

@media (min-width: 1600px) {
  .evergreen-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .evergreen-toolbar,
  .evergreen-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evergreen-filters {
    margin-left: 0;
  }

  .evergreen-filters input {
    min-width: 0;
    width: 100%;
  }

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

  .evergreen-body {
    padding: 10px;
  }
}

/* Indie brand buying radar */
.indie-layout {
  display: grid;
  gap: 22px;
}

.indie-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(320px, 0.54fr);
  border: 1px solid #111;
  background:
    linear-gradient(135deg, rgba(255, 255, 252, 0.92), rgba(232, 235, 226, 0.78)),
    #f7f7f4;
  overflow: hidden;
}

.indie-hero-image {
  min-height: 430px;
  background: #111;
  overflow: hidden;
}

.indie-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.indie-hero-copy {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.indie-hero-copy > span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.indie-hero-copy h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.92;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.indie-hero-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.74;
}

.indie-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.indie-hero-stats div {
  min-height: 92px;
  padding: 16px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.indie-hero-stats div:last-child {
  border-right: 0;
}

.indie-hero-stats strong {
  font-size: 28px;
}

.indie-hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

.indie-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.indie-tabs {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.indie-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.indie-search select,
.indie-search input {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 11px;
}

.indie-search input {
  width: min(320px, 32vw);
}

.indie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.indie-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(8, 8, 8, 0.2);
  background: rgba(255, 255, 252, 0.78);
  box-shadow: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.indie-card:hover,
.indie-card.active {
  border-color: #111;
  transform: translateY(-2px);
}

.indie-card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.indie-card-image {
  width: 100%;
  aspect-ratio: 9 / 13;
  background: #111;
  overflow: hidden;
}

.indie-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.indie-card:hover .indie-card-image img,
.indie-card.active .indie-card-image img {
  transform: scale(1.03);
}

.indie-card-body {
  min-width: 0;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.indie-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.indie-card-top strong {
  color: var(--olive);
  font-size: 18px;
}

.indie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
}

.indie-card p {
  min-height: 58px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.indie-card .source-row {
  max-height: 54px;
  overflow: hidden;
}

.indie-card-signature {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1220px) {
  .indie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .indie-controls {
    display: grid;
  }

  .indie-search {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .indie-hero {
    grid-template-columns: 1fr;
  }

  .indie-hero-image,
  .indie-hero-image img {
    min-height: 0;
  }

  .indie-hero-image {
    aspect-ratio: 16 / 11;
  }

  .indie-hero-copy h2 {
    font-size: 40px;
  }

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

  .indie-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .indie-search input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .indie-hero-copy {
    padding: 20px 14px;
  }

  .indie-hero-stats {
    grid-template-columns: 1fr;
  }

  .indie-hero-stats div {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .indie-hero-stats div:last-child {
    border-bottom: 0;
  }

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

/* Small-brand directory, Wearop-inspired card flow */
body[data-view="indie-brands"] {
  --bg: #e9e9e9;
  --surface: #ffffff;
  --surface-soft: #f1f1f1;
  --ink: #343438;
  --muted: #858585;
  --line: #dddddd;
}

body[data-view="indie-brands"] .topbar {
  display: none;
}

body[data-view="indie-brands"] .main {
  min-height: 100vh;
  padding: 10px 42px 56px;
  background: #e9e9e9;
}

body[data-view="indie-brands"] .sidebar {
  background: #202020;
  border-right: 0;
  color: #f4f4f4;
  backdrop-filter: none;
}

body[data-view="indie-brands"] .brand-name {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
}

body[data-view="indie-brands"] .brand-subtitle {
  color: #9c9c9c;
}

body[data-view="indie-brands"] .brand-mark svg {
  stroke: #ffffff;
}

body[data-view="indie-brands"] .nav-search {
  border: 0;
  border-radius: 999px;
  background: #f7f7f7;
  color: #a7a7a7;
}

body[data-view="indie-brands"] .nav-search input {
  color: #303030;
}

body[data-view="indie-brands"] .nav-item {
  min-height: 48px;
  border-radius: 6px;
  color: #efefef;
}

body[data-view="indie-brands"] .nav-item.active,
body[data-view="indie-brands"] .nav-item:hover {
  background: #2a2a2a;
  color: #ffffff;
}

body[data-view="indie-brands"] .sidebar-status {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body[data-view="indie-brands"] .sidebar-status .config-open-btn {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f5f5f5;
  background: #2a2a2a;
}

body[data-view="indie-brands"] .indie-layout {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

body[data-view="indie-brands"] .indie-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 44px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 0;
  background: rgba(233, 233, 233, 0.92);
  backdrop-filter: blur(10px);
}

body[data-view="indie-brands"] .indie-search {
  justify-content: center;
  gap: 8px;
}

body[data-view="indie-brands"] .indie-search label {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-radius: 999px;
  background: #dedede;
  color: #999999;
  font-size: 12px;
  font-weight: 600;
}

body[data-view="indie-brands"] .indie-search select {
  min-height: 28px;
  width: auto;
  min-width: 76px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px 0 4px;
  background: transparent;
  color: #444444;
  font-size: 12px;
  font-weight: 700;
}

body[data-view="indie-brands"] .indie-search input {
  width: 190px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f7f7f7;
  color: #333333;
  font-size: 12px;
}

body[data-view="indie-brands"] .indie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 34px 34px;
}

body[data-view="indie-brands"] .indie-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ffffff;
  color: #3d3d41;
  box-shadow: none;
  transform: none;
}

body[data-view="indie-brands"] .indie-card:hover,
body[data-view="indie-brands"] .indie-card.active {
  border-color: #cfcfcf;
  transform: none;
}

body[data-view="indie-brands"] .indie-card-title {
  min-height: 44px;
  padding: 10px 12px 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 760;
}

body[data-view="indie-brands"] .indie-card-title span {
  color: #a7a7a7;
  font-weight: 520;
}

body[data-view="indie-brands"] .indie-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #d5d5d5;
}

body[data-view="indie-brands"] .indie-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="indie-brands"] .indie-card:hover .indie-card-image img,
body[data-view="indie-brands"] .indie-card.active .indie-card-image img {
  transform: none;
}

body[data-view="indie-brands"] .indie-card-mark {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #2e2e2e;
  font-size: 12px;
  font-weight: 800;
}

body[data-view="indie-brands"] .indie-image-tags {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-view="indie-brands"] .indie-image-tags span {
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.78);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

body[data-view="indie-brands"] .indie-card-body {
  padding: 10px 12px 14px;
  display: grid;
  gap: 10px;
}

body[data-view="indie-brands"] .indie-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

body[data-view="indie-brands"] .indie-card-actions button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  background: #343438;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
}

body[data-view="indie-brands"] .indie-card p {
  min-height: 92px;
  margin: 0;
  color: #858585;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-view="indie-brands"] .indie-like-btn {
  justify-self: start;
  max-width: 100%;
  min-height: 26px;
  border: 0;
  border-radius: 4px;
  padding: 0 10px;
  background: #ececec;
  color: #454545;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 1180px) {
  body[data-view="indie-brands"] .indie-layout {
    width: min(720px, 100%);
  }

  body[data-view="indie-brands"] .indie-grid {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  body[data-view="indie-brands"] .sidebar {
    background: #202020;
  }

  body[data-view="indie-brands"] .main {
    padding: 14px 14px 44px;
  }

  body[data-view="indie-brands"] .indie-controls {
    position: static;
    padding-top: 2px;
  }

  body[data-view="indie-brands"] .indie-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body[data-view="indie-brands"] .indie-search input {
    grid-column: 1 / -1;
    width: 100%;
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-view="indie-brands"] .indie-card-title {
    font-size: 15px;
  }

  body[data-view="indie-brands"] .indie-card p {
    min-height: 82px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  body[data-view="indie-brands"] .indie-search {
    grid-template-columns: 1fr;
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: 1fr;
  }
}

/* Small-brand page final: keep app chrome, only mimic the card directory layout */
body[data-view="indie-brands"] .topbar {
  display: flex !important;
}

body[data-view="indie-brands"] .main {
  min-height: auto;
  padding: 34px 42px 56px;
  background: transparent !important;
}

body[data-view="indie-brands"] .sidebar {
  width: 264px;
  padding: 28px 20px;
  border-right: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--ink) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-view="indie-brands"] .brand-name {
  color: var(--ink) !important;
  font-size: 20px !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body[data-view="indie-brands"] .brand-subtitle {
  color: var(--muted) !important;
}

body[data-view="indie-brands"] .brand-mark svg {
  stroke: var(--ink) !important;
}

body[data-view="indie-brands"] .nav-search {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.48) !important;
  color: var(--ink) !important;
}

body[data-view="indie-brands"] .nav-search input {
  color: var(--ink) !important;
}

body[data-view="indie-brands"] .nav-item {
  min-height: auto !important;
  border-radius: 0 !important;
  color: var(--muted) !important;
}

body[data-view="indie-brands"] .nav-item.active,
body[data-view="indie-brands"] .nav-item:hover {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

body[data-view="indie-brands"] .indie-layout {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

body[data-view="indie-brands"] .indie-controls {
  position: static;
  min-height: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 0 4px;
  border-bottom: 0;
  background: transparent !important;
  backdrop-filter: none;
}

body[data-view="indie-brands"] .indie-search {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-view="indie-brands"] .indie-search label {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body[data-view="indie-brands"] .indie-search select {
  min-height: 28px;
  width: auto;
  min-width: 78px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px 0 2px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

body[data-view="indie-brands"] .indie-search input {
  width: 190px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
}

body[data-view="indie-brands"] .indie-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 360px)) !important;
  justify-content: center;
  gap: 34px 34px;
  background: transparent !important;
  border: 0 !important;
}

body[data-view="indie-brands"] .indie-card {
  min-width: 0;
  display: grid !important;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--surface) !important;
  color: var(--ink);
  box-shadow: none !important;
}

body[data-view="indie-brands"] .indie-card-title {
  min-height: 44px;
  padding: 10px 12px 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

body[data-view="indie-brands"] .indie-card-title span {
  color: var(--muted);
  font-weight: 520;
}

body[data-view="indie-brands"] .indie-card-image {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--surface-soft);
}

body[data-view="indie-brands"] .indie-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-view="indie-brands"] .indie-card-body {
  padding: 10px 12px 14px;
  display: grid;
  gap: 10px;
}

body[data-view="indie-brands"] .indie-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

body[data-view="indie-brands"] .indie-card-actions button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  background: #343438;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
}

body[data-view="indie-brands"] .indie-card p {
  min-height: 92px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1800px) {
  body[data-view="indie-brands"] .indie-layout {
    width: min(100%, 1128px);
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: repeat(3, minmax(0, 352px)) !important;
    gap: 30px;
  }
}

@media (min-width: 2360px) {
  body[data-view="indie-brands"] .indie-layout {
    width: min(100%, 1488px);
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: repeat(4, minmax(0, 348px)) !important;
    gap: 28px;
  }
}

@media (max-width: 960px) {
  body[data-view="indie-brands"] .main {
    padding: 12px 14px 40px;
  }

  body[data-view="indie-brands"] .sidebar {
    width: 100%;
    padding: 12px 14px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  body[data-view="indie-brands"] .indie-search {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-view="indie-brands"] .indie-search input {
    width: 100%;
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: 1fr !important;
  }
}

body[data-view="indie-brands"] .indie-product-toolbar {
  width: min(100%, 754px);
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

body[data-view="indie-brands"] .indie-product-card .indie-card-title {
  font-size: 16px;
}

body[data-view="indie-brands"] .indie-product-brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-view="indie-brands"] .indie-product-specs {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

body[data-view="indie-brands"] .indie-product-card .indie-card-actions {
  gap: 8px;
}

body[data-view="indie-brands"] .indie-product-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #343438;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
}

body[data-view="indie-brands"] .indie-product-source {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1180px) {
  body[data-view="indie-brands"] .indie-layout {
    width: min(100%, 1128px);
  }

  body[data-view="indie-brands"] .indie-grid {
    grid-template-columns: repeat(3, minmax(0, 352px)) !important;
    gap: 28px;
  }
}

body[data-view="indie-brands"] .indie-product-toolbar {
  width: min(100%, 1128px);
  padding: 0;
}

body[data-view="indie-brands"] #view-indie-brands {
  position: relative;
}

body[data-view="indie-brands"] .indie-floating-refresh {
  position: absolute;
  top: -58px;
  right: 0;
  margin-left: 0;
  z-index: 2;
  background: #f7f7f4;
}

body[data-view="indie-brands"] .indie-product-toolbar .evergreen-stats {
  flex: none;
  width: 100%;
}

body[data-view="indie-brands"] .indie-product-toolbar .evergreen-stats > div {
  min-width: 0;
}

@media (max-width: 1280px) {
  body[data-view="indie-brands"] .indie-floating-refresh {
    position: static;
    margin-left: 0;
  }
}

body[data-view="indie-brands"] .indie-product-card {
  transition: border-color 160ms ease, transform 160ms ease;
}

body[data-view="indie-brands"] .indie-product-card:hover {
  border-color: #b8b8b8 !important;
  transform: translateY(-2px);
}

body[data-view="indie-brands"] .indie-product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body[data-view="indie-brands"] .indie-product-price {
  flex: 0 0 auto;
  color: #171717;
  font-size: 15px;
  font-weight: 800;
}

body[data-view="indie-brands"] .indie-product-card p {
  min-height: 78px;
  -webkit-line-clamp: 3;
}

/* DHgate hot styles page: align product rows and match the evergreen workspace tone. */
body[data-view="dhgate"] .main,
body[data-view="dhgate"] #view-dhgate,
body[data-view="dhgate"] #view-dhgate .panel {
  background: #f2f2ef !important;
}

body[data-view="dhgate"] .reference-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body[data-view="dhgate"] .reference-topbar > div:first-child {
  min-width: 0;
}

body[data-view="dhgate"] .reference-topbar .trend-news-search,
body[data-view="dhgate"] .reference-topbar .nav-search {
  justify-self: start;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-left: 0;
}

body[data-view="dhgate"] .reference-topbar .top-actions,
body[data-view="dhgate"] .reference-topbar .reference-top-actions,
body[data-view="dhgate"] .reference-topbar .button-row {
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

body[data-view="dhgate"] .reference-topbar .module-refresh-btn,
body[data-view="dhgate"] .reference-topbar .ghost-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

body[data-view="dhgate"] .reference-app-shell,
body[data-view="dhgate"] #view-dhgate,
body[data-view="dhgate"] #view-dhgate .panel,
body[data-view="dhgate"] #view-dhgate .panel-head {
  max-width: 100%;
  overflow-x: hidden;
}

body[data-view="dhgate"] #view-dhgate .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 660px);
  align-items: start;
  gap: 16px;
}

body[data-view="dhgate"] #view-dhgate .panel-head > div:first-child {
  min-width: 0;
}

body[data-view="dhgate"] #view-dhgate .button-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  overflow-x: hidden;
}

body[data-view="dhgate"] #view-dhgate .module-search {
  width: 100%;
  min-width: 0;
}

body[data-view="dhgate"] #view-dhgate .batch-listing-actions {
  justify-self: end;
}

body[data-view="dhgate"] #view-dhgate .module-search input {
  box-sizing: border-box;
}

body[data-view="dhgate"] #view-dhgate .product-grid {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  background: transparent !important;
  border: 0 !important;
  align-items: stretch;
  columns: auto !important;
}

body[data-view="dhgate"] #view-dhgate .product-card,
body[data-view="dhgate"] #view-dhgate .product-card:nth-child(5n + 1) {
  background: #f7f7f4 !important;
  border: 1px solid #111 !important;
}

@media (max-width: 1380px) {
  body[data-view="dhgate"] #view-dhgate .product-grid {
    width: min(100%, 980px);
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-view="dhgate"] .reference-topbar,
  body[data-view="dhgate"] #view-dhgate .panel-head {
    grid-template-columns: 1fr;
  }

  body[data-view="dhgate"] .reference-topbar .trend-news-search,
  body[data-view="dhgate"] .reference-topbar .nav-search {
    max-width: 100%;
  }

  body[data-view="dhgate"] #view-dhgate .product-grid {
    width: 100%;
    grid-template-columns: 1fr !important;
  }
}

#view-social .social-intent {
  margin: 8px 0;
}

#view-social .social-video-inline,
#view-social .social-video-embed {
  width: 100%;
}

#view-social .social-video-embed {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
}

#view-social .social-video-frame,
#view-social .social-video-player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

#view-social .social-video-embed.deferred img,
#view-social .social-video-embed.deferred .image-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#view-social .social-video-load-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

#view-social .social-video-load-btn span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

#view-social .social-video-load-btn span::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  border-left: 16px solid #111;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

#view-social .social-post-card.has-video > .social-media-wrap .social-thumb {
  display: none;
}

#view-social .social-post-card.has-video > .social-media-wrap {
  margin-top: 8px;
}

#view-social .social-comments {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

#view-social .social-comment-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

#view-social .social-comment-row strong {
  color: #111;
  font-size: 12px;
}

#view-social .social-consultations {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#view-social .social-consultations b {
  font-size: 12px;
}

#view-social .social-consultation {
  display: grid;
  gap: 4px;
}

#view-social .social-consultation span,
#view-social .social-consultations.empty span {
  color: #343434;
  font-size: 12px;
  line-height: 1.45;
}

#view-social .social-consultation em {
  color: #777;
  font-style: normal;
  margin-left: 4px;
}

#view-social .social-comments b {
  font-size: 12px;
}

#view-social .social-comments span {
  color: #454545;
  line-height: 1.45;
}

#view-social .social-comments em {
  color: #777;
  font-style: normal;
  margin-left: 4px;
}

#view-social .social-comment-summary {
  margin: 14px 0;
}

#view-social .social-comment-summary-panel {
  display: grid;
  gap: 10px;
  border: 2px solid rgba(17, 17, 17, 0.22);
  background: #fff;
  padding: 12px;
}

#view-social .social-comment-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

#view-social .social-comment-summary-head strong {
  font-size: 15px;
}

#view-social .social-comment-summary-head span,
#view-social .social-comment-summary-empty {
  color: #666;
  font-size: 12px;
}

#view-social .social-comment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#view-social .social-comment-summary-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(247, 247, 244, 0.72);
  padding: 10px;
  min-width: 0;
}

#view-social .social-comment-summary-comments {
  display: grid;
  gap: 5px;
}

#view-social .social-comment-summary-comments p {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 64px;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

#view-social .social-comment-summary-comments em {
  color: #777;
  font-style: normal;
  text-align: right;
}

#view-social .social-comment-summary-analysis {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 7px;
}

#view-social .social-comment-summary-analysis p {
  margin: 0 0 5px;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
}

#view-social .social-video-fallback {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: block;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

#view-social .social-list {
  grid-template-columns: 1fr !important;
}

#view-social .social-post-card.has-video,
#view-social .social-post-card.has-video.has-image {
  display: grid !important;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  grid-template-areas:
    "video body"
    "actions body";
  align-items: start;
  gap: 12px 16px;
}

#view-social .social-post-card.has-video .social-video-inline {
  grid-area: video;
}

#view-social .social-post-card.has-video .social-video-embed {
  max-height: 520px;
}

#view-social .social-post-card.has-video > .social-media-wrap,
#view-social .social-post-card.has-video > .card-actions {
  grid-area: actions;
  margin-top: 0;
}

#view-social .social-post-card.has-video .social-post-body {
  grid-area: body;
  min-width: 0;
}

#view-social .social-post-card.has-video .social-comments {
  margin-top: 8px;
}

#view-social .social-post-card.has-video .social-comment-row {
  grid-template-columns: 28px minmax(0, 1fr) 74px;
}

@media (max-width: 900px) {
  #view-social .social-post-card.has-video,
  #view-social .social-post-card.has-video.has-image {
    grid-template-columns: 1fr;
    grid-template-areas:
      "video"
      "actions"
      "body";
  }

  #view-social .social-post-card.has-video .social-video-embed {
    max-height: none;
  }
}

.competitor-hot-section {
  margin-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 18px;
}

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

.competitor-hot-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.competitor-hot-head p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

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

.competitor-hot-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.competitor-hot-image {
  width: 84px;
  aspect-ratio: 1;
  background: #eeeae4;
  overflow: hidden;
}

.competitor-hot-image .image-box,
.competitor-hot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competitor-hot-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.competitor-hot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.competitor-hot-meta span,
.competitor-hot-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 12px;
  font-style: normal;
  background: #f7f7f4;
}

.competitor-hot-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.competitor-hot-card p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.competitor-hot-sales {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(142, 16, 38, 0.22);
  background: #fff7f7;
  color: #8e1026;
  font-size: 12px;
  font-weight: 700;
}

.competitor-hot-card a {
  color: #111;
  font-size: 13px;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .competitor-hot-list {
    grid-template-columns: 1fr;
  }
}

.hot-new-arrivals-toolbar {
  margin-bottom: 16px;
}

.hot-new-arrivals-toolbar .batch-listing-actions,
.opportunity-toolbar .batch-listing-actions {
  margin-left: auto;
}

.hot-new-arrivals-brand-select {
  display: block;
  min-width: 180px;
}

.hot-new-arrivals-brand-select select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 34px 0 12px;
}

.hot-new-arrivals-brand-select select:focus {
  outline: 2px solid rgba(180, 112, 36, 0.34);
  outline-offset: 1px;
}

.hot-new-arrivals-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.list-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 4px;
}

.list-load-more span {
  color: var(--muted);
  font-size: 12px;
}

.hot-new-arrival-card {
  min-height: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hot-new-arrival-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #eeeae4;
  overflow: hidden;
}

.hot-new-arrival-image img,
.hot-new-arrival-image .image-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-new-arrival-card .main-image-gallery {
  display: flex;
  gap: 6px;
  min-height: 54px;
  overflow-x: auto;
  padding: 10px 18px 2px;
  scrollbar-width: thin;
}

.hot-new-arrival-card .main-image-thumb,
.hot-new-arrival-card .color-swatch {
  display: grid;
  flex: 0 0 48px;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hot-new-arrival-card .main-image-thumb img,
.hot-new-arrival-card .color-swatch img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  object-fit: cover;
}

.hot-new-arrival-card .brand-series-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 14px 18px 0;
}

.hot-new-arrival-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 18px 0;
}

.hot-new-arrival-facts span {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hot-new-arrival-facts em {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hot-new-arrival-skus {
  padding: 12px 18px 0;
}

.hot-new-arrival-skus > strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.hot-new-arrival-sku-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hot-new-arrival-sku {
  flex: 0 0 62px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hot-new-arrival-sku.active img {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hot-new-arrival-sku img,
.hot-new-arrival-sku .image-fallback {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  object-fit: cover;
}

.hot-new-arrival-sku em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-new-arrival-card .brand-series-detail span {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(66, 44, 36, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hot-new-arrival-card .brand-series-detail em {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hot-new-arrival-card .series-asset-skus {
  display: grid;
  gap: 7px;
  padding: 8px 18px 18px;
}

.hot-new-arrival-card .color-spec-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.hot-new-arrival-card .color-swatch-strip {
  display: flex;
  gap: 6px;
  min-height: 60px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hot-new-arrival-card .color-swatch em {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-dhgate .dhgate-product-hero {
  background: #fff !important;
}

#view-dhgate .dhgate-product-hero img,
.hot-new-arrival-card .hot-new-arrival-image img {
  object-fit: contain !important;
  background: #fff;
}

#view-dhgate .main-image-thumb img,
#view-dhgate .color-swatch img,
.hot-new-arrival-card .main-image-thumb img,
.hot-new-arrival-card .color-swatch img {
  object-fit: contain !important;
  background: #fff;
}

.hot-new-arrival-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 18px 0;
}

.hot-new-arrival-meta span {
  color: var(--burgundy);
  font-weight: 700;
}

.hot-new-arrival-meta em {
  font-style: normal;
  white-space: nowrap;
}

.hot-new-arrival-card strong {
  font-size: 16px;
  line-height: 1.45;
  padding: 0 18px;
}

.hot-new-arrival-card p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  padding: 0 18px;
}

.hot-new-arrival-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  padding: 0 18px;
}

.hot-new-arrival-tags span {
  padding: 5px 8px;
  background: #f0eee8;
  color: #4c4b45;
  font-size: 12px;
}

.hot-new-arrival-card .card-actions {
  margin-top: auto;
  padding: 0 18px 18px;
}

@media (max-width: 1180px) {
  .hot-new-arrivals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hot-new-arrivals-list {
    grid-template-columns: 1fr;
  }
}

/* Final social-video layout override: keep videos and top comments visible together. */
#view-social .social-list {
  grid-template-columns: 1fr !important;
}

#view-social .social-post-card.has-video,
#view-social .social-post-card.has-video.has-image {
  display: grid !important;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
  grid-template-areas:
    "video body"
    "actions body" !important;
  gap: 12px 16px !important;
  align-items: start !important;
}

#view-social .social-post-card.has-video .social-video-inline {
  display: block !important;
  grid-area: video !important;
  min-width: 260px !important;
  width: 100% !important;
}

#view-social .social-post-card.has-video .social-video-embed,
#view-social .social-post-card.has-video .social-video-player {
  min-height: 360px !important;
  max-height: 540px !important;
}

#view-social .social-post-card.has-video > .social-media-wrap,
#view-social .social-post-card.has-video > .card-actions {
  grid-area: actions !important;
}

#view-social .social-post-card.has-video .social-post-body {
  grid-area: body !important;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  #view-social .social-post-card.has-video,
  #view-social .social-post-card.has-video.has-image {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "video"
      "actions"
      "body" !important;
  }

  #view-social .social-post-card.has-video .social-video-inline {
    min-width: 0 !important;
  }
}

/* Dashboard compact social-video insight cards. */
.hero-social-insights {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.18);
  backdrop-filter: blur(10px);
}

.hero-social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.hero-social-head span {
  font-weight: 700;
}

.hero-social-head button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

.hero-social-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  min-height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 12, 12, 0.34);
  color: #fff;
  padding: 9px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-social-card:hover {
  background: rgba(22, 22, 22, 0.48);
}

.hero-social-thumb {
  display: block;
  width: 78px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.hero-social-thumb img,
.hero-social-thumb .image-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-social-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.hero-social-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hero-social-meta b {
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 650;
}

.hero-social-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-social-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-social-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.hero-social-insights > .hero-social-card:first-of-type {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 138px;
  background: rgba(12, 12, 12, 0.46);
}

.hero-social-insights > .hero-social-card:first-of-type .hero-social-thumb {
  width: 112px;
}

.hero-social-insights > .hero-social-card:first-of-type .hero-social-copy strong {
  font-size: 16px;
}

.hero-social-insights > .hero-social-card:first-of-type .hero-social-copy em {
  -webkit-line-clamp: 3;
}

.dashboard-social-trends {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.dashboard-social-trends:empty {
  display: none;
}

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

.dashboard-social-head span {
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-social-head button {
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: transparent;
  color: #333;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

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

.dashboard-social-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: #111;
  text-align: left;
}

.dashboard-social-card:hover {
  background: #fff;
}

.dashboard-social-video {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #e8e6e1;
}

.dashboard-social-video .social-video-embed,
.dashboard-social-video .social-video-player,
.dashboard-social-video .social-thumb,
.dashboard-social-video .image-fallback {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: none !important;
}

.dashboard-social-video .social-video-embed {
  position: relative;
  aspect-ratio: auto;
  border: 0;
}

.dashboard-social-video .social-video-frame {
  width: 100%;
  height: 100%;
}

.dashboard-social-video .social-video-load-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.dashboard-social-video .social-video-load-btn span {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-social-video .social-video-load-btn span::after {
  left: 12px;
  top: 8px;
  border-left-width: 9px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

.dashboard-social-video img,
.dashboard-social-video .image-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-social-video i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.dashboard-social-video i::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 7px;
  border-left: 8px solid #111;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.dashboard-social-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.dashboard-social-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dashboard-social-meta b {
  padding: 3px 5px;
  background: rgba(17, 17, 17, 0.06);
  color: #555;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-social-body strong,
.dashboard-social-body em,
.dashboard-social-body small {
  min-width: 0;
  overflow: hidden;
}

.dashboard-social-body strong {
  color: #111;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-social-body em {
  display: -webkit-box;
  color: #444;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-social-body small {
  display: -webkit-box;
  color: #8e1026;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
  .dashboard-social-list {
    grid-template-columns: 1fr;
  }
}

.nav-item[data-view="social"] {
  display: none !important;
}

/* Today recommendation hero: merge social trends into the first-screen red-box area. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: minmax(470px, 0.95fr) minmax(520px, 0.85fr);
  gap: clamp(24px, 3.8vw, 58px);
}

body[data-view="dashboard"] .noir-panel {
  justify-content: center;
  padding-left: clamp(22px, 3vw, 44px);
}

body[data-view="dashboard"] .hero-social-insights {
  width: min(100%, 620px);
  margin-top: 16px;
  padding: 12px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 18, 18, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

body[data-view="dashboard"] .hero-social-head {
  font-size: 12px;
  line-height: 1.25;
}

body[data-view="dashboard"] .hero-social-head span:first-child {
  font-size: 14px;
}

body[data-view="dashboard"] .hero-social-head span:last-child {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
}

body[data-view="dashboard"] .hero-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-view="dashboard"] .hero-social-card {
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 116px;
  padding: 8px;
  gap: 9px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 8, 8, 0.28);
  cursor: default;
}

body[data-view="dashboard"] .hero-social-card.primary {
  grid-column: 1 / -1;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 154px;
  background: rgba(8, 8, 8, 0.38);
}

body[data-view="dashboard"] .hero-social-video {
  position: relative;
  display: block;
  width: 76px;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-video {
  width: 118px;
  aspect-ratio: 9 / 12;
}

body[data-view="dashboard"] .hero-social-video .social-video-embed,
body[data-view="dashboard"] .hero-social-video .social-video-player,
body[data-view="dashboard"] .hero-social-video .social-thumb,
body[data-view="dashboard"] .hero-social-video .image-fallback {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-view="dashboard"] .hero-social-video .social-video-embed {
  position: relative;
  aspect-ratio: auto;
  border: 0;
}

body[data-view="dashboard"] .hero-social-video .social-video-frame {
  width: 100%;
  height: 100%;
}

body[data-view="dashboard"] .hero-social-video img,
body[data-view="dashboard"] .hero-social-video .image-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="dashboard"] .hero-social-video .social-video-load-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

body[data-view="dashboard"] .hero-social-video .social-video-load-btn span {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

body[data-view="dashboard"] .hero-social-video .social-video-load-btn span::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  border-left: 9px solid #111;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

body[data-view="dashboard"] .hero-social-copy {
  gap: 5px;
  align-content: start;
}

body[data-view="dashboard"] .hero-social-meta b {
  padding: 2px 5px;
  font-size: 10px;
}

body[data-view="dashboard"] .hero-social-copy strong {
  font-size: 13px;
  line-height: 1.24;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy strong {
  font-size: 15px;
}

body[data-view="dashboard"] .hero-social-copy em {
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy em {
  -webkit-line-clamp: 3;
}

body[data-view="dashboard"] .hero-social-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .dashboard-social-trends {
  display: none !important;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: minmax(420px, 0.95fr) minmax(450px, 0.85fr);
  }

  body[data-view="dashboard"] .hero-social-list {
    grid-template-columns: 1fr;
  }

  body[data-view="dashboard"] .hero-social-card.primary {
    grid-column: auto;
  }
}

/* Larger first-screen video matrix: use the old left gallery area for social trends. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: minmax(650px, 1.24fr) minmax(380px, 0.76fr) !important;
  grid-template-areas: "social copy";
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
}

body[data-view="dashboard"] .gallery-wall {
  display: none !important;
}

body[data-view="dashboard"] .noir-panel {
  grid-area: copy;
  min-height: min(68vh, 640px);
}

body[data-view="dashboard"] .hero-social-insights {
  grid-area: social;
  align-self: center;
  width: 100%;
  max-width: 920px;
  min-height: min(68vh, 640px);
  margin: 0;
  padding: 14px;
  background: rgba(12, 12, 12, 0.18);
}

body[data-view="dashboard"] .hero-social-list {
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 1.08fr);
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  height: calc(min(68vh, 640px) - 58px);
  min-height: 500px;
  gap: 12px;
}

body[data-view="dashboard"] .hero-social-card {
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 0;
  padding: 10px;
  gap: 11px;
}

body[data-view="dashboard"] .hero-social-card.primary {
  grid-column: auto;
  grid-row: 1 / 3;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

body[data-view="dashboard"] .hero-social-video,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-video {
  width: 100%;
  height: 100%;
  min-height: 142px;
  aspect-ratio: auto;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-video {
  min-height: 410px;
}

body[data-view="dashboard"] .hero-social-video .social-video-load-btn span {
  width: 38px;
  height: 38px;
}

body[data-view="dashboard"] .hero-social-video .social-video-load-btn span::after {
  left: 16px;
  top: 11px;
  border-left-width: 12px;
  border-top-width: 8px;
  border-bottom-width: 8px;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy strong {
  font-size: 18px;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy em,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy small {
  font-size: 13px;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.72fr) !important;
  }

  body[data-view="dashboard"] .hero-social-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }

  body[data-view="dashboard"] .hero-social-card.primary {
    grid-row: auto;
  }

  body[data-view="dashboard"] .hero-social-card.primary .hero-social-video {
    min-height: 300px;
  }
}

/* Full hero takeover: the social trend board owns the whole content area. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: 1fr !important;
  grid-template-areas: "social";
  align-items: stretch;
  padding: clamp(96px, 9vh, 128px) clamp(26px, 3.6vw, 54px) clamp(36px, 4vw, 56px) max(320px, 3.6vw);
}

body[data-view="dashboard"] .noir-panel {
  position: absolute;
  top: clamp(28px, 4vh, 52px);
  right: clamp(26px, 3.6vw, 54px);
  z-index: 3;
  min-height: 0;
  width: min(430px, 36vw);
  padding: 0;
  border-left: 0;
  pointer-events: none;
}

body[data-view="dashboard"] .noir-panel h2 {
  margin: 0 0 14px !important;
  font-size: clamp(32px, 3.8vw, 56px) !important;
  text-align: right;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  justify-content: flex-end;
}

body[data-view="dashboard"] .hero-social-insights {
  max-width: none;
  min-height: calc(100vh - 188px);
  padding: 16px;
  padding-top: 18px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(12, 12, 12, 0.22);
}

body[data-view="dashboard"] .hero-social-head {
  width: calc(100% - min(460px, 38vw));
  min-height: 38px;
  align-items: flex-start;
}

body[data-view="dashboard"] .hero-social-head span:first-child {
  font-size: 18px;
}

body[data-view="dashboard"] .hero-social-list {
  grid-template-columns: minmax(0, 1.55fr) minmax(430px, 0.9fr);
  grid-template-rows: repeat(4, minmax(118px, 1fr));
  height: calc(100vh - 258px);
  min-height: 610px;
  gap: 12px;
}

body[data-view="dashboard"] .hero-social-card.primary {
  grid-row: 1 / 5;
  grid-template-columns: minmax(460px, 1fr) minmax(250px, 0.46fr);
  grid-template-rows: 1fr;
  gap: 14px;
  padding: 14px;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) {
  grid-column: 2;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 10px;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-video {
  min-height: 0;
  height: 100%;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-video {
  min-height: 0;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy {
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy strong {
  font-size: 22px;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy em {
  font-size: 15px;
  -webkit-line-clamp: 3;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy small {
  font-size: 14px;
  -webkit-line-clamp: 4;
}

body[data-view="dashboard"] .hero-social-comments {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: hidden;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-view="dashboard"] .hero-social-comments p {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 56px;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.32;
}

body[data-view="dashboard"] .hero-social-comments b,
body[data-view="dashboard"] .hero-social-comments em {
  color: rgba(255, 255, 255, 0.54);
  font-style: normal;
}

body[data-view="dashboard"] .hero-social-comments span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-comments span {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .noir-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 14px;
  }

  body[data-view="dashboard"] .theme-noir.active {
    grid-template-areas:
      "copy"
      "social";
  }

  body[data-view="dashboard"] .hero-social-head {
    width: 100%;
  }

  body[data-view="dashboard"] .hero-social-list,
  body[data-view="dashboard"] .hero-social-card.primary,
  body[data-view="dashboard"] .hero-social-card:not(.primary) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: 0;
  }
}

/* Fixed social board layout: no floating title/metric overlay over video cards. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "social";
  align-items: stretch;
  gap: 14px;
  padding: clamp(70px, 7vh, 92px) clamp(26px, 3.6vw, 54px) clamp(30px, 3.5vw, 48px) max(320px, 3.6vw);
}

body[data-view="dashboard"] .noir-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border-left: 0;
  pointer-events: auto;
}

body[data-view="dashboard"] .noir-panel h2 {
  max-width: none;
  margin: 0 !important;
  font-size: clamp(34px, 4.2vw, 62px) !important;
  line-height: 1.02 !important;
  text-align: left;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  justify-content: flex-end;
  margin: 0 !important;
}

body[data-view="dashboard"] .hero-social-insights {
  grid-area: social;
  min-height: 0;
  height: min(670px, calc(100vh - 220px));
  padding: 16px;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-head {
  width: 100%;
  min-height: 30px;
  align-items: center;
}

body[data-view="dashboard"] .hero-social-list {
  grid-template-columns: minmax(620px, 1.35fr) minmax(430px, 0.65fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  height: calc(100% - 44px);
  min-height: 0;
  gap: 10px;
}

body[data-view="dashboard"] .hero-social-card.primary {
  grid-row: 1 / 5;
  grid-template-columns: minmax(430px, 0.68fr) minmax(250px, 0.32fr);
  min-height: 0;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) {
  grid-column: 2;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-comments {
  display: none;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy {
  gap: 5px;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy strong {
  font-size: 14px;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy em,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy small {
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy {
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card.primary .hero-social-comments {
  max-height: 230px;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .theme-noir.active {
    padding-left: clamp(22px, 4vw, 44px);
  }

  body[data-view="dashboard"] .noir-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body[data-view="dashboard"] .hero-social-insights {
    height: auto;
    overflow: visible;
  }
}

/* User-requested clean board: 2 videos on top, 3 below, no title metric overlay. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr;
  grid-template-areas: "social";
  padding: clamp(38px, 4.5vh, 58px) clamp(24px, 3vw, 42px) clamp(28px, 3.2vw, 42px) max(320px, 3vw);
}

body[data-view="dashboard"] .noir-panel {
  display: none !important;
}

body[data-view="dashboard"] .hero-social-insights {
  height: calc(100vh - 86px);
  min-height: 720px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 12, 0.2);
}

body[data-view="dashboard"] .hero-social-head {
  display: none !important;
}

body[data-view="dashboard"] .hero-social-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.06fr) minmax(0, 0.94fr);
  height: 100%;
  min-height: 0;
  gap: 14px;
}

body[data-view="dashboard"] .hero-social-card,
body[data-view="dashboard"] .hero-social-card.primary,
body[data-view="dashboard"] .hero-social-card:not(.primary) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-card:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1;
}

body[data-view="dashboard"] .hero-social-card:nth-child(2) {
  grid-column: 4 / span 3;
  grid-row: 1;
}

body[data-view="dashboard"] .hero-social-card:nth-child(3) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

body[data-view="dashboard"] .hero-social-card:nth-child(4) {
  grid-column: 3 / span 2;
  grid-row: 2;
}

body[data-view="dashboard"] .hero-social-card:nth-child(5) {
  grid-column: 5 / span 2;
  grid-row: 2;
}

body[data-view="dashboard"] .hero-social-video,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-video,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

body[data-view="dashboard"] .hero-social-copy,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-meta {
  gap: 5px;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-meta b {
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
}

body[data-view="dashboard"] .hero-social-copy strong,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy strong,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy strong {
  font-size: 16px;
  line-height: 1.22;
}

body[data-view="dashboard"] .hero-social-copy em,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy em,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy em {
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .hero-social-copy small,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-copy small,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-copy small {
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-comments,
body[data-view="dashboard"] .hero-social-comments {
  display: grid;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  gap: 6px;
  padding-top: 8px;
}

body[data-view="dashboard"] .hero-social-comments p {
  grid-template-columns: 24px minmax(0, 1fr) 52px;
  font-size: 11px;
  line-height: 1.25;
}

body[data-view="dashboard"] .hero-social-analysis {
  display: grid;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-view="dashboard"] .hero-social-analysis b,
body[data-view="dashboard"] .hero-social-section-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

body[data-view="dashboard"] .hero-social-analysis span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="dashboard"] .hero-social-comments span,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-comments span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .theme-noir.active {
    padding-left: clamp(22px, 4vw, 44px);
  }

  body[data-view="dashboard"] .hero-social-insights {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body[data-view="dashboard"] .hero-social-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  body[data-view="dashboard"] .hero-social-card,
  body[data-view="dashboard"] .hero-social-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }
}

/* Six hottest videos: 3 columns x 2 rows, video and comments/analysis split evenly. */
body[data-view="dashboard"] .hero-social-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
  gap: 14px;
}

body[data-view="dashboard"] .hero-social-card,
body[data-view="dashboard"] .hero-social-card.primary,
body[data-view="dashboard"] .hero-social-card:not(.primary),
body[data-view="dashboard"] .hero-social-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-height: 0;
  overflow: hidden;
}

body[data-view="dashboard"] .hero-social-video,
body[data-view="dashboard"] .hero-social-card.primary .hero-social-video,
body[data-view="dashboard"] .hero-social-card:not(.primary) .hero-social-video {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body[data-view="dashboard"] .hero-social-copy {
  min-width: 0;
  min-height: 0;
}

body[data-view="dashboard"] .hero-social-comments {
  display: grid !important;
}

@media (max-width: 1280px) {
  body[data-view="dashboard"] .hero-social-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
}

/* Restore the original dashboard hero; social videos now live below today's recommendations. */
body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: minmax(460px, 1.15fr) minmax(320px, 0.7fr) !important;
  grid-template-rows: auto !important;
  grid-template-areas: none !important;
  align-items: center !important;
  gap: clamp(28px, 5vw, 76px) !important;
  padding: clamp(118px, 11vh, 156px) clamp(24px, 4vw, 64px) clamp(42px, 5vw, 72px) !important;
}

body[data-view="dashboard"] .gallery-wall {
  display: grid !important;
}

body[data-view="dashboard"] .noir-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: flex !important;
  grid-area: auto !important;
  width: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
  justify-content: center !important;
  padding-left: clamp(18px, 3vw, 44px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.38) !important;
}

body[data-view="dashboard"] .noir-panel h2 {
  max-width: min(42vw, 520px) !important;
  margin: 0 0 18px !important;
  font-size: 44px !important;
  line-height: 1.08 !important;
  text-align: left !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  justify-content: flex-start !important;
}

body[data-view="dashboard"] .dashboard-video-board {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 18px 0 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  background: rgba(24, 24, 24, 0.08) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-head {
  display: flex !important;
  width: 100% !important;
  min-height: 0 !important;
  color: #111 !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-head span:first-child {
  color: #111 !important;
  font-size: 16px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-head span:last-child {
  color: #666 !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 14px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-card,
body[data-view="dashboard"] .dashboard-video-board .hero-social-card.primary,
body[data-view="dashboard"] .dashboard-video-board .hero-social-card:not(.primary),
body[data-view="dashboard"] .dashboard-video-board .hero-social-card:nth-child(n) {
  grid-column: auto !important;
  grid-row: auto !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  min-height: 360px !important;
  padding: 12px !important;
  gap: 12px !important;
  border-color: rgba(17, 17, 17, 0.14) !important;
  background: rgba(17, 17, 17, 0.72) !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-video {
  min-height: 336px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-copy strong {
  font-size: 15px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-analysis span,
body[data-view="dashboard"] .dashboard-video-board .hero-social-comments p {
  font-size: 11px !important;
}

body[data-view="dashboard"] .dashboard-video-board + .dashboard-social-trends {
  display: none !important;
}

@media (max-width: 1180px) {
  body[data-view="dashboard"] .dashboard-video-board .hero-social-list {
    grid-template-columns: 1fr !important;
  }
}

/* Give the video board more room by narrowing the keyword rail. */
body[data-view="dashboard"] .home-below .section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.24fr) !important;
  gap: 22px !important;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child {
  min-width: 220px !important;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .keyword-list {
  max-height: none;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child {
  align-self: start;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .keyword-list {
  flex: 0 0 auto;
  gap: 0;
  border-top: 1px solid var(--line);
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .keyword-item {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .keyword-item strong {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .keyword-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="dashboard"] .dashboard-section-grid > .panel:last-child .score {
  min-width: 42px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-card,
body[data-view="dashboard"] .dashboard-video-board .hero-social-card.primary,
body[data-view="dashboard"] .dashboard-video-board .hero-social-card:not(.primary),
body[data-view="dashboard"] .dashboard-video-board .hero-social-card:nth-child(n) {
  grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.8fr) !important;
  min-height: 430px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-video {
  min-height: 406px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-embed,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-player,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-preview,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-frame,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-thumb,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .image-fallback {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-player,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-preview,
body[data-view="dashboard"] .dashboard-video-board .hero-social-video .social-video-frame {
  display: block !important;
  object-fit: cover !important;
  border: 0 !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-copy {
  overflow: hidden !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 0 0 8px !important;
  min-height: 0 !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-tags i {
  display: inline-flex !important;
  max-width: 100% !important;
  padding: 3px 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 11px !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-keywords {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 0 0 8px !important;
  padding: 7px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  min-height: 0 !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-keywords i {
  display: inline-flex !important;
  max-width: 100% !important;
  padding: 2px 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 10px !important;
  font-style: normal !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-comments {
  max-height: 245px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-comments p {
  min-height: 0 !important;
  padding: 5px 0 !important;
  gap: 6px !important;
}

body[data-view="dashboard"] .dashboard-video-board .hero-social-comments span {
  -webkit-line-clamp: 2 !important;
}

@media (max-width: 1180px) {
  body[data-view="dashboard"] .home-below .section-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Restore the original hero proportions after moving videos below. */
body[data-view="dashboard"] .style-stage {
  min-height: 780px !important;
}

body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: minmax(620px, 0.94fr) minmax(500px, 0.86fr) !important;
  gap: clamp(24px, 3vw, 46px) !important;
  padding: clamp(110px, 10vh, 140px) clamp(36px, 4vw, 70px) clamp(50px, 5vw, 70px) !important;
}

body[data-view="dashboard"] .gallery-wall {
  width: min(820px, 48vw) !important;
  height: min(68vh, 640px) !important;
  min-height: 520px !important;
  justify-self: center !important;
  align-self: center !important;
  grid-template-columns: 1.05fr 0.82fr !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 18px !important;
}

body[data-view="dashboard"] .noir-panel {
  max-width: 640px !important;
  align-self: center !important;
  justify-content: center !important;
  padding-left: clamp(18px, 2.2vw, 34px) !important;
}

body[data-view="dashboard"] .noir-panel h2 {
  max-width: 560px !important;
  font-size: clamp(42px, 4.2vw, 68px) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

/* Pin the hero composition back to the original visual direction. */
body[data-view="dashboard"] .theme-noir.active {
  display: block !important;
  position: relative !important;
  min-height: 100vh !important;
  padding: 0 !important;
}

body[data-view="dashboard"] .gallery-wall {
  position: absolute !important;
  left: clamp(380px, 22vw, 430px) !important;
  top: 50% !important;
  width: min(760px, 45vw) !important;
  height: min(68vh, 640px) !important;
  min-height: 520px !important;
  transform: translateY(-50%) !important;
  justify-self: auto !important;
  align-self: auto !important;
}

body[data-view="dashboard"] .noir-panel {
  position: absolute !important;
  left: min(66vw, 1280px) !important;
  top: 50% !important;
  width: min(620px, 31vw) !important;
  max-width: none !important;
  min-height: 0 !important;
  padding-left: clamp(24px, 2vw, 40px) !important;
  transform: translateY(-50%) !important;
}

body[data-view="dashboard"] .noir-panel h2 {
  width: max-content !important;
  max-width: none !important;
  font-size: clamp(44px, 4.8vw, 76px) !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  margin-top: 22px !important;
}

/* Final Farfetch series asset sizing and fit guards. Keep this after late dashboard overrides. */
body[data-view="dhgate"] #view-dhgate .product-grid {
  width: min(100%, 1680px) !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-view="dhgate"] #view-dhgate .product-card {
  display: grid !important;
  grid-template-rows: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px !important;
}

body[data-view="dhgate"] #view-dhgate .dhgate-product-hero {
  aspect-ratio: 1 / 0.72 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
}

body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image {
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
}

body[data-view="dhgate"] #view-dhgate .dhgate-product-hero img,
body[data-view="dhgate"] #view-dhgate .dhgate-product-hero .image-fallback,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image .image-fallback {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

body[data-view="dhgate"] #view-dhgate .main-image-thumb img,
body[data-view="dhgate"] #view-dhgate .color-swatch img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .main-image-thumb img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .color-swatch img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

body[data-view="dhgate"] #view-dhgate .series-reference-thumb,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .series-reference-thumb {
  cursor: default !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-missing {
  border: 1px dashed rgba(17, 17, 17, 0.24) !important;
  background: #fff !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-missing .image-fallback {
  position: static !important;
  width: 58px !important;
  height: 58px !important;
  place-self: center !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-missing-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(123, 51, 41, 0.22);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

body[data-view="dhgate"] #view-dhgate .main-image-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 4px !important;
  align-content: start !important;
  height: 92px !important;
  min-height: 92px !important;
  overflow: hidden !important;
  margin: 5px 0 7px !important;
}

body[data-view="dhgate"] #view-dhgate .main-image-thumb {
  max-height: 44px !important;
}

body[data-view="dhgate"] #view-dhgate .brand-series-detail {
  align-items: stretch !important;
  gap: 6px !important;
  margin: 2px 0 6px !important;
}

body[data-view="dhgate"] #view-dhgate .brand-series-detail span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 48px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  padding: 5px 8px !important;
  font-size: 10px !important;
}

body[data-view="dhgate"] #view-dhgate .brand-series-detail em {
  margin-bottom: 2px !important;
  line-height: 1.1 !important;
}

body[data-view="dhgate"] #view-dhgate .red-ocean-warning {
  align-self: start !important;
  min-height: 38px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  margin: 0 18px 8px !important;
  padding: 6px 10px !important;
  line-height: 1.2 !important;
}

body[data-view="dhgate"] #view-dhgate .color-specs.series-asset-skus {
  align-self: start !important;
  margin: 0 0 10px !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-skus .color-swatch-strip {
  max-height: 58px !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 3px !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-skus .color-swatch {
  flex-basis: 40px !important;
}

body[data-view="dhgate"] #view-dhgate .series-asset-skus .color-swatch img {
  width: 40px !important;
}

body[data-view="dhgate"] #view-dhgate .product-card .card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-self: end !important;
  margin-top: 4px !important;
}

body[data-view="dhgate"] #view-dhgate .product-card .card-actions button,
body[data-view="dhgate"] #view-dhgate .product-card .card-actions a {
  width: 100% !important;
  min-height: 36px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

@media (max-width: 1680px) {
  body[data-view="dhgate"] #view-dhgate .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1380px) {
  body[data-view="dhgate"] #view-dhgate .product-grid {
    width: min(100%, 1200px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-view="dhgate"] #view-dhgate .product-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
}

/* Stronger guard: older nth-child product-image rules have higher specificity than the base hero rule. */
body[data-view="dhgate"] #view-dhgate .product-card .product-image.dhgate-product-hero {
  aspect-ratio: 1 / 0.72 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background: #fff !important;
}

body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image {
  position: relative !important;
}

body[data-view="dhgate"] #view-dhgate .dhgate-product-hero img,
body[data-view="dhgate"] #view-dhgate .dhgate-product-hero .image-fallback,
body[data-view="dhgate"] #view-dhgate .product-card .product-image.dhgate-product-hero img,
body[data-view="dhgate"] #view-dhgate .product-card .product-image.dhgate-product-hero .image-fallback,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image .image-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

/* Opportunity products */
.opportunity-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.opportunity-toolbar {
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.opportunity-filters {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-start;
  margin-left: clamp(32px, 4vw, 88px);
  min-width: 0;
}

.opportunity-filters select,
.opportunity-filters input {
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 14px;
  font: inherit;
}

.opportunity-filters select {
  width: min(280px, 28vw);
}

.opportunity-filters input {
  min-width: 260px;
}

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

.opportunity-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.opportunity-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opportunity-card .hot-new-arrival-image {
  aspect-ratio: 1 / 0.78;
  background: #f8f6f2;
}

.opportunity-card .hot-new-arrival-image img,
.opportunity-card .hot-new-arrival-image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opportunity-card .main-image-gallery-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.opportunity-card .main-image-gallery-label b {
  color: var(--text);
}

.opportunity-card .main-image-gallery,
.opportunity-card .color-swatch-strip {
  display: flex;
  gap: 8px;
  height: 58px;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.opportunity-card .main-image-thumb,
.opportunity-card .color-swatch {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: #fff;
}

.opportunity-card .main-image-thumb img,
.opportunity-card .color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opportunity-card .color-swatch em {
  display: block;
  max-width: 54px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-body {
  display: grid;
  flex: 1;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 152px auto 56px auto auto;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.opportunity-body > strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.25;
}

.opportunity-title-row {
  display: flex;
  gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  overflow: hidden;
}

.opportunity-title-row > strong {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.05vw, 21px);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opportunity-price {
  flex: 0 1 112px;
  justify-self: end;
  max-width: 112px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #fff;
  padding: 6px 9px;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  border-left: 1px solid rgba(20, 20, 20, 0.1);
  height: 152px;
  overflow: hidden;
}

.opportunity-facts div {
  min-width: 0;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(250, 249, 246, 0.78);
  padding: 8px 9px;
}

.opportunity-facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opportunity-facts strong {
  display: block;
  margin-top: 3px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-facts .is-missing strong {
  color: #9a1f36;
}

.opportunity-quality {
  border: 1px solid rgba(20, 20, 20, 0.1);
  height: 36px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.opportunity-quality.ready {
  background: rgba(232, 241, 235, 0.9);
  color: #2f5c42;
}

.opportunity-quality.missing {
  background: rgba(255, 246, 229, 0.92);
  color: #7c4a00;
}

.opportunity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  height: 56px;
  align-content: start;
  overflow: hidden;
}

.opportunity-tags .chip {
  background: #fff;
}

.opportunity-card .brand-series-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 80px;
  overflow: hidden;
}

.opportunity-card .brand-series-detail span {
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(250, 249, 246, 0.9);
  padding: 10px 12px;
  min-width: 0;
  overflow: hidden;
}

.opportunity-card .brand-series-detail em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opportunity-card .series-asset-skus {
  margin-top: 2px;
  align-self: start;
}

.opportunity-card .card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 10px;
  margin-top: auto;
  min-height: 45px;
}

.opportunity-card .card-actions button,
.opportunity-card .card-actions a {
  min-height: 42px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding-inline: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1680px) {
  .opportunity-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

@media (max-width: 1180px) {
  .opportunity-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .opportunity-toolbar,
  .opportunity-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .opportunity-filters,
  .opportunity-filters select,
  .opportunity-filters input {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .opportunity-grid,
  .opportunity-card .brand-series-detail,
  .opportunity-card .card-actions {
    grid-template-columns: 1fr;
  }
}

/* Reference-image dashboard refresh: fashion buyer workspace */
body[data-view="dashboard"] {
  background:
    linear-gradient(90deg, #101313 0 264px, #f4f1ec 264px 100%) fixed !important;
  color: #221d18;
}

body[data-view="dashboard"] .sidebar {
  background: radial-gradient(circle at 20% 0%, rgba(171, 122, 59, 0.2), transparent 28%), linear-gradient(180deg, #171817 0%, #101313 100%);
  border-right: 1px solid rgba(201, 165, 101, 0.24);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.18);
  min-height: 100vh !important;
  height: 100vh !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .sidebar-status {
  display: none !important;
}

body[data-view="dashboard"] .brand-name {
  color: #d8b36b;
  font-family: Georgia, "Times New Roman", serif;
}

body[data-view="dashboard"] .brand-subtitle {
  color: #c59b55;
}

body[data-view="dashboard"] .nav-item {
  color: rgba(255, 255, 255, 0.82);
  border-radius: 4px;
  min-height: 54px;
}

body[data-view="dashboard"] .nav-item.active,
body[data-view="dashboard"] .nav-item:hover {
  background: linear-gradient(90deg, #7a2423, #621b1b);
  color: #fff;
  box-shadow: none;
}

body[data-view="dashboard"] .sidebar-status {
  border: 1px solid rgba(216, 179, 107, 0.32);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

body[data-view="dashboard"] .reference-app-shell {
  background: #f4f1ec;
  margin-left: 264px !important;
  width: calc(100vw - 264px) !important;
  max-width: calc(100vw - 264px) !important;
  padding: 0;
  overflow-x: clip;
}

body[data-view="dashboard"] .home-below {
  padding-right: 24px !important;
}

body[data-view="dashboard"] .reference-topbar {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-topbar > div:first-child {
  display: none;
}

.reference-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-icon {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.top-icon::before,
.top-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #161616;
  border-radius: 50%;
}

.top-icon.notification::before {
  border-radius: 12px 12px 9px 9px;
  border-bottom-width: 3px;
}

.top-icon.notification::after {
  width: 8px;
  height: 8px;
  inset: 4px 6px auto auto;
  border: 0;
  background: #c54343;
}

.top-icon.refresh::after {
  inset: 6px 5px auto auto;
  width: 7px;
  height: 7px;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.operator-menu {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #231f1a;
  font-weight: 700;
  cursor: pointer;
}

.operator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #ead3bd 0 18%, transparent 19%), radial-gradient(circle at 50% 82%, #4a433e 0 34%, transparent 35%), linear-gradient(135deg, #b7a391, #ebe4d8);
  box-shadow: 0 0 0 2px #ede7dd;
}

body[data-view="dashboard"] .reference-hero {
  min-height: clamp(330px, 25vw, 430px);
  height: auto;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #ddd5c9;
  background: #2b2925;
}

body[data-view="dashboard"] .reference-hero .hero-media,
body[data-view="dashboard"] .reference-hero .hero-shade {
  display: block;
}

body[data-view="dashboard"] .theme-noir.active {
  min-height: clamp(330px, 25vw, 430px) !important;
  grid-template-columns: minmax(360px, 38vw) minmax(360px, 1fr) minmax(320px, 380px) !important;
  gap: 30px !important;
  align-items: center !important;
  padding: 26px 28px !important;
  background: transparent !important;
}

body[data-view="dashboard"] .gallery-wall {
  position: relative !important;
  inset: auto !important;
  height: clamp(270px, 21vw, 350px) !important;
  display: block !important;
  pointer-events: none;
}

body[data-view="dashboard"] .gallery-frame {
  position: absolute;
  border: 8px solid #f2eee7;
  border-radius: 1px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.34);
  background-size: cover;
  background-position: center;
  transform: rotate(-8deg);
}

body[data-view="dashboard"] .gallery-frame.tall {
  width: 210px;
  height: 288px;
  left: 20px;
  top: 18px;
  background-image: url("https://images.unsplash.com/photo-1614179689702-355944cd0918?auto=format&fit=crop&w=700&q=80");
}

body[data-view="dashboard"] .gallery-frame.square {
  width: 160px;
  height: 132px;
  left: 245px;
  top: 168px;
  filter: grayscale(1);
  background-image: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=700&q=80");
}

body[data-view="dashboard"] .gallery-frame.wide {
  width: 190px;
  height: 160px;
  left: 350px;
  top: 92px;
  transform: rotate(-7deg);
  background-image: url("https://images.unsplash.com/photo-1591561954557-26941169b49e?auto=format&fit=crop&w=700&q=80");
}

body[data-view="dashboard"] .gallery-frame span,
body[data-view="dashboard"] .noir-panel h2 {
  display: none;
}

body[data-view="dashboard"] .noir-panel {
  padding: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.reference-hero-kicker {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(34px, 3.1vw, 54px);
  font-weight: 900;
  line-height: 1.05;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics > div {
  background: rgba(19, 18, 17, 0.72);
  border: 1px solid rgba(230, 211, 172, 0.22);
  border-radius: 4px;
  padding: 18px 16px 15px;
  min-height: 132px;
}

body[data-view="dashboard"] .noir-panel .hero-metrics strong {
  color: #fff;
  font-size: 38px;
}

body[data-view="dashboard"] .noir-panel .hero-metrics span {
  color: #e1d6c7;
}

body[data-view="dashboard"] .noir-panel .hero-metrics > div::after {
  content: "";
  display: block;
  height: 28px;
  margin-top: 14px;
  background: linear-gradient(135deg, transparent 0 18%, #c9ad77 19% 21%, transparent 22% 35%, #c9ad77 36% 38%, transparent 39% 54%, #c9ad77 55% 57%, transparent 58% 100%);
  opacity: 0.85;
}

.reference-signal-platforms {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.reference-signal-platforms span {
  flex-basis: 100%;
  color: #c8ad78;
  font-weight: 700;
}

.reference-signal-platforms button {
  height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(238, 225, 196, 0.2);
  border-radius: 4px;
  color: #fff;
  background: rgba(12, 12, 12, 0.62);
  font-weight: 700;
}

.buyer-chat-panel {
  border-radius: 4px !important;
  background: rgba(15, 17, 16, 0.9) !important;
  border: 1px solid rgba(218, 190, 136, 0.25) !important;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.34) !important;
  min-height: 330px !important;
  padding: 22px !important;
}

.buyer-chat-panel .buyer-command-head {
  border-bottom: 1px solid rgba(231, 211, 170, 0.18);
  padding-bottom: 14px;
}

.buyer-chat-panel .buyer-command-head strong {
  color: #e9f7e5;
  font-size: 14px;
}

.buyer-chat-panel .buyer-command-head i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #81d08a;
}

.buyer-chat-feed {
  display: grid;
  gap: 14px;
  margin: 18px 0 12px;
}

.buyer-chat-feed p {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.buyer-chat-feed p::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ecd8c6 0 21%, transparent 22%), radial-gradient(circle at 50% 92%, #62524a 0 31%, transparent 32%), #2f3431;
}

.buyer-chat-feed b {
  display: block;
  color: #f0e0bf;
  font-size: 12px;
}

.buyer-chat-feed span {
  display: block;
}

.buyer-chat-action {
  margin: 2px 0 12px 44px;
  height: 34px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid rgba(217, 179, 106, 0.5);
  color: #d7b674;
  background: transparent;
  font-weight: 700;
}

.buyer-chat-panel .buyer-command-grid,
.buyer-chat-panel .buyer-signal-strip {
  display: none;
}

.buyer-chat-input {
  display: grid;
  grid-template-columns: 1fr 52px;
  margin-top: 10px;
  border: 1px solid rgba(231, 211, 170, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.buyer-chat-input input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 14px;
}

.buyer-chat-input button {
  border: 0;
  background: #b09461;
  color: #fff;
  font-weight: 900;
}

body[data-view="dashboard"] .home-below {
  background: #f4f1ec !important;
  padding: 14px 20px 24px !important;
}

body[data-view="dashboard"] .reference-health-strip {
  display: none !important;
}

.reference-dashboard-row {
  display: grid !important;
  grid-template-columns: 1.12fr 1fr 1.48fr !important;
  gap: 14px !important;
}

body[data-view="dashboard"] .home-below .panel {
  border: 1px solid #ded6cb !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
}

body[data-view="dashboard"] .home-below .panel-head {
  min-height: 42px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #e7e0d7;
}

body[data-view="dashboard"] .home-below .panel-head h2 {
  font-size: 18px;
  color: #231f1a;
}

body[data-view="dashboard"] .home-below .panel-head a {
  color: #7d6f5c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.reference-mini-panel {
  min-height: 248px;
  overflow: hidden;
}

.reference-style-pool,
.reference-mini-panel .recommendation-preview,
.reference-mini-panel .dashboard-social-trends {
  padding: 8px 12px 12px;
  max-height: 202px;
  overflow: hidden;
}

.reference-style-pool {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.reference-style-pool .fashion-news-card,
.reference-style-pool .post-row,
.reference-mini-panel .rec-card,
.reference-mini-panel .dashboard-social-card {
  border: 1px solid #e5ddd2 !important;
  border-radius: 4px !important;
  background: #fbfaf7 !important;
  box-shadow: none !important;
}

.reference-hot-news-panel .recommendation-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reference-hot-news-panel .rec-card {
  display: grid !important;
  grid-template-columns: 58px 1fr auto !important;
  align-items: center;
  gap: 10px;
  min-height: 48px !important;
  padding: 6px !important;
}

.reference-hot-news-panel .rec-image {
  width: 52px !important;
  height: 42px !important;
}

.reference-hot-news-panel .rec-card .card-actions,
.reference-hot-news-panel .rec-reason {
  display: none !important;
}

.reference-social-panel .dashboard-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reference-social-panel .dashboard-social-card {
  min-height: 62px !important;
  padding: 8px !important;
}

.reference-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-top: 12px;
}

.reference-filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  width: min(760px, 72%);
}

.reference-filter-strip select,
.reference-filter-strip label {
  height: 34px;
  border: 1px solid #d9d1c6;
  border-radius: 4px;
  background: #fbfaf8;
  color: #4d453d;
  padding: 0 10px;
  font-size: 13px;
}

.reference-filter-strip label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.reference-opportunity-board .dashboard-video-board {
  display: none;
}

.reference-opportunity-list {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-height: 296px;
  overflow: hidden;
}

.reference-opportunity-list .competitor-hot-card {
  min-height: 258px;
  border: 1px solid #e1d9cf !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.reference-opportunity-list .competitor-hot-image {
  height: 136px !important;
  background: #eee7dd !important;
}

.reference-data-overview {
  padding-bottom: 14px;
}

.reference-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.reference-overview-stats div {
  border: 1px solid #e1d9ce;
  border-radius: 5px;
  background: #fbfaf7;
  padding: 13px 8px;
  text-align: center;
}

.reference-overview-stats span,
.reference-overview-stats em {
  display: block;
  color: #776f64;
  font-style: normal;
  font-size: 12px;
}

.reference-overview-stats strong {
  display: block;
  margin: 7px 0;
  color: #2b251f;
  font-size: 24px;
}

.reference-donut {
  width: 126px;
  height: 126px;
  margin: 12px auto 8px;
  border-radius: 50%;
  background: conic-gradient(#7b2525 0 42%, #97855d 42% 70%, #575652 70% 86%, #c9c4b7 86% 96%, #eee9df 96% 100%);
  position: relative;
}

.reference-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #f8f5ef;
}

.reference-source-legend {
  display: grid;
  gap: 7px;
  padding: 0 44px 8px;
  color: #5c5449;
  font-size: 13px;
}

.reference-source-legend b {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: #7b2525;
}

.reference-source-legend span:nth-child(2) b {
  background: #97855d;
}

.reference-source-legend span:nth-child(3) b {
  background: #575652;
}

.reference-source-legend span:nth-child(4) b {
  background: #c9c4b7;
}

@media (max-width: 1500px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: 330px minmax(340px, 1fr) 330px !important;
    gap: 20px !important;
  }

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

@media (max-width: 1180px) {
  body[data-view="dashboard"] .theme-noir.active,
  .reference-dashboard-row,
  .reference-product-row {
    grid-template-columns: 1fr !important;
  }

  body[data-view="dashboard"] .gallery-wall {
    display: none !important;
  }

  .reference-filter-strip {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fashion buyer command center refresh */
body[data-view="dashboard"] .style-stage {
  min-height: 820px !important;
  background: #111 !important;
}

body[data-view="dashboard"] .theme-noir.active {
  display: grid !important;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.72fr) minmax(320px, 0.58fr) !important;
  align-items: center !important;
  gap: clamp(20px, 2.2vw, 34px) !important;
  min-height: 820px !important;
  padding: clamp(92px, 9vh, 122px) clamp(28px, 4vw, 64px) clamp(44px, 6vh, 72px) calc(264px + clamp(28px, 4vw, 64px)) !important;
}

body[data-view="dashboard"] .gallery-wall {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: min(62vh, 590px) !important;
  min-height: 470px !important;
  transform: none !important;
}

body[data-view="dashboard"] .noir-panel {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 560px !important;
  padding-left: 0 !important;
  transform: none !important;
}

body[data-view="dashboard"] .noir-panel h2 {
  width: auto !important;
  max-width: 520px !important;
  white-space: normal !important;
  font-size: clamp(44px, 4.5vw, 72px) !important;
  line-height: 1.04 !important;
  text-shadow: 0 14px 46px rgba(0, 0, 0, 0.42) !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  max-width: 520px !important;
}

.buyer-command-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(18, 17, 16, 0.58);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  padding: 18px;
  color: #fff;
  backdrop-filter: blur(18px);
}

.buyer-command-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 14px;
}

.buyer-command-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.buyer-command-head strong {
  font-size: 20px;
  font-weight: 680;
  white-space: nowrap;
}

.buyer-command-grid {
  display: grid;
  gap: 10px;
}

.buyer-command-card {
  display: grid;
  gap: 5px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 13px 14px;
  text-decoration: none;
}

.buyer-command-card:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.buyer-command-card span {
  color: #e9d8b5;
  font-size: 12px;
  font-weight: 700;
}

.buyer-command-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.buyer-command-card em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.buyer-signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.buyer-signal-strip span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.2;
}

body[data-view="dashboard"] .home-below {
  background: #f5f3ee !important;
}

body[data-view="dashboard"] .home-below .panel,
body[data-view="dashboard"] .home-below .health-item {
  border-color: rgba(20, 20, 20, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

@media (max-width: 1420px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: minmax(340px, 0.95fr) minmax(330px, 0.75fr) !important;
    padding-right: clamp(22px, 3vw, 42px) !important;
  }

  .buyer-command-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    align-items: start;
  }

  .buyer-command-head {
    border-bottom: 0;
    padding-bottom: 0;
  }

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

@media (max-width: 960px) {
  body[data-view="dashboard"] .style-stage,
  body[data-view="dashboard"] .theme-noir.active {
    min-height: auto !important;
  }

  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: 1fr !important;
    padding: 18px 14px !important;
  }

  body[data-view="dashboard"] .gallery-wall {
    height: auto !important;
    min-height: 360px !important;
  }

  .buyer-command-panel,
  .buyer-command-grid {
    grid-template-columns: 1fr;
  }
}

/* Final reference-dashboard guards. Keep this block last. */
body[data-view="dashboard"] .reference-hero {
  height: auto !important;
  min-height: clamp(330px, 25vw, 430px) !important;
  max-height: none !important;
  background: #2b2925 !important;
}

body[data-view="dashboard"] .reference-hero .hero-media,
body[data-view="dashboard"] .reference-hero .hero-shade {
  display: block !important;
}

body[data-view="dashboard"] .reference-hero .hero-media {
  z-index: 0 !important;
}

body[data-view="dashboard"] .reference-hero .hero-slide {
  filter: none !important;
  background-position: center !important;
  background-size: cover !important;
}

body[data-view="dashboard"] .reference-hero .hero-slide-a {
  background-position: left center !important;
}

body[data-view="dashboard"] .reference-hero .hero-slide-b {
  background-position: left center !important;
}

body[data-view="dashboard"] .reference-hero .hero-slide-c {
  background-position: center !important;
}

body[data-view="dashboard"] .reference-hero .hero-shade {
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(20, 16, 13, 0.00), rgba(30, 25, 20, 0.20) 42%, rgba(30, 27, 24, 0.64) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 62%) !important;
  pointer-events: none !important;
}

body[data-view="dashboard"] .theme-noir.active {
  position: relative !important;
  z-index: 2 !important;
  height: auto !important;
  min-height: clamp(330px, 25vw, 430px) !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 0.38fr) minmax(400px, 0.32fr) minmax(340px, 0.3fr) !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 24px 24px !important;
  background: transparent !important;
}

body[data-view="dashboard"] .gallery-wall {
  position: relative !important;
  inset: auto !important;
  height: clamp(270px, 21vw, 332px) !important;
  width: 100% !important;
  display: block !important;
  min-height: 0 !important;
}

body[data-view="dashboard"] .gallery-frame {
  position: absolute !important;
  border: 8px solid #f2eee7 !important;
  background-size: cover !important;
  background-position: center !important;
  filter: none !important;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.34) !important;
}

body[data-view="dashboard"] .gallery-frame.tall {
  width: 190px !important;
  height: 262px !important;
  left: 4px !important;
  top: 36px !important;
  background-image: url("./assets/home-gallery/hero-brown-tote-bag.png") !important;
  background-position: left center !important;
}

body[data-view="dashboard"] .gallery-frame.square {
  width: 142px !important;
  height: 118px !important;
  left: 214px !important;
  top: 178px !important;
  background-image: url("./assets/home-gallery/hero-quilted-chain-bag.png") !important;
  background-position: center !important;
}

body[data-view="dashboard"] .gallery-frame.wide {
  width: 172px !important;
  height: 146px !important;
  left: 302px !important;
  top: 100px !important;
  background-image: url("./assets/home-gallery/hero-quilted-chain-bag.png") !important;
  background-position: left center !important;
}

body[data-view="dashboard"] .noir-panel {
  position: relative !important;
  inset: auto !important;
  min-height: 0 !important;
  align-self: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-view="dashboard"] .reference-hero-kicker {
  display: block !important;
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: clamp(30px, 2.45vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics {
  gap: 12px !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics > div {
  min-height: 112px !important;
  padding: 14px 13px 12px !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics strong {
  font-size: 32px !important;
}

body[data-view="dashboard"] .noir-panel .hero-metrics > div::after {
  display: none !important;
}

body[data-view="dashboard"] .reference-signal-platforms {
  margin-top: 14px !important;
  gap: 9px !important;
}

body[data-view="dashboard"] .reference-signal-platforms button {
  height: 30px !important;
  padding: 0 12px !important;
}

body[data-view="dashboard"] .buyer-chat-panel {
  display: block !important;
  grid-template-columns: none !important;
  min-height: 330px !important;
  height: 330px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .buyer-chat-panel .buyer-command-grid,
body[data-view="dashboard"] .buyer-chat-panel .buyer-signal-strip {
  display: none !important;
}

body[data-view="dashboard"] .buyer-chat-feed p {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
}

body[data-view="dashboard"] .buyer-chat-feed p::before {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

body[data-view="dashboard"] .buyer-chat-feed b,
body[data-view="dashboard"] .buyer-chat-feed span {
  grid-column: 2 !important;
  min-width: 0 !important;
  white-space: normal !important;
}

body[data-view="dashboard"] .buyer-chat-feed b {
  grid-row: 1 !important;
}

body[data-view="dashboard"] .buyer-chat-feed span {
  grid-row: 2 !important;
}

body[data-view="dashboard"] .buyer-chat-action {
  margin-top: 4px !important;
}

body[data-view="dashboard"] .reference-dashboard-row {
  grid-template-columns: 1.12fr 1fr 1.48fr !important;
}

body[data-view="dashboard"] .reference-product-row {
  grid-template-columns: minmax(0, 1fr) 360px !important;
}

.reference-hidden-data {
  display: none !important;
}

@media (max-width: 1180px) {
  body[data-view="dashboard"] .theme-noir.active,
  body[data-view="dashboard"] .reference-dashboard-row,
  body[data-view="dashboard"] .reference-product-row {
    grid-template-columns: 1fr !important;
  }
}

/* Dense reference layout sizing pass. */
body[data-view="dashboard"] .home-below {
  padding: 14px 18px 22px !important;
  display: grid !important;
  gap: 12px !important;
}

body[data-view="dashboard"] .reference-dashboard-row {
  grid-template-columns: minmax(430px, 1.18fr) minmax(310px, 0.86fr) minmax(430px, 1.22fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body[data-view="dashboard"] .reference-mini-panel {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
}

body[data-view="dashboard"] .home-below .panel-head {
  min-height: 38px !important;
  padding: 10px 14px 8px !important;
}

body[data-view="dashboard"] .home-below .panel-head h2 {
  font-size: 16px !important;
  line-height: 1.1 !important;
}

body[data-view="dashboard"] .reference-style-pool {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 8px 10px 10px !important;
  height: 172px !important;
  max-height: 172px !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-item {
  display: grid !important;
  grid-template-rows: 88px auto auto !important;
  gap: 4px !important;
  min-width: 0 !important;
  height: 154px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #191510 !important;
}

body[data-view="dashboard"] .fashion-news-media {
  display: block !important;
  height: 88px !important;
  background: #eee8df !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .fashion-news-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

body[data-view="dashboard"] .reference-style-pool .news-index {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  padding: 2px 5px !important;
  color: #fff !important;
  background: #b68842 !important;
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body {
  display: block !important;
  padding: 0 6px !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body em {
  display: block !important;
  margin-top: 3px !important;
  color: #786f63 !important;
  font-size: 11px !important;
  font-style: normal !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-view="dashboard"] .reference-style-pool .news-score {
  position: absolute !important;
  right: 6px !important;
  bottom: 6px !important;
  width: 24px !important;
  height: 22px !important;
  border: 1px solid #ddd4c7 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11px !important;
  color: #6f6458 !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .recommendation-preview {
  height: 172px !important;
  max-height: 172px !important;
  padding: 8px 10px 10px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .rec-card {
  height: 36px !important;
  min-height: 36px !important;
  grid-template-columns: 42px minmax(0, 1fr) 48px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .rec-image {
  width: 38px !important;
  height: 32px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-list {
  display: grid !important;
  grid-template-rows: repeat(4, 1fr) !important;
  gap: 6px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 4px 0 !important;
  color: #1c1712 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(64, 54, 42, 0.1) !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media .image-box {
  width: 38px !important;
  height: 32px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: #f2eee7 !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media img,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media .image-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-body {
  min-width: 0 !important;
  display: block !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-body strong {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-body em {
  display: block !important;
  margin-top: 3px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #746b61 !important;
  font-size: 10px !important;
  font-style: normal !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-score {
  width: 28px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #ddd4c7 !important;
  color: #7d2b2b !important;
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-trends {
  display: block !important;
  height: 172px !important;
  max-height: 172px !important;
  padding: 8px 10px 10px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-head {
  display: none !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-view="dashboard"] .dashboard-social-link {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 7px 8px !important;
  text-decoration: none !important;
}

body[data-view="dashboard"] .dashboard-social-platform {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: #111 !important;
  font-size: 0 !important;
}

body[data-view="dashboard"] .dashboard-social-platform::first-letter {
  font-size: 13px !important;
}

body[data-view="dashboard"] .dashboard-social-body strong,
body[data-view="dashboard"] .dashboard-social-body em,
body[data-view="dashboard"] .dashboard-social-body small {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-view="dashboard"] .dashboard-social-body strong {
  font-size: 12px !important;
}

body[data-view="dashboard"] .dashboard-social-body em,
body[data-view="dashboard"] .dashboard-social-body small {
  display: none !important;
}

body[data-view="dashboard"] .dashboard-social-meta {
  gap: 8px !important;
  font-size: 10px !important;
}

body[data-view="dashboard"] .reference-product-row {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 12px !important;
  align-items: start !important;
}

body[data-view="dashboard"] .reference-opportunity-board {
  min-height: 318px !important;
}

body[data-view="dashboard"] .reference-product-head {
  display: grid !important;
  grid-template-columns: 130px minmax(0, 1fr) !important;
  gap: 12px !important;
}

body[data-view="dashboard"] .reference-filter-strip {
  width: 100% !important;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto !important;
}

body[data-view="dashboard"] .reference-opportunity-list {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  max-height: 244px !important;
  padding: 10px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card {
  height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image {
  height: 104px !important;
  padding: 0 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body {
  padding: 8px !important;
  gap: 4px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-sales,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body p {
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-data-overview {
  min-height: 318px !important;
}

/* Final reference-dashboard lock: keep the home page aligned like the supplied mockup. */
body[data-view="dashboard"] .reference-dashboard-row {
  display: grid !important;
  grid-template-columns: minmax(430px, 1.18fr) minmax(320px, 0.88fr) minmax(430px, 1.22fr) !important;
  grid-auto-flow: column !important;
  grid-auto-rows: 220px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body[data-view="dashboard"] .reference-hot-style-panel,
body[data-view="dashboard"] .reference-hot-news-panel,
body[data-view="dashboard"] .reference-social-panel {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-item {
  border: 1px solid #e6ded4 !important;
  border-radius: 4px !important;
  background: #fbfaf7 !important;
  box-shadow: none !important;
}

body[data-view="dashboard"] .fashion-news-media {
  height: 88px !important;
  border-radius: 3px 3px 0 0 !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-trends {
  display: block !important;
  height: 172px !important;
  max-height: 172px !important;
  padding: 8px 10px 10px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  height: 100% !important;
}

body[data-view="dashboard"] .dashboard-social-link {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 54px 58px !important;
  align-items: center !important;
  gap: 7px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 6px 7px !important;
  border: 1px solid #ebe3d8 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #191510 !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .dashboard-social-platform {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
}

body[data-view="dashboard"] .dashboard-social-body {
  min-width: 0 !important;
}

body[data-view="dashboard"] .dashboard-social-body strong,
body[data-view="dashboard"] .dashboard-social-body em,
body[data-view="dashboard"] .dashboard-social-body small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .dashboard-social-body strong {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

body[data-view="dashboard"] .dashboard-social-body em,
body[data-view="dashboard"] .dashboard-social-body small {
  color: #746a5f !important;
  font-size: 10px !important;
  font-style: normal !important;
}

body[data-view="dashboard"] .dashboard-social-trend {
  justify-self: end !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
  background: #edf5ea !important;
  color: #477348 !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

.trend-social-spark {
  position: relative;
  display: block;
  width: 54px;
  height: 22px;
}

.trend-social-spark::before {
  content: "";
  position: absolute;
  inset: 5px 0 4px;
  background:
    linear-gradient(135deg, transparent 0 18%, #6d6256 19% 23%, transparent 24% 39%, #6d6256 40% 44%, transparent 45% 61%, #6d6256 62% 66%, transparent 67% 100%);
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card {
  height: 220px !important;
}

.trend-news-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f4f1ec;
}

.trend-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 22px 24px;
  border: 1px solid #ded4c7;
  border-radius: 6px;
  background: linear-gradient(135deg, #1b1813 0%, #362b20 46%, #7d2b2b 100%);
  color: #fff;
}

.trend-news-head h2 {
  margin: 4px 0 6px;
  font-size: 34px;
  letter-spacing: 0;
}

.trend-news-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.trend-news-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trend-news-actions a {
  padding: 9px 13px;
  border: 1px solid rgba(220, 190, 134, 0.5);
  border-radius: 4px;
  color: #f5dfb1;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.22);
}

.trend-analysis-entry,
.trend-analysis-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(245, 223, 177, 0.7);
  border-radius: 5px;
  background: rgba(22, 16, 12, 0.42);
  color: #ffe8b5;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.trend-analysis-entry:hover,
.trend-analysis-back:hover {
  background: rgba(22, 16, 12, 0.68);
}

.trend-analysis-entry span {
  color: #ffb06b;
  font-size: 17px;
}

.trend-analysis-shell {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  background: #f4f1ec;
}

.trend-analysis-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 128px;
  padding: 24px;
  border: 1px solid #ded4c7;
  border-radius: 6px;
  background: linear-gradient(132deg, #1b1813 0%, #422e21 52%, #8e392d 100%);
  color: #fff;
}

.trend-analysis-head h2 {
  margin: 4px 0 6px;
  font-size: 34px;
}

.trend-analysis-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
}

.trend-analysis-board {
  display: grid;
  gap: 14px;
}

.trend-analysis-loading,
.trend-analysis-empty {
  margin: 0;
  padding: 32px;
  border: 1px solid #ded4c7;
  border-radius: 6px;
  background: #fff;
  color: #71675d;
}

.trend-analysis-overview,
.trend-analysis-module {
  border: 1px solid #ded4c7;
  border-radius: 6px;
  background: #fff;
}

.trend-analysis-overview {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 2.1fr);
  gap: 18px;
  padding: 18px;
}

.trend-analysis-overview-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.trend-analysis-overview-copy h3,
.trend-analysis-module-head h2 {
  margin: 0;
  color: #1d1712;
}

.trend-analysis-overview-copy p,
.trend-analysis-module-head p,
.trend-analysis-note {
  margin: 0;
  color: #706458;
  font-size: 13px;
  line-height: 1.55;
}

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

.trend-analysis-stat {
  min-width: 0;
  padding: 13px;
  border: 1px solid #eee4d8;
  border-radius: 5px;
  background: #fcfaf7;
}

.trend-analysis-stat span {
  display: block;
  color: #806f5c;
  font-size: 12px;
}

.trend-analysis-stat strong {
  display: block;
  margin-top: 5px;
  color: #231a14;
  font-size: 22px;
  line-height: 1.1;
}

.trend-analysis-module {
  padding: 18px;
}

.trend-analysis-module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.trend-analysis-module-head h2 {
  font-size: 20px;
}

.trend-analysis-insight {
  margin: -3px 0 15px;
  padding: 10px 12px;
  border-left: 3px solid #b96c35;
  background: #fbf5eb;
  color: #5a4230;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.trend-analysis-module-index {
  color: #a55e2f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.trend-analysis-three-columns,
.trend-analysis-two-columns {
  display: grid;
  gap: 14px;
}

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

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

.trend-analysis-subcard {
  min-width: 0;
  padding: 14px;
  border: 1px solid #eee4d8;
  border-radius: 5px;
  background: #fcfaf7;
}

.trend-analysis-subcard h3 {
  margin: 0 0 11px;
  color: #35261c;
  font-size: 14px;
}

.trend-analysis-bars {
  display: grid;
  gap: 10px;
}

.trend-analysis-bar-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.9fr) minmax(90px, 1.3fr) auto;
  align-items: center;
  gap: 9px;
  color: #403329;
  font-size: 12px;
}

.trend-analysis-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.trend-analysis-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ede3d7;
}

.trend-analysis-bar-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #a75d2d, #df9b55);
}

.trend-analysis-bar-value {
  color: #795b3e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trend-analysis-band-list {
  display: grid;
  gap: 9px;
}

.trend-analysis-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 12px;
  border-left: 3px solid #b96c35;
  background: #fbf5eb;
}

.trend-analysis-band b,
.trend-analysis-band span {
  color: #49382a;
  font-size: 13px;
}

.trend-analysis-status {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #ead6b8;
  border-radius: 5px;
  background: #fff8ec;
}

.trend-analysis-status b {
  color: #9b5828;
  font-size: 14px;
}

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

.trend-analysis-comment-summary .trend-analysis-stat strong {
  color: #9c4d2d;
}

.trend-analysis-content-visual-grid,
.trend-analysis-property-grid {
  display: grid;
  gap: 14px;
}

.trend-analysis-content-visual-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.trend-analysis-property-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.trend-analysis-series-panel {
  margin-top: 14px;
  background:
    radial-gradient(circle at 84% 12%, rgba(134, 109, 72, 0.16), transparent 28%),
    linear-gradient(120deg, #fffdf9, #f6eee4);
}

.trend-analysis-series-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trend-analysis-series-head h3 {
  margin-bottom: 4px;
}

.trend-analysis-series-head p,
.trend-analysis-series-scope,
.trend-analysis-series-note {
  margin: 0;
  color: #806f5c;
  font-size: 12px;
  line-height: 1.5;
}

.trend-analysis-series-head > b {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #d8b88e;
  border-radius: 999px;
  color: #914829;
  background: #fff8ec;
  font-size: 12px;
}

.trend-analysis-series-scope {
  margin-top: 12px;
}

.trend-analysis-series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.trend-analysis-series-card {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  min-height: 100px;
  padding: 11px;
  overflow: hidden;
  border: 1px solid #ead9c2;
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.84);
}

.trend-analysis-series-card::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(180, 99, 52, 0.18);
  border-radius: 50%;
  content: "";
}

.trend-analysis-series-rank {
  color: #bb6a38;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.trend-analysis-series-brand {
  position: relative;
  z-index: 1;
  color: #9c5931;
  font-size: 11px;
  font-weight: 700;
}

.trend-analysis-series-card h4 {
  position: relative;
  z-index: 1;
  margin: 4px 0;
  color: #34261c;
  font-size: 14px;
  line-height: 1.2;
}

.trend-analysis-series-card strong {
  position: relative;
  z-index: 1;
  color: #6f3027;
  font-size: 13px;
}

.trend-analysis-series-card p {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: #806f5c;
  font-size: 11px;
  line-height: 1.35;
}

.trend-analysis-series-note {
  margin-top: 10px;
  padding-left: 9px;
  border-left: 2px solid #cf7e47;
}

.trend-analysis-series-clues {
  margin: 11px 0 0;
  padding: 9px 10px;
  border: 1px dashed #d9c5a8;
  border-radius: 6px;
  color: #806f5c;
  background: rgba(255, 249, 239, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.trend-analysis-series-clues b {
  color: #8c5837;
}

.trend-analysis-series-clues p {
  margin: 3px 0 8px;
  color: #806f5c;
  font-size: 11px;
}

.trend-analysis-series-clues > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trend-analysis-series-clues span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e0c9a9;
  border-radius: 999px;
  background: #fffdf9;
}

.trend-analysis-series-clues strong {
  color: #604333;
  font-size: 11px;
}

.trend-analysis-series-clues em {
  color: #a05b35;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-visual-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(222, 155, 85, 0.13), transparent 34%),
    #fdfbf8;
}

.trend-analysis-visual-card h3 {
  margin: 0 0 10px;
  color: #35261c;
  font-size: 14px;
}

.trend-analysis-chart {
  margin: 0;
}

.trend-analysis-chart figcaption {
  margin-bottom: 7px;
  color: #806f5c;
  font-size: 12px;
}

.trend-analysis-brand-panel {
  background:
    radial-gradient(circle at 15% 8%, rgba(150, 57, 38, 0.16), transparent 31%),
    linear-gradient(130deg, #fffdf9, #f7ede2);
}

.trend-analysis-brand-scope {
  margin: -3px 0 11px;
  color: #806f5c;
  font-size: 11px;
  line-height: 1.45;
}

.trend-analysis-brand-fan-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(185px, 1.1fr);
  align-items: center;
  gap: 8px;
}

.trend-analysis-brand-fan svg {
  width: 100%;
  max-width: 290px;
  justify-self: center;
  overflow: visible;
}

.trend-analysis-brand-fan-slice {
  stroke: #fffaf3;
  stroke-width: 3px;
  transition: opacity 160ms ease, transform 160ms ease;
  transform-origin: 150px 150px;
}

.trend-analysis-brand-fan-slice:hover {
  opacity: 0.8;
  transform: scale(1.035);
}

.trend-analysis-brand-fan-slice.fan-0,
.trend-analysis-brand-fan-legend .fan-0 { fill: #702d28; background: #702d28; }
.trend-analysis-brand-fan-slice.fan-1,
.trend-analysis-brand-fan-legend .fan-1 { fill: #b75b39; background: #b75b39; }
.trend-analysis-brand-fan-slice.fan-2,
.trend-analysis-brand-fan-legend .fan-2 { fill: #df9550; background: #df9550; }
.trend-analysis-brand-fan-slice.fan-3,
.trend-analysis-brand-fan-legend .fan-3 { fill: #d8b26b; background: #d8b26b; }
.trend-analysis-brand-fan-slice.fan-4,
.trend-analysis-brand-fan-legend .fan-4 { fill: #8b9270; background: #8b9270; }
.trend-analysis-brand-fan-slice.fan-5,
.trend-analysis-brand-fan-legend .fan-5 { fill: #69869a; background: #69869a; }

.trend-analysis-brand-fan-hole {
  fill: #fffdf9;
  stroke: #f0e2d2;
  stroke-width: 1px;
}

.trend-analysis-brand-fan-percent {
  fill: #fff;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(67, 35, 24, 0.28);
  stroke-width: 2px;
}

.trend-analysis-brand-fan-total {
  fill: #3d261b;
  font-size: 22px;
  font-weight: 900;
}

.trend-analysis-brand-fan-caption {
  fill: #856d5b;
  font-size: 11px;
}

.trend-analysis-brand-fan-legend {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-analysis-brand-fan-legend li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #5a4536;
  font-size: 12px;
}

.trend-analysis-brand-fan-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.trend-analysis-brand-fan-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.trend-analysis-brand-fan-legend b {
  color: #8c5736;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-radar-chart svg {
  display: block;
  width: min(100%, 470px);
  margin: -2px auto -10px;
  overflow: visible;
}

.trend-analysis-radar-grid {
  fill: rgba(220, 159, 89, 0.1);
  stroke: #dcc8ad;
  stroke-width: 1px;
}

.trend-analysis-radar-grid.mid {
  fill: none;
}

.trend-analysis-radar-axis {
  stroke: #dbcbb8;
  stroke-width: 1px;
}

.trend-analysis-radar-shape {
  fill: rgba(129, 49, 39, 0.36);
  stroke: #8f3c30;
  stroke-width: 2.5px;
}

.trend-analysis-radar-dot {
  fill: #f0a054;
  stroke: #fff;
  stroke-width: 2px;
}

.trend-analysis-radar-label {
  fill: #594435;
  font-size: 12px;
  font-weight: 800;
}

.trend-analysis-radar-value {
  fill: #a0623a;
  font-size: 10px;
  font-weight: 700;
}

.trend-analysis-attribute-dots {
  display: grid;
  gap: 12px;
  padding: 7px 2px 2px;
}

.trend-analysis-attribute-dot-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(100px, 1.1fr) auto;
  align-items: center;
  gap: 10px;
  color: #5e4738;
  font-size: 12px;
}

.trend-analysis-attribute-dot-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.trend-analysis-attribute-dot-row i {
  display: inline-flex;
  gap: 5px;
}

.trend-analysis-attribute-dot-row i b {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eadfd4;
}

.trend-analysis-attribute-dot-row i b.active {
  background: linear-gradient(135deg, #8e3d2e, #e6a154);
  box-shadow: 0 2px 5px rgba(137, 62, 37, 0.22);
}

.trend-analysis-attribute-dot-row em {
  color: #915a38;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-season-visual {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(150px, 1.1fr);
  align-items: center;
  gap: 10px;
}

.trend-analysis-season-visual svg {
  width: min(100%, 245px);
  justify-self: center;
}

.trend-analysis-season-wedge {
  stroke: #fffaf4;
  stroke-width: 3px;
}

.trend-analysis-season-wedge.season-0 { fill: #90af8a; }
.trend-analysis-season-wedge.season-1 { fill: #e5ad52; }
.trend-analysis-season-wedge.season-2 { fill: #b85b34; }
.trend-analysis-season-wedge.season-3 { fill: #7598b3; }

.trend-analysis-season-center {
  fill: #fffdf9;
  stroke: #ead7bf;
}

.trend-analysis-season-label {
  fill: #fff;
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(61, 38, 27, 0.26);
  stroke-width: 2px;
}

.trend-analysis-season-share {
  fill: #422a1d;
  font-size: 22px;
  font-weight: 900;
}

.trend-analysis-season-caption {
  fill: #8d715c;
  font-size: 11px;
}

.trend-analysis-season-risk {
  display: grid;
  gap: 7px;
  padding: 11px;
  border-left: 3px solid #bc6335;
  background: rgba(255, 247, 235, 0.88);
}

.trend-analysis-season-risk b {
  color: #93452d;
  font-size: 13px;
}

.trend-analysis-season-risk span {
  color: #735c4c;
  font-size: 12px;
  line-height: 1.5;
}

.trend-analysis-keyword-cloud {
  display: flex;
  min-height: 235px;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 9px 14px;
  overflow: hidden;
  padding: 14px 5px 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 12%, rgba(222, 145, 79, 0.14), transparent 30%),
    radial-gradient(circle at 86% 88%, rgba(118, 74, 50, 0.10), transparent 35%),
    linear-gradient(135deg, #fffdf9 0%, #fbf2e7 100%);
}

.trend-analysis-keyword-bubble {
  display: grid;
  flex: 0 0 var(--bubble-size);
  width: var(--bubble-size);
  height: var(--bubble-size);
  place-content: center;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(152, 89, 52, 0.35);
  border-radius: 50%;
  background: rgba(252, 240, 227, 0.94);
  box-shadow: 0 6px 14px rgba(101, 58, 35, 0.09), inset 0 1px rgba(255, 255, 255, 0.88);
  color: #6e432d;
  text-align: center;
  animation: trend-keyword-bubble-float 4.8s ease-in-out infinite;
  animation-delay: var(--bubble-delay);
  will-change: transform;
}

.trend-analysis-keyword-bubble strong {
  display: block;
  overflow: hidden;
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.trend-analysis-keyword-bubble em {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-size: clamp(9px, 0.68vw, 11px);
  font-style: normal;
  font-weight: 800;
  opacity: 0.78;
  white-space: nowrap;
}

.trend-analysis-keyword-bubble.keyword-cloud-0 {
  border-color: #ba7040;
  background: linear-gradient(145deg, #f6d4b5, #f8e9da);
  color: #753c2d;
}

.trend-analysis-keyword-bubble.keyword-cloud-1 {
  border-color: #d5b181;
  background: linear-gradient(145deg, #fff6e5, #f5e6cb);
  color: #9a5c2e;
}

.trend-analysis-keyword-bubble.keyword-cloud-2 {
  border-color: #ca9b74;
  background: linear-gradient(145deg, #faede0, #f5ded1);
  color: #7e4c36;
}

.trend-analysis-keyword-bubble.keyword-cloud-3 {
  border-color: #b5ac9a;
  background: linear-gradient(145deg, #f6f0e6, #e9e2d5);
  color: #665946;
}

@keyframes trend-keyword-bubble-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, calc(var(--bubble-drift) * -1), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .trend-analysis-keyword-bubble {
    animation: none;
  }
}

.trend-analysis-attention-stack {
  display: grid;
  gap: 12px;
  min-height: 172px;
  padding: 2px;
}

.trend-analysis-attention-intro {
  margin: 0;
  color: #806f5c;
  font-size: 12px;
  line-height: 1.55;
}

.trend-analysis-attention-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.trend-analysis-attention-tier {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 164px;
  padding: 14px;
  border-radius: 7px;
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}

.trend-analysis-attention-tier-head {
  display: grid;
  gap: 4px;
}

.trend-analysis-attention-tier-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.76;
  text-transform: uppercase;
}

.trend-analysis-attention-tier-head b {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trend-analysis-attention-tier > strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 29px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-attention-tier > strong em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.84;
}

.trend-analysis-attention-tier dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.trend-analysis-attention-tier dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
}

.trend-analysis-attention-tier dt,
.trend-analysis-attention-tier dd { margin: 0; }
.trend-analysis-attention-tier dt { opacity: 0.76; }
.trend-analysis-attention-tier dd { font-weight: 800; text-align: right; }

.trend-analysis-attention-tier.attention-stack-0 { background: linear-gradient(145deg, #6d2926, #84362d); }
.trend-analysis-attention-tier.attention-stack-1 { background: linear-gradient(145deg, #97412e, #b85b34); }
.trend-analysis-attention-tier.attention-stack-2 { background: linear-gradient(145deg, #ca6d37, #df8d48); }
.trend-analysis-attention-tier.attention-stack-3 { background: #d9ae72; color: #59402e; }
.trend-analysis-attention-tier.attention-stack-3 dl div { border-top-color: rgba(89, 64, 46, 0.2); }

.trend-analysis-trend-type-panel {
  margin-top: 14px;
}

.trend-analysis-trend-type-board {
  display: grid;
  gap: 11px;
}

.trend-analysis-trend-type-note,
.trend-analysis-trend-type-pending {
  margin: 0;
  color: #806f5c;
  font-size: 12px;
  line-height: 1.55;
}

.trend-analysis-trend-type-pending {
  padding-left: 10px;
  border-left: 3px solid #d59b59;
}

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

.trend-analysis-trend-type {
  display: grid;
  min-width: 0;
  gap: 7px;
  min-height: 255px;
  padding: 13px;
  border: 1px solid #e7d7c5;
  border-top: 4px solid #a74d32;
  border-radius: 7px;
  background: rgba(255, 252, 247, 0.9);
}

.trend-analysis-trend-type > span {
  color: #9a6947;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-analysis-trend-type h4 {
  margin: 0;
  color: #4b3022;
  font-size: 15px;
}

.trend-analysis-trend-type > strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #81382c;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-trend-type > strong em {
  color: #806f5c;
  font-size: 11px;
  font-style: normal;
}

.trend-analysis-trend-type-metrics {
  display: grid;
  gap: 3px;
  color: #815d43;
  font-size: 11px;
}

.trend-analysis-trend-type-profile {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #eadbca;
  border-bottom: 1px solid #eadbca;
}

.trend-analysis-trend-type-profile div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
}

.trend-analysis-trend-type-profile dt,
.trend-analysis-trend-type-profile dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-analysis-trend-type-profile dt {
  color: #9a795d;
  font-size: 10px;
}

.trend-analysis-trend-type-profile dd {
  color: #5b4030;
  font-size: 11px;
  font-weight: 800;
}

.trend-analysis-trend-type > p {
  margin: 0;
  color: #725d4d;
  font-size: 11px;
  line-height: 1.48;
}

.trend-analysis-trend-type.type-1 { border-top-color: #8d3029; background: linear-gradient(150deg, #fff6f0, #fffdf9); }
.trend-analysis-trend-type.type-2 { border-top-color: #c56b37; background: linear-gradient(150deg, #fff8ee, #fffdf9); }
.trend-analysis-trend-type.type-3 { border-top-color: #bb9451; background: linear-gradient(150deg, #fff9ed, #fffdf9); }
.trend-analysis-trend-type.type-4 { border-top-color: #6e8b80; background: linear-gradient(150deg, #f1f7f3, #fffdf9); }

.trend-analysis-semantic-action-panel {
  margin-top: 14px;
}

.trend-analysis-semantic-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trend-analysis-semantic-action {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e7d7c5;
  border-left: 4px solid #9a422f;
  border-radius: 7px;
  background: rgba(255, 252, 247, 0.9);
}

.trend-analysis-semantic-action.semantic-action-1 { border-left-color: #c68642; }
.trend-analysis-semantic-action.semantic-action-2 { border-left-color: #6a8b8f; }

.trend-analysis-semantic-action-head {
  display: grid;
  gap: 3px;
}

.trend-analysis-semantic-action-head span {
  color: #9a795d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.trend-analysis-semantic-action h4 {
  margin: 0;
  color: #4b3022;
  font-size: 15px;
}

.trend-analysis-semantic-action strong {
  color: #853e2e;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-semantic-action strong em {
  color: #806f5c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.trend-analysis-semantic-evidence,
.trend-analysis-semantic-recommendation,
.trend-analysis-semantic-no-example {
  margin: 0;
  color: #735b4a;
  font-size: 11px;
  line-height: 1.52;
}

.trend-analysis-semantic-recommendation {
  padding: 8px;
  border-radius: 5px;
  background: #fbf2e7;
}

.trend-analysis-semantic-recommendation b { color: #914a30; }

.trend-analysis-semantic-examples {
  display: grid;
  gap: 5px;
}

.trend-analysis-semantic-examples p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin: 0;
  color: #665041;
  font-size: 11px;
  line-height: 1.4;
}

.trend-analysis-semantic-examples p:first-child { padding-top: 7px; border-top: 1px solid #eadbca; }
.trend-analysis-semantic-examples b { color: #9a6844; font-size: 10px; white-space: nowrap; }

.trend-analysis-comment-panel { margin-top: 2px; }

.trend-analysis-comment-funnel {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 4px 0;
}

.trend-analysis-comment-funnel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 0 14px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.trend-analysis-comment-funnel .comment-funnel-0 { background: #783029; }
.trend-analysis-comment-funnel .comment-funnel-1 { background: #a64e31; }
.trend-analysis-comment-funnel .comment-funnel-2 { background: #cb7640; }
.trend-analysis-comment-funnel .comment-funnel-3 { background: #d9a65e; color: #4f3727; }
.trend-analysis-comment-funnel .comment-funnel-4 { background: #9b9279; }
.trend-analysis-comment-funnel .comment-funnel-5 { background: #6b8790; }

.trend-analysis-comment-fan-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(185px, 1.1fr);
  align-items: center;
  gap: 8px;
}

.trend-analysis-comment-fan svg {
  width: 100%;
  max-width: 290px;
  justify-self: center;
  overflow: visible;
}

.trend-analysis-comment-fan-slice {
  stroke: #fffaf3;
  stroke-width: 3px;
  transition: opacity 160ms ease, transform 160ms ease;
  transform-origin: 150px 150px;
}

.trend-analysis-comment-fan-slice:hover {
  opacity: 0.8;
  transform: scale(1.035);
}

.trend-analysis-comment-fan-slice.comment-fan-0,
.trend-analysis-comment-fan-legend .comment-fan-0 { fill: #783029; background: #783029; }
.trend-analysis-comment-fan-slice.comment-fan-1,
.trend-analysis-comment-fan-legend .comment-fan-1 { fill: #a64e31; background: #a64e31; }
.trend-analysis-comment-fan-slice.comment-fan-2,
.trend-analysis-comment-fan-legend .comment-fan-2 { fill: #cb7640; background: #cb7640; }
.trend-analysis-comment-fan-slice.comment-fan-3,
.trend-analysis-comment-fan-legend .comment-fan-3 { fill: #d9a65e; background: #d9a65e; }
.trend-analysis-comment-fan-slice.comment-fan-4,
.trend-analysis-comment-fan-legend .comment-fan-4 { fill: #9b9279; background: #9b9279; }
.trend-analysis-comment-fan-slice.comment-fan-5,
.trend-analysis-comment-fan-legend .comment-fan-5 { fill: #6b8790; background: #6b8790; }

.trend-analysis-comment-fan-hole {
  fill: #fffdf9;
  stroke: #f0e2d2;
  stroke-width: 1px;
}

.trend-analysis-comment-fan-percent {
  fill: #fff;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(67, 35, 24, 0.28);
  stroke-width: 2px;
}

.trend-analysis-comment-fan-total {
  fill: #3d261b;
  font-size: 22px;
  font-weight: 900;
}

.trend-analysis-comment-fan-caption {
  fill: #856d5b;
  font-size: 11px;
}

.trend-analysis-comment-fan-legend {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-analysis-comment-fan-legend li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #5a4536;
  font-size: 12px;
}

.trend-analysis-comment-fan-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.trend-analysis-comment-fan-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.trend-analysis-comment-fan-legend b {
  color: #8c5736;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-sentiment-mix {
  display: grid;
  gap: 11px;
  padding: 7px 2px;
}

.trend-analysis-sentiment-mix > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.trend-analysis-sentiment-mix > div::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  width: var(--sentiment-share);
  min-width: 22px;
  height: 34px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.88;
}

.trend-analysis-sentiment-mix span,
.trend-analysis-sentiment-mix b,
.trend-analysis-sentiment-mix em {
  position: relative;
  z-index: 1;
}

.trend-analysis-sentiment-mix span {
  grid-column: 1;
  grid-row: 1;
  color: #604333;
}

.trend-analysis-sentiment-mix b {
  grid-column: 2;
  grid-row: 1;
  padding-left: 11px;
  color: #fff;
}

.trend-analysis-sentiment-mix em {
  grid-column: 3;
  grid-row: 1;
  color: #80604c;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.trend-analysis-sentiment-mix .sentiment-positive { color: #528875; }
.trend-analysis-sentiment-mix .sentiment-neutral { color: #b5905c; }
.trend-analysis-sentiment-mix .sentiment-negative { color: #a94c3d; }

@media (max-width: 980px) {
  .trend-analysis-overview,
  .trend-analysis-three-columns,
  .trend-analysis-two-columns,
  .trend-analysis-content-visual-grid,
  .trend-analysis-property-grid {
    grid-template-columns: 1fr;
  }

  .trend-analysis-stat-grid,
  .trend-analysis-comment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-analysis-brand-fan-layout,
  .trend-analysis-comment-fan-layout,
  .trend-analysis-season-visual {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

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

@media (max-width: 620px) {
  .trend-analysis-head,
  .trend-analysis-module-head {
    align-items: start;
    flex-direction: column;
  }

  .trend-analysis-stat-grid,
  .trend-analysis-comment-summary {
    grid-template-columns: 1fr;
  }

  .trend-analysis-brand-fan-layout,
  .trend-analysis-comment-fan-layout,
  .trend-analysis-season-visual {
    grid-template-columns: 1fr;
  }

  .trend-analysis-brand-fan-legend,
  .trend-analysis-comment-fan-legend {
    max-width: 280px;
    width: 100%;
    justify-self: center;
  }

  .trend-analysis-attention-tiers {
    grid-template-columns: 1fr;
  }

  .trend-analysis-trend-type-grid {
    grid-template-columns: 1fr;
  }

  .trend-analysis-series-head {
    flex-direction: column;
    gap: 7px;
  }

  .trend-analysis-series-grid {
    grid-template-columns: 1fr;
  }
}

.trend-news-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(330px, 0.85fr) minmax(380px, 1fr);
  gap: 14px;
  align-items: start;
}

.trend-news-panel {
  min-width: 0;
  border: 1px solid #ded4c7;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.trend-news-insight-stack {
  display: grid;
  gap: 14px;
}

body[data-view="trend-news"] .trend-news-video-board {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  background: #fff;
  backdrop-filter: none;
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-head {
  color: #6f6258;
}

body[data-view="trend-news"] .trend-news-video-board .trend-news-social-head-leading {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.trend-news-platform-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-view="trend-news"] .trend-news-video-board .trend-news-platform-tab {
  min-width: 92px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #cfbda9;
  border-radius: 4px;
  background: #fff;
  color: #765a36;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body[data-view="trend-news"] .trend-news-video-board .trend-news-platform-tab:hover,
body[data-view="trend-news"] .trend-news-video-board .trend-news-platform-tab.active {
  border-color: #6c3027;
  background: #6c3027;
  color: #fff;
}

@media (max-width: 680px) {
  body[data-view="trend-news"] .trend-news-video-board .trend-news-social-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-view="trend-news"] .trend-news-video-board .trend-news-platform-tab {
    min-width: 78px;
  }
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trend-news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 14px;
}

.trend-news-page-button {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ddcfbe;
  border-radius: 4px;
  background: #fff;
  color: #765a36;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.trend-news-page-button:hover:not(:disabled),
.trend-news-page-button.active {
  border-color: #6c3027;
  background: #6c3027;
  color: #fff;
}

.trend-news-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body[data-view="trend-news"] .trend-news-social-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-card,
body[data-view="trend-news"] .trend-news-video-board .hero-social-card.primary {
  grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
  min-height: 330px;
  border: 1px solid #e4d9cc;
  border-radius: 6px;
  background: #fff;
  color: #17130f;
  box-shadow: none;
  padding: 8px;
  cursor: default;
}

body[data-view="trend-news"] .trend-news-social-video,
body[data-view="trend-news"] .trend-news-social-video-player,
body[data-view="trend-news"] .trend-news-social-video .social-video-embed,
body[data-view="trend-news"] .trend-news-social-video .social-video-player,
body[data-view="trend-news"] .trend-news-social-video .social-video-preview,
body[data-view="trend-news"] .trend-news-social-video .social-video-frame,
body[data-view="trend-news"] .trend-news-social-video .social-thumb,
body[data-view="trend-news"] .trend-news-social-video .image-fallback,
body[data-view="trend-news"] .trend-news-social-video .social-video-poster {
  position: relative;
  width: 100%;
  height: 314px;
  min-height: 314px;
  max-height: 314px;
  border-radius: 5px;
  object-fit: cover;
  background: #111;
  overflow: hidden;
}

body[data-view="trend-news"] .trend-news-social-video .social-video-embed {
  position: relative;
}

body[data-view="trend-news"] .trend-news-social-video .social-video-load-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

body[data-view="trend-news"] .trend-news-social-video .social-video-load-btn span {
  display: block;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

body[data-view="trend-news"] .trend-news-social-video .social-video-load-btn span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 13px;
  border-left: 14px solid #111;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

body[data-view="trend-news"] .trend-news-social-copy {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  gap: 7px;
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-meta b,
body[data-view="trend-news"] .trend-news-video-board .hero-social-keywords i {
  background: #f2ece4;
  color: #6d5536;
}

body[data-view="trend-news"] .trend-news-social-meta {
  align-items: start;
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-copy strong,
body[data-view="trend-news"] .trend-news-social-copy strong,
body[data-view="trend-news"] .trend-news-video-board .hero-social-analysis span,
body[data-view="trend-news"] .trend-news-video-board .hero-social-comments p,
body[data-view="trend-news"] .trend-news-video-board .hero-social-comments span {
  color: #17130f;
}

body[data-view="trend-news"] .trend-news-social-copy strong {
  white-space: normal;
  font-size: 17px;
  line-height: 1.2;
}

body[data-view="trend-news"] .trend-news-social-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 62px;
  overflow: hidden;
}

body[data-view="trend-news"] .trend-news-social-keyword-tag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #e2d4c2;
  border-radius: 999px;
  background: #f7f1e8;
  color: #6d5536;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

body[data-view="trend-news"] .trend-news-video-board .hero-social-analysis,
body[data-view="trend-news"] .trend-news-video-board .hero-social-comments {
  background: #faf7f2;
}

body[data-view="trend-news"] .trend-news-social-analysis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  padding: 5px 7px;
  font-size: 14px;
}

body[data-view="trend-news"] .trend-news-social-comments {
  min-height: 0;
  max-height: 126px;
  overflow: hidden;
  padding: 8px 9px;
}

body[data-view="trend-news"] .trend-news-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body[data-view="trend-news"] .trend-news-comments-toggle {
  border: 1px solid #d7c7b5;
  border-radius: 999px;
  background: #fff;
  color: #765a36;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

body[data-view="trend-news"] .trend-news-comments-toggle:hover {
  background: #f4eadc;
}

body[data-view="trend-news"] .trend-news-comments-panel {
  display: grid;
  gap: 8px;
}

body[data-view="trend-news"] .trend-news-social-comments p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee6dc;
  font-size: 13px;
  line-height: 1.35;
}

body[data-view="trend-news"] .trend-news-social-comments p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body[data-view="trend-news"] .trend-news-social-comments span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-news-comment-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
}

.trend-news-comment-modal.show {
  display: grid;
}

.trend-news-comment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 13, 0.58);
}

.trend-news-comment-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 48px));
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #ddcfbd;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(31, 24, 17, 0.28);
}

.trend-news-comment-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #ddcfbd;
  border-radius: 50%;
  background: #fff;
  color: #5f4a32;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.trend-news-comment-modal-head {
  display: grid;
  gap: 8px;
  padding-right: 44px;
  margin-bottom: 16px;
}

.trend-news-comment-modal-head h2 {
  margin: 0;
  color: #18130f;
  font-size: 28px;
  line-height: 1.18;
}

.trend-news-comment-modal-head p:last-child {
  margin: 0;
  color: #5f5144;
  font-size: 15px;
  line-height: 1.6;
}

.trend-news-comment-modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.trend-news-comment-modal-list {
  display: grid;
  gap: 10px;
}

.trend-news-comment-modal-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 12px;
  border: 1px solid #eee4d8;
  border-radius: 8px;
  background: #fbf7f1;
  color: #211a14;
  font-size: 15px;
  line-height: 1.55;
}

.trend-news-comment-modal-row b {
  color: #9a6b28;
}

.trend-news-comment-modal-row em {
  color: #7b5f3f;
  font-style: normal;
  white-space: nowrap;
}

.trend-news-comment-modal-empty {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #fbf7f1;
  color: #7b6b5c;
}

.store-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 18, 13, 0.48);
  backdrop-filter: blur(6px);
}

.store-select-dialog {
  width: min(460px, calc(100vw - 48px));
  max-height: min(86vh, 620px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #d8c6ae;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 28px 90px rgba(24, 18, 13, 0.28);
}

.store-select-dialog h3 {
  margin: 0 0 18px;
  color: #18130f;
  font-size: 22px;
  line-height: 1.2;
}

.store-select-dialog .form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.store-select-dialog label {
  color: #5f5144;
  font-size: 13px;
  font-weight: 800;
}

.store-select-dialog select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dfd3c4;
  border-radius: 4px;
  background: #fff;
  color: #18130f;
}

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

.store-select-dialog .form-actions button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cdbb9f;
  border-radius: 4px;
  background: #fff;
  color: #5a4731;
  font-weight: 800;
}

.store-select-dialog .form-actions button:last-child {
  border-color: #1f1d19;
  background: #1f1d19;
  color: #fff;
}

body[data-view="trend-news"] .trend-news-competitor-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  align-content: start;
  min-height: 260px;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend .competitor-hot-image {
  width: 100%;
  aspect-ratio: 1.25 / 1;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend .competitor-hot-image img,
body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend .competitor-hot-image .image-box {
  object-fit: contain;
  background: #f7f4ef;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend .competitor-hot-meta {
  gap: 6px;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend strong {
  display: -webkit-box;
  min-height: 57px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

body[data-view="trend-news"] .trend-news-competitor-list .competitor-hot-card-trend p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 1320px) {
  body[data-view="trend-news"] .trend-news-social-video-list {
    grid-template-columns: 1fr;
  }

  body[data-view="trend-news"] .trend-news-competitor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-view="trend-news"] .trend-news-competitor-list {
    grid-template-columns: 1fr;
  }
}

.trend-news-social-list,
.trend-news-hot-new-list,
.trend-news-article-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.trend-social-card,
.trend-hot-new-card,
.trend-article-card {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ebe3d8;
  border-radius: 4px;
  color: #17130f;
  text-decoration: none;
  background: #fff;
}

.trend-social-card {
  grid-template-columns: 42px minmax(0, 1fr) 64px;
}

.trend-hot-new-card {
  grid-template-columns: 58px minmax(0, 1fr) 38px;
}

.trend-article-card {
  grid-template-columns: 72px minmax(0, 1fr) 34px;
}

.trend-social-platform,
.trend-hot-new-media,
.trend-article-media {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.trend-hot-new-media,
.trend-article-media {
  width: 58px;
  height: 48px;
  background: #f0ebe4;
}

.trend-article-media {
  width: 72px;
}

.trend-hot-new-media img,
.trend-hot-new-media .image-fallback,
.trend-article-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trend-social-body,
.trend-hot-new-body,
.trend-article-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.trend-social-body strong,
.trend-hot-new-body strong,
.trend-article-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.trend-social-body em,
.trend-social-body small,
.trend-hot-new-body em,
.trend-article-body em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #71675d;
  font-size: 12px;
  font-style: normal;
}

.trend-social-body b,
.trend-article-body b,
.trend-hot-new-rank,
.trend-article-score {
  color: #9a6d2f;
  font-size: 12px;
}

.trend-empty {
  padding: 18px;
  color: #746a5f;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .trend-news-grid {
    grid-template-columns: 1fr;
  }
}

body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row {
  display: grid !important;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.28fr) minmax(0, 0.3fr) !important;
  grid-auto-flow: column !important;
  grid-auto-rows: 220px !important;
  gap: 12px !important;
}

body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row > .reference-hot-style-panel,
body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row > .reference-hot-news-panel,
body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row > .reference-social-panel {
  grid-column: auto !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
}

/* Reference image sizing pass: roomier cards, matching the supplied dashboard proportion. */
body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row {
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.32fr) minmax(0, 0.3fr) !important;
  grid-auto-rows: 270px !important;
}

body[data-view="dashboard"] .reference-hot-style-panel,
body[data-view="dashboard"] .reference-hot-news-panel,
body[data-view="dashboard"] .reference-social-panel {
  height: 270px !important;
  min-height: 270px !important;
  max-height: 270px !important;
}

body[data-view="dashboard"] .reference-style-pool {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
  height: 220px !important;
  max-height: 220px !important;
  padding: 10px 12px 12px !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 116px auto auto !important;
  height: 196px !important;
  min-height: 196px !important;
  gap: 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-media {
  width: 100% !important;
  height: 116px !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body {
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 8px !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body em {
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .recommendation-preview,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-list,
body[data-view="dashboard"] .reference-social-panel .dashboard-social-trends {
  display: block !important;
  height: 220px !important;
  max-height: 220px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-card {
  min-height: 48px !important;
  height: 48px !important;
  grid-template-columns: 52px minmax(0, 1fr) 36px !important;
  padding: 5px 0 !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media .image-box {
  width: 46px !important;
  height: 40px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-list {
  gap: 8px !important;
}

body[data-view="dashboard"] .dashboard-social-link {
  height: 58px !important;
  min-height: 58px !important;
  grid-template-columns: 36px minmax(0, 1fr) 58px 62px !important;
}

body[data-view="dashboard"] .reference-product-row {
  grid-template-columns: minmax(0, 1fr) 360px !important;
}

body[data-view="dashboard"] .reference-opportunity-board,
body[data-view="dashboard"] .reference-data-overview {
  min-height: 380px !important;
}

body[data-view="dashboard"] .reference-opportunity-list {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)) !important;
  max-height: none !important;
  padding: 12px !important;
  gap: 12px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card {
  height: 268px !important;
  min-height: 268px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image {
  height: 132px !important;
}

/* Red-box reference layout: 3 large style cards, wide hot-news center, 2x3 social grid. */
body[data-view="dashboard"] .home-below .section-grid.reference-dashboard-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 310px !important;
  gap: 14px !important;
}

body[data-view="dashboard"] .reference-hot-style-panel,
body[data-view="dashboard"] .reference-hot-news-panel,
body[data-view="dashboard"] .reference-social-panel {
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
}

body[data-view="dashboard"] .reference-style-pool {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  height: 258px !important;
  max-height: 258px !important;
  gap: 12px !important;
  padding: 12px !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-item:nth-child(n + 4) {
  display: none !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-item {
  grid-template-rows: 142px auto auto !important;
  height: 234px !important;
  min-height: 234px !important;
}

body[data-view="dashboard"] .reference-style-pool .fashion-news-media {
  height: 142px !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body strong {
  font-size: 14px !important;
  line-height: 1.18 !important;
  -webkit-line-clamp: 2 !important;
}

body[data-view="dashboard"] .reference-style-pool .news-body em {
  font-size: 12px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .recommendation-preview,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-list,
body[data-view="dashboard"] .reference-social-panel .dashboard-social-trends {
  display: block !important;
  height: 258px !important;
  max-height: 258px !important;
  padding: 12px 14px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-list {
  grid-template-rows: repeat(5, 41px) !important;
  gap: 4px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-card {
  height: 41px !important;
  min-height: 41px !important;
  grid-template-columns: 48px minmax(0, 1fr) 38px !important;
  gap: 10px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media,
body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-media .image-box {
  width: 40px !important;
  height: 36px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-body strong {
  font-size: 13px !important;
}

body[data-view="dashboard"] .reference-hot-news-panel .dashboard-hot-new-body em {
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 10px !important;
}

body[data-view="dashboard"] .dashboard-social-link {
  height: 68px !important;
  min-height: 68px !important;
  grid-template-columns: 40px minmax(0, 1fr) 58px 44px !important;
  padding: 9px 10px !important;
}

body[data-view="dashboard"] .dashboard-social-platform {
  width: 36px !important;
  height: 36px !important;
}

body[data-view="dashboard"] .dashboard-social-body strong {
  font-size: 13px !important;
}

body[data-view="dashboard"] .dashboard-social-body em,
body[data-view="dashboard"] .dashboard-social-body small {
  font-size: 11px !important;
}

body[data-view="dashboard"] .reference-product-row {
  grid-template-columns: minmax(0, 0.64fr) minmax(440px, 0.36fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-view="dashboard"] .reference-opportunity-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card {
  height: 252px !important;
  min-height: 252px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image {
  height: 108px !important;
  padding: 8px !important;
  background: #f1ece4 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image img,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image .image-box,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image .image-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Bottom row: align to the 3-column rhythm above, 1 column + 2 columns. */
body[data-view="dashboard"] .reference-product-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: 310px !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body[data-view="dashboard"] .reference-opportunity-board {
  grid-column: 1 / span 1 !important;
  grid-row: 1 !important;
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-data-overview {
  grid-column: 2 / span 2 !important;
  grid-row: 1 !important;
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-product-head {
  min-height: 58px !important;
  grid-template-columns: 128px minmax(0, 1fr) !important;
  padding: 10px 12px 8px !important;
}

body[data-view="dashboard"] .reference-product-head h2 {
  font-size: 18px !important;
}

body[data-view="dashboard"] .reference-product-head p {
  font-size: 12px !important;
}

body[data-view="dashboard"] .reference-filter-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-filter-strip select,
body[data-view="dashboard"] .reference-filter-strip label,
body[data-view="dashboard"] .reference-filter-strip a {
  min-height: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-opportunity-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 98px !important;
  max-height: 224px !important;
  height: 224px !important;
  padding: 10px 12px 12px !important;
  gap: 10px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card:nth-child(n + 5) {
  display: none !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  height: 98px !important;
  min-height: 98px !important;
  padding: 8px !important;
  gap: 8px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-image {
  width: 72px !important;
  height: 72px !important;
  padding: 7px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body {
  gap: 3px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-meta {
  gap: 4px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-meta span,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-meta em {
  min-height: 18px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body strong {
  -webkit-line-clamp: 2 !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-sales,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-body p,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card a {
  font-size: 10px !important;
  line-height: 1.15 !important;
}

body[data-view="dashboard"] .reference-data-overview .panel-head {
  min-height: 58px !important;
  padding: 10px 16px 8px !important;
}

body[data-view="dashboard"] .reference-data-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.7fr) minmax(150px, 0.38fr) !important;
  grid-template-rows: 58px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  padding-bottom: 12px !important;
}

body[data-view="dashboard"] .reference-data-overview .panel-head {
  grid-column: 1 / -1 !important;
}

body[data-view="dashboard"] .reference-overview-stats {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: start !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 12px 0 0 16px !important;
  gap: 10px !important;
}

body[data-view="dashboard"] .reference-overview-stats div {
  min-height: 118px !important;
  padding: 18px 12px !important;
}

body[data-view="dashboard"] .reference-donut {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 150px !important;
  height: 150px !important;
  margin: 0 !important;
}

body[data-view="dashboard"] .reference-donut::after {
  inset: 42px !important;
}

body[data-view="dashboard"] .reference-source-legend {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: center !important;
  padding: 0 16px 0 0 !important;
  gap: 8px !important;
}

body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .fashion-news-media img,
body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .fashion-news-media .image-box,
body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .fashion-news-media .image-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .news-body strong {
  -webkit-line-clamp: 1 !important;
  font-size: 14px !important;
}

body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .news-body em {
  color: #786f63 !important;
  font-size: 12px !important;
}

body[data-view="dashboard"] .reference-style-pool .dashboard-bag-sample-card .news-score {
  display: none !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 7px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform svg {
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform-tiktok {
  color: #fff !important;
  background: #0c0c0d !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform-instagram {
  color: #fff !important;
  background: radial-gradient(circle at 30% 105%, #feda75 0 24%, #fa7e1e 36%, #d62976 58%, #962fbf 78%, #4f5bd5 100%) !important;
}

body[data-view="dashboard"] .reference-opportunity-board .reference-product-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 70px !important;
  padding: 14px 16px 10px !important;
}

body[data-view="dashboard"] .reference-opportunity-board .reference-product-head a {
  color: #746557 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-opportunity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  height: 240px !important;
  max-height: 240px !important;
  padding: 12px 14px 14px !important;
  gap: 12px !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-image {
  width: 78px !important;
  height: 78px !important;
  padding: 6px !important;
  background: #f1ece4 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-image img,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-image .image-box,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-image .image-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-body {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-body strong,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-series,
body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-price {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-body strong {
  color: #17120e !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-series {
  margin: 0 !important;
  color: #6f665b !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-view="dashboard"] .reference-opportunity-list .competitor-hot-card-compact .competitor-hot-price {
  justify-self: start !important;
  border: 1px solid #eadfd3 !important;
  background: #fffaf6 !important;
  padding: 3px 7px !important;
  color: #8f1d2c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body[data-view="dashboard"] .reference-data-overview {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 62px minmax(0, 1fr) !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

body[data-view="dashboard"] .reference-data-overview .panel-head {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: 62px !important;
  padding: 12px 16px 10px !important;
}

body[data-view="dashboard"] .reference-data-overview .panel-head p {
  margin: 2px 0 0 !important;
  color: #7a7065 !important;
  font-size: 13px !important;
}

body[data-view="dashboard"] .dashboard-recommendation-expand-btn {
  align-self: center !important;
  height: 36px !important;
  min-width: 92px !important;
  padding: 0 12px !important;
  border: 1px solid #d7c4aa !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  color: #8f1d2c !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .dashboard-recommendation-expand-btn:hover {
  border-color: #b88f57 !important;
  background: #fff4dd !important;
}

body[data-view="dashboard"] .reference-recommendation-pool {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 12px !important;
  height: 248px !important;
  max-height: 248px !important;
  margin: 0 !important;
  padding: 12px 14px 14px !important;
  border-top: 1px solid #e4ded5 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-card {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) 128px !important;
  gap: 14px !important;
  align-items: start !important;
  min-height: 152px !important;
  height: auto !important;
  padding: 12px !important;
  border: 1px solid #e3dbcf !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-image {
  width: 88px !important;
  height: 88px !important;
  aspect-ratio: auto !important;
  background: #f1ece4 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-image img,
body[data-view="dashboard"] .reference-recommendation-pool .rec-image .image-box,
body[data-view="dashboard"] .reference-recommendation-pool .rec-image .image-fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-card > div:nth-child(2) {
  min-width: 0 !important;
  padding: 0 !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-title {
  display: block !important;
  overflow: visible !important;
  color: #17120e !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-reason {
  display: none !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .source-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-top: 8px !important;
  overflow: visible !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .source-row .chip {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 86px !important;
  height: 18px !important;
  padding: 0 5px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10px !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .rec-card > div:last-child {
  display: grid !important;
  justify-items: end !important;
  align-content: start !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .score {
  min-width: 36px !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .card-actions {
  display: none !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .dashboard-dhgate-hot-card .card-actions,
body[data-view="dashboard"] .reference-recommendation-pool .buyer-rec-card .card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  justify-items: stretch !important;
  margin-top: 10px !important;
  overflow: visible !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .dashboard-dhgate-hot-card .card-actions button,
body[data-view="dashboard"] .reference-recommendation-pool .buyer-rec-card .card-actions button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-recommendation-pool .buyer-badge {
  height: 18px !important;
  min-height: 18px !important;
  margin-bottom: 4px !important;
  padding: 0 6px !important;
  font-size: 10px !important;
}

.dashboard-recommendation-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 110px 40px 42px 320px;
}

.dashboard-recommendation-detail-modal.show {
  display: grid;
}

.dashboard-recommendation-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.16);
}

.dashboard-recommendation-detail-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(68vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #d7cabe;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 24px 90px rgba(24, 20, 16, 0.24);
  overflow: hidden;
}

.dashboard-recommendation-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e1d6ca;
}

.dashboard-recommendation-detail-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.dashboard-recommendation-detail-head p:last-child {
  margin-top: 4px;
  color: #7a7065;
  font-size: 13px;
}

.dashboard-recommendation-detail-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-recommendation-detail-head span {
  color: #8f1d2c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-recommendation-detail-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d8cbbd;
  border-radius: 4px;
  background: #fff;
  color: #17120e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dashboard-recommendation-detail-list {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px 18px;
  overflow-y: auto;
}

.dashboard-recommendation-detail-list .rec-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 140px;
  gap: 16px;
  align-items: start;
  min-height: 132px;
  padding: 14px;
  border: 1px solid #e3dbcf;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.dashboard-recommendation-detail-list .rec-image {
  width: 112px;
  height: 112px;
  aspect-ratio: auto;
  background: #f1ece4;
}

.dashboard-recommendation-detail-list .rec-image img,
.dashboard-recommendation-detail-list .rec-image .image-box,
.dashboard-recommendation-detail-list .rec-image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-recommendation-detail-list .rec-reason {
  display: block;
}

.dashboard-recommendation-detail-list .card-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  overflow: visible;
}

.dashboard-recommendation-detail-list .card-actions button {
  width: 100%;
  min-height: 36px;
}

@media (max-width: 960px) {
  .dashboard-recommendation-detail-modal {
    padding: 72px 14px 24px;
  }

  .dashboard-recommendation-detail-panel {
    max-height: 78vh;
  }

  .dashboard-recommendation-detail-list .rec-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dashboard-recommendation-detail-list .rec-image {
    width: 88px;
    height: 88px;
  }

  .dashboard-recommendation-detail-list .rec-card > div:last-child {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

body[data-view="dashboard"] .sidebar-keyword-rank {
  display: grid !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  margin-top: 10px !important;
  min-height: auto !important;
  max-height: none !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(216, 179, 107, 0.22) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .sidebar-rank-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(216, 179, 107, 0.18) !important;
}

body[data-view="dashboard"] .sidebar-rank-head span {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body[data-view="dashboard"] .sidebar-rank-head em {
  color: #d8b36b !important;
  font-size: 11px !important;
  font-style: normal !important;
  letter-spacing: 0.08em !important;
}

body[data-view="dashboard"] .sidebar-rank-list {
  display: grid !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  flex: 0 0 auto !important;
  gap: 4px !important;
  overflow: visible !important;
  padding-right: 2px !important;
}

body[data-view="dashboard"] .sidebar {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body[data-view="dashboard"] .sidebar-rank-item {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 30px !important;
  padding: 4px 0 !important;
  color: rgba(255, 255, 255, 0.84) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-view="dashboard"] .sidebar-rank-item:last-child {
  border-bottom: 0 !important;
}

body[data-view="dashboard"] .sidebar-rank-item span {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 20px !important;
  color: #d8b36b !important;
  background: rgba(216, 179, 107, 0.1) !important;
  border: 1px solid rgba(216, 179, 107, 0.26) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body[data-view="dashboard"] .sidebar-rank-item strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body[data-view="dashboard"] .sidebar-rank-item em {
  justify-self: end !important;
  color: #d8b36b !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

body:not([data-view="dashboard"]) .sidebar-keyword-rank {
  display: none !important;
}

/* Final social trend cards: match the reference layout with readable text and real sparklines. */
body[data-view="dashboard"] .reference-social-panel .dashboard-social-trends {
  display: block !important;
  height: 258px !important;
  max-height: 258px !important;
  padding: 12px 14px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  height: 100% !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-link {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 8px 10px !important;
  border: 1px solid #e8dfd4 !important;
  border-radius: 5px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform {
  width: 42px !important;
  height: 42px !important;
  border-radius: 7px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-platform svg {
  width: 24px !important;
  height: 24px !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-topline {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body strong {
  flex: 0 0 auto !important;
  display: inline !important;
  color: #15110e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body small {
  display: inline !important;
  min-width: 0 !important;
  color: #7d7469 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body em,
body[data-view="dashboard"] .reference-social-panel .dashboard-social-body b {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-style: normal !important;
  line-height: 1.1 !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body em {
  color: #15110e !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-body b {
  color: #7a7065 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

body[data-view="dashboard"] .reference-social-panel .dashboard-social-trend {
  justify-self: end !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  background: #edf6ea !important;
  color: #477348 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Final hero consultation box: keep the AI Buying Desk visible like the reference. */
body[data-view="dashboard"] .reference-hero {
  position: relative !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-panel {
  display: grid !important;
  position: absolute !important;
  top: 26px !important;
  right: 28px !important;
  z-index: 12 !important;
  width: clamp(320px, 30vw, 380px) !important;
  max-width: calc(100% - 56px) !important;
  height: 332px !important;
  min-height: 332px !important;
  max-height: 332px !important;
  grid-template-rows: auto 1fr auto auto !important;
  gap: 0 !important;
  padding: 20px 22px 14px !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  border: 1px solid rgba(213, 184, 124, 0.32) !important;
  border-radius: 4px !important;
  background: rgba(12, 14, 13, 0.92) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42) !important;
  color: #f6efe4 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-command-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 30px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(230, 213, 176, 0.18) !important;
}

body[data-view="dashboard"] .reference-hero .buyer-command-head span {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-hero .buyer-command-head strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #f5f8ef !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body[data-view="dashboard"] .reference-hero .buyer-command-head i {
  width: 9px !important;
  height: 9px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #79d989 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed {
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
  margin: 14px 0 10px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed p {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  row-gap: 3px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed p::before {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 50% 36%, #ecd7c1 0 21%, transparent 22%), radial-gradient(circle at 50% 88%, #75675c 0 32%, transparent 33%), #333934 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed b,
body[data-view="dashboard"] .reference-hero .buyer-chat-feed span {
  grid-column: 2 !important;
  min-width: 0 !important;
  white-space: normal !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed b {
  grid-row: 1 !important;
  color: #f2e6c8 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-feed span {
  grid-row: 2 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-action {
  justify-self: start !important;
  height: 36px !important;
  margin: 0 0 12px 40px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(211, 177, 103, 0.62) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #d8b46e !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

body[data-view="dashboard"] .reference-hero .buyer-command-grid,
body[data-view="dashboard"] .reference-hero .buyer-signal-strip {
  display: none !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-input {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  border: 1px solid rgba(231, 211, 170, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-input input {
  height: 34px !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 12px !important;
}

body[data-view="dashboard"] .reference-hero .buyer-chat-input button {
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 34px !important;
  border: 0 !important;
  background: #b49a68 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

@media (max-width: 1500px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: minmax(0, 1fr) minmax(320px, min(42vw, 380px)) !important;
    gap: clamp(18px, 2.4vw, 28px) !important;
  }

  body[data-view="dashboard"] .gallery-wall {
    display: none !important;
  }

  body[data-view="dashboard"] .reference-hero .buyer-chat-panel {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    justify-self: end !important;
    width: min(380px, 100%) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 860px) {
  body[data-view="dashboard"] .theme-noir.active {
    grid-template-columns: 1fr !important;
  }

  body[data-view="dashboard"] .reference-hero .buyer-chat-panel {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

body[data-view="dashboard"] .theme-noir.active {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.4vw, 28px) !important;
}

body[data-view="dashboard"] .gallery-wall {
  display: none !important;
}

/* The sidebar keyword ranking was removed from the dashboard reference layout. */
.sidebar-keyword-rank,
.sidebar-rank-list {
  display: none !important;
}

.module-search {
  display: block;
  min-width: min(360px, 42vw);
}

.module-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 12px;
}

.module-search input:focus {
  outline: 2px solid rgba(180, 112, 36, 0.34);
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .module-search {
    min-width: 100%;
    order: 3;
  }
}

/* Opportunity brand picker: warm, boutique-inspired treatment for the native filter. */
.brand-picker {
  position: relative;
  z-index: 8;
  width: min(280px, 28vw);
  min-width: 0;
}

.brand-picker-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.brand-picker-trigger {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #af8542;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 7px 18px rgba(75, 50, 23, 0.11), inset 0 0 0 3px rgba(255, 255, 255, 0.74);
  color: #241c15;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  text-align: left;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.brand-picker-trigger:hover,
.brand-picker.is-open .brand-picker-trigger {
  box-shadow: 0 10px 23px rgba(75, 50, 23, 0.17), inset 0 0 0 3px rgba(255, 255, 255, 0.82);
}

.brand-picker-trigger:focus-visible,
.brand-picker-option:focus-visible {
  outline: 2px solid rgba(175, 133, 66, 0.72);
  outline-offset: 3px;
}

.brand-picker-label,
.brand-picker-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-picker-tag {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.brand-picker-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #9b7338;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.brand-picker.is-open .brand-picker-chevron {
  transform: rotate(180deg);
}

.brand-picker-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: min(520px, 62vh);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(151, 113, 57, 0.6);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 36px rgba(63, 42, 21, 0.2);
}

.brand-picker-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(161, 126, 74, 0.17);
  background: transparent;
  color: #241c15;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 15px;
  text-align: left;
}

.brand-picker-option:last-child {
  border-bottom: 0;
}

.brand-picker-option:hover,
.brand-picker-option.is-selected {
  background: linear-gradient(90deg, rgba(238, 226, 204, 0.72), rgba(250, 247, 241, 0.62));
}

.brand-picker-count {
  min-width: 32px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(237, 230, 219, 0.82);
  color: #5d4528;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .opportunity-filters .brand-picker {
    width: 100%;
  }
}

.hot-new-arrivals-brand-select {
  display: block;
  flex: 0 1 280px;
  min-width: 220px;
}

.hot-new-arrivals-brand-select .brand-picker {
  width: 100%;
}

/* 新品揭秘：复用热销新品商品卡，只额外展示新品热度线索。 */
.new-product-reveal-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(231, 180, 89, 0.56);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(89, 31, 42, 0.94), rgba(31, 18, 25, 0.98));
  color: #ffe4aa;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.new-product-reveal-entry span:first-child {
  color: #ff8b5e;
  font-size: 16px;
}

.new-product-reveal-entry:hover,
.new-product-reveal-entry.active {
  border-color: #ffaf76;
  box-shadow: 0 0 0 3px rgba(247, 102, 69, 0.12), 0 12px 24px rgba(9, 6, 9, 0.26);
  transform: translateY(-1px);
}

#view-new-product-reveal {
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.new-product-reveal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(98, 60, 45, 0.2);
  background:
    radial-gradient(circle at 92% 4%, rgba(154, 78, 91, 0.2), transparent 27%),
    linear-gradient(130deg, #151113 0%, #23191a 46%, #141012 100%);
  color: #fff8ed;
}

.new-product-reveal-head .eyebrow {
  margin: 0 0 6px;
  color: #d6a862;
}

.new-product-reveal-head h2 {
  margin: 0;
  color: #fff3df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.new-product-reveal-head p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 246, 231, 0.68);
}

.new-product-reveal-signal {
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 188, 126, 0.36);
  background: rgba(7, 6, 8, 0.35);
  color: #ffd7a5;
  font-size: 13px;
  font-weight: 800;
}

.new-product-reveal-signal i {
  display: block;
  height: 28px;
  background: linear-gradient(135deg, transparent 0 17%, #f36c49 18% 22%, transparent 23% 34%, #f4a259 35% 39%, transparent 40% 52%, #ff7958 53% 57%, transparent 58% 70%, #ffc477 71% 75%, transparent 76%);
  opacity: 0.95;
}

.new-product-reveal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.new-product-reveal-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.new-product-reveal-summary div + div {
  border-left: 1px solid var(--line);
}

.new-product-reveal-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.new-product-reveal-summary strong {
  color: #a63e2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

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

.new-product-reveal-card {
  position: relative;
  overflow: hidden;
}

.new-product-reveal-card-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 0;
}

.new-product-reveal-heat {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(184, 55, 39, 0.3);
  border-radius: 999px;
  background: #fff0e9;
  color: #ab3a2a;
  font-size: 12px;
  font-weight: 850;
}

.new-product-reveal-heat.is-pending {
  border-color: rgba(97, 73, 53, 0.22);
  background: #f4f0e9;
  color: #756757;
}

.new-product-reveal-discovered {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

body[data-view="new-product-reveal"] .hot-new-arrival-card .hot-new-arrival-image {
  aspect-ratio: 4 / 5;
  height: auto;
}

body[data-view="new-product-reveal"] .hot-new-arrival-card .hot-new-arrival-image img,
body[data-view="new-product-reveal"] .hot-new-arrival-card .hot-new-arrival-image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 980px) {
  .new-product-reveal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .new-product-reveal-entry {
    padding: 0 10px;
  }

  .new-product-reveal-head {
    align-items: start;
    flex-direction: column;
    padding: 22px;
  }

  .new-product-reveal-summary,
  .new-product-reveal-list {
    grid-template-columns: 1fr;
  }

  .new-product-reveal-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* 新品揭秘：独立的“揭秘档案”视觉，不复用热销新品卡片排版。 */
body[data-view="new-product-reveal"] #view-new-product-reveal {
  max-width: none;
  padding: 0 18px 42px;
}

body[data-view="new-product-reveal"] .new-product-reveal-head {
  position: relative;
  min-height: 220px;
  margin: 0 -18px 20px;
  padding: 42px 48px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 17, 0.98) 0%, rgba(12, 14, 18, 0.88) 45%, rgba(12, 14, 18, 0.34) 100%),
    radial-gradient(circle at 78% 30%, rgba(202, 87, 59, 0.68), transparent 22%),
    linear-gradient(120deg, #151921, #4d1d22 58%, #ba6643);
}

body[data-view="new-product-reveal"] .new-product-reveal-head::after {
  position: absolute;
  right: 46px;
  bottom: -42px;
  color: rgba(255, 239, 207, 0.13);
  content: "DROP\A FILES";
  white-space: pre;
  font: 900 clamp(68px, 10vw, 156px) / .72 Georgia, serif;
  letter-spacing: -.08em;
  text-align: right;
  pointer-events: none;
}

body[data-view="new-product-reveal"] .new-product-reveal-head > * { position: relative; z-index: 1; }

body[data-view="new-product-reveal"] .new-product-reveal-summary {
  max-width: 740px;
  margin: -52px 36px 28px auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 38px rgba(28, 20, 16, 0.18);
}

body[data-view="new-product-reveal"] .new-product-reveal-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1540px;
  margin: 0 auto;
}

.reveal-dossier-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8cec0;
  border-radius: 0;
  background: #fbf8f1;
  box-shadow: 0 12px 28px rgba(43, 34, 26, 0.09);
}

.reveal-dossier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 39px;
  padding: 0 16px;
  border-bottom: 1px solid #e1d8ca;
  background: #f3eee4;
  color: #675946;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.reveal-dossier-source { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; letter-spacing: .02em; }

.reveal-dossier-heat {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 12px;
  color: #fff8ea;
  background: linear-gradient(112deg, #221d1c, #533034 68%, #9f5037);
}

.reveal-dossier-heat div { display: flex; align-items: baseline; gap: 5px; }
.reveal-dossier-heat span { font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .78; }
.reveal-dossier-heat strong { font: 800 32px/.9 Georgia, serif; color: #ffd995; }
.reveal-dossier-heat em { color: rgba(255, 242, 217, .72); font-size: 11px; font-style: normal; }
.reveal-dossier-heat p { max-width: 175px; margin: 0; color: rgba(255, 244, 225, .84); font-size: 11px; line-height: 1.35; text-align: right; }

.reveal-dossier-image {
  display: grid;
  min-height: 308px;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(255,255,255,.8), rgba(238,231,218,.7)),
    repeating-linear-gradient(45deg, rgba(116,94,69,.045) 0 1px, transparent 1px 10px);
}

.reveal-dossier-image img,
.reveal-dossier-image .image-fallback { width: 100%; height: 100%; min-height: 308px; object-fit: contain; mix-blend-mode: multiply; }
.reveal-dossier-body { display: grid; gap: 12px; padding: 17px 16px 18px; }
.reveal-dossier-labels { display: flex; justify-content: space-between; gap: 10px; color: #9e302a; font-size: 12px; font-weight: 850; }
.reveal-dossier-labels em { color: #827566; font-size: 11px; font-style: normal; font-weight: 650; }
.reveal-dossier-body h3 { min-height: 44px; margin: -5px 0 0; color: #171412; font: 800 19px/1.15 Georgia, "Songti SC", serif; }

.reveal-dossier-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #ddd2c2; }
.reveal-dossier-metrics span { display: grid; gap: 3px; padding: 8px 9px; border-right: 1px solid #ddd2c2; background: #f7f3eb; }
.reveal-dossier-metrics span:last-child { border-right: 0; }
.reveal-dossier-metrics em { color: #8b7a65; font-size: 10px; font-style: normal; font-weight: 700; }
.reveal-dossier-metrics b { color: #292019; font: 800 18px/1 Georgia, serif; }
.reveal-dossier-card .hot-new-arrival-facts { margin: 0; }
.reveal-dossier-card .reveal-dossier-media { display: grid; gap: 9px; }
.reveal-dossier-card .main-image-gallery { margin: 0; }
.reveal-dossier-card .hot-new-arrival-skus { margin: 0; }
.reveal-dossier-card .hot-new-arrival-tags { margin: 0; }
.reveal-dossier-card .card-actions { margin: 0; padding-top: 2px; border-top: 1px dashed #d9cfbf; }

@media (max-width: 980px) {
  body[data-view="new-product-reveal"] .new-product-reveal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body[data-view="new-product-reveal"] #view-new-product-reveal { padding-inline: 10px; }
  body[data-view="new-product-reveal"] .new-product-reveal-head { margin-inline: -10px; padding: 31px 20px; }
  body[data-view="new-product-reveal"] .new-product-reveal-head::after { right: 18px; font-size: 74px; }
  body[data-view="new-product-reveal"] .new-product-reveal-summary { margin: -25px 10px 22px; }
  body[data-view="new-product-reveal"] .new-product-reveal-list { grid-template-columns: 1fr; }
}

/* 最终视觉：新品情报发布会。 */
body[data-view="new-product-reveal"] {
  background: #090a0c;
}

body[data-view="new-product-reveal"] #view-new-product-reveal {
  min-height: 100vh;
  max-width: none;
  padding: 0 22px 48px;
  background:
    radial-gradient(circle at 75% 18%, rgba(126, 31, 18, .34), transparent 27%),
    linear-gradient(180deg, #070809 0%, #121012 48%, #0a0b0e 100%);
}

body[data-view="new-product-reveal"] .new-product-reveal-head {
  display: grid;
  grid-template-columns: minmax(350px, 1.2fr) minmax(460px, .8fr);
  align-items: center;
  min-height: 260px;
  margin: 0 -22px 24px;
  padding: 40px 56px 34px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, .98), rgba(10, 7, 8, .78) 51%, rgba(13, 7, 5, .92)),
    radial-gradient(circle at 63% 76%, rgba(254, 88, 21, .88) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 75, 16, .10) 25px 26px),
    linear-gradient(118deg, #050607 4%, #2a0807 55%, #7d210e);
}

body[data-view="new-product-reveal"] .new-product-reveal-head::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 125, 48, .12) 13%, transparent 13.4% 48%, rgba(255, 187, 99, .16) 48.4%, transparent 49%),
    linear-gradient(0deg, transparent 0 25%, rgba(255, 87, 23, .25) 25.5%, transparent 26%);
  opacity: .8;
  pointer-events: none;
}

body[data-view="new-product-reveal"] .new-product-reveal-head::after {
  right: auto;
  bottom: -28px;
  left: 48px;
  color: rgba(238, 121, 53, .1);
  content: "07.31";
  font-size: clamp(110px, 13vw, 210px);
  letter-spacing: -.1em;
  text-align: left;
}

body[data-view="new-product-reveal"] .new-product-reveal-head > div:first-child { position: relative; z-index: 2; }
body[data-view="new-product-reveal"] .new-product-reveal-head h2 { color: #fff1d5; font-size: clamp(46px, 5vw, 78px); letter-spacing: .06em; text-shadow: 0 0 30px rgba(254, 123, 46, .2); }
body[data-view="new-product-reveal"] .new-product-reveal-head .eyebrow { color: #ffb674; font-weight: 800; letter-spacing: .18em; }
body[data-view="new-product-reveal"] .new-product-reveal-head p:last-child { color: rgba(255, 235, 208, .68); }

.new-product-reveal-hero-tools {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: stretch;
  gap: 15px;
}

.reveal-signal-capsule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(100%, 270px);
  justify-self: center;
  min-width: 0;
  padding: 8px 15px;
  border: 1px solid rgba(255, 181, 104, .78);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(135, 29, 14, .88), rgba(18, 12, 12, .76));
  box-shadow: 0 0 0 4px rgba(251, 101, 38, .08), 0 0 36px rgba(246, 71, 20, .38);
  color: #ffddb6;
}

.reveal-signal-capsule span { font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.reveal-signal-capsule strong { color: #ffe1af; font: 800 28px/1 Georgia, serif; letter-spacing: .08em; }
.reveal-signal-capsule i { height: 2px; background: linear-gradient(90deg, transparent, #ff8f4b 22%, #ffd79a 50%, #ff5f2d 72%, transparent); }

body[data-view="new-product-reveal"] .new-product-reveal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(235, 182, 112, .42);
  border-radius: 10px;
  background: rgba(10, 10, 13, .64);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

body[data-view="new-product-reveal"] .new-product-reveal-summary div { display: grid; gap: 5px; padding: 16px 18px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary span { color: rgba(255, 224, 180, .71); font-size: 11px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary strong { color: #ffe0a2; font-size: 36px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary div + div { border-left-color: rgba(235, 182, 112, .28); }

body[data-view="new-product-reveal"] .new-product-reveal-list { max-width: 1560px; gap: 24px; }

.reveal-dossier-card {
  position: relative;
  border: 1px solid rgba(219, 162, 80, .6);
  border-radius: 15px 4px 15px 4px;
  background: linear-gradient(145deg, rgba(33, 30, 29, .98), rgba(13, 14, 17, .99));
  box-shadow: inset 0 0 0 3px rgba(255, 220, 158, .05), 0 20px 46px rgba(0, 0, 0, .45), 0 0 35px rgba(165, 47, 24, .14);
  color: #f8e8c9;
}

.reveal-dossier-card::before,
.reveal-dossier-card::after {
  position: absolute;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-color: #ffbe68;
  content: "";
  opacity: .72;
  pointer-events: none;
}
.reveal-dossier-card::before { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.reveal-dossier-card::after { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }

.reveal-dossier-topline { position: relative; z-index: 2; border-bottom-color: rgba(239, 189, 108, .32); background: rgba(8, 9, 11, .55); color: #e7bd7e; }
.reveal-dossier-source { color: rgba(255, 227, 180, .65); }

.reveal-dossier-stage {
  position: relative;
  display: grid;
  /* 固定主视觉比例：不同来源图片的原始尺寸不能影响同一行卡片的信息起始位置。 */
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(circle at 65% 46%, rgba(246, 117, 44, .15), transparent 33%), linear-gradient(135deg, #171719, #282321 52%, #100f11);
}

.reveal-dossier-stage::after { position: absolute; inset: 0; border-bottom: 1px solid rgba(255, 192, 103, .18); background: repeating-linear-gradient(90deg, transparent 0 35px, rgba(255, 192, 103, .08) 36px); content: ""; pointer-events: none; }
.reveal-dossier-stage .reveal-dossier-image { min-height: 0; width: 100%; height: 100%; background: transparent; }
.reveal-dossier-stage .reveal-dossier-image img,
.reveal-dossier-stage .reveal-dossier-image .image-fallback { min-height: 0; width: 100%; height: 100%; mix-blend-mode: normal; }

.reveal-heat-orbit {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 18px;
  display: grid;
  width: 100px;
  height: 100px;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(#ff5a2c calc(var(--heat) * 1%), #f2c46c calc(var(--heat) * 1%) calc(var(--heat) * 1% + 6%), rgba(255, 220, 162, .12) 0);
  box-shadow: 0 0 22px rgba(255, 75, 25, .45);
  text-align: center;
}
.reveal-heat-orbit::before { position: absolute; inset: 5px; border: 1px solid rgba(255, 215, 151, .46); border-radius: 50%; background: radial-gradient(circle, rgba(105, 23, 17, .94), rgba(18, 17, 18, .98)); content: ""; }
.reveal-heat-orbit span, .reveal-heat-orbit strong, .reveal-heat-orbit em { position: relative; z-index: 1; }
.reveal-heat-orbit span { color: #ffc387; font-size: 10px; font-weight: 800; }
.reveal-heat-orbit strong { color: #ffe0a6; font: 800 38px/.9 Georgia, serif; }
.reveal-heat-orbit em { color: rgba(255, 231, 195, .72); font-size: 9px; font-style: normal; }
.reveal-stage-status { position: absolute; z-index: 3; right: 14px; bottom: 11px; max-width: 180px; padding: 5px 8px; border: 1px solid rgba(244, 192, 111, .3); background: rgba(10, 10, 12, .68); color: #f6cf98; font-size: 10px; text-align: right; }

.reveal-dossier-body { position: relative; z-index: 2; flex: 1; gap: 12px; background: linear-gradient(180deg, rgba(17, 17, 19, .82), rgba(11, 12, 14, .98)); }
.reveal-dossier-labels { color: #ffb365; }
.reveal-dossier-labels em { color: rgba(246, 224, 192, .58); }
.reveal-dossier-body h3 { color: #fff0d4; font-size: 20px; }
.reveal-dossier-metrics { border-color: rgba(240, 184, 101, .35); }
.reveal-dossier-metrics span { border-right-color: rgba(240, 184, 101, .28); background: rgba(54, 45, 37, .52); }
.reveal-dossier-metrics em { color: rgba(248, 217, 170, .65); }
.reveal-dossier-metrics b { color: #ffd08b; }
.reveal-dossier-card .hot-new-arrival-facts span { border-color: rgba(240, 184, 101, .25); background: rgba(55, 46, 38, .5); color: #fff0d4; }
.reveal-dossier-card .hot-new-arrival-facts em { color: rgba(248, 217, 170, .65); }

.reveal-dossier-media { display: grid; gap: 9px; }
.reveal-media-group { display: grid; gap: 5px; }
.reveal-media-group > span { color: #dcb77f; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.reveal-dossier-card .main-image-gallery, .reveal-dossier-card .hot-new-arrival-sku-strip { margin: 0; }
.reveal-dossier-card .main-image-thumb, .reveal-dossier-card .hot-new-arrival-sku { border-color: rgba(237, 182, 101, .36); background: #282322; }
.reveal-dossier-card .hot-new-arrival-sku em { color: #e8c188; }
.reveal-dossier-card .hot-new-arrival-skus > strong { display: none; }
.reveal-dossier-card .hot-new-arrival-tags span { border-color: rgba(238, 181, 100, .28); background: rgba(68, 51, 38, .5); color: #e6c18d; }
.reveal-dossier-card .card-actions { border-top-color: rgba(242, 182, 98, .28); }
.reveal-dossier-card .evergreen-link { border-color: rgba(238, 181, 100, .6); color: #f6d6a0; background: rgba(9, 10, 12, .4); }
.reveal-dossier-card .listing-btn { border-color: #dd6d35; background: linear-gradient(110deg, #78211f, #b23922); color: #fff0cf; box-shadow: 0 0 20px rgba(207, 58, 26, .22); }

/* 新品揭秘白底版本：保留橙金热度信号，页面与档案主体改为明亮底色。 */
body[data-view="new-product-reveal"] {
  background: #ffffff;
}

body[data-view="new-product-reveal"] #view-new-product-reveal {
  background:
    radial-gradient(circle at 78% 12%, rgba(250, 160, 85, .17), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #ffffff 44%, #faf7f2 100%);
}

body[data-view="new-product-reveal"] .new-product-reveal-head {
  background:
    linear-gradient(98deg, rgba(255, 253, 249, .94), rgba(255, 245, 233, .91) 54%, rgba(250, 218, 184, .94)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(192, 100, 46, .10) 25px 26px);
  border-bottom: 1px solid rgba(178, 106, 53, .22);
}

body[data-view="new-product-reveal"] .new-product-reveal-head h2 { color: #2e211a; text-shadow: none; }
body[data-view="new-product-reveal"] .new-product-reveal-head .eyebrow { color: #a64c24; }
body[data-view="new-product-reveal"] .new-product-reveal-head p:last-child { color: #775d4b; }
body[data-view="new-product-reveal"] .new-product-reveal-head::before { opacity: .4; }
body[data-view="new-product-reveal"] .new-product-reveal-head::after { color: rgba(174, 77, 32, .08); }

.reveal-signal-capsule {
  background: linear-gradient(110deg, #4a1c16, #8d3420);
  box-shadow: 0 0 0 4px rgba(201, 88, 34, .08), 0 0 28px rgba(221, 111, 50, .23);
}

body[data-view="new-product-reveal"] .new-product-reveal-summary {
  border-color: rgba(181, 110, 51, .35);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 30px rgba(88, 47, 25, .12);
}
body[data-view="new-product-reveal"] .new-product-reveal-summary span { color: #85654d; }
body[data-view="new-product-reveal"] .new-product-reveal-summary strong { color: #9e3d1f; }
body[data-view="new-product-reveal"] .new-product-reveal-summary div + div { border-left-color: rgba(181, 110, 51, .22); }

.reveal-dossier-card {
  border-color: rgba(180, 113, 55, .54);
  background: linear-gradient(145deg, #fffefb, #f8f3eb);
  box-shadow: inset 0 0 0 3px rgba(143, 83, 39, .035), 0 16px 36px rgba(71, 42, 22, .13);
  color: #372820;
}
.reveal-dossier-topline { border-bottom-color: rgba(180, 113, 55, .28); background: #fffaf3; color: #8c552a; }
.reveal-dossier-source { color: #8d725d; }
.reveal-dossier-stage { background: linear-gradient(135deg, #fffdf9, #f5eee4 55%, #fffaf6); }
.reveal-dossier-stage::after { border-bottom-color: rgba(180, 113, 55, .16); background: repeating-linear-gradient(90deg, transparent 0 35px, rgba(180, 113, 55, .05) 36px); }
.reveal-stage-status { border-color: rgba(145, 91, 46, .32); background: rgba(69, 49, 35, .8); color: #ffe2b4; }
.reveal-dossier-body { background: linear-gradient(180deg, #fffdf9, #f8f3eb); }
.reveal-dossier-labels { color: #a13f23; }
.reveal-dossier-labels em { color: #806b5b; }
.reveal-dossier-body h3 { color: #2c211b; }
.reveal-dossier-metrics { border-color: rgba(181, 113, 55, .38); }
.reveal-dossier-metrics span { border-right-color: rgba(181, 113, 55, .26); background: #fdf8f0; }
.reveal-dossier-metrics em { color: #8c7058; }
.reveal-dossier-metrics b { color: #6f351e; }
.reveal-dossier-card .hot-new-arrival-facts span { border-color: rgba(181, 113, 55, .25); background: #fffaf2; color: #3c2b21; }
.reveal-dossier-card .hot-new-arrival-facts em { color: #8a715b; }
.reveal-media-group > span { color: #936233; }
.reveal-dossier-card .main-image-thumb, .reveal-dossier-card .hot-new-arrival-sku { border-color: rgba(181, 113, 55, .32); background: #fff; }
.reveal-dossier-card .hot-new-arrival-sku em { color: #7b4b2a; }
.reveal-dossier-card .hot-new-arrival-tags span { border-color: rgba(181, 113, 55, .25); background: #f7ecdc; color: #74451f; }
.reveal-dossier-card .card-actions { border-top-color: rgba(181, 113, 55, .28); }
.reveal-dossier-card .evergreen-link { border-color: rgba(172, 104, 48, .68); color: #73441f; background: #fffdf8; }
.reveal-dossier-card .listing-btn { color: #fff8eb; }

@media (max-width: 980px) {
  body[data-view="new-product-reveal"] .new-product-reveal-head { grid-template-columns: 1fr; gap: 22px; }
  .new-product-reveal-hero-tools { max-width: 620px; width: 100%; justify-self: center; }
}

@media (max-width: 720px) {
  body[data-view="new-product-reveal"] #view-new-product-reveal { padding-inline: 10px; }
  body[data-view="new-product-reveal"] .new-product-reveal-head { margin-inline: -10px; padding: 30px 20px 24px; }
  body[data-view="new-product-reveal"] .new-product-reveal-head h2 { font-size: 45px; }
  body[data-view="new-product-reveal"] .new-product-reveal-summary strong { font-size: 28px; }
  body[data-view="new-product-reveal"] .new-product-reveal-summary div { padding: 12px 10px; }
}

/* 新品揭秘：箱包情报中枢，商品档案为页面主内容，趋势信号位于辅助侧栏。 */
body[data-view="new-product-reveal"] {
  background: #eef3f9;
}

/* 新品揭秘作为独立情报工作台，不占用全局顶部导航首屏。 */
body[data-view="new-product-reveal"] .reference-topbar {
  display: none;
}

body[data-view="new-product-reveal"] #view-new-product-reveal {
  padding: 0 22px 34px;
  background:
    radial-gradient(circle at 82% 5%, rgba(48, 105, 255, .09), transparent 22%),
    linear-gradient(180deg, #f9fbfe 0%, #eef3f9 100%);
}

body[data-view="new-product-reveal"] .new-product-reveal-head {
  display: grid;
  grid-template-columns: minmax(230px, .76fr) minmax(520px, 1.24fr);
  min-height: 132px;
  margin: 0 -22px 14px;
  padding: 22px 44px;
  border-bottom: 1px solid #dce5f0;
  background: #fff;
}

body[data-view="new-product-reveal"] .new-product-reveal-head::before,
body[data-view="new-product-reveal"] .new-product-reveal-head::after { display: none; }
body[data-view="new-product-reveal"] .new-product-reveal-head h2 { color: #0f1e33; font-family: inherit; font-size: 34px; letter-spacing: -.04em; }
body[data-view="new-product-reveal"] .new-product-reveal-head .eyebrow { margin-bottom: 4px; color: #1e63ec; font-size: 11px; letter-spacing: .14em; }
body[data-view="new-product-reveal"] .new-product-reveal-head p:last-child { max-width: 470px; margin-top: 8px; color: #65758a; font-size: 13px; }

.new-product-reveal-hero-tools { grid-template-columns: 174px 1fr; align-items: center; gap: 16px; }
.reveal-signal-capsule { width: 100%; padding: 9px 13px; border-color: #1760df; background: linear-gradient(120deg, #092653, #1555c1); box-shadow: none; }
.reveal-signal-capsule strong { color: #fff; font-size: 24px; }
.reveal-signal-capsule span { color: #bed8ff; font-size: 9px; }
.reveal-signal-capsule i { background: linear-gradient(90deg, transparent, #85b7ff, transparent); }
body[data-view="new-product-reveal"] .new-product-reveal-summary { border-color: #dce5f0; border-radius: 10px; background: #f8fbff; box-shadow: none; }
body[data-view="new-product-reveal"] .new-product-reveal-summary div { padding: 13px 17px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary span { color: #718097; }
body[data-view="new-product-reveal"] .new-product-reveal-summary strong { color: #132a4c; font-family: inherit; font-size: 30px; }

.new-product-reveal-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; max-width: 1600px; margin: 0 auto; }
.reveal-product-zone { min-width: 0; }
.reveal-product-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 4px 9px; }
.reveal-toolbar-label { color: #132a4c; font-size: 17px; font-weight: 850; }
.reveal-toolbar-note { color: #8491a4; font-size: 11px; }
body[data-view="new-product-reveal"] .new-product-reveal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; max-width: none; margin: 0; }

.reveal-dossier-card {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(22, 49, 88, .08);
  color: #1e2d40;
}
.reveal-dossier-card::before, .reveal-dossier-card::after { display: none; }
.reveal-dossier-topline { min-height: 31px; padding: 0 11px; border-bottom-color: #e6edf5; background: #fff; color: #708096; font-size: 9px; letter-spacing: .04em; }
.reveal-dossier-source { color: #7990af; }
.reveal-dossier-stage { aspect-ratio: 4 / 3; min-height: 0; background: linear-gradient(145deg, #f7f9fc, #edf1f6); }
.reveal-dossier-stage::after { border-bottom-color: rgba(25, 75, 135, .10); background: repeating-linear-gradient(90deg, transparent 0 35px, rgba(46, 94, 151, .035) 36px); }
.reveal-dossier-stage .reveal-dossier-image { height: 100%; }
.reveal-heat-orbit { top: 12px; right: 12px; left: auto; width: 67px; height: 67px; background: conic-gradient(#fb4d40 calc(var(--heat) * 1%), #ff9b75 calc(var(--heat) * 1%) calc(var(--heat) * 1% + 7%), rgba(255,255,255,.7) 0); box-shadow: 0 5px 14px rgba(226, 67, 51, .22); }
.reveal-heat-orbit::before { inset: 4px; border-color: rgba(255, 255, 255, .78); background: #fff; }
.reveal-heat-orbit span { color: #77869b; font-size: 7px; }
.reveal-heat-orbit strong { color: #142746; font-family: inherit; font-size: 24px; }
.reveal-heat-orbit em { color: #7d8ca0; font-size: 7px; }
.reveal-stage-status { right: 9px; bottom: 8px; padding: 4px 6px; border: 0; background: rgba(15, 41, 81, .82); color: #e9f2ff; font-size: 8px; }
.reveal-dossier-body { gap: 8px; padding: 10px 11px 11px; background: #fff; }
.reveal-dossier-labels { color: #1e63ec; font-size: 11px; }
.reveal-dossier-labels em { color: #8491a4; font-size: 9px; }
.reveal-dossier-body h3 { min-height: 38px; margin: -2px 0 0; color: #16263d; font-family: inherit; font-size: 14px; line-height: 1.35; }
.reveal-dossier-metrics { border-color: #e1e8f1; }
.reveal-dossier-metrics span { padding: 6px 7px; border-right-color: #e1e8f1; background: #f8fafc; }
.reveal-dossier-metrics em { color: #7f8da0; font-size: 8px; }
.reveal-dossier-metrics b { color: #172c4c; font-family: inherit; font-size: 14px; }
.reveal-dossier-card .hot-new-arrival-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.reveal-dossier-card .hot-new-arrival-facts span { padding: 5px 6px; border-color: #e3eaf2; border-radius: 3px; background: #fff; color: #26364c; font-size: 10px; }
.reveal-dossier-card .hot-new-arrival-facts em { color: #8896a8; font-size: 8px; }
.reveal-dossier-media { gap: 6px; }
.reveal-media-group { gap: 3px; }
.reveal-media-group > span { color: #718097; font-size: 9px; letter-spacing: .04em; }
.reveal-dossier-card .main-image-gallery, .reveal-dossier-card .hot-new-arrival-sku-strip { gap: 4px; }
.reveal-dossier-card .main-image-thumb, .reveal-dossier-card .hot-new-arrival-sku { border-color: #dfe7f0; border-radius: 3px; background: #f7f9fb; }
.reveal-dossier-card .hot-new-arrival-sku em { color: #6d7e94; font-size: 8px; }
.reveal-dossier-card .hot-new-arrival-tags { display: none; }
.reveal-dossier-card .card-actions { gap: 6px; padding-top: 8px; border-top-color: #e6edf5; }
.reveal-dossier-card .evergreen-link { border-color: #d8e1ec; color: #55708e; background: #fff; }
.reveal-dossier-card .listing-btn { border-color: #1760df; background: #1760df; color: #fff; box-shadow: none; }

.reveal-signal-rail { display: grid; align-content: start; gap: 12px; }
.reveal-rail-panel { overflow: hidden; padding: 13px 12px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(22, 49, 88, .055); }
.reveal-rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.reveal-rail-head h3 { margin: 0; color: #142846; font-size: 15px; }
.reveal-rail-head span { color: #2c6be8; font-size: 9px; }
.reveal-rail-rank-row { display: grid; grid-template-columns: 17px minmax(0, 1fr) 58px 22px; align-items: center; gap: 5px; min-height: 26px; }
.reveal-rail-rank-row > b, .reveal-rail-search-row > b { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #edf3ff; color: #2766df; font-size: 9px; }
.reveal-rail-rank-row > span { overflow: hidden; color: #35475e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reveal-rail-rank-row i, .reveal-rail-search-row i { display: block; height: 4px; overflow: hidden; border-radius: 99px; background: #e9eef5; }
.reveal-rail-rank-row i em, .reveal-rail-search-row i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1760df, #76a4ff); }
.reveal-rail-rank-row strong { color: #172c4d; font-size: 10px; text-align: right; }
.reveal-rail-mini-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-height: 32px; padding: 6px 0; border-top: 1px solid #edf1f6; }
.reveal-rail-mini-row span { overflow: hidden; color: #35475e; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.reveal-rail-mini-row strong { color: #f05242; font-size: 11px; }
.reveal-rail-mini-row em { grid-column: 1 / -1; overflow: hidden; color: #8491a4; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.reveal-rail-search-row { display: grid; grid-template-columns: 17px minmax(0, 1fr) 62px; align-items: center; gap: 6px; min-height: 27px; }
.reveal-rail-search-row span { overflow: hidden; color: #40516a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1200px) {
  .new-product-reveal-workbench { grid-template-columns: 1fr; }
  .reveal-signal-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body[data-view="new-product-reveal"] .new-product-reveal-head { grid-template-columns: 1fr; padding: 18px 24px; }
  .new-product-reveal-hero-tools { grid-template-columns: 150px 1fr; }
  body[data-view="new-product-reveal"] .new-product-reveal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body[data-view="new-product-reveal"] #view-new-product-reveal { padding-inline: 10px; }
  body[data-view="new-product-reveal"] .new-product-reveal-head { margin-inline: -10px; padding-inline: 16px; }
  .new-product-reveal-hero-tools, .reveal-signal-rail { grid-template-columns: 1fr; }
  .reveal-product-toolbar { align-items: start; flex-direction: column; gap: 3px; }
  body[data-view="new-product-reveal"] .new-product-reveal-list { grid-template-columns: 1fr; }
}

/* 新品揭秘暖色点缀：酒红、焦糖和皮革浅棕，统一箱包情报台的视觉语言。 */
body[data-view="new-product-reveal"] {
  --reveal-wine: #8c3028;
  --reveal-wine-deep: #4a1c1a;
  --reveal-leather: #bd693d;
  --reveal-caramel: #d7a060;
  background: #f5f1eb;
}
body[data-view="new-product-reveal"] #view-new-product-reveal {
  background:
    radial-gradient(circle at 82% 5%, rgba(183, 102, 62, .10), transparent 22%),
    linear-gradient(180deg, #fcfaf7 0%, #f5f1eb 100%);
}
body[data-view="new-product-reveal"] .new-product-reveal-head { border-bottom-color: #eaded1; background: #fffdfa; }
body[data-view="new-product-reveal"] .new-product-reveal-head h2,
.reveal-toolbar-label,
.reveal-dossier-body h3,
.reveal-dossier-metrics b,
.reveal-rail-head h3,
.reveal-rail-rank-row strong { color: #32221f; }
body[data-view="new-product-reveal"] .new-product-reveal-head .eyebrow,
.reveal-dossier-labels,
.reveal-rail-head span { color: var(--reveal-wine); }
body[data-view="new-product-reveal"] .new-product-reveal-summary { border-color: #eaded1; background: #fffaf4; }
body[data-view="new-product-reveal"] .new-product-reveal-summary strong { color: var(--reveal-wine); }
.reveal-signal-capsule { border-color: var(--reveal-wine); background: linear-gradient(120deg, var(--reveal-wine-deep), var(--reveal-wine) 62%, var(--reveal-leather)); }
.reveal-signal-capsule i { background: linear-gradient(90deg, transparent, #f5cd9f, transparent); }
.reveal-dossier-card,
.reveal-rail-panel { border-color: #e6d8ca; box-shadow: 0 7px 18px rgba(71, 43, 28, .075); }
.reveal-dossier-topline { border-bottom-color: #efe5db; }
.reveal-dossier-stage { background: linear-gradient(145deg, #fcfaf7, #f2ebe4); }
.reveal-dossier-stage::after { border-bottom-color: rgba(126, 72, 42, .10); background: repeating-linear-gradient(90deg, transparent 0 35px, rgba(126, 72, 42, .035) 36px); }
.reveal-heat-orbit { background: conic-gradient(var(--reveal-wine) calc(var(--heat) * 1%), var(--reveal-leather) calc(var(--heat) * 1%) calc(var(--heat) * 1% + 7%), rgba(255,255,255,.7) 0); box-shadow: 0 5px 14px rgba(140, 48, 40, .20); }
.reveal-heat-orbit strong { color: var(--reveal-wine-deep); }
.reveal-stage-status { background: rgba(74, 28, 26, .84); color: #fff5ea; }
.reveal-dossier-metrics,
.reveal-dossier-card .hot-new-arrival-facts span { border-color: #eaded1; }
.reveal-dossier-metrics span { border-right-color: #eaded1; background: #fffaf4; }
.reveal-dossier-card .hot-new-arrival-facts span,
.reveal-dossier-card .main-image-thumb,
.reveal-dossier-card .hot-new-arrival-sku { background: #fffdfa; }
.reveal-dossier-card .main-image-thumb,
.reveal-dossier-card .hot-new-arrival-sku { border-color: #eaded1; }
.reveal-dossier-card .card-actions { border-top-color: #efe5db; }
.reveal-dossier-card .listing-btn { border-color: var(--reveal-wine); background: var(--reveal-wine); }
.reveal-dossier-card .listing-btn:hover { border-color: #6f221e; background: #6f221e; }
.reveal-dossier-card .evergreen-link { border-color: #e5d5c7; color: #765244; background: #fffdfa; }
.reveal-rail-rank-row > b,
.reveal-rail-search-row > b { background: #f8e9dc; color: var(--reveal-wine); }
.reveal-rail-rank-row i,
.reveal-rail-search-row i { background: #f0e5da; }
.reveal-rail-rank-row i em,
.reveal-rail-search-row i em { background: linear-gradient(90deg, var(--reveal-wine), var(--reveal-caramel)); }
.reveal-rail-mini-row strong { color: var(--reveal-wine); }
.reveal-rail-mini-row { border-top-color: #f1e9e1; }

/* 每页两行紧凑商品档案，让商品矩阵与右侧情报栏成为一个完整画面。 */
.reveal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 13px;
  padding: 0 12px;
  border: 1px solid #e6d8ca;
  border-radius: 9px;
  background: rgba(255, 253, 250, .82);
}
.reveal-pagination-copy { color: #876f64; font-size: 11px; }
.reveal-pagination-actions { display: flex; align-items: center; gap: 8px; }
.reveal-pagination-actions strong { min-width: 52px; color: #4a1c1a; font-size: 12px; text-align: center; }
.reveal-pagination-actions strong em { color: #af9384; font-style: normal; font-weight: 650; }
.reveal-page-btn {
  min-width: 58px;
  height: 27px;
  border: 1px solid #dfcdbf;
  border-radius: 4px;
  background: #fffdfa;
  color: #785044;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.reveal-page-btn:not(:disabled):hover { border-color: var(--reveal-wine); background: #fbf0e9; color: var(--reveal-wine); }
.reveal-page-btn:disabled { opacity: .38; cursor: default; }

@media (min-width: 1201px) {
  .new-product-reveal-workbench { grid-template-columns: minmax(0, 1fr) 304px; gap: 18px; }
  .reveal-signal-rail {
    align-self: stretch;
    grid-template-rows: 1.12fr 1fr .9fr;
    min-height: 0;
  }
  .reveal-rail-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .reveal-pagination { align-items: flex-start; flex-direction: column; gap: 8px; padding: 9px 10px; }
  .reveal-pagination-actions { width: 100%; justify-content: space-between; }
}

/* 热销新品：参照热搜款式的紧凑商品池，优先保证一屏可浏览更多商品。 */
body[data-view="hot-new-arrivals"] .hot-new-arrivals-list {
  width: min(100%, 1680px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card {
  min-width: 0;
  min-height: 0;
  padding: 9px;
  border-color: rgba(68, 45, 34, .20);
  box-shadow: 0 5px 14px rgba(45, 31, 25, .055);
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .hot-new-arrival-image {
  aspect-ratio: 1 / .76 !important;
  border: 1px solid #eee8e1;
  background: #fff !important;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-meta {
  min-height: 22px;
  padding: 8px 0 0;
  font-size: 10px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card > strong {
  display: -webkit-box;
  min-height: 35px;
  padding: 0;
  overflow: hidden;
  color: #201b18;
  font-size: 13px;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-facts,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .brand-series-detail {
  gap: 5px;
  padding: 7px 0 0;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-facts span,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .brand-series-detail span {
  min-height: 38px;
  padding: 5px 6px;
  font-size: 10px;
  line-height: 1.2;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-facts em,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .brand-series-detail em {
  margin-bottom: 2px;
  font-size: 8px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .main-image-gallery {
  min-height: 39px;
  gap: 4px;
  padding: 7px 0 0;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .main-image-thumb,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .color-swatch {
  flex-basis: 35px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .main-image-thumb img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .color-swatch img {
  width: 35px;
  height: 35px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-skus,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .series-asset-skus {
  padding: 7px 0 0;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-skus > strong {
  margin-bottom: 4px;
  font-size: 10px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-sku-strip,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .color-swatch-strip {
  min-height: 42px;
  gap: 4px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-sku {
  flex-basis: 39px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-sku img,
body[data-view="hot-new-arrivals"] .hot-new-arrival-sku .image-fallback {
  width: 39px;
  height: 39px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-sku em,
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .color-swatch em {
  display: none;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-tags {
  min-height: 0;
  max-height: 26px;
  padding: 7px 0 0;
  overflow: hidden;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-tags span {
  padding: 4px 6px;
  font-size: 9px;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  /* 卡片高度按同一网格行拉齐，操作区始终贴住底部。 */
  margin-top: auto;
  padding: 8px 0 0;
  border-top: 1px dashed #ded3c7;
}
body[data-view="hot-new-arrivals"] .hot-new-arrival-card .card-actions > * {
  min-width: 0;
  min-height: 29px;
  padding: 0 5px;
  justify-content: center;
  font-size: 10px;
  white-space: nowrap;
}
body[data-view="hot-new-arrivals"] .list-load-more { min-height: 42px; }

@media (max-width: 1540px) {
  body[data-view="hot-new-arrivals"] .hot-new-arrivals-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  body[data-view="hot-new-arrivals"] .hot-new-arrivals-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body[data-view="hot-new-arrivals"] .hot-new-arrivals-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body[data-view="hot-new-arrivals"] .hot-new-arrivals-list { grid-template-columns: 1fr; }
}

/* 新品揭秘：同一页展示三列两行，压缩图组而不删减商品、SKU 和刊登信息。 */
body[data-view="new-product-reveal"] .reveal-dossier-topline {
  min-height: 26px;
  padding-inline: 9px;
}
body[data-view="new-product-reveal"] .reveal-dossier-stage {
  aspect-ratio: 16 / 9;
}
body[data-view="new-product-reveal"] .reveal-heat-orbit {
  width: 57px;
  height: 57px;
  top: 9px;
  right: 9px;
}
body[data-view="new-product-reveal"] .reveal-heat-orbit strong { font-size: 20px; }
body[data-view="new-product-reveal"] .reveal-dossier-body {
  gap: 6px;
  padding: 8px 9px 9px;
}
body[data-view="new-product-reveal"] .reveal-dossier-labels { font-size: 10px; }
body[data-view="new-product-reveal"] .reveal-dossier-body h3 {
  min-height: 31px;
  font-size: 13px;
  line-height: 1.24;
}
body[data-view="new-product-reveal"] .reveal-dossier-metrics span { padding: 5px 6px; }
body[data-view="new-product-reveal"] .reveal-dossier-metrics b { font-size: 13px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-facts {
  gap: 4px;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-facts span {
  min-height: 34px;
  padding: 4px 5px;
  font-size: 9px;
}
body[data-view="new-product-reveal"] .reveal-dossier-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
body[data-view="new-product-reveal"] .reveal-media-group { min-width: 0; gap: 2px; }
body[data-view="new-product-reveal"] .reveal-media-group > span { font-size: 8px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-gallery,
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku-strip {
  gap: 3px;
  padding-bottom: 0;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch {
  flex-basis: 32px;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb img,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch img {
  width: 32px;
  height: 32px;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-skus { padding: 0; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-skus > strong { display: none; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku { flex-basis: 38px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku img,
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku .image-fallback {
  width: 38px;
  height: 38px;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku em { display: none; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions {
  gap: 5px;
  padding-top: 6px;
}
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions > * {
  min-height: 26px;
  padding-inline: 7px;
  font-size: 9px;
}

/* 新品揭秘最终版：沿用情报平台的紧凑骨架，仅切换为箱包暖色体系。 */
body[data-view="new-product-reveal"] .new-product-reveal-head {
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 78px;
  margin-bottom: 9px;
  padding: 9px 18px;
  border: 1px solid #ecdfd2;
  border-radius: 10px;
  background: #fffdfa;
}
body[data-view="new-product-reveal"] .reveal-title-block { align-self: center; }
body[data-view="new-product-reveal"] .new-product-reveal-head .eyebrow { display: none; }
body[data-view="new-product-reveal"] .new-product-reveal-head h2 { margin: 0; font-size: 25px; letter-spacing: -.05em; }
body[data-view="new-product-reveal"] .new-product-reveal-hero-tools {
  display: grid;
  grid-template-columns: minmax(310px, 1fr);
  gap: 12px;
}
body[data-view="new-product-reveal"] .new-product-reveal-summary { height: 100%; border-radius: 8px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary div { display: flex; align-items: center; gap: 8px; padding: 8px 13px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary span { font-size: 10px; }
body[data-view="new-product-reveal"] .new-product-reveal-summary strong { font-size: 24px; }
body[data-view="new-product-reveal"] .reveal-signal-capsule {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 0;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 8px;
}
body[data-view="new-product-reveal"] .reveal-signal-capsule span { flex: 0 0 auto; font-size: 10px; font-weight: 800; }
body[data-view="new-product-reveal"] .reveal-signal-capsule strong {
  overflow: hidden;
  margin-left: 13px;
  color: #fff6ea;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reveal-filter-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid #eaded1;
  border-radius: 8px;
  background: rgba(255, 253, 250, .9);
}
.reveal-filter-bar label { display: flex; align-items: center; gap: 7px; color: #705f58; font-size: 10px; font-weight: 750; }
.reveal-filter-bar select {
  min-width: 130px;
  height: 28px;
  border: 1px solid #e5d5c7;
  border-radius: 5px;
  background: #fffdfa;
  color: #4c332c;
  font: inherit;
  font-size: 10px;
  outline: none;
  padding-inline: 8px;
}
.reveal-filter-bar select:focus { border-color: var(--reveal-wine); box-shadow: 0 0 0 2px rgba(140, 48, 40, .10); }
.reveal-filter-updated { margin-left: auto; color: #9a8275; font-size: 10px; }
body[data-view="new-product-reveal"] .reveal-product-toolbar { min-height: 28px; padding-bottom: 7px; }
body[data-view="new-product-reveal"] .reveal-toolbar-label { font-size: 16px; }
body[data-view="new-product-reveal"] .new-product-reveal-list { gap: 11px; }
body[data-view="new-product-reveal"] .reveal-dossier-card {
  border-color: #e6d8ca;
  border-radius: 9px;
  box-shadow: 0 6px 15px rgba(69, 38, 24, .075);
}
body[data-view="new-product-reveal"] .reveal-dossier-stage { aspect-ratio: 2 / 1; }
body[data-view="new-product-reveal"] .reveal-hot-chip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  padding: 5px 10px 5px 8px;
  border-radius: 0 0 8px 0;
  background: linear-gradient(90deg, var(--reveal-wine), #b85236);
  color: #fff8ef;
  font-size: 9px;
  font-weight: 850;
}
body[data-view="new-product-reveal"] .reveal-heat-orbit { width: 62px; height: 62px; top: 11px; right: 11px; }
body[data-view="new-product-reveal"] .reveal-heat-orbit strong { font-size: 23px; }
body[data-view="new-product-reveal"] .reveal-dossier-body { padding: 8px 10px 9px; }
body[data-view="new-product-reveal"] .reveal-dossier-labels { font-size: 10px; }
body[data-view="new-product-reveal"] .reveal-dossier-body h3 { min-height: 31px; font-size: 13px; }
body[data-view="new-product-reveal"] .reveal-dossier-metrics { grid-template-columns: repeat(3, 1fr); }
body[data-view="new-product-reveal"] .reveal-dossier-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-view="new-product-reveal"] .reveal-pagination { min-height: 42px; margin-top: 11px; }
body[data-view="new-product-reveal"] .reveal-signal-rail { gap: 11px; }
body[data-view="new-product-reveal"] .reveal-rail-panel { border-color: #e6d8ca; border-radius: 9px; }
body[data-view="new-product-reveal"] .reveal-rail-head { padding-bottom: 6px; border-bottom: 1px solid #f0e7df; }
body[data-view="new-product-reveal"] .reveal-rail-head h3 { font-size: 14px; }

@media (max-width: 1050px) {
  body[data-view="new-product-reveal"] .new-product-reveal-head { grid-template-columns: 1fr; gap: 8px; }
  body[data-view="new-product-reveal"] .new-product-reveal-hero-tools { grid-template-columns: 1fr; }
  .reveal-filter-bar { flex-wrap: wrap; }
  .reveal-filter-updated { margin-left: 0; }
}

/* 侧栏不能挤压商品卡：窗口不足以容纳主区与情报栏时，情报栏转到下方。 */
@media (min-width: 1451px) {
  body[data-view="new-product-reveal"] .reveal-signal-rail {
    align-self: start;
    grid-template-rows: none;
    position: sticky;
    top: 12px;
  }
  body[data-view="new-product-reveal"] .reveal-rail-panel { display: block; }
}
@media (max-width: 1450px) {
  body[data-view="new-product-reveal"] .new-product-reveal-workbench { grid-template-columns: 1fr; }
  body[data-view="new-product-reveal"] .reveal-signal-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
  }
}
@media (max-width: 880px) {
  body[data-view="new-product-reveal"] .reveal-signal-rail { grid-template-columns: 1fr; }
}

/* 新品揭秘简约白底版：以内容和商品图为主，装饰只保留必要热度状态。 */
body[data-view="new-product-reveal"] {
  background: #fff;
}
body[data-view="new-product-reveal"] #view-new-product-reveal {
  background: #fff;
}
body[data-view="new-product-reveal"] .new-product-reveal-head {
  border: 0;
  border-bottom: 1px solid #ece8e4;
  border-radius: 0;
  background: #fff;
}
body[data-view="new-product-reveal"] .new-product-reveal-summary {
  border-color: #ece8e4;
  background: #fff;
}
body[data-view="new-product-reveal"] .new-product-reveal-summary div + div { border-left-color: #ece8e4; }
body[data-view="new-product-reveal"] .reveal-signal-capsule {
  border: 1px solid #ead9d2;
  background: #fff;
  box-shadow: none;
}
body[data-view="new-product-reveal"] .reveal-signal-capsule span,
body[data-view="new-product-reveal"] .reveal-signal-capsule strong { color: var(--reveal-wine); }
body[data-view="new-product-reveal"] .reveal-signal-capsule i { display: none; }
body[data-view="new-product-reveal"] .reveal-filter-bar {
  border-color: #ece8e4;
  border-radius: 5px;
  background: #fff;
}
body[data-view="new-product-reveal"] .reveal-filter-bar select { border-color: #e7e2de; background: #fff; }
body[data-view="new-product-reveal"] .reveal-dossier-card,
body[data-view="new-product-reveal"] .reveal-rail-panel,
body[data-view="new-product-reveal"] .reveal-pagination {
  border-color: #e9e5e1;
  background: #fff;
  box-shadow: none;
}
body[data-view="new-product-reveal"] .reveal-dossier-stage {
  background: #fff;
}
body[data-view="new-product-reveal"] .reveal-dossier-stage::after { display: none; }
body[data-view="new-product-reveal"] .reveal-heat-orbit { box-shadow: none; }
body[data-view="new-product-reveal"] .reveal-dossier-metrics span { background: #fff; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-facts span,
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb,
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku { background: #fff; }
body[data-view="new-product-reveal"] .reveal-rail-head { border-bottom-color: #f0ece9; }
body[data-view="new-product-reveal"] .reveal-rail-rank-row i,
body[data-view="new-product-reveal"] .reveal-rail-search-row i { background: #f1efed; }
body[data-view="new-product-reveal"] .reveal-pagination { border-radius: 5px; }

/* 右侧信号栏：以酒红点、分隔线和强度线表达当前真实快照。 */
body[data-view="new-product-reveal"] .reveal-signal-rail {
  gap: 12px;
}
body[data-view="new-product-reveal"] .reveal-rail-panel {
  position: relative;
  overflow: hidden;
  padding: 13px 14px 12px;
  border-color: #e7e1dd;
  border-radius: 8px;
}
body[data-view="new-product-reveal"] .reveal-rail-panel::before {
  position: absolute;
  top: 0;
  left: 14px;
  width: 28px;
  height: 2px;
  background: var(--reveal-wine);
  content: "";
}
body[data-view="new-product-reveal"] .reveal-rail-head {
  position: relative;
  margin-bottom: 6px;
  padding: 0 0 9px;
  border-bottom-color: #eee9e5;
}
body[data-view="new-product-reveal"] .reveal-rail-head h3 { color: #362321; font-size: 14px; }
body[data-view="new-product-reveal"] .reveal-rail-head span { color: #9a8275; font-size: 9px; }
body[data-view="new-product-reveal"] .reveal-rail-rank-row {
  grid-template-columns: 18px 20px minmax(0, 1fr) 48px 24px;
  min-height: 29px;
  gap: 6px;
  border-bottom: 1px solid #f2eeeb;
}
body[data-view="new-product-reveal"] .reveal-rail-rank-row:last-child { border-bottom: 0; }
body[data-view="new-product-reveal"] .reveal-rail-rank-row > b,
body[data-view="new-product-reveal"] .reveal-rail-search-row > b {
  width: 17px;
  height: 17px;
  background: #f6e6df;
  color: var(--reveal-wine);
  font-size: 9px;
}
body[data-view="new-product-reveal"] .reveal-rail-rank-row:nth-child(-n + 3) > b { background: var(--reveal-wine); color: #fff; }
body[data-view="new-product-reveal"] .reveal-rail-rank-row i,
body[data-view="new-product-reveal"] .reveal-rail-search-row i {
  height: 3px;
  background: #f0e7e1;
}
body[data-view="new-product-reveal"] .reveal-rail-rank-row i em,
body[data-view="new-product-reveal"] .reveal-rail-search-row i em {
  background: linear-gradient(90deg, #8c3028, #c96747);
}
body[data-view="new-product-reveal"] .reveal-rail-rank-row strong { color: var(--reveal-wine); font-size: 10px; }
body[data-view="new-product-reveal"] .reveal-brand-logo {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e7d8cd;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f7ece5);
  color: #6f302a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1;
  white-space: nowrap;
}
body[data-view="new-product-reveal"] .reveal-brand-name {
  overflow: hidden;
  min-width: 0;
  color: #55413d;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="new-product-reveal"] .reveal-rail-mini-row {
  min-height: 37px;
  padding: 7px 0;
  border-top-color: #f0ece9;
}
body[data-view="new-product-reveal"] .reveal-rail-mini-row span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--reveal-wine);
  content: "";
}
body[data-view="new-product-reveal"] .reveal-rail-mini-row span { color: #453431; }
body[data-view="new-product-reveal"] .reveal-rail-mini-row strong { color: var(--reveal-wine); }
body[data-view="new-product-reveal"] .reveal-rail-mini-row em { padding-left: 10px; }
body[data-view="new-product-reveal"] .reveal-rail-search-row {
  min-height: 30px;
  border-bottom: 1px solid #f2eeeb;
}
body[data-view="new-product-reveal"] .reveal-rail-search-row:last-child { border-bottom: 0; }

/* 真实指数的图形化表达：品牌为三维信号微线，社媒为 TOP 商品分布折线。 */
body[data-view="new-product-reveal"] .reveal-signal-sparkline {
  display: block;
  width: 52px;
  height: 22px;
  overflow: visible;
}
body[data-view="new-product-reveal"] .reveal-signal-sparkline polyline {
  fill: none;
  stroke: #b54139;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
body[data-view="new-product-reveal"] .reveal-signal-sparkline circle { fill: #b54139; }
body[data-view="new-product-reveal"] .reveal-social-signal-chart {
  display: grid;
  gap: 3px;
  margin: 2px 0 7px;
  padding: 6px 7px 4px;
  border: 1px solid #f0e9e4;
  background: #fffdfb;
}
body[data-view="new-product-reveal"] .reveal-social-signal-chart > span { color: #9a8275; font-size: 8px; }
body[data-view="new-product-reveal"] .reveal-social-signal-chart .reveal-signal-sparkline { width: 100%; height: 44px; }
body[data-view="new-product-reveal"] .reveal-social-signal-chart .reveal-signal-sparkline.is-social polyline { stroke: #8c3028; stroke-width: 1.55; }
body[data-view="new-product-reveal"] .reveal-social-signal-chart .reveal-signal-sparkline.is-social circle { fill: #8c3028; }
body[data-view="new-product-reveal"] .reveal-rail-search-row { grid-template-columns: 17px minmax(0, 1fr) 50px 22px; }
body[data-view="new-product-reveal"] .reveal-rail-search-row strong { color: var(--reveal-wine); font-size: 9px; text-align: right; }

/* 商品档案放大一级：仍维持三列两行，但增强主图与内容可读性。 */
body[data-view="new-product-reveal"] .new-product-reveal-list { gap: 13px; }
body[data-view="new-product-reveal"] .reveal-dossier-stage { aspect-ratio: 1.65 / 1; }
body[data-view="new-product-reveal"] .reveal-heat-orbit { width: 68px; height: 68px; top: 12px; right: 12px; }
body[data-view="new-product-reveal"] .reveal-heat-orbit strong { font-size: 25px; }
body[data-view="new-product-reveal"] .reveal-dossier-body { gap: 8px; padding: 10px 11px 11px; }
body[data-view="new-product-reveal"] .reveal-dossier-labels { font-size: 11px; }
body[data-view="new-product-reveal"] .reveal-dossier-body h3 { min-height: 35px; font-size: 14px; line-height: 1.3; }
body[data-view="new-product-reveal"] .reveal-dossier-metrics span { padding: 6px 7px; }
body[data-view="new-product-reveal"] .reveal-dossier-metrics b { font-size: 14px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-facts { gap: 5px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-facts span { min-height: 38px; padding: 5px 6px; font-size: 10px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch { flex-basis: 36px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb img,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch img { width: 36px; height: 36px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku { flex-basis: 43px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku img,
body[data-view="new-product-reveal"] .reveal-dossier-card .hot-new-arrival-sku .image-fallback { width: 43px; height: 43px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions { padding-top: 8px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions > * { min-height: 30px; font-size: 10px; }

/* 新品揭秘卡片：把文字收束为标题、综合热度与一条基础信息，避免字段散落成多个信息块。 */
body[data-view="new-product-reveal"] .reveal-dossier-stage { aspect-ratio: 1.82 / 1; }
body[data-view="new-product-reveal"] .reveal-dossier-body { gap: 9px; padding: 11px 12px 12px; }
body[data-view="new-product-reveal"] .reveal-product-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: center;
  gap: 10px;
}
body[data-view="new-product-reveal"] .reveal-product-heading > div:first-child { min-width: 0; }
body[data-view="new-product-reveal"] .reveal-product-heading h3 { min-height: 0; margin: 0; font-size: 15px; line-height: 1.27; }
body[data-view="new-product-reveal"] .reveal-product-heading .reveal-heat-orbit {
  position: relative;
  top: auto;
  right: auto;
  width: 64px;
  height: 64px;
  justify-self: end;
}
body[data-view="new-product-reveal"] .reveal-product-heading .reveal-heat-orbit strong { font-size: 24px; }
body[data-view="new-product-reveal"] .reveal-product-info-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 7px 0;
  border-top: 1px solid #efe5db;
  border-bottom: 1px solid #efe5db;
}
body[data-view="new-product-reveal"] .reveal-product-info-line span { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; gap: 5px; min-width: 0; }
body[data-view="new-product-reveal"] .reveal-product-info-line span + span { padding-left: 10px; border-left: 1px solid #efe5db; }
body[data-view="new-product-reveal"] .reveal-product-info-line em { color: #9a8275; font-size: 9px; font-style: normal; }
body[data-view="new-product-reveal"] .reveal-product-info-line b { overflow: hidden; max-width: none; color: #3b2a27; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body[data-view="new-product-reveal"] .reveal-dossier-media { grid-template-columns: 1fr; gap: 7px; }
body[data-view="new-product-reveal"] .reveal-media-group { gap: 3px; }
body[data-view="new-product-reveal"] .reveal-media-group > span { color: #936233; }
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch { flex-basis: 38px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-thumb img,
body[data-view="new-product-reveal"] .reveal-dossier-card .color-swatch img { width: 38px; height: 38px; }
/* 主图与 SKU 色款共用同一左侧基线，避免主图继承旧卡片的横向内边距。 */
body[data-view="new-product-reveal"] .reveal-dossier-card .main-image-gallery { padding: 0; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions { display: flex; gap: 7px; padding-top: 9px; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions .evergreen-link { flex: 0 0 auto; }
body[data-view="new-product-reveal"] .reveal-dossier-card .card-actions .listing-btn { flex: 1; }

/* 一键刊登：任务中心与批量选择。 */
.listing-task-entry { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(85, 57, 41, .2); border-radius: 18px; background: rgba(255, 252, 247, .82); color: #4a3328; font: inherit; font-size: 12px; cursor: pointer; }
.listing-task-entry:hover { border-color: #9c6b4a; background: #fff; }
.listing-task-count { min-width: 17px; padding: 1px 5px; border-radius: 10px; background: #8c3028; color: #fff; font-size: 10px; line-height: 15px; text-align: center; }
.sidebar .listing-task-entry { width: 100%; min-height: 46px; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 18px; text-align: left; }
.sidebar .listing-task-entry:hover { border: 0; background: rgba(69, 43, 31, .08); color: var(--ink); }
.sidebar .listing-task-entry .listing-task-count { margin-left: auto; }
.listing-task-panel-overlay { position: fixed; z-index: 1001; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(31, 22, 18, .42); }
.listing-task-panel { width: min(580px, 100%); max-height: min(700px, calc(100vh - 40px)); overflow: auto; border: 1px solid #e6d8ca; border-radius: 18px; background: #fffdf9; box-shadow: 0 20px 60px rgba(39, 25, 17, .24); }
.listing-task-panel header { display: flex; align-items: center; justify-content: space-between; padding: 22px 23px 16px; }
.listing-task-panel header p { margin: 0 0 3px; color: #9a8275; font-size: 11px; letter-spacing: .08em; }
.listing-task-panel h2 { margin: 0; color: #38251d; font-size: 20px; }
.listing-task-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f5eee7; color: #4a3328; font-size: 23px; line-height: 1; cursor: pointer; }
.listing-task-panel nav { display: flex; gap: 18px; padding: 0 23px; border-bottom: 1px solid #eee3d9; }
.listing-task-panel nav button { padding: 0 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8b7468; font: inherit; font-size: 13px; cursor: pointer; }
.listing-task-panel nav button.active { border-bottom-color: #8c3028; color: #512d24; font-weight: 700; }
.listing-task-panel-content { padding: 8px 23px 22px; }
.listing-task-row { position: relative; padding: 15px 0; border-bottom: 1px solid #f0e7df; }
.listing-task-row:last-child { border-bottom: 0; }
.listing-task-row > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listing-task-row strong { color: #412d25; font-size: 13px; }
.listing-task-row p { margin: 7px 0 5px; color: #705d53; font-size: 12px; line-height: 1.45; }
.listing-task-row small { color: #ab998e; font-size: 11px; }
.listing-task-row a { position: absolute; right: 0; bottom: 15px; color: #8c3028; font-size: 12px; text-decoration: none; }
.listing-task-status { flex: 0 0 auto; padding: 3px 7px; border-radius: 10px; background: #f0e8df; color: #6f5a4f; font-size: 10px; }
.listing-task-status.running, .listing-task-status.queued { background: #f8ead4; color: #a26021; }
.listing-task-status.success { background: #e4f1e7; color: #2e7450; }
.listing-task-status.failed { background: #f8e5e3; color: #a64238; }
.listing-task-empty { padding: 34px 0; color: #99877b; font-size: 13px; text-align: center; }
.listing-select-control { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; color: #806d63; font-size: 10px; cursor: pointer; user-select: none; }
.listing-select-control input { width: 14px; height: 14px; accent-color: #8c3028; cursor: pointer; }
.batch-listing-mode-btn { min-width: 112px; }
.batch-listing-mode-btn.active { border-color: #8c3028; background: #8c3028; color: #fff; }
#view-opportunity .opportunity-card { position: relative; }
#view-opportunity .opportunity-card .card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#view-dhgate .dhgate-product-card,
#view-hot-new-arrivals .hot-new-arrival-card { position: relative; }
#view-opportunity .opportunity-card .listing-select-control,
#view-dhgate .dhgate-product-card .listing-select-control,
#view-hot-new-arrivals .hot-new-arrival-card .listing-select-control { position: absolute; z-index: 2; top: 12px; right: 12px; min-height: 30px; padding: 0 8px; border: 1px solid rgba(140, 48, 40, .28); border-radius: 8px; background: rgba(255, 253, 249, .94); box-shadow: 0 2px 8px rgba(43, 28, 19, .12); color: #674638; font-size: 11px; }
.batch-listing-toolbar { position: fixed; z-index: 1000; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 10px 12px 10px 15px; border: 1px solid #decabb; border-radius: 14px; background: #fffdf9; box-shadow: 0 10px 32px rgba(43, 28, 19, .2); color: #5b4034; font-size: 12px; }
.batch-listing-toolbar button { min-height: 30px; padding: 0 9px; border: 1px solid #dfcec1; border-radius: 8px; background: #fff; color: #674638; font: inherit; font-size: 11px; cursor: pointer; }
.batch-listing-toolbar .batch-listing-publish { border-color: #7e2a23; background: #8c3028; color: #fff; }
@media (max-width: 680px) { .listing-task-entry { padding: 0 8px; font-size: 11px; } .batch-listing-toolbar { right: 12px; bottom: 12px; gap: 6px; max-width: calc(100vw - 24px); flex-wrap: wrap; } .listing-task-panel-overlay { padding: 12px; } }

/* 上架记录中台：按商品而非仅按任务文本呈现完整刊登历史。 */
.listing-task-panel-overlay { align-items: start; overflow-y: auto; padding: 52px clamp(18px, 7vw, 120px); background: rgba(26, 20, 16, .56); }
.listing-task-panel { width: min(1280px, 100%); max-height: none; min-height: min(760px, calc(100vh - 104px)); border-radius: 10px; }
.listing-task-panel header { align-items: start; padding: 28px 32px 20px; border-bottom: 1px solid #eee3d9; }
.listing-task-panel header p { color: #a44735; font-weight: 800; }
.listing-task-panel h2 { font-size: 28px; }
.listing-task-total { display: block; margin-top: 8px; color: #826d61; font-size: 13px; }
.listing-task-panel-content { padding: 14px 32px 8px; }
.listing-task-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 126px; padding: 16px 0; }
.listing-task-image { width: 92px; height: 92px; overflow: hidden; border: 1px solid #e6d8ca; background: #f5f1eb; }
.listing-task-image img, .listing-task-image .image-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-task-info { min-width: 0; }
.listing-task-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.listing-task-title strong { overflow: hidden; color: #2e211b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.listing-task-info p { margin: 7px 0 9px; color: #876e5f; }
.listing-task-progress { height: 5px; overflow: hidden; margin: 0 0 7px; border-radius: 99px; background: #eee5dd; }
.listing-task-progress span { display: block; height: 100%; border-radius: inherit; background: #168272; transition: width .3s ease; }
.listing-task-actions { display: flex; flex: 0 0 108px; flex-direction: column; gap: 8px; align-items: stretch; }
.listing-task-action { min-width: 88px; padding: 8px 11px; border: 1px solid #d8c7ba; background: #fff; color: #5c382b; font: inherit; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.listing-task-actions .listing-task-action { position: static; right: auto; bottom: auto; display: block; box-sizing: border-box; width: 100%; min-width: 0; }
.listing-task-action.primary { border-color: #81332c; background: #81332c; color: #fff; }
.listing-task-action:disabled { opacity: .6; cursor: wait; }
.listing-task-relist-progress { display: grid; grid-template-columns: auto minmax(54px, 1fr); gap: 5px 7px; width: 126px; padding: 8px; border: 1px solid #d8c7ba; background: #fffaf4; color: #725446; font-size: 11px; }
.listing-task-relist-progress b { color: #177b6d; font-size: 12px; }
.listing-task-relist-progress > span { align-self: center; height: 5px; overflow: hidden; border-radius: 99px; background: #e8ded4; }
.listing-task-relist-progress > span i { display: block; height: 100%; background: #168272; transition: width .25s ease; }
.listing-task-relist-progress small { grid-column: 1 / -1; overflow: hidden; color: #886f60; text-overflow: ellipsis; white-space: nowrap; }
.listing-task-relist-progress.error { border-color: #d8a49c; }
.listing-task-relist-progress.error b { color: #a43f35; }
.listing-task-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 32px 28px; color: #796357; font-size: 13px; }
.listing-task-pagination button { min-width: 70px; padding: 8px 12px; border: 1px solid #dbcabe; background: #fff; color: #55382c; font: inherit; cursor: pointer; }
.listing-task-pagination button:disabled { opacity: .45; cursor: default; }
.listing-task-center { min-height: calc(100vh - 124px); padding: 24px clamp(18px, 3vw, 42px) 48px; background: #f6f3ee; }
.listing-task-center-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 0 0 14px; border-bottom: 1px solid #d9d0c7; }
.listing-task-center-header .eyebrow { margin: 0 0 4px; color: #a44735; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.listing-task-center-header h2 { margin: 0; color: #241913; font-size: 28px; }
.listing-task-center-header p:not(.eyebrow) { margin: 6px 0; color: #78695e; font-size: 13px; }
.listing-task-center .listing-task-total { margin-top: 8px; }
.listing-task-center .listing-task-panel-content { padding: 0; }
.listing-task-center .listing-task-row { padding-right: 18px; padding-left: 18px; border: 1px solid #e0d7cd; background: #fffdf9; }
.listing-task-center .listing-task-row + .listing-task-row { margin-top: 10px; }
.listing-task-center .listing-task-pagination { padding-right: 0; padding-bottom: 0; }
.listing-task-delete-selected { flex: 0 0 auto; min-width: 112px; padding: 10px 16px; border: 1px solid #9b342c; background: #9b342c; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.listing-task-delete-selected:disabled { border-color: #d9cec5; background: #e9e2dc; color: #9d8f85; cursor: default; }
.listing-task-select { display: inline-flex; align-items: center; gap: 5px; color: #826b5d; font-size: 11px; white-space: nowrap; cursor: pointer; }
.listing-task-select input { width: 14px; height: 14px; margin: 0; accent-color: #8d342b; }
body[data-view="tasks"] .trend-news-search { display: none; }
@media (max-width: 700px) { .listing-task-panel-overlay { padding: 10px; } .listing-task-panel { min-height: calc(100vh - 20px); } .listing-task-panel header, .listing-task-panel-content, .listing-task-pagination { padding-left: 16px; padding-right: 16px; } .listing-task-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .listing-task-image { width: 64px; height: 64px; } .listing-task-actions { grid-column: 2; flex-direction: row; } .listing-task-title strong { white-space: normal; } }

/* 独立竞品分析页：避免复用敦煌素材池的图片卡片规则。 */
body[data-view="competitor"] .trend-news-search {
  display: none;
}

/* 竞品分析方案 A：暖色编辑感。保留现有左侧导航与数据口径，仅重组阅读层级。 */
body[data-view="competitor"] #view-competitor {
  position: relative;
  overflow: hidden;
  padding: 30px clamp(20px, 3.1vw, 52px) 64px;
  background:
    radial-gradient(circle at 96% 4%, rgba(220, 163, 114, .19), transparent 22%),
    radial-gradient(circle at 5% 34%, rgba(238, 202, 171, .18), transparent 23%),
    #f5f0e9;
}

body[data-view="competitor"] #view-competitor::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #a54431, #d98955 48%, rgba(216, 137, 85, 0));
  content: "";
}

body[data-view="competitor"] .competitor-shell {
  width: min(1480px, 100%);
  gap: 20px;
  margin: 0 auto;
}

body[data-view="competitor"] .competitor-head {
  position: relative;
  align-items: center;
  min-height: 142px;
  padding: 26px 29px 25px 33px;
  overflow: hidden;
  border: 1px solid #e6d8cb;
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(255, 253, 249, .98) 0%, rgba(255, 251, 245, .98) 61%, rgba(246, 225, 207, .84) 100%);
  box-shadow: 0 18px 38px rgba(91, 51, 30, .075);
}

body[data-view="competitor"] .competitor-head::before {
  position: absolute;
  top: -44px;
  right: clamp(180px, 23vw, 330px);
  width: 178px;
  height: 178px;
  border: 1px solid rgba(183, 95, 63, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(208, 141, 91, .055), 0 0 0 48px rgba(208, 141, 91, .035);
  content: "";
}

body[data-view="competitor"] .competitor-head::after {
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 0;
  width: 5px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(#a33d2e, #d48a55);
  content: "";
}

body[data-view="competitor"] .competitor-head > * {
  position: relative;
  z-index: 1;
}

body[data-view="competitor"] .competitor-head .eyebrow,
body[data-view="competitor"] .competitor-dashboard-head .eyebrow,
body[data-view="competitor"] .competitor-ranking-head .eyebrow,
body[data-view="competitor"] .competitor-title-context-head .eyebrow,
body[data-view="competitor"] .competitor-keyword-finale-head .eyebrow,
body[data-view="competitor"] .competitor-keyword-heat-head .eyebrow {
  color: #a44936;
  font-size: 10px;
  letter-spacing: .14em;
}

body[data-view="competitor"] .competitor-head h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.055em;
}

body[data-view="competitor"] .competitor-head p:not(.eyebrow) {
  max-width: 770px;
  color: #796558;
  font-size: 13px;
}

body[data-view="competitor"] .competitor-head-actions {
  align-self: flex-start;
  padding-top: 2px;
}

body[data-view="competitor"] .competitor-period {
  border-color: #e8cdb9;
  background: rgba(255, 250, 244, .78);
  color: #975342;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .03em;
}

body[data-view="competitor"] .competitor-head .ghost-btn,
body[data-view="competitor"] .competitor-pagination .ghost-btn {
  border-color: #d9aa8b;
  border-radius: 999px;
  background: #fffaf5;
  color: #934533;
  font-weight: 750;
}

body[data-view="competitor"] .competitor-head .ghost-btn:hover,
body[data-view="competitor"] .competitor-pagination .ghost-btn:hover {
  border-color: #a84633;
  background: #a84633;
  color: #fff;
}

body[data-view="competitor"] .competitor-editorial-toolbar {
  display: grid;
  grid-template-columns: minmax(315px, .96fr) minmax(0, 2.14fr);
  gap: 16px;
}

body[data-view="competitor"] .competitor-scope-tabs {
  gap: 8px;
  padding: 8px;
  border: 1px solid #e3d6ca;
  border-radius: 16px;
  background: rgba(255, 253, 249, .76);
  box-shadow: 0 10px 24px rgba(83, 48, 30, .035);
}

body[data-view="competitor"] .competitor-scope-tab {
  min-height: 0;
  padding: 12px 13px;
  border-color: transparent;
  border-radius: 11px;
  background: transparent;
}

body[data-view="competitor"] .competitor-scope-tab strong {
  font-size: 12px;
}

body[data-view="competitor"] .competitor-scope-tab small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="competitor"] .competitor-scope-tab:hover {
  border-color: #ebd5c5;
  background: #fffaf5;
  box-shadow: none;
}

body[data-view="competitor"] .competitor-scope-tab.is-active {
  border-color: #e5c6b0;
  background: linear-gradient(135deg, #fff8f1, #f7e6d9);
  box-shadow: inset 3px 0 0 #a74435;
}

body[data-view="competitor"] .competitor-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(185px, .92fr);
  border: 1px solid #e4d7cb;
  border-radius: 16px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 10px 24px rgba(83, 48, 30, .035);
}

body[data-view="competitor"] .competitor-summary > div {
  min-height: 88px;
  padding: 15px 18px;
}

body[data-view="competitor"] .competitor-summary > div::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8764e;
  box-shadow: 0 0 0 4px rgba(200, 118, 78, .12);
  content: "";
}

body[data-view="competitor"] .competitor-summary > div:nth-child(2)::before {
  background: #ae4937;
}

body[data-view="competitor"] .competitor-summary > div:nth-child(3)::before {
  background: #a8824d;
}

body[data-view="competitor"] .competitor-summary span {
  margin-top: -1px;
  color: #8c7566;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-summary strong {
  color: #43291f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

body[data-view="competitor"] .competitor-summary p {
  background: linear-gradient(135deg, #fbf4ed, #f5e8dd);
  color: #8a6f5e;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-dashboards,
body[data-view="competitor"] .competitor-title-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body[data-view="competitor"] .competitor-dashboard-card,
body[data-view="competitor"] .competitor-title-context,
body[data-view="competitor"] .competitor-ranking-section,
body[data-view="competitor"] .competitor-keyword-finale {
  border: 1px solid #e4d7cb;
  border-radius: 20px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 16px 34px rgba(82, 46, 28, .052);
}

body[data-view="competitor"] .competitor-dashboard-card {
  padding: 23px 24px 22px;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

body[data-view="competitor"] .competitor-dashboard-price {
  background:
    radial-gradient(circle at 94% 7%, rgba(231, 189, 149, .26), transparent 20%),
    linear-gradient(135deg, #fffdfa, #fbf5ee);
}

body[data-view="competitor"] .competitor-dashboard-head h3,
body[data-view="competitor"] .competitor-ranking-head h3,
body[data-view="competitor"] .competitor-title-context-head h3,
body[data-view="competitor"] .competitor-keyword-finale-head h3,
body[data-view="competitor"] .competitor-keyword-heat-head h3 {
  color: #3e281f;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 23px;
  letter-spacing: -.035em;
}

body[data-view="competitor"] .competitor-dashboard-note {
  max-width: 820px;
  color: #8a7465;
}

body[data-view="competitor"] .competitor-dashboard-badge {
  padding: 5px 9px;
  border-color: #e9cdbb;
  background: #fff9f3;
  color: #a34b38;
}

body[data-view="competitor"] .competitor-dashboard-price .competitor-dashboard-body {
  padding-top: 2px;
}

body[data-view="competitor"] .competitor-price-currency-chart {
  padding: 16px 16px 7px;
  border-top: 1px solid #eadcd0;
}

body[data-view="competitor"] .competitor-price-currency-chart:first-child {
  border-top: 0;
}

body[data-view="competitor"] .competitor-price-chart-head b {
  color: #58372a;
  font-size: 13px;
}

body[data-view="competitor"] .competitor-price-chart-legend i.is-median,
body[data-view="competitor"] .competitor-price-chart-bar.is-median {
  fill: #ab4e3b;
  background: #ab4e3b;
}

body[data-view="competitor"] .competitor-price-chart-legend i.is-average,
body[data-view="competitor"] .competitor-price-chart-bar.is-average {
  fill: #ca8651;
  background: #ca8651;
}

body[data-view="competitor"] .competitor-price-chart-grid {
  stroke: #eaded3;
}

body[data-view="competitor"] .competitor-price-chart-axis-label,
body[data-view="competitor"] .competitor-price-chart-category,
body[data-view="competitor"] .competitor-price-chart-axis-title {
  fill: #957c6a;
}

body[data-view="competitor"] .competitor-price-chart-value.is-median {
  fill: #9d4534;
}

body[data-view="competitor"] .competitor-price-chart-value.is-average {
  fill: #af7042;
}

body[data-view="competitor"] .competitor-title-context {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(252, 246, 240, .92), rgba(255, 253, 249, .95) 33%, rgba(255, 253, 249, .95));
}

body[data-view="competitor"] .competitor-title-context-head,
body[data-view="competitor"] .competitor-keyword-finale-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #eddfd3;
}

body[data-view="competitor"] .competitor-title-context-head h3,
body[data-view="competitor"] .competitor-keyword-finale-head h3 {
  margin: 0;
}

body[data-view="competitor"] .competitor-title-context-head p:not(.eyebrow),
body[data-view="competitor"] .competitor-keyword-finale-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 7px 0 0;
  color: #887164;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-title-context-head > span,
body[data-view="competitor"] .competitor-keyword-finale-mark {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #e6cdbb;
  border-radius: 999px;
  background: #fff9f4;
  color: #a35843;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

body[data-view="competitor"] .competitor-title-context .competitor-dashboard-title {
  background: transparent;
}

body[data-view="competitor"] .competitor-title-overview {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

body[data-view="competitor"] .competitor-title-overview > span {
  border-radius: 10px;
  background: #fffaf6;
}

body[data-view="competitor"] .competitor-title-word-cloud-section {
  padding: 3px 0 0;
}

body[data-view="competitor"] .competitor-ranking-section {
  padding: 22px 22px 16px;
}

body[data-view="competitor"] .competitor-ranking-head {
  display: grid;
  grid-template-columns: minmax(235px, .72fr) minmax(0, 2.28fr);
  gap: 24px;
  align-items: end;
  padding: 0 3px 18px;
}

body[data-view="competitor"] .competitor-ranking-head h3 {
  margin: 0;
}

body[data-view="competitor"] .competitor-ranking-head p:not(.eyebrow) {
  max-width: 330px;
  margin: 7px 0 0;
  color: #8c7567;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-filter-bar {
  grid-template-columns: minmax(165px, 1.45fr) repeat(5, minmax(96px, .9fr)) auto;
  gap: 7px;
  padding: 9px;
  border-color: #eadcd0;
  border-radius: 13px;
  background: #fbf7f2;
}

body[data-view="competitor"] .competitor-filter-bar label {
  gap: 4px;
  color: #8c7362;
  font-size: 10px;
}

body[data-view="competitor"] .competitor-filter-bar input,
body[data-view="competitor"] .competitor-filter-bar select {
  min-height: 35px;
  border-color: #e3d4c7;
  border-radius: 8px;
  background: #fffdf9;
  color: #54392b;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-filter-bar .primary-btn {
  min-height: 35px;
  align-self: end;
  border-radius: 8px;
  background: #a64634;
  box-shadow: 0 6px 13px rgba(151, 62, 44, .18);
  font-size: 11px;
}

body[data-view="competitor"] .competitor-list-note {
  margin: 0 3px 12px;
  padding: 9px 12px;
  border-left: 2px solid #ce8557;
  background: #fff9f4;
  color: #896f5e;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-table-wrap {
  border: 1px solid #e8dbd0;
  border-radius: 14px;
  box-shadow: none;
}

body[data-view="competitor"] .competitor-table th {
  padding: 13px 11px;
  border-bottom-color: #e8d9cc;
  background: #faf4ee;
  color: #805f4e;
  font-size: 10px;
  letter-spacing: .06em;
}

body[data-view="competitor"] .competitor-table tbody tr:nth-child(2n) {
  background: rgba(255, 251, 246, .55);
}

body[data-view="competitor"] .competitor-table tbody tr:hover {
  background: #fff4ea;
}

body[data-view="competitor"] .competitor-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

body[data-view="competitor"] .competitor-rank {
  color: #a23f30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

body[data-view="competitor"] .competitor-product-image {
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(71, 43, 28, .08);
}

body[data-view="competitor"] .competitor-product-copy strong {
  color: #3d281e;
  font-size: 12px;
}

body[data-view="competitor"] .competitor-hot-keyword-chips > span {
  border-radius: 999px;
  background: #fff8f1;
}

body[data-view="competitor"] .competitor-pagination {
  min-height: 44px;
  padding: 8px 3px 0;
}

body[data-view="competitor"] .competitor-keyword-finale {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(237, 203, 163, .3), transparent 23%),
    #fffdf9;
}

body[data-view="competitor"] .competitor-keyword-heat-card {
  padding: 23px 26px 25px;
}

body[data-view="competitor"] .competitor-keyword-heat-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

body[data-view="competitor"] .competitor-keyword-heat-head h3 {
  margin: 0;
  font-size: 20px;
}

body[data-view="competitor"] .competitor-keyword-heat-head > span {
  padding: 5px 8px;
  border: 1px solid #ead2bf;
  border-radius: 999px;
  background: #fff9f4;
  color: #a15a42;
  font-size: 10px;
  font-weight: 750;
}

body[data-view="competitor"] .competitor-keyword-heat-card > p {
  max-width: 760px;
  margin: 7px 0 17px;
  color: #896f5f;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-keyword-heat-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-view="competitor"] .competitor-keyword-heat-item {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 59px;
  padding: 8px 10px;
  border: 1px solid #ecded3;
  border-radius: 11px;
  background: rgba(255, 251, 247, .86);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body[data-view="competitor"] .competitor-keyword-heat-item:hover {
  z-index: 1;
  border-color: #d9ad8d;
  box-shadow: 0 8px 16px rgba(110, 62, 37, .09);
  transform: translateY(-2px);
}

body[data-view="competitor"] .competitor-keyword-heat-rank {
  color: #b06c48;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

body[data-view="competitor"] .competitor-keyword-heat-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-view="competitor"] .competitor-keyword-heat-copy strong {
  overflow: hidden;
  color: #4a3023;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-keyword-heat-copy i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee2d7;
}

body[data-view="competitor"] .competitor-keyword-heat-copy em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b64e3b, #d48c55);
}

body[data-view="competitor"] .competitor-keyword-heat-value {
  display: grid;
  gap: 2px;
  min-width: 74px;
  color: #9c5a41;
  text-align: right;
}

body[data-view="competitor"] .competitor-keyword-heat-value small {
  color: #a98c7b;
  font-size: 9px;
}

body[data-view="competitor"] .competitor-keyword-heat-value b {
  color: #8f4032;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

body[data-view="competitor"] .competitor-keyword-heat-footnote {
  margin: 12px 0 0;
  color: #9a8070;
  font-size: 10px;
}

@media (max-width: 1380px) {
  body[data-view="competitor"] .competitor-editorial-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-view="competitor"] .competitor-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(185px, .92fr);
  }

  body[data-view="competitor"] .competitor-ranking-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-view="competitor"] .competitor-ranking-head p:not(.eyebrow) {
    max-width: 760px;
  }

  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: minmax(180px, 1.55fr) repeat(3, minmax(110px, 1fr)) auto;
  }
}

@media (max-width: 940px) {
  body[data-view="competitor"] .competitor-head {
    align-items: start;
  }

  body[data-view="competitor"] .competitor-head::before {
    right: 22px;
  }

  body[data-view="competitor"] .competitor-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(2) {
    border-right: 0;
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(3) {
    border-top: 1px solid #ebe2d9;
  }

  body[data-view="competitor"] .competitor-summary p {
    grid-column: span 1;
    border-top: 1px solid #ebe2d9;
  }

  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-filter-bar .competitor-search {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body[data-view="competitor"] #view-competitor {
    padding: 19px 12px 36px;
  }

  body[data-view="competitor"] .competitor-shell {
    gap: 14px;
  }

  body[data-view="competitor"] .competitor-head,
  body[data-view="competitor"] .competitor-ranking-section,
  body[data-view="competitor"] .competitor-title-context,
  body[data-view="competitor"] .competitor-keyword-finale,
  body[data-view="competitor"] .competitor-dashboard-card {
    border-radius: 14px;
  }

  body[data-view="competitor"] .competitor-head {
    min-height: 0;
    padding: 22px 18px 18px 22px;
  }

  body[data-view="competitor"] .competitor-head h2 {
    font-size: 29px;
  }

  body[data-view="competitor"] .competitor-head-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body[data-view="competitor"] .competitor-period {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="competitor"] .competitor-scope-tabs {
    grid-template-columns: 1fr;
  }

  body[data-view="competitor"] .competitor-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }

  body[data-view="competitor"] .competitor-summary > div,
  body[data-view="competitor"] .competitor-summary > div:nth-child(3) {
    min-height: 74px;
    padding: 12px;
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(3),
  body[data-view="competitor"] .competitor-summary p {
    grid-column: 1 / -1;
  }

  body[data-view="competitor"] .competitor-summary p {
    min-height: 48px;
  }

  body[data-view="competitor"] .competitor-dashboard-card,
  body[data-view="competitor"] .competitor-keyword-heat-card {
    padding: 17px 15px;
  }

  body[data-view="competitor"] .competitor-dashboard-head,
  body[data-view="competitor"] .competitor-title-context-head,
  body[data-view="competitor"] .competitor-keyword-finale-head,
  body[data-view="competitor"] .competitor-keyword-heat-head {
    align-items: start;
  }

  body[data-view="competitor"] .competitor-title-context-head,
  body[data-view="competitor"] .competitor-keyword-finale-head {
    padding: 18px 17px 14px;
  }

  body[data-view="competitor"] .competitor-title-context-head > span,
  body[data-view="competitor"] .competitor-keyword-finale-mark {
    display: none;
  }

  body[data-view="competitor"] .competitor-ranking-section {
    padding: 16px 12px 12px;
  }

  body[data-view="competitor"] .competitor-ranking-head {
    padding: 0 5px 13px;
  }

  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  body[data-view="competitor"] .competitor-filter-bar .competitor-search {
    grid-column: 1 / -1;
  }

  body[data-view="competitor"] .competitor-filter-bar .primary-btn {
    width: 100%;
  }

  body[data-view="competitor"] .competitor-list-note {
    margin-right: 5px;
    margin-left: 5px;
  }

  body[data-view="competitor"] .competitor-keyword-heat-items {
    grid-template-columns: 1fr;
  }

  body[data-view="competitor"] .competitor-keyword-heat-item {
    min-height: 56px;
  }
}

body[data-view="competitor"] #view-competitor {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 42px) 48px;
  background: #f6f3ee;
}

body[data-view="competitor"] .competitor-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body[data-view="competitor"] .competitor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9d0c7;
}

body[data-view="competitor"] .competitor-head .eyebrow,
.competitor-detail-panel .eyebrow {
  margin: 0 0 5px;
  color: #a44735;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

body[data-view="competitor"] .competitor-head h2 {
  margin: 0;
  color: #241913;
  font-size: clamp(25px, 2.3vw, 32px);
  letter-spacing: -.03em;
}

body[data-view="competitor"] .competitor-head p:not(.eyebrow) {
  max-width: 700px;
  margin: 7px 0 0;
  color: #78695e;
  font-size: 13px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

body[data-view="competitor"] .competitor-period {
  padding: 7px 10px;
  border: 1px solid #e0d3c6;
  border-radius: 99px;
  background: #fffaf4;
  color: #785c4b;
  font-size: 12px;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-view="competitor"] .competitor-scope-tab {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid #ddd1c6;
  border-radius: 7px;
  background: #fffdf9;
  color: #715e51;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-view="competitor"] .competitor-scope-tab:hover {
  border-color: #cda99a;
  box-shadow: 0 5px 16px rgba(71, 43, 27, .08);
  transform: translateY(-1px);
}

body[data-view="competitor"] .competitor-scope-tab:focus-visible {
  outline: 2px solid rgba(164, 71, 53, .4);
  outline-offset: 2px;
}

body[data-view="competitor"] .competitor-scope-tab strong {
  color: #402d23;
  font-size: 14px;
  line-height: 1.25;
}

body[data-view="competitor"] .competitor-scope-tab small {
  color: #8a7668;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

body[data-view="competitor"] .competitor-scope-tab.is-active {
  border-color: #a74435;
  background: linear-gradient(135deg, #fff8f3, #fffdf9);
  box-shadow: inset 3px 0 0 #a74435, 0 6px 18px rgba(94, 49, 29, .08);
}

body[data-view="competitor"] .competitor-scope-tab.is-active strong {
  color: #983e2f;
}

body[data-view="competitor"] .competitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, .95fr);
  overflow: hidden;
  border: 1px solid #dfd5ca;
  background: #fffdf9;
}

body[data-view="competitor"] .competitor-summary > div {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 17px 18px;
  border-right: 1px solid #ebe2d9;
  align-content: center;
}

body[data-view="competitor"] .competitor-summary span {
  color: #8c7a6d;
  font-size: 12px;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-summary strong {
  color: #33241c;
  font-size: 26px;
  line-height: 1;
}

body[data-view="competitor"] .competitor-summary p {
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  background: #f8f3ed;
  color: #8c7768;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

body[data-view="competitor"] .competitor-dashboards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body[data-view="competitor"] .competitor-dashboard-card {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 12px;
  padding: 17px;
  border: 1px solid #dfd5ca;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(49, 31, 20, .045);
}

/* 价格图表和标题词云分别独占一行，避免 15 个子类目被压缩在半宽卡片中。 */
body[data-view="competitor"] .competitor-dashboard-price,
body[data-view="competitor"] .competitor-dashboard-title {
  grid-column: 1 / -1;
}

body[data-view="competitor"] .competitor-dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

body[data-view="competitor"] .competitor-dashboard-head .eyebrow {
  margin: 0 0 4px;
  color: #a44735;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

body[data-view="competitor"] .competitor-dashboard-head h3 {
  margin: 0;
  color: #33241c;
  font-size: 17px;
  line-height: 1.25;
}

body[data-view="competitor"] .competitor-dashboard-badge {
  flex: 0 0 auto;
  max-width: 150px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid #ead8ca;
  border-radius: 99px;
  background: #fff7f0;
  color: #9a493c;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-dashboard-note {
  min-height: 34px;
  margin: -3px 0 0;
  color: #887466;
  font-size: 11px;
  line-height: 1.52;
}

body[data-view="competitor"] .competitor-dashboard-body {
  min-width: 0;
}

body[data-view="competitor"] .competitor-dashboard-price .competitor-dashboard-body {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

body[data-view="competitor"] .competitor-dashboard-empty {
  display: grid;
  min-height: 148px;
  margin: 0;
  padding: 18px;
  border: 1px dashed #ddcfc3;
  border-radius: 6px;
  place-items: center;
  background: #fffbf7;
  color: #927d6e;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

body[data-view="competitor"] .competitor-dashboard-overview,
body[data-view="competitor"] .competitor-title-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body[data-view="competitor"] .competitor-dashboard-overview > span,
body[data-view="competitor"] .competitor-title-overview > span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #eee3d9;
  border-radius: 5px;
  background: #fffaf5;
}

body[data-view="competitor"] .competitor-dashboard-overview b,
body[data-view="competitor"] .competitor-title-overview b {
  color: #4b3428;
  font-size: 12px;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-dashboard-overview small,
body[data-view="competitor"] .competitor-title-overview small {
  color: #957e6f;
  font-size: 10px;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-price-chart-list {
  display: grid;
  gap: 14px;
}

body[data-view="competitor"] .competitor-price-chart-scope-note {
  margin: -2px 0 10px;
  padding: 7px 9px;
  border-left: 2px solid #d4a17b;
  background: #fdf7f1;
  color: #8a6754;
  font-size: 10px;
  line-height: 1.45;
}

body[data-view="competitor"] .competitor-price-currency-chart {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #ede2d8;
}

body[data-view="competitor"] .competitor-price-currency-chart:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-view="competitor"] .competitor-price-chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 7px;
}

body[data-view="competitor"] .competitor-price-chart-head > div {
  display: grid;
  gap: 2px;
}

body[data-view="competitor"] .competitor-price-chart-head b {
  color: #a44735;
  font-size: 16px;
  line-height: 1.15;
}

body[data-view="competitor"] .competitor-price-chart-head small,
body[data-view="competitor"] .competitor-price-chart-footnote {
  color: #927d6e;
  font-size: 12px;
  line-height: 1.4;
}

body[data-view="competitor"] .competitor-price-chart-head > small {
  max-width: 190px;
  text-align: right;
}

body[data-view="competitor"] .competitor-price-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 11px;
  align-items: center;
  margin-bottom: 5px;
  color: #786254;
  font-size: 13px;
}

body[data-view="competitor"] .competitor-price-chart-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

body[data-view="competitor"] .competitor-price-chart-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

body[data-view="competitor"] .competitor-price-chart-legend i.is-median {
  background: #a84a39;
}

body[data-view="competitor"] .competitor-price-chart-legend i.is-average {
  background: #c78654;
}

body[data-view="competitor"] .competitor-price-chart-legend small {
  color: #a08b7c;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-price-chart-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 7px;
  scrollbar-color: #d4bca9 transparent;
  scrollbar-width: thin;
}

body[data-view="competitor"] .competitor-price-grouped-bar-chart {
  display: block;
  width: max(100%, var(--competitor-price-chart-width, 1020px));
  min-width: var(--competitor-price-chart-width, 1020px);
  height: auto;
  overflow: visible;
}

body[data-view="competitor"] .competitor-price-chart-grid {
  stroke: #eadfd5;
  stroke-width: 1;
}

body[data-view="competitor"] .competitor-price-chart-axis {
  stroke: #cdbdaf;
  stroke-width: 1;
}

body[data-view="competitor"] .competitor-price-chart-axis-label,
body[data-view="competitor"] .competitor-price-chart-category,
body[data-view="competitor"] .competitor-price-chart-axis-title {
  fill: #806b5c;
  font-family: inherit;
}

body[data-view="competitor"] .competitor-price-chart-axis-label {
  font-size: 12px;
}

body[data-view="competitor"] .competitor-price-chart-category {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.025em;
}

body[data-view="competitor"] .competitor-price-chart-axis-title {
  fill: #806253;
  font-size: 12px;
  font-weight: 750;
}

/* 每个类目组的金额直接显示在图内，颜色与柱体、图例一一对应。 */
body[data-view="competitor"] .competitor-price-chart-value {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -.025em;
  paint-order: stroke;
  stroke: #fffdf9;
  stroke-linejoin: round;
  stroke-width: 2.4px;
}

body[data-view="competitor"] .competitor-price-chart-value.is-median {
  fill: #a84a39;
}

body[data-view="competitor"] .competitor-price-chart-value.is-average {
  fill: #b97745;
}

body[data-view="competitor"] .competitor-price-chart-bar {
  transition: opacity .16s ease, filter .16s ease;
}

body[data-view="competitor"] .competitor-price-chart-bar.is-median {
  fill: #a84a39;
}

body[data-view="competitor"] .competitor-price-chart-bar.is-average {
  fill: #c78654;
}

body[data-view="competitor"] .competitor-price-chart-bar-group {
  cursor: help;
  outline: none;
}

body[data-view="competitor"] .competitor-price-chart-bar-group:hover .competitor-price-chart-bar,
body[data-view="competitor"] .competitor-price-chart-bar-group:focus .competitor-price-chart-bar {
  filter: brightness(.86) saturate(1.16);
  opacity: .92;
}

body[data-view="competitor"] .competitor-price-chart-bar-group:focus .competitor-price-chart-bar {
  stroke: #553126;
  stroke-width: 1.5px;
}

body[data-view="competitor"] .competitor-price-chart-footnote {
  margin: 3px 0 0;
}

body[data-view="competitor"] .competitor-title-word-cloud-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #eaded3;
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .98) 0, rgba(255, 252, 248, .84) 32%, transparent 62%),
    linear-gradient(135deg, #fffaf5 0%, #fdf7f0 52%, #fffdf9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 10px 24px rgba(80, 52, 35, .035);
}

body[data-view="competitor"] .competitor-title-word-cloud-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  align-items: baseline;
  margin: 0 auto 10px;
  max-width: 900px;
}

body[data-view="competitor"] .competitor-title-word-cloud-head h4 {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: #765446;
  font-size: 12px;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-title-word-cloud-head h4::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d99a68, #ae5140);
  box-shadow: 0 0 0 3px rgba(201, 125, 91, .12);
  content: "";
}

body[data-view="competitor"] .competitor-title-word-cloud-head small,
body[data-view="competitor"] .competitor-title-cloud-tip,
body[data-view="competitor"] .competitor-title-cloud-empty,
body[data-view="competitor"] .competitor-title-disclaimer {
  color: #927d6e;
  font-size: 10px;
  line-height: 1.42;
}

body[data-view="competitor"] .competitor-title-word-cloud {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 0;
  /* 宽屏为 880 × 410；比旧版更宽，但保持紧凑的纵向高度。 */
  aspect-ratio: 880 / 410;
  overflow: hidden;
  border: 1px solid #ead6c5;
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 14%, rgba(248, 221, 204, .56) 0, rgba(248, 221, 204, .16) 21%, transparent 47%),
    radial-gradient(circle at 85% 84%, rgba(232, 198, 165, .34) 0, rgba(232, 198, 165, .08) 22%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 250, 244, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 18px rgba(92, 56, 37, .045);
}

body[data-view="competitor"] .competitor-title-cloud-bubble {
  cursor: pointer;
  outline: none;
}

body[data-view="competitor"] .competitor-title-cloud-bubble-motion {
  --bubble-rest-scale: 1;
  --bubble-breathe-scale: 1.026;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  animation: competitor-title-bubble-float var(--bubble-duration, 8s) cubic-bezier(.45, .05, .55, .95) var(--bubble-delay, 0s) infinite;
}

body[data-view="competitor"] .competitor-title-cloud-bubble-shell {
  fill: #f8eee6;
  stroke: #dfc3af;
  stroke-width: 1.4px;
  filter: drop-shadow(0 3px 3px rgba(102, 62, 41, .10));
  transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease, filter .2s ease;
}

body[data-view="competitor"] .competitor-title-cloud-text {
  fill: #5a3e30;
  font-size: var(--cloud-size, 14px);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.1;
  pointer-events: none;
}

/* 圆内的真实标题覆盖数据：中、大气泡显示“商品数 · 比例”，小气泡只留比例。 */
body[data-view="competitor"] .competitor-title-cloud-data {
  fill: #8b7060;
  font-size: var(--cloud-data-size, 9px);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: .01em;
  pointer-events: none;
}

body[data-view="competitor"] .competitor-title-cloud-data.is-full {
  fill: #7b5e4f;
  font-weight: 800;
}

body[data-view="competitor"] .competitor-title-cloud-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(211, 180, 151, .55);
  border-radius: 99px;
  background: rgba(255, 255, 255, .62);
}

body[data-view="competitor"] .competitor-title-cloud-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b18454;
  box-shadow: 0 0 0 2px rgba(177, 132, 84, .16);
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-level-1 .competitor-title-cloud-bubble-shell {
  fill: #f6ece5;
  stroke: #dfcabb;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-level-2 .competitor-title-cloud-bubble-shell {
  fill: #f4e6db;
  stroke: #d8b99f;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-level-3 .competitor-title-cloud-bubble-shell {
  fill: #f2dfd2;
  stroke: #d29f80;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-level-4 .competitor-title-cloud-bubble-shell {
  fill: #efd5c6;
  stroke: #c98266;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-marketing .competitor-title-cloud-bubble-shell {
  fill: #f3e3cb;
  stroke: #bd9059;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-marketing .competitor-title-cloud-text {
  fill: #9d6f39;
}

body[data-view="competitor"] .competitor-title-cloud-bubble.is-marketing .competitor-title-cloud-data {
  fill: #a77a46;
}

body[data-view="competitor"] .competitor-title-cloud-bubble:hover .competitor-title-cloud-bubble-motion,
body[data-view="competitor"] .competitor-title-cloud-bubble:focus .competitor-title-cloud-bubble-motion {
  --bubble-rest-scale: 1.105;
  --bubble-breathe-scale: 1.135;
}

body[data-view="competitor"] .competitor-title-cloud-bubble:hover .competitor-title-cloud-bubble-shell,
body[data-view="competitor"] .competitor-title-cloud-bubble:focus .competitor-title-cloud-bubble-shell {
  filter: brightness(.99) saturate(1.16) drop-shadow(0 8px 9px rgba(142, 74, 52, .24));
  stroke: #a86349;
  stroke-width: 2.2px;
}

body[data-view="competitor"] .competitor-title-cloud-bubble:hover .competitor-title-cloud-text,
body[data-view="competitor"] .competitor-title-cloud-bubble:focus .competitor-title-cloud-text {
  fill: #4e2e23;
}

body[data-view="competitor"] .competitor-title-cloud-bubble:focus-visible .competitor-title-cloud-bubble-shell {
  stroke: #553126;
  stroke-width: 2.8px;
}

@keyframes competitor-title-bubble-float {
  0%,
  100% {
    transform: translate(var(--bubble-start-x), var(--bubble-start-y)) scale(var(--bubble-rest-scale));
  }

  50% {
    transform: translate(var(--bubble-end-x), var(--bubble-end-y)) scale(var(--bubble-breathe-scale));
  }
}

@media (prefers-reduced-motion: reduce) {
body[data-view="competitor"] .competitor-title-cloud-bubble-motion {
    animation: none;
    transform: translate(0, 0) scale(1);
    will-change: auto;
    transition: none;
  }

  body[data-view="competitor"] .competitor-title-cloud-bubble-shell {
    transition: none;
  }
}

body[data-view="competitor"] .competitor-title-cloud-tip,
body[data-view="competitor"] .competitor-title-cloud-empty {
  max-width: 900px;
  margin: 9px auto 0;
  color: #896f5d;
  font-size: 10px;
}

body[data-view="competitor"] .competitor-title-disclaimer {
  margin: 10px 0 0;
  padding: 8px 9px;
  border-left: 2px solid #dcc3ae;
  background: #fdf8f2;
}

body[data-view="competitor"] .competitor-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(126px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e0d7ce;
  background: rgba(255, 253, 249, .92);
}

body[data-view="competitor"] .competitor-filter-bar label {
  display: grid;
  gap: 5px;
  color: #746155;
  font-size: 11px;
  font-weight: 700;
}

body[data-view="competitor"] .competitor-filter-bar input,
body[data-view="competitor"] .competitor-filter-bar select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d9cdc1;
  border-radius: 4px;
  background: #fff;
  color: #3e2d23;
  font: inherit;
  font-size: 12px;
}

body[data-view="competitor"] .competitor-filter-bar input {
  padding: 0 11px;
}

body[data-view="competitor"] .competitor-filter-bar select {
  padding: 0 7px;
}

body[data-view="competitor"] .competitor-filter-bar input:focus,
body[data-view="competitor"] .competitor-filter-bar select:focus {
  outline: 2px solid rgba(164, 71, 53, .24);
  outline-offset: 1px;
}

body[data-view="competitor"] .competitor-filter-bar .primary-btn {
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-list-note {
  margin: -4px 0 0;
  color: #8c7768;
  font-size: 12px;
  line-height: 1.5;
}

body[data-view="competitor"] .competitor-table-wrap {
  overflow: auto;
  border: 1px solid #ded5cb;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(49, 31, 20, .05);
}

body[data-view="competitor"] .competitor-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #45342a;
  font-size: 12px;
}

body[data-view="competitor"] .competitor-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 11px;
  border-bottom: 1px solid #d9cec3;
  background: #f7f1eb;
  color: #735d4e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-table th:nth-child(1) { width: 54px; }
body[data-view="competitor"] .competitor-table th:nth-child(2) { min-width: 285px; }
body[data-view="competitor"] .competitor-table th:nth-child(3) { min-width: 104px; }
body[data-view="competitor"] .competitor-table th:nth-child(4) { min-width: 140px; }
body[data-view="competitor"] .competitor-table th:nth-child(5) { min-width: 112px; }
body[data-view="competitor"] .competitor-table th:nth-child(6) { min-width: 130px; }
body[data-view="competitor"] .competitor-table th:nth-child(7) { min-width: 176px; }

body[data-view="competitor"] .competitor-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #eee6df;
  vertical-align: middle;
}

body[data-view="competitor"] .competitor-table tbody tr {
  transition: background .16s ease;
}

body[data-view="competitor"] .competitor-table tbody tr:hover {
  background: #fff8f1;
}

body[data-view="competitor"] .competitor-table tbody tr:last-child td {
  border-bottom: 0;
}

body[data-view="competitor"] .competitor-table td > small,
body[data-view="competitor"] .competitor-product-copy small,
body[data-view="competitor"] .competitor-brand-store small,
body[data-view="competitor"] .competitor-search-occupancy small {
  display: block;
  margin-top: 4px;
  color: #927d6d;
  font-size: 10px;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-rank {
  color: #9a3329;
  font-size: 14px;
}

body[data-view="competitor"] .competitor-product-cell {
  min-width: 285px;
}

body[data-view="competitor"] .competitor-product-open {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: 100%;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body[data-view="competitor"] .competitor-product-open:hover .competitor-product-copy strong {
  color: #9a3329;
}

body[data-view="competitor"] .competitor-product-image {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #e2d7cb;
  background: #fff;
}

body[data-view="competitor"] .competitor-product-image img,
body[data-view="competitor"] .competitor-product-image .image-fallback,
body[data-view="competitor"] .competitor-product-image .competitor-no-public-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-view="competitor"] .competitor-product-image .competitor-no-public-image,
.competitor-detail-image .competitor-no-public-image {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  box-sizing: border-box;
  padding: 7px;
  background: linear-gradient(145deg, #f7f1eb, #eee6de);
  color: #987e6d;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

body[data-view="competitor"] .competitor-product-image .competitor-no-public-image b,
.competitor-detail-image .competitor-no-public-image b {
  color: #796355;
  font-size: 10px;
  font-weight: 800;
}

body[data-view="competitor"] .competitor-product-copy {
  min-width: 0;
  align-self: center;
}

body[data-view="competitor"] .competitor-product-copy strong {
  display: block;
  color: #35251d;
  font-size: 13px;
  line-height: 1.42;
}

body[data-view="competitor"] .competitor-metric {
  display: block;
  color: #3a281e;
  font-size: 13px;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-muted,
body[data-view="competitor"] .competitor-search-empty {
  color: #a28d7d;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-price-status {
  display: grid;
  gap: 3px;
  min-width: 116px;
  padding: 7px 8px;
  border: 1px solid #eadfd4;
  border-radius: 5px;
  background: #fffaf5;
}

body[data-view="competitor"] .competitor-price-status b {
  color: #715847;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-price-status small {
  color: #997e6a;
  font-size: 10px;
  line-height: 1.32;
}

body[data-view="competitor"] .competitor-price-status.is-ready {
  border-color: #b7ddce;
  background: #f0faf5;
}

body[data-view="competitor"] .competitor-price-status.is-ready b {
  color: #1b765c;
}

body[data-view="competitor"] .competitor-price-status.is-stable {
  border-color: #d8d5cf;
  background: #f7f6f3;
}

body[data-view="competitor"] .competitor-price-status.is-stable b {
  color: #6d685f;
}

body[data-view="competitor"] .competitor-price-status.is-missing,
body[data-view="competitor"] .competitor-price-status.is-incomparable {
  border-style: dashed;
  background: #fbf8f4;
}

body[data-view="competitor"] .competitor-search-occupancy,
body[data-view="competitor"] .competitor-brand-store {
  display: grid;
  gap: 1px;
}

body[data-view="competitor"] .competitor-search-occupancy b,
body[data-view="competitor"] .competitor-brand-store b {
  color: #4b362a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

body[data-view="competitor"] .competitor-hot-keyword-matches,
.competitor-detail-body .competitor-hot-keyword-matches {
  display: grid;
  gap: 5px;
  min-width: 126px;
}

body[data-view="competitor"] .competitor-hot-keyword-chips,
.competitor-detail-body .competitor-hot-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body[data-view="competitor"] .competitor-hot-keyword-chips > span,
.competitor-detail-body .competitor-hot-keyword-chips > span {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #eaded3;
  border-radius: 4px;
  background: #fff9f4;
  color: #573e2f;
  font-size: 10px;
  line-height: 1.25;
}

body[data-view="competitor"] .competitor-hot-keyword-chips b,
.competitor-detail-body .competitor-hot-keyword-chips b {
  overflow: hidden;
  color: #523829;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-hot-keyword-chips em,
.competitor-detail-body .competitor-hot-keyword-chips em {
  color: #a04e3f;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-hot-keyword-matches > small,
.competitor-detail-body .competitor-hot-keyword-matches > small {
  color: #967f70;
  font-size: 10px;
  line-height: 1.35;
}

.competitor-detail-body .competitor-hot-keyword-matches.is-detail {
  min-width: 0;
}

.competitor-detail-body .competitor-hot-keyword-matches.is-detail .competitor-hot-keyword-chips {
  gap: 6px;
}

.competitor-detail-body .competitor-hot-keyword-matches.is-detail .competitor-hot-keyword-chips > span {
  padding: 6px 8px;
  font-size: 11px;
}

.competitor-detail-body .competitor-hot-keyword-matches.is-detail .competitor-hot-keyword-chips em {
  font-size: 10px;
}

body[data-view="competitor"] .competitor-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body[data-view="competitor"] .competitor-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: #f4ede6;
  color: #806656;
  font-size: 10px;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-status.is-ready {
  background: #e5f3eb;
  color: #246b4f;
}

body[data-view="competitor"] .competitor-status.is-collecting {
  background: #fff0d9;
  color: #9a5b16;
}

body[data-view="competitor"] .competitor-status.is-pending {
  background: #f4ece5;
  color: #806656;
}

body[data-view="competitor"] .competitor-status.is-neutral {
  background: #eef0f2;
  color: #65707b;
}

body[data-view="competitor"] .competitor-table-empty {
  padding: 44px !important;
  color: #947e6d;
  text-align: center;
}

body[data-view="competitor"] .competitor-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 36px;
  color: #806b5c;
  font-size: 12px;
}

body[data-view="competitor"] .competitor-pagination button {
  min-width: 70px;
}

.competitor-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  justify-content: flex-end;
}

.competitor-detail-modal.show {
  display: flex;
}

.competitor-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 17, .45);
}

.competitor-detail-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100vw);
  height: 100%;
  overflow: auto;
  border-left: 1px solid #ded1c4;
  background: #fffdf9;
  box-shadow: -24px 0 70px rgba(38, 24, 16, .24);
}

.competitor-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 25px 18px;
  border-bottom: 1px solid #e4d9cf;
  background: rgba(255, 253, 249, .97);
  backdrop-filter: blur(9px);
}

.competitor-detail-head h2 {
  margin: 0;
  color: #2e211a;
  font-size: 23px;
  line-height: 1.28;
}

.competitor-detail-head p:last-child {
  margin: 6px 0 0;
  color: #816d60;
  font-size: 12px;
}

.competitor-detail-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #d8cabe;
  border-radius: 50%;
  background: #fff;
  color: #5e3e30;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.competitor-detail-body {
  display: grid;
  gap: 18px;
  padding: 22px 25px 30px;
}

.competitor-detail-loading,
.competitor-detail-empty,
.competitor-price-chart-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #dccfc2;
  background: #fcf8f3;
  color: #8c7666;
  font-size: 13px;
  line-height: 1.55;
}

.competitor-detail-loading.is-error {
  border-color: #dfb4aa;
  color: #9b382f;
}

.competitor-detail-overview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid #e5d9cf;
  background: #fff;
}

.competitor-detail-image {
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid #e4d8cd;
  background: #fff;
}

.competitor-detail-image img,
.competitor-detail-image .image-fallback,
.competitor-detail-image .competitor-no-public-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.competitor-detail-image .competitor-no-public-image {
  gap: 5px;
  font-size: 12px;
}

.competitor-detail-image .competitor-no-public-image b {
  font-size: 12px;
}

.competitor-detail-product-copy {
  min-width: 0;
}

.competitor-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.competitor-detail-tags span {
  padding: 4px 7px;
  border-radius: 99px;
  background: #f6eee6;
  color: #715b4b;
  font-size: 10px;
}

.competitor-detail-product-copy h3 {
  margin: 10px 0 5px;
  color: #34251c;
  font-size: 16px;
  line-height: 1.45;
}

.competitor-detail-product-copy p {
  margin: 0;
  color: #8a7566;
  font-size: 12px;
  line-height: 1.5;
}

.competitor-detail-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #eee4db;
}

.competitor-detail-metrics > div {
  display: grid;
  gap: 5px;
  padding: 13px 12px 2px;
  border-right: 1px solid #eee4db;
}

.competitor-detail-metrics > div:first-child {
  padding-left: 0;
}

.competitor-detail-metrics > div:last-child {
  border-right: 0;
}

.competitor-detail-metrics span {
  color: #927d6e;
  font-size: 11px;
}

.competitor-detail-metrics strong {
  color: #3a281e;
  font-size: 14px;
  line-height: 1.3;
}

.competitor-detail-section {
  padding: 18px;
  border: 1px solid #e5d9cf;
  background: #fff;
}

.competitor-detail-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.competitor-detail-section-head h3 {
  margin: 0;
  color: #3d2c22;
  font-size: 17px;
}

.competitor-detail-section-head .competitor-price-status {
  max-width: 170px;
}

.competitor-price-chart {
  display: grid;
  gap: 8px;
}

.competitor-price-chart svg {
  width: 100%;
  height: 148px;
  overflow: visible;
}

.competitor-price-grid {
  stroke: #eee4dc;
  stroke-width: 1;
}

.competitor-price-line {
  fill: none;
  stroke: #a74435;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.competitor-price-point {
  fill: #fff;
  stroke: #a74435;
  stroke-width: 2.5;
}

.competitor-price-chart-axis {
  display: flex;
  justify-content: space-between;
  color: #a08a7b;
  font-size: 10px;
}

.competitor-price-chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}

.competitor-price-chart-labels span {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid #eee3d9;
  background: #fffaf5;
}

.competitor-price-chart-labels b {
  color: #957e6f;
  font-size: 10px;
}

.competitor-price-chart-labels em {
  color: #533a2c;
  font-size: 11px;
  font-style: normal;
}

.competitor-detail-note {
  margin: 12px 0 0;
  color: #876f60;
  font-size: 12px;
  line-height: 1.55;
}

.competitor-keyword-table-wrap {
  overflow: auto;
  border: 1px solid #ebe1d8;
}

.competitor-keyword-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #4d382b;
  font-size: 12px;
}

.competitor-keyword-table th,
.competitor-keyword-table td {
  padding: 10px;
  border-bottom: 1px solid #eee5dd;
  text-align: left;
}

.competitor-keyword-table th {
  background: #faf5ef;
  color: #796252;
  font-size: 11px;
}

.competitor-keyword-table tr:last-child td {
  border-bottom: 0;
}

.competitor-detail-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 2px;
  color: #987f6e;
  font-size: 11px;
}

@media (max-width: 1480px) {
  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(135px, 1fr)) auto;
  }

  body[data-view="competitor"] .competitor-filter-bar > label:nth-child(5),
  body[data-view="competitor"] .competitor-filter-bar > label:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 1240px) {
  body[data-view="competitor"] .competitor-dashboards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  body[data-view="competitor"] .competitor-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(3) {
    border-right: 0;
  }

  body[data-view="competitor"] .competitor-summary p {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-filter-bar .competitor-search {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body[data-view="competitor"] #view-competitor {
    padding: 18px 12px 32px;
  }

  body[data-view="competitor"] .competitor-scope-tabs {
    grid-template-columns: 1fr;
  }

  body[data-view="competitor"] .competitor-dashboard-card {
    padding: 14px;
  }

  body[data-view="competitor"] .competitor-dashboard-price .competitor-dashboard-body {
    max-height: none;
    padding-right: 0;
  }

  body[data-view="competitor"] .competitor-dashboard-overview,
  body[data-view="competitor"] .competitor-title-overview {
    grid-template-columns: 1fr;
  }

  body[data-view="competitor"] .competitor-price-chart-head {
    display: grid;
  }

  body[data-view="competitor"] .competitor-price-chart-head > small {
    max-width: none;
    text-align: left;
  }

  /* 单张紧凑图在小屏内横向查看，不挤压类目标签。 */
  body[data-view="competitor"] .competitor-price-chart-scroller {
    overflow-x: auto;
    padding-bottom: 9px;
  }

  body[data-view="competitor"] .competitor-price-chart-value {
    font-size: 10px;
  }

  body[data-view="competitor"] .competitor-title-word-cloud {
    /* 移动端仅展示 14 个最高频气泡，避免纵向页面被词云占满。 */
    aspect-ratio: 340 / 360;
    max-width: 390px;
    border-radius: 12px;
  }

  body[data-view="competitor"] .competitor-scope-tab {
    min-height: 0;
  }

  body[data-view="competitor"] .competitor-head {
    display: grid;
    align-items: start;
  }

  body[data-view="competitor"] .competitor-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  body[data-view="competitor"] .competitor-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-filter-bar .competitor-search {
    grid-column: 1 / -1;
  }

  body[data-view="competitor"] .competitor-filter-bar .primary-btn {
    width: 100%;
  }

  body[data-view="competitor"] .competitor-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(2) {
    border-right: 0;
  }

  body[data-view="competitor"] .competitor-summary > div:nth-child(3) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  body[data-view="competitor"] .competitor-summary > div {
    min-height: 78px;
    padding: 14px;
  }

  body[data-view="competitor"] .competitor-summary strong {
    font-size: 22px;
  }

  body[data-view="competitor"] .competitor-table {
    min-width: 920px;
  }

  body[data-view="competitor"] .competitor-table th:nth-child(2),
  body[data-view="competitor"] .competitor-product-cell {
    min-width: 230px;
  }

  body[data-view="competitor"] .competitor-table th:nth-child(7) {
    min-width: 150px;
  }

  .competitor-detail-panel {
    width: 100vw;
  }

  .competitor-detail-head,
  .competitor-detail-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .competitor-detail-overview {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 13px;
  }

  .competitor-detail-image {
    width: 90px;
    height: 90px;
  }

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

  .competitor-detail-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .competitor-detail-metrics > div:nth-child(n + 3) {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee4db;
  }

  .competitor-detail-section {
    padding: 14px;
  }

  .competitor-detail-section-head {
    display: grid;
  }
}

/* 方案 A 的最终层级覆盖：本段位于既有竞品样式之后，确保编辑感布局优先。 */
body[data-view="competitor"] #view-competitor {
  position: relative;
  overflow: hidden;
  padding: 30px clamp(20px, 3.1vw, 52px) 64px;
  background:
    radial-gradient(circle at 96% 4%, rgba(220, 163, 114, .19), transparent 22%),
    radial-gradient(circle at 5% 34%, rgba(238, 202, 171, .18), transparent 23%),
    #f5f0e9;
}

body[data-view="competitor"] #view-competitor::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #a54431, #d98955 48%, rgba(216, 137, 85, 0));
  content: "";
}

body[data-view="competitor"] .competitor-shell {
  width: min(1480px, 100%);
  gap: 20px;
  margin: 0 auto;
}

body[data-view="competitor"] .competitor-head {
  position: relative;
  align-items: center;
  min-height: 142px;
  padding: 26px 29px 25px 33px;
  overflow: hidden;
  border: 1px solid #e6d8cb;
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(255, 253, 249, .98) 0%, rgba(255, 251, 245, .98) 61%, rgba(246, 225, 207, .84) 100%);
  box-shadow: 0 18px 38px rgba(91, 51, 30, .075);
}

body[data-view="competitor"] .competitor-head::before {
  position: absolute;
  top: -44px;
  right: clamp(180px, 23vw, 330px);
  width: 178px;
  height: 178px;
  border: 1px solid rgba(183, 95, 63, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(208, 141, 91, .055), 0 0 0 48px rgba(208, 141, 91, .035);
  content: "";
}

body[data-view="competitor"] .competitor-head::after {
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 0;
  width: 5px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(#a33d2e, #d48a55);
  content: "";
}

body[data-view="competitor"] .competitor-head > * {
  position: relative;
  z-index: 1;
}

body[data-view="competitor"] .competitor-head .eyebrow,
body[data-view="competitor"] .competitor-dashboard-head .eyebrow,
body[data-view="competitor"] .competitor-ranking-head .eyebrow,
body[data-view="competitor"] .competitor-title-context-head .eyebrow,
body[data-view="competitor"] .competitor-keyword-finale-head .eyebrow,
body[data-view="competitor"] .competitor-keyword-heat-head .eyebrow {
  color: #a44936;
  font-size: 10px;
  letter-spacing: .14em;
}

body[data-view="competitor"] .competitor-head h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.055em;
}

body[data-view="competitor"] .competitor-head p:not(.eyebrow) {
  max-width: 770px;
  color: #796558;
  font-size: 13px;
}

body[data-view="competitor"] .competitor-head-actions {
  align-self: flex-start;
  padding-top: 2px;
}

body[data-view="competitor"] .competitor-period {
  border-color: #e8cdb9;
  background: rgba(255, 250, 244, .78);
  color: #975342;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .03em;
}

body[data-view="competitor"] .competitor-head .ghost-btn,
body[data-view="competitor"] .competitor-pagination .ghost-btn {
  border-color: #d9aa8b;
  border-radius: 999px;
  background: #fffaf5;
  color: #934533;
  font-weight: 750;
}

body[data-view="competitor"] .competitor-editorial-toolbar {
  display: grid;
  grid-template-columns: minmax(315px, .96fr) minmax(0, 2.14fr);
  gap: 16px;
}

body[data-view="competitor"] .competitor-scope-tabs {
  gap: 8px;
  padding: 8px;
  border: 1px solid #e3d6ca;
  border-radius: 16px;
  background: rgba(255, 253, 249, .76);
  box-shadow: 0 10px 24px rgba(83, 48, 30, .035);
}

body[data-view="competitor"] .competitor-scope-tab {
  min-height: 0;
  padding: 12px 13px;
  border-color: transparent;
  border-radius: 11px;
  background: transparent;
}

body[data-view="competitor"] .competitor-scope-tab strong { font-size: 12px; }

body[data-view="competitor"] .competitor-scope-tab small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="competitor"] .competitor-scope-tab.is-active {
  border-color: #e5c6b0;
  background: linear-gradient(135deg, #fff8f1, #f7e6d9);
  box-shadow: inset 3px 0 0 #a74435;
}

body[data-view="competitor"] .competitor-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(185px, .92fr);
  border: 1px solid #e4d7cb;
  border-radius: 16px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 10px 24px rgba(83, 48, 30, .035);
}

body[data-view="competitor"] .competitor-summary > div {
  min-height: 88px;
  padding: 15px 18px;
}

body[data-view="competitor"] .competitor-summary > div::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8764e;
  box-shadow: 0 0 0 4px rgba(200, 118, 78, .12);
  content: "";
}

body[data-view="competitor"] .competitor-summary > div:nth-child(2)::before { background: #ae4937; }
body[data-view="competitor"] .competitor-summary > div:nth-child(3)::before { background: #a8824d; }
body[data-view="competitor"] .competitor-summary span { color: #8c7566; font-size: 11px; }
body[data-view="competitor"] .competitor-summary strong {
  color: #43291f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}
body[data-view="competitor"] .competitor-summary p {
  background: linear-gradient(135deg, #fbf4ed, #f5e8dd);
  color: #8a6f5e;
  font-size: 11px;
}

body[data-view="competitor"] .competitor-dashboards,
body[data-view="competitor"] .competitor-title-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body[data-view="competitor"] .competitor-dashboard-card,
body[data-view="competitor"] .competitor-title-context,
body[data-view="competitor"] .competitor-ranking-section,
body[data-view="competitor"] .competitor-keyword-finale {
  border: 1px solid #e4d7cb;
  border-radius: 20px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 16px 34px rgba(82, 46, 28, .052);
}

body[data-view="competitor"] .competitor-dashboard-card {
  padding: 23px 24px 22px;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

body[data-view="competitor"] .competitor-dashboard-price {
  background: radial-gradient(circle at 94% 7%, rgba(231, 189, 149, .26), transparent 20%), linear-gradient(135deg, #fffdfa, #fbf5ee);
}

body[data-view="competitor"] .competitor-dashboard-head h3,
body[data-view="competitor"] .competitor-ranking-head h3,
body[data-view="competitor"] .competitor-title-context-head h3,
body[data-view="competitor"] .competitor-keyword-finale-head h3,
body[data-view="competitor"] .competitor-keyword-heat-head h3 {
  color: #3e281f;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 23px;
  letter-spacing: -.035em;
}

body[data-view="competitor"] .competitor-dashboard-note { max-width: 820px; color: #8a7465; }
body[data-view="competitor"] .competitor-dashboard-badge { border-color: #e9cdbb; background: #fff9f3; color: #a34b38; }
body[data-view="competitor"] .competitor-price-currency-chart { padding: 16px 16px 7px; border-top-color: #eadcd0; }
body[data-view="competitor"] .competitor-price-currency-chart:first-child { border-top: 0; }
body[data-view="competitor"] .competitor-price-chart-grid { stroke: #eaded3; }
body[data-view="competitor"] .competitor-price-chart-value.is-median { fill: #9d4534; }
body[data-view="competitor"] .competitor-price-chart-value.is-average { fill: #af7042; }

body[data-view="competitor"] .competitor-title-context {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(252, 246, 240, .92), rgba(255, 253, 249, .95) 33%, rgba(255, 253, 249, .95));
}

body[data-view="competitor"] .competitor-title-context-head,
body[data-view="competitor"] .competitor-keyword-finale-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #eddfd3;
}

body[data-view="competitor"] .competitor-title-context-head h3,
body[data-view="competitor"] .competitor-keyword-finale-head h3 { margin: 0; }
body[data-view="competitor"] .competitor-title-context-head p:not(.eyebrow),
body[data-view="competitor"] .competitor-keyword-finale-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 7px 0 0;
  color: #887164;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-title-context-head > span,
body[data-view="competitor"] .competitor-keyword-finale-mark {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #e6cdbb;
  border-radius: 999px;
  background: #fff9f4;
  color: #a35843;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

body[data-view="competitor"] .competitor-title-context .competitor-dashboard-title { background: transparent; }
body[data-view="competitor"] .competitor-title-overview { max-width: 900px; margin-right: auto; margin-left: auto; }
body[data-view="competitor"] .competitor-title-overview > span { border-radius: 10px; background: #fffaf6; }

body[data-view="competitor"] .competitor-ranking-section { padding: 22px 22px 16px; }
body[data-view="competitor"] .competitor-ranking-head {
  display: grid;
  grid-template-columns: minmax(235px, .72fr) minmax(0, 2.28fr);
  gap: 24px;
  align-items: end;
  padding: 0 3px 18px;
}
body[data-view="competitor"] .competitor-ranking-head h3 { margin: 0; }
body[data-view="competitor"] .competitor-ranking-head p:not(.eyebrow) {
  max-width: 330px;
  margin: 7px 0 0;
  color: #8c7567;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="competitor"] .competitor-filter-bar {
  grid-template-columns: minmax(165px, 1.45fr) repeat(5, minmax(96px, .9fr)) auto;
  gap: 7px;
  padding: 9px;
  border-color: #eadcd0;
  border-radius: 13px;
  background: #fbf7f2;
}
body[data-view="competitor"] .competitor-filter-bar label { gap: 4px; color: #8c7362; font-size: 10px; }
body[data-view="competitor"] .competitor-filter-bar input,
body[data-view="competitor"] .competitor-filter-bar select {
  min-height: 35px;
  border-color: #e3d4c7;
  border-radius: 8px;
  background: #fffdf9;
  color: #54392b;
  font-size: 11px;
}
body[data-view="competitor"] .competitor-filter-bar .primary-btn {
  min-height: 35px;
  align-self: end;
  border-radius: 8px;
  background: #a64634;
  box-shadow: 0 6px 13px rgba(151, 62, 44, .18);
  font-size: 11px;
}
body[data-view="competitor"] .competitor-list-note {
  margin: 0 3px 12px;
  padding: 9px 12px;
  border-left: 2px solid #ce8557;
  background: #fff9f4;
  color: #896f5e;
  font-size: 11px;
}
body[data-view="competitor"] .competitor-table-wrap { border-color: #e8dbd0; border-radius: 14px; box-shadow: none; }
body[data-view="competitor"] .competitor-table th {
  padding: 13px 11px;
  border-bottom-color: #e8d9cc;
  background: #faf4ee;
  color: #805f4e;
  font-size: 10px;
  letter-spacing: .06em;
}
body[data-view="competitor"] .competitor-table tbody tr:nth-child(2n) { background: rgba(255, 251, 246, .55); }
body[data-view="competitor"] .competitor-table tbody tr:hover { background: #fff4ea; }
body[data-view="competitor"] .competitor-table td { padding-top: 14px; padding-bottom: 14px; }
body[data-view="competitor"] .competitor-rank { color: #a23f30; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
body[data-view="competitor"] .competitor-product-image { border-radius: 9px; box-shadow: 0 5px 12px rgba(71, 43, 28, .08); }
body[data-view="competitor"] .competitor-product-copy strong { color: #3d281e; font-size: 12px; }
body[data-view="competitor"] .competitor-hot-keyword-chips > span { border-radius: 999px; background: #fff8f1; }
body[data-view="competitor"] .competitor-pagination { min-height: 44px; padding: 8px 3px 0; }

body[data-view="competitor"] .competitor-keyword-finale {
  overflow: hidden;
  background: radial-gradient(circle at 92% 8%, rgba(237, 203, 163, .3), transparent 23%), #fffdf9;
}
body[data-view="competitor"] .competitor-keyword-heat-card { padding: 23px 26px 25px; }
body[data-view="competitor"] .competitor-keyword-heat-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
body[data-view="competitor"] .competitor-keyword-heat-head h3 { margin: 0; font-size: 20px; }
body[data-view="competitor"] .competitor-keyword-heat-head > span {
  padding: 5px 8px;
  border: 1px solid #ead2bf;
  border-radius: 999px;
  background: #fff9f4;
  color: #a15a42;
  font-size: 10px;
  font-weight: 750;
}
body[data-view="competitor"] .competitor-keyword-heat-card > p {
  max-width: 760px;
  margin: 7px 0 17px;
  color: #896f5f;
  font-size: 12px;
  line-height: 1.55;
}
body[data-view="competitor"] .competitor-keyword-heat-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body[data-view="competitor"] .competitor-keyword-heat-item {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 59px;
  padding: 8px 10px;
  border: 1px solid #ecded3;
  border-radius: 11px;
  background: rgba(255, 251, 247, .86);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body[data-view="competitor"] .competitor-keyword-heat-item:hover {
  z-index: 1;
  border-color: #d9ad8d;
  box-shadow: 0 8px 16px rgba(110, 62, 37, .09);
  transform: translateY(-2px);
}
body[data-view="competitor"] .competitor-keyword-heat-rank { color: #b06c48; font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 700; }
body[data-view="competitor"] .competitor-keyword-heat-copy { display: grid; gap: 7px; min-width: 0; }
body[data-view="competitor"] .competitor-keyword-heat-copy strong { overflow: hidden; color: #4a3023; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body[data-view="competitor"] .competitor-keyword-heat-copy i { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: #eee2d7; }
body[data-view="competitor"] .competitor-keyword-heat-copy em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b64e3b, #d48c55); }
body[data-view="competitor"] .competitor-keyword-heat-value { display: grid; gap: 2px; min-width: 74px; color: #9c5a41; text-align: right; }
body[data-view="competitor"] .competitor-keyword-heat-value small { color: #a98c7b; font-size: 9px; }
body[data-view="competitor"] .competitor-keyword-heat-value b { color: #8f4032; font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
body[data-view="competitor"] .competitor-keyword-heat-footnote { margin: 12px 0 0; color: #9a8070; font-size: 10px; }

@media (max-width: 1380px) {
  body[data-view="competitor"] .competitor-editorial-toolbar { grid-template-columns: 1fr; }
  body[data-view="competitor"] .competitor-ranking-head { grid-template-columns: 1fr; gap: 14px; }
  body[data-view="competitor"] .competitor-ranking-head p:not(.eyebrow) { max-width: 760px; }
  body[data-view="competitor"] .competitor-filter-bar { grid-template-columns: minmax(180px, 1.55fr) repeat(3, minmax(110px, 1fr)) auto; }
}

@media (max-width: 940px) {
  body[data-view="competitor"] .competitor-head { align-items: start; }
  body[data-view="competitor"] .competitor-head::before { right: 22px; }
  body[data-view="competitor"] .competitor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-view="competitor"] .competitor-summary > div:nth-child(2) { border-right: 0; }
  body[data-view="competitor"] .competitor-summary > div:nth-child(3),
  body[data-view="competitor"] .competitor-summary p { border-top: 1px solid #ebe2d9; }
  body[data-view="competitor"] .competitor-summary p { grid-column: span 1; }
  body[data-view="competitor"] .competitor-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-view="competitor"] .competitor-filter-bar .competitor-search { grid-column: span 2; }
}

@media (max-width: 720px) {
  body[data-view="competitor"] #view-competitor { padding: 19px 12px 36px; }
  body[data-view="competitor"] .competitor-shell { gap: 14px; }
  body[data-view="competitor"] .competitor-head,
  body[data-view="competitor"] .competitor-ranking-section,
  body[data-view="competitor"] .competitor-title-context,
  body[data-view="competitor"] .competitor-keyword-finale,
  body[data-view="competitor"] .competitor-dashboard-card { border-radius: 14px; }
  body[data-view="competitor"] .competitor-head { min-height: 0; padding: 22px 18px 18px 22px; }
  body[data-view="competitor"] .competitor-head h2 { font-size: 29px; }
  body[data-view="competitor"] .competitor-head-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body[data-view="competitor"] .competitor-period { overflow: hidden; text-overflow: ellipsis; }
  body[data-view="competitor"] .competitor-scope-tabs { grid-template-columns: 1fr; }
  body[data-view="competitor"] .competitor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
  body[data-view="competitor"] .competitor-summary > div,
  body[data-view="competitor"] .competitor-summary > div:nth-child(3) { min-height: 74px; padding: 12px; }
  body[data-view="competitor"] .competitor-summary > div:nth-child(3),
  body[data-view="competitor"] .competitor-summary p { grid-column: 1 / -1; }
  body[data-view="competitor"] .competitor-summary p { min-height: 48px; }
  body[data-view="competitor"] .competitor-dashboard-card,
  body[data-view="competitor"] .competitor-keyword-heat-card { padding: 17px 15px; }
  body[data-view="competitor"] .competitor-dashboard-head,
  body[data-view="competitor"] .competitor-title-context-head,
  body[data-view="competitor"] .competitor-keyword-finale-head,
  body[data-view="competitor"] .competitor-keyword-heat-head { align-items: start; }
  body[data-view="competitor"] .competitor-title-context-head,
  body[data-view="competitor"] .competitor-keyword-finale-head { padding: 18px 17px 14px; }
  body[data-view="competitor"] .competitor-title-context-head > span,
  body[data-view="competitor"] .competitor-keyword-finale-mark { display: none; }
  body[data-view="competitor"] .competitor-ranking-section { padding: 16px 12px 12px; }
  body[data-view="competitor"] .competitor-ranking-head { padding: 0 5px 13px; }
  body[data-view="competitor"] .competitor-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  body[data-view="competitor"] .competitor-filter-bar .competitor-search { grid-column: 1 / -1; }
  body[data-view="competitor"] .competitor-filter-bar .primary-btn { width: 100%; }
  body[data-view="competitor"] .competitor-list-note { margin-right: 5px; margin-left: 5px; }
  body[data-view="competitor"] .competitor-keyword-heat-items { grid-template-columns: 1fr; }
  body[data-view="competitor"] .competitor-keyword-heat-item { min-height: 56px; }
}

/* 品牌字段仅按公开文本线索展示，避免把候选名称呈现为品牌结论。 */
body[data-view="competitor"] .competitor-table th:nth-child(6) {
  min-width: 195px;
}

body[data-view="competitor"] .competitor-brand-evidence {
  display: grid;
  gap: 5px;
  min-width: 166px;
}

body[data-view="competitor"] .competitor-brand-evidence-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 6px;
  align-items: center;
}

body[data-view="competitor"] .competitor-brand-evidence-kind {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  border: 1px solid #e4d6c9;
  border-radius: 999px;
  background: #fbf7f2;
  color: #886d5c;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-brand-evidence b {
  overflow: hidden;
  color: #483229;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-brand-evidence > small,
body[data-view="competitor"] .competitor-seller-meta {
  display: block;
  margin: 0;
  color: #987f6e;
  font-size: 10px;
  line-height: 1.38;
}

body[data-view="competitor"] .competitor-seller-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f0e7df;
}

body[data-view="competitor"] .competitor-brand-evidence.is-page_field .competitor-brand-evidence-kind {
  border-color: #d5c8b8;
  background: #f8f4ed;
  color: #756052;
}

body[data-view="competitor"] .competitor-brand-evidence.is-title_mention .competitor-brand-evidence-kind,
body[data-view="competitor"] .competitor-brand-evidence.is-series_abbreviation .competitor-brand-evidence-kind,
body[data-view="competitor"] .competitor-brand-evidence.is-unknown .competitor-brand-evidence-kind {
  border-color: #ead1aa;
  background: #fff8ea;
  color: #9a6a27;
}

body[data-view="competitor"] .competitor-brand-evidence.is-risk .competitor-brand-evidence-kind {
  border-color: #e8c2ba;
  background: #fff3f0;
  color: #a14c3b;
}

body[data-view="competitor"] .competitor-brand-evidence.is-none .competitor-brand-evidence-kind {
  border-style: dashed;
  border-color: #d9d2ca;
  background: #faf9f7;
  color: #837c74;
}

body[data-view="competitor"] .competitor-brand-evidence.is-none b {
  color: #746b63;
}

body[data-view="competitor"] .competitor-brand-risk-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body[data-view="competitor"] .competitor-brand-risk-flags span {
  padding: 3px 5px;
  border: 1px solid #ebcfc7;
  border-radius: 4px;
  background: #fff8f5;
  color: #a15342;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

/* 最高置信度匹配在“原品牌”列置顶显示，但始终保留待核验语义。 */
body[data-view="competitor"] .competitor-forced-visual-brand.is-list {
  display: grid;
  gap: 3px;
  margin: 0 0 7px;
  padding: 7px 8px;
  border: 1px solid #e7bb8f;
  border-left: 4px solid #c26a35;
  border-radius: 7px;
  background: linear-gradient(135deg, #fffaf4, #fff1df);
  box-shadow: 0 3px 10px rgba(183, 102, 48, .08);
  color: #8a502c;
  line-height: 1.32;
}

body[data-view="competitor"] .competitor-forced-visual-brand.is-list b {
  overflow: hidden;
  color: #713816;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-forced-visual-brand.is-list small {
  overflow: hidden;
  color: #a26742;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 旧的严格视觉参考仅在没有最高置信度匹配时作为回退展示。 */
body[data-view="competitor"] .competitor-visual-brand-reference.is-list {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 6px 7px;
  border: 1px solid #d9c9ed;
  border-left: 3px solid #9775b8;
  border-radius: 7px;
  background: linear-gradient(135deg, #fcfaff, #f7f2fc);
  color: #705a92;
  line-height: 1.32;
}

body[data-view="competitor"] .competitor-visual-brand-reference.is-list b {
  overflow: hidden;
  color: #513a6d;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-visual-brand-reference.is-list small {
  overflow: hidden;
  color: #836d9d;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="competitor"] .competitor-visual-brand-reference.is-list.is-multiple,
body[data-view="competitor"] .competitor-visual-brand-reference.is-list.is-unknown {
  border-style: dashed;
  background: #fdfbff;
}

.competitor-detail-tags .competitor-detail-brand-tag {
  max-width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid #e4d6c9;
  background: #fbf7f2;
  color: #735c4c;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-detail-tags .competitor-detail-brand-tag.is-title_mention,
.competitor-detail-tags .competitor-detail-brand-tag.is-series_abbreviation,
.competitor-detail-tags .competitor-detail-brand-tag.is-unknown {
  border-color: #ead1aa;
  background: #fff8ea;
  color: #956728;
}

.competitor-detail-tags .competitor-detail-brand-tag.is-risk {
  border-color: #e8c2ba;
  background: #fff3f0;
  color: #9b4637;
}

.competitor-detail-tags .competitor-detail-brand-tag.is-none {
  border-style: dashed;
  border-color: #d9d2ca;
  background: #faf9f7;
  color: #7c756d;
}

.competitor-detail-tags .competitor-detail-brand-tag.is-forced-visual {
  border-color: #e5b77e;
  background: #fff4e7;
  color: #8a4d24;
}

.competitor-brand-review-section {
  background: linear-gradient(135deg, #fffdf9, #fdf7f0);
}

.competitor-brand-review-section .competitor-detail-note {
  margin-top: 0;
}

/* 详情页先给出视觉匹配卡，再展示通用说明与公开文本线索。 */
.competitor-brand-review-section > .competitor-visual-brand-reference.is-detail {
  margin-top: 0;
  margin-bottom: 12px;
}

.competitor-detail-body .competitor-brand-evidence.is-detail {
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadfd5;
  border-radius: 10px;
  background: rgba(255, 252, 248, .76);
}

.competitor-detail-body .competitor-brand-evidence.is-detail .competitor-brand-evidence-head {
  grid-template-columns: max-content minmax(0, 1fr);
}

.competitor-detail-body .competitor-brand-evidence.is-detail .competitor-brand-evidence-kind {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 10px;
}

.competitor-detail-body .competitor-brand-evidence.is-detail b {
  overflow: visible;
  font-size: 14px;
  text-overflow: clip;
  white-space: normal;
}

.competitor-detail-body .competitor-brand-evidence-copy {
  margin: 0;
  color: #775f50;
  font-size: 12px;
  line-height: 1.6;
}

.competitor-detail-body .competitor-forced-visual-brand.is-detail {
  display: grid;
  gap: 7px;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #edc89e;
  border-left: 4px solid #c76f38;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf4, #fff2e2);
}

.competitor-detail-body .competitor-forced-visual-brand-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.competitor-detail-body .competitor-forced-visual-brand-head span,
.competitor-detail-body .competitor-forced-visual-brand.is-detail > small,
.competitor-detail-body .competitor-forced-visual-brand-pool {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 21px;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid #ecc89f;
  border-radius: 999px;
  background: #fffaf3;
  color: #98603a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.competitor-detail-body .competitor-forced-visual-brand-head b {
  overflow: visible;
  color: #713816;
  font-size: 14px;
  font-weight: 850;
  text-overflow: clip;
  white-space: normal;
}

.competitor-detail-body .competitor-forced-visual-brand.is-detail > p {
  margin: 0;
  color: #875638;
  font-size: 12px;
  line-height: 1.55;
}

.competitor-detail-body .competitor-forced-visual-brand-direct-signal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #d9c5e9;
  border-radius: 6px;
  background: #fbf8ff;
  color: #6d5286;
  font-size: 11px;
  font-weight: 700;
}

.competitor-detail-body .competitor-forced-visual-brand-direct-signal span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 1px 6px;
  border: 1px solid #cdb5e2;
  border-radius: 999px;
  background: #f4ecfc;
  color: #73508e;
  font-size: 10px;
  font-weight: 850;
}

.competitor-detail-body .competitor-forced-visual-brand-direct-signal b {
  color: #633b82;
  font-weight: 850;
}

.competitor-detail-body .competitor-forced-visual-brand.is-detail > small {
  width: auto;
  padding: 5px 7px;
  border-radius: 6px;
  color: #8e6344;
  font-weight: 650;
}

.competitor-detail-body .competitor-visual-brand-reference.is-detail {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd2ed;
  border-left: 3px solid #a98bc6;
  border-radius: 8px;
  background: linear-gradient(135deg, #fdfbff, #faf7ff);
}

.competitor-detail-body .competitor-visual-brand-reference-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.competitor-detail-body .competitor-visual-brand-reference-head span,
.competitor-detail-body .competitor-visual-brand-reference.is-detail > small {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 21px;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid #d5c8e8;
  border-radius: 999px;
  background: #f5effd;
  color: #735895;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.competitor-detail-body .competitor-visual-brand-reference-head b {
  overflow: visible;
  color: #4f3a68;
  font-size: 13px;
  font-weight: 800;
  text-overflow: clip;
  white-space: normal;
}

.competitor-detail-body .competitor-visual-brand-reference.is-detail > p {
  margin: 0;
  color: #725f82;
  font-size: 12px;
  line-height: 1.55;
}

.competitor-detail-body .competitor-visual-brand-reference.is-detail > p.competitor-visual-brand-direct-mark {
  width: max-content;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid #e0d4ef;
  border-radius: 6px;
  background: #fff;
  color: #62487e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-no_reference,
.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-no_image,
.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-unavailable {
  border-left-color: #b5aaa0;
  border-color: #e3dcd5;
  background: #fcfaf7;
}

.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-no_reference .competitor-visual-brand-reference-head span,
.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-no_image .competitor-visual-brand-reference-head span,
.competitor-detail-body .competitor-visual-brand-reference.is-detail.is-unavailable .competitor-visual-brand-reference-head span {
  border-color: #ded5ce;
  background: #f7f4f1;
  color: #7c7167;
}

.competitor-detail-body .competitor-visual-brand-risk-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.competitor-detail-body .competitor-visual-brand-risk-flags span {
  padding: 3px 6px;
  border: 1px solid #e7ccc6;
  border-radius: 999px;
  background: #fff7f5;
  color: #9b503f;
  font-size: 9px;
  font-weight: 750;
}

.competitor-detail-body .competitor-brand-review {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e5d9cf;
  border-radius: 999px;
  background: #faf5ef;
  color: #806858;
  font-size: 10px;
  font-weight: 800;
}

.competitor-detail-body .competitor-brand-evidence.is-risk .competitor-brand-review {
  border-color: #eac8c1;
  background: #fff3f0;
  color: #9d493a;
}

@media (max-width: 720px) {
  body[data-view="competitor"] .competitor-table th:nth-child(6) {
    min-width: 188px;
  }

  body[data-view="competitor"] .competitor-brand-evidence {
    min-width: 158px;
  }

  .competitor-detail-body .competitor-brand-evidence.is-detail .competitor-brand-evidence-head {
    grid-template-columns: 1fr;
  }

  .competitor-detail-body .competitor-visual-brand-reference-head {
    grid-template-columns: 1fr;
  }
}

/* 本轮敦煌关键词搜索与历史热度榜分开表达：只呈现搜索发现字段，避免被误读为成交或自然排序。 */
body[data-view="competitor"] .competitor-live-search-context {
  position: relative;
  overflow: hidden;
  padding: 21px 24px 17px;
  border: 1px solid #ded8ea;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(181, 157, 214, .18), transparent 26%),
    linear-gradient(135deg, #fffdfd, #faf7ff);
  box-shadow: 0 14px 30px rgba(68, 49, 93, .055);
}

body[data-view="competitor"] .competitor-live-search-context[hidden] {
  display: none;
}

body[data-view="competitor"] .competitor-live-search-head,
body[data-view="competitor"] .competitor-live-search-empty {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

body[data-view="competitor"] .competitor-live-search-head .eyebrow,
body[data-view="competitor"] .competitor-live-search-empty .eyebrow {
  margin: 0 0 5px;
  color: #755598;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

body[data-view="competitor"] .competitor-live-search-head h3,
body[data-view="competitor"] .competitor-live-search-empty h3 {
  margin: 0;
  color: #3f2e50;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.2;
}

body[data-view="competitor"] .competitor-live-search-head > div > p:not(.eyebrow),
body[data-view="competitor"] .competitor-live-search-empty > p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #766a82;
  font-size: 12px;
  line-height: 1.58;
}

body[data-view="competitor"] .competitor-live-search-status {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 6px 9px;
  border: 1px solid #d9c8e8;
  border-radius: 999px;
  background: #f8f1ff;
  color: #65447d;
  font-size: 10px;
  font-weight: 800;
}

body[data-view="competitor"] .competitor-live-search-status.is-pending {
  border-color: #ead8af;
  background: #fff9e9;
  color: #8b6c24;
}

body[data-view="competitor"] .competitor-live-search-status.is-warning {
  border-color: #edc9bf;
  background: #fff4f1;
  color: #a54d3c;
}

body[data-view="competitor"] .competitor-live-search-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0 10px;
}

body[data-view="competitor"] .competitor-live-search-metrics > div {
  min-height: 63px;
  padding: 10px 11px;
  border: 1px solid #e4ddeb;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

body[data-view="competitor"] .competitor-live-search-metrics dt {
  color: #8a798f;
  font-size: 10px;
  line-height: 1.3;
}

body[data-view="competitor"] .competitor-live-search-metrics dd {
  margin: 4px 0 0;
  color: #432f55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
}

body[data-view="competitor"] .competitor-live-search-trace {
  margin: 0;
  color: #887889;
  font-size: 10px;
  line-height: 1.45;
}

body[data-view="competitor"] .competitor-live-search-keywords .competitor-hot-keyword-chips > span {
  align-items: center;
  border-color: #ddd0e9;
  background: #fcf8ff;
}

body[data-view="competitor"] .competitor-live-search-keywords .competitor-hot-keyword-chips em {
  color: #775797;
}

body[data-view="competitor"] .competitor-live-search-keywords .competitor-hot-keyword-chips i {
  padding-left: 4px;
  border-left: 1px solid #e2d8ea;
  color: #87778f;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 920px) {
  body[data-view="competitor"] .competitor-live-search-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-view="competitor"] .competitor-live-search-context {
    padding: 16px;
    border-radius: 14px;
  }

  body[data-view="competitor"] .competitor-live-search-head,
  body[data-view="competitor"] .competitor-live-search-empty {
    display: grid;
    gap: 10px;
  }

  body[data-view="competitor"] .competitor-live-search-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  body[data-view="competitor"] .competitor-live-search-metrics dd {
    font-size: 18px;
  }
}
