/*
 * 赢胜资产界面适配
 * 原始 Logo 保留为品牌母版，浅色/深色版本只处理透明背景与文字对比度。
 * 品牌红留在 Logo 内，不参与页面结构线或交互色语义。
 */
:root {
  --brand-red: #c4121a;
  --brand-charcoal: #3e3e3f;
  --brand-silver: #bcbdbf;
  --brand-dark-wordmark: #e6e8ee;
  --brand-dark-silver: #d3d6dd;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-origin {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  flex: none;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  flex: none;
}

.brand-logo-dark { display: none; }

:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }

.brand-context,
.brand-context.product-mark {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--border, var(--line, #d9dee7));
  color: inherit;
  line-height: 1.15;
  text-decoration: none;
}

.brand-context > h1,
.brand-context > strong {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-context > .brand-meta {
  overflow: hidden;
  color: var(--muted);
  font: 600 10px/1.35 "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-context > .brand-title-short { display: none; }

.topbar-brand { flex: 0 1 auto; }

.notebook-header .brand-logo { width: 120px; }
.notebook-header .product-identity { gap: 14px; }

@media (max-width: 720px) {
  .brand-lockup { gap: 10px; }
  .brand-logo { width: 112px; }
  .brand-context,
  .brand-context.product-mark { padding-left: 10px; }
  .brand-context > .brand-meta { display: none; }
  .topbar-brand { width: 100%; }
  .topbar .brand-context h1 { width: auto; font-size: 15px; }
  .notebook-header .brand-logo { width: 96px; }
  .notebook-header .brand-title-full { display: none; }
  .notebook-header .brand-title-short { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-origin { transition: none; }
}
