/* Preview-only presentation layer. Shell changes apply only while Trend is mounted. */
.trend-page[data-v-140dc5af] {
  --trend-ink: #181818;
  --trend-muted: #595959;
  --trend-accent: #087789;
  --trend-soft: #eff8fa;
  --trend-line: #dedede;
  --trend-paper: #fff;
  --trend-name-width: 208px;
  --c-blue: var(--trend-accent);
  color: var(--trend-ink);
  font-family: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  padding: 8px 0 24px;
}
.trend-page[data-v-140dc5af] *, .trend-page[data-v-140dc5af] *::before, .trend-page[data-v-140dc5af] *::after { box-sizing: border-box; }
.trend-page[data-v-140dc5af] .trend-heading { padding: 4px 0 28px; }
.trend-page[data-v-140dc5af] .trend-eyebrow { margin: 0 0 12px; color: var(--trend-accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.trend-page[data-v-140dc5af] .trend-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.trend-page[data-v-140dc5af] .trend-description { margin: 12px 0 0; color: var(--trend-muted); font-size: 16px; }
.trend-page[data-v-140dc5af] .panel { padding: 0; background: var(--trend-paper); border: 1px solid var(--trend-line); border-radius: 12px; box-shadow: none; overflow: visible; }
.trend-page[data-v-140dc5af] .tabs { gap: 8px; padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--trend-line); overflow-x: auto; scrollbar-width: thin; }
.trend-page[data-v-140dc5af] .tabs button { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border-radius: 6px; color: var(--trend-muted); font-size: 16px; font-weight: 600; box-shadow: none; transition: background-color 160ms ease-out, color 160ms ease-out; }
.trend-page[data-v-140dc5af] .tabs button:hover { background: var(--trend-soft); color: var(--trend-ink); }
.trend-page[data-v-140dc5af] .tabs button.active { background: var(--trend-accent); color: #fff; box-shadow: none; }
.trend-page[data-v-140dc5af] .filter-row { gap: 12px; margin: 0; padding: 20px; align-items: flex-end; background: #fafafa; border-bottom: 1px solid var(--trend-line); }
.trend-page[data-v-140dc5af] .trend-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.trend-page[data-v-140dc5af] .trend-field-label { display: block; margin-bottom: 6px; color: var(--trend-muted); font-size: 12px; font-weight: 600; }
.trend-page[data-v-140dc5af] .trend-field .trend-field-label { margin-bottom: 0; }
.trend-page[data-v-140dc5af] .input { min-height: 44px; padding: 10px 12px; font-size: 16px; border: 1px solid #929292; border-radius: 6px; color: var(--trend-ink); background: #fff; outline-offset: 3px; }
.trend-page[data-v-140dc5af] .input::placeholder { color: var(--trend-muted); }
.trend-page[data-v-140dc5af] .combo-input { width: 100%; min-width: 220px; padding-right: 48px; }
.trend-page[data-v-140dc5af] .search-box { flex: 1 1 240px; max-width: 360px; }
.trend-page[data-v-140dc5af] .combo { width: 100%; }
.trend-page[data-v-140dc5af] .btn-outline { min-height: 44px; padding: 10px 16px; border: 1px solid #929292; border-radius: 6px; background: #fff; color: var(--trend-ink); font-size: 16px; font-weight: 500; transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 120ms ease-out; }
.trend-page[data-v-140dc5af] .btn-outline:hover { background: var(--trend-soft); border-color: var(--trend-accent); }
.trend-page[data-v-140dc5af] .btn-outline:active { transform: translateY(1px); }
.trend-page[data-v-140dc5af] .btn-outline.on { background: var(--trend-accent); border-color: var(--trend-accent); color: #fff; }
.trend-page[data-v-140dc5af] button:focus-visible, .trend-page[data-v-140dc5af] .input:focus-visible, .trend-page[data-v-140dc5af] [tabindex]:focus-visible { outline: 3px solid #202020; outline-offset: 3px; }
.trend-page[data-v-140dc5af] button:disabled { opacity: .55; cursor: not-allowed; }
.trend-page[data-v-140dc5af] .clear-btn { width: 44px; height: 44px; right: 2px; color: var(--trend-muted); }
.trend-page[data-v-140dc5af] .suggestions { border: 1px solid var(--trend-line); border-radius: 8px; box-shadow: 0 12px 24px #18181818; }
.trend-page[data-v-140dc5af] .suggestion-item { padding: 12px 16px; min-height: 44px; font-size: 16px; }
.trend-page[data-v-140dc5af] .suggestion-item:hover { color: var(--trend-ink); background: var(--trend-soft); }
.trend-page[data-v-140dc5af] .matrix-wrap { max-height: 66vh; margin: 0 !important; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #919191 #f1f1f1; }
.trend-page[data-v-140dc5af] .matrix-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.trend-page[data-v-140dc5af] .matrix-wrap::-webkit-scrollbar-thumb { background: #919191; border: 2px solid #f1f1f1; border-radius: 5px; }
.trend-page[data-v-140dc5af] .matrix-wrap > div { padding: 12px 20px; color: var(--trend-muted) !important; font-size: 14px !important; }
.trend-page[data-v-140dc5af] .matrix-table { border-collapse: separate; border-spacing: 0; font-size: 16px; }
.trend-page[data-v-140dc5af] .matrix-table th { height: 48px; padding: 10px 12px; background: #ededed; color: var(--trend-ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid #bdbdbd; }
.trend-page[data-v-140dc5af] .matrix-table td { height: 64px; padding: 10px 12px; min-width: 72px; border: 0; border-bottom: 1px solid var(--trend-line); border-right: 1px solid #e8e8e8; }
.trend-page[data-v-140dc5af] .matrix-table .m-name { width: var(--trend-name-width); min-width: var(--trend-name-width); max-width: var(--trend-name-width); padding: 12px 16px !important; color: var(--trend-accent); font-size: 16px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; text-align: left !important; background: #fff; box-shadow: none; border-right: 1px solid var(--trend-line); }
.trend-page[data-v-140dc5af] .matrix-table thead .m-name { background: #ededed; z-index: 5; color: var(--trend-ink); }
.trend-page[data-v-140dc5af] .matrix-table .m-total { left: var(--trend-name-width); width: 84px; min-width: 84px !important; background: #fafafa; color: var(--trend-ink); border-right: 1px solid #bdbdbd; }
.trend-page[data-v-140dc5af] .matrix-table thead .m-total { background: #ededed; z-index: 4; }
.trend-page[data-v-140dc5af] .m-cell-top { font-size: 16px; line-height: 1.5; font-weight: 600; }
.trend-page[data-v-140dc5af] .m-cell-sub { margin-top: 3px; font-size: 12px; line-height: 1.4; opacity: 1; }
.trend-page[data-v-140dc5af] .matrix-table tbody tr:hover .m-name { background: var(--trend-soft); text-decoration: underline; text-underline-offset: 4px; }
.trend-page[data-v-140dc5af] .trend-product-trigger { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trend-page[data-v-140dc5af] .m-avg-row td { border-top: 2px solid var(--trend-accent); }
.trend-page[data-v-140dc5af] .matrix-table .m-avg-label, .trend-page[data-v-140dc5af] .m-avg-cell { background: #f0f0f0 !important; color: var(--trend-accent) !important; }
.trend-page[data-v-140dc5af] .chart-box { margin: 24px; height: 420px; }
.trend-page[data-v-140dc5af] .side-overlay { z-index: 2000; background: #1818186b; backdrop-filter: blur(3px); animation: trend-fade 160ms ease-out; }
.trend-page[data-v-140dc5af] .side-panel { z-index: 2001; width: 640px; max-width: 95vw; height: 100dvh; background: #fff; box-shadow: -12px 0 40px #18181820; animation: trend-drawer 220ms cubic-bezier(.2,.8,.2,1); }
.trend-page[data-v-140dc5af] .side-panel > div:nth-child(2) { gap: 8px !important; padding: 12px 16px !important; background: #fafafa !important; }
.trend-page[data-v-140dc5af] .side-panel > div:nth-child(2) .btn-outline { flex: 0 0 auto; white-space: nowrap; padding: 10px 12px; font-size: 14px; }
.trend-page[data-v-140dc5af] .side-panel > div:nth-child(2) > span { flex: 0 0 auto; }
.trend-page[data-v-140dc5af] .side-header { min-height: 88px; padding: 20px 24px; border-bottom: 1px solid var(--trend-line); gap: 16px; }
.trend-page[data-v-140dc5af] .side-header h3 { margin: 0; max-width: calc(100% - 60px); font-size: 24px; line-height: 1.3; color: var(--trend-ink); white-space: normal; overflow-wrap: anywhere; }
.trend-page[data-v-140dc5af] .side-close { width: 44px; height: 44px; flex-shrink: 0; background: var(--trend-soft); border-radius: 6px; color: var(--trend-ink); }
.trend-page[data-v-140dc5af] .side-body { padding: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.trend-page[data-v-140dc5af] .side-stats { gap: 0; border-block: 1px solid var(--trend-line); padding-block: 20px; margin-bottom: 24px; }
.trend-page[data-v-140dc5af] .stat { flex: 1 1 150px; padding: 8px 16px 8px 0; border-radius: 0; background: transparent; color: var(--trend-muted); font-size: 16px; }
.trend-page[data-v-140dc5af] .stat b { color: var(--trend-ink); font-size: 24px; font-weight: 600; }
.trend-page[data-v-140dc5af] .side-status { color: var(--trend-muted) !important; font-size: 16px !important; }
.trend-page[data-v-140dc5af] .stock-section { background: #fafafa; border: 1px solid var(--trend-line); border-radius: 8px; padding: 16px; }
.trend-page[data-v-140dc5af] .side-table, .trend-page[data-v-140dc5af] .stock-table { font-size: 16px; }
.trend-page[data-v-140dc5af] .side-table th, .trend-page[data-v-140dc5af] .stock-table th { background: #f0f0f0; color: var(--trend-muted); padding: 12px 8px; font-size: 14px; }
.trend-page[data-v-140dc5af] .side-table td, .trend-page[data-v-140dc5af] .stock-table td { padding: 12px 8px; border-bottom: 1px solid var(--trend-line); }
.trend-page[data-v-140dc5af] .spec { max-width: 100px; white-space: normal; overflow-wrap: anywhere; }
@keyframes trend-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trend-drawer { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1024px) {
  .trend-page[data-v-140dc5af] .filter-row { gap: 10px; }
  .trend-page[data-v-140dc5af] .search-box { max-width: none; }
}
@media (max-width: 600px) {
  .trend-page[data-v-140dc5af] { --trend-name-width: 132px; padding-top: 0; }
  .trend-page[data-v-140dc5af] .trend-heading { padding: 0 4px 20px; }
  .trend-page[data-v-140dc5af] .trend-heading h1 { font-size: 28px; }
  .trend-page[data-v-140dc5af] .trend-description { max-width: 24em; }
  .trend-page[data-v-140dc5af] .panel { border-radius: 8px; padding: 0; }
  .trend-page[data-v-140dc5af] .tabs { padding: 12px; gap: 4px; }
  .trend-page[data-v-140dc5af] .tabs button { padding: 10px 12px; }
  .trend-page[data-v-140dc5af] .filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 12px; gap: 10px; }
  .trend-page[data-v-140dc5af] .search-box { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .trend-page[data-v-140dc5af] .filter-row .search-box { order: 0; }
  .trend-page[data-v-140dc5af] .filter-row .trend-field:has(select) { order: 1; grid-column: 1 / -1; }
  .trend-page[data-v-140dc5af] .filter-row .trend-field:has(input[type="date"]) { order: 2; }
  .trend-page[data-v-140dc5af] .filter-row > button { order: 3; }
  .trend-page[data-v-140dc5af] .filter-row > button:first-child { order: 4; grid-column: 1 / -1; }
  .trend-page[data-v-140dc5af] .combo-input { min-width: 0; }
  .trend-page[data-v-140dc5af] .filter-row .input { width: 100%; min-width: 0 !important; }
  .trend-page[data-v-140dc5af] .matrix-table .m-name { max-width: var(--trend-name-width) !important; font-size: 14px; padding: 10px 12px !important; }
  .trend-page[data-v-140dc5af] .matrix-table .m-total { min-width: 72px !important; width: 72px; }
  .trend-page[data-v-140dc5af] .matrix-table td { padding: 8px; min-width: 68px; }
  .trend-page[data-v-140dc5af] .matrix-wrap { max-height: 60dvh; }
  .trend-page[data-v-140dc5af] .chart-box { margin: 16px 12px; height: 300px; }
  .trend-page[data-v-140dc5af] .side-panel { width: 100%; max-width: 100%; }
  .trend-page[data-v-140dc5af] .side-header { padding: 16px; }
  .trend-page[data-v-140dc5af] .side-body { padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .trend-page[data-v-140dc5af] .side-header h3 { font-size: 22px; }
  .trend-page[data-v-140dc5af] .stat { flex-basis: 50%; }
  .trend-page[data-v-140dc5af] .side-table, .trend-page[data-v-140dc5af] .stock-table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .trend-page[data-v-140dc5af] *, .trend-page[data-v-140dc5af] *::before, .trend-page[data-v-140dc5af] *::after { animation: none !important; transition: none !important; }
}
/* Neutralize existing data colors without changing their values or thresholds. */
.trend-page[data-v-140dc5af] .m-cell { filter: grayscale(1); }
.trend-page[data-v-140dc5af] .m-cell[style*="0.12"] { background: #f0f0f0 !important; color: #181818 !important; }
.trend-page[data-v-140dc5af] .m-cell[style*="0.3"] { background: #dedede !important; color: #181818 !important; }
.trend-page[data-v-140dc5af] .m-cell[style*="0.55"] { background: #595959 !important; color: #fff !important; }
.trend-page[data-v-140dc5af] .m-cell[style*="0.8"] { background: #202020 !important; color: #fff !important; }
body:has(.trend-page[data-v-140dc5af]) > div:has(+ #app) { background: #f0f0f0 !important; color: #202020 !important; }
body:has(.trend-page[data-v-140dc5af]) .nav-inner button.active { color: #087789; border-color: #087789; box-shadow: inset 0 -2px 0 #087789; }

/* Merchant-console layout: compact working area, flat surfaces, persistent navigation. */
body:has(.trend-page[data-v-140dc5af]) { background: #f5f5f5; }
body:has(.trend-page[data-v-140dc5af]) .btn-logout { color: #303030; }
.trend-page[data-v-140dc5af] { padding-top: 0; }
.trend-page[data-v-140dc5af] .trend-heading { padding: 0 0 20px; }
.trend-page[data-v-140dc5af] .trend-eyebrow { margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; color: #595959; }
.trend-page[data-v-140dc5af] .trend-heading h1 { font-size: 24px; line-height: 1.3; }
.trend-page[data-v-140dc5af] .trend-description { margin-top: 6px; font-size: 14px; }
.trend-page[data-v-140dc5af] .panel { border-radius: 2px; }
.trend-page[data-v-140dc5af] .tabs { gap: 4px; padding: 8px 16px; }
.trend-page[data-v-140dc5af] .tabs button { border-radius: 2px; padding: 8px 16px; font-size: 14px; }
.trend-page[data-v-140dc5af] .filter-row { gap: 10px; padding: 14px 16px; background: #fff; }
.trend-page[data-v-140dc5af] .input, .trend-page[data-v-140dc5af] .btn-outline { border-radius: 2px; border-color: #b0b0b0; }
.trend-page[data-v-140dc5af] .matrix-table td { height: 48px; padding: 8px 10px; }
.trend-page[data-v-140dc5af] .matrix-table th { height: 40px; background: #f0f0f0; }
.trend-page[data-v-140dc5af] .matrix-table .m-name { font-size: 14px; padding: 6px 12px !important; }
.trend-page[data-v-140dc5af] .m-cell-top { font-size: 14px; }
.trend-page[data-v-140dc5af] .matrix-wrap { max-height: 72vh; }
.trend-page[data-v-140dc5af] .side-panel, .trend-page[data-v-140dc5af] .stock-section { border-radius: 2px; }
@media (min-width: 900px) {
  body:has(.trend-page[data-v-140dc5af]) .app-header { margin-left: 184px; background: #fff; backdrop-filter: none; }
  body:has(.trend-page[data-v-140dc5af]) .header-inner { max-width: none; height: 52px; padding: 0 20px; justify-content: flex-end; }
  body:has(.trend-page[data-v-140dc5af]) .header-brand { position: fixed; left: 18px; top: 18px; z-index: 102; gap: 8px; }
  body:has(.trend-page[data-v-140dc5af]) .header-title { color: #fff; font-size: 17px; }
  body:has(.trend-page[data-v-140dc5af]) .header-logo { background: #fff; border-radius: 2px; }
  body:has(.trend-page[data-v-140dc5af]) .app-nav { position: fixed; inset: 0 auto 0 0; width: 184px; background: #181818; z-index: 90; padding-top: 76px; border: 0; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner { height: 100%; padding: 0 10px 20px; flex-direction: column; overflow-y: auto; gap: 4px; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner::before { content: '商家工作台'; color: #bdbdbd; font-size: 12px; padding: 12px 14px; border-top: 1px solid #383838; margin-bottom: 8px; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner button { color: #d5d5d5; min-height: 44px; text-align: left; padding: 10px 14px; border-radius: 2px; font-size: 14px; flex-shrink: 0; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner button:hover { background: #2b2b2b; color: #fff; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner button.active { background: #252f32; color: #8ddbe6; box-shadow: inset 2px 0 0 #38b9cb; }
  body:has(.trend-page[data-v-140dc5af]) .nav-inner button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  body:has(.trend-page[data-v-140dc5af]) .main-content { width: calc(100% - 184px); max-width: none; margin-left: 184px; padding: 16px; }
  body:has(.trend-page[data-v-140dc5af]) .app-footer { margin-left: 184px; }
  body:has(.trend-page[data-v-140dc5af]) > div:has(+ #app) { padding-left: 204px !important; }
}
.trend-page[data-v-140dc5af] .trend-heading { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-bottom: 12px; align-items: center; }
.trend-page[data-v-140dc5af] .trend-eyebrow { grid-column: 1 / -1; margin: 0; letter-spacing: 0; }
.trend-page[data-v-140dc5af] .trend-heading h1 { font-size: 20px; }
.trend-page[data-v-140dc5af] .trend-description { margin: 0; font-size: 12px; }
.trend-page[data-v-140dc5af] .trend-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid #dedede; }
.trend-page[data-v-140dc5af] .trend-kpi { padding: 10px 12px; min-width: 0; border-right: 1px solid #dedede; }
.trend-page[data-v-140dc5af] .trend-kpi:last-child { border-right: 0; }
.trend-page[data-v-140dc5af] .trend-kpi:first-child { background: #eff8fa; box-shadow: inset 0 0 0 1px #38b9cb; }
.trend-page[data-v-140dc5af] .trend-kpi-label { display: block; color: #595959; font-size: 12px; margin-bottom: 4px; }
.trend-page[data-v-140dc5af] .trend-kpi-value { display: block; color: #181818; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; overflow-wrap: anywhere; }
.trend-page[data-v-140dc5af] .trend-analysis { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 0; }
.trend-page[data-v-140dc5af] .trend-analysis .chart-box { min-width: 0; height: 360px; margin: 16px; }
.trend-page[data-v-140dc5af] .trend-platform-summary { padding: 20px 16px; min-width: 0; border-left: 1px solid #dedede; }
.trend-page[data-v-140dc5af] .trend-platform-summary h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.trend-page[data-v-140dc5af] .trend-platform-note { color: #595959; margin: 0 0 14px; font-size: 12px; }
.trend-page[data-v-140dc5af] .trend-platform-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.trend-page[data-v-140dc5af] .trend-platform-table th { background: #f0f0f0; color: #595959; text-align: right; font-weight: 500; padding: 10px 6px; }
.trend-page[data-v-140dc5af] .trend-platform-table td { text-align: right; padding: 12px 6px; border-bottom: 1px solid #e8e8e8; }
.trend-page[data-v-140dc5af] .trend-platform-table th:first-child, .trend-page[data-v-140dc5af] .trend-platform-table td:first-child { text-align: left; }
@media (max-width: 1100px) {
  .trend-page[data-v-140dc5af] .trend-analysis { grid-template-columns: minmax(0, 1fr); }
  .trend-page[data-v-140dc5af] .trend-platform-summary { border-left: 0; border-top: 1px solid #dedede; }
}
@media (max-width: 600px) {
  .trend-page[data-v-140dc5af] .trend-heading { grid-template-columns: 1fr; gap: 6px; }
  .trend-page[data-v-140dc5af] .trend-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-page[data-v-140dc5af] .trend-kpi { border-bottom: 1px solid #dedede; }
  .trend-page[data-v-140dc5af] .trend-kpi:nth-child(2n) { border-right: 0; }
  .trend-page[data-v-140dc5af] .trend-kpi:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 600px) {
  .trend-page[data-v-140dc5af] .filter-row { padding: 12px; }
  .trend-page[data-v-140dc5af] .tabs { padding: 8px; }
  .trend-page[data-v-140dc5af] .matrix-wrap { max-height: 60dvh; }
}

