:root {
  --bg: #101218;
  --bg-panel: #1a1c24;
  --bg-elevated: #232832;
  --line: #2e3540;
  --text: #e8eaef;
  --muted: #8b93a3;
  --accent: #d4a017;
  --accent-2: #6f9e8f;
  --danger: #c45c4a;
  --radius: 10px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Songti SC", "Noto Serif SC", "STSong", "PingFang SC", serif;
  --shell-glow: rgba(212, 160, 23, 0.1);
  --shell-glow-2: rgba(111, 158, 143, 0.08);
  /* 版心最小宽度：桌面小窗锁定用；侧栏宽度 */
  --layout-min-width: 1200px;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: auto;
}
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 580px at 8% -8%, rgba(212, 160, 23, 0.11), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(111, 158, 143, 0.09), transparent 50%),
    linear-gradient(165deg, #101218 0%, #14171e 45%, #101218 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(232, 234, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 234, 239, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 15%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-width: var(--layout-min-width);
  width: 100%;
}

.sidebar {
  padding: 1.45rem 1rem 1.25rem;
  border-right: 1px solid rgba(46, 53, 64, 0.95);
  background:
    linear-gradient(180deg, rgba(26, 28, 36, 0.97), rgba(16, 18, 24, 0.98)),
    rgba(19, 21, 26, 0.96);
  /* 固定在视口左侧：页面怎么滚，导航都在 */
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 200;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.55), transparent 42%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0.35rem 1.65rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(46, 53, 64, 0.85);
  text-decoration: none;
}
.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 1.72rem;
  line-height: 1;
  height: 2.05rem;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.14rem;
  min-width: 0;
  height: 2.05rem;
}
.brand-text {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8494;
  line-height: 1.15;
}

.nav { display: flex; flex-direction: column; gap: 0.28rem; }
.nav a {
  padding: 0.62rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: rgba(35, 40, 50, 0.9); color: var(--text); }
.nav a.active {
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.18), transparent 78%);
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: calc(0.8rem - 3px);
  font-weight: 600;
}

.sidebar-note {
  margin: 0;
  color: #6d7585;
  font-size: 0.66rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.1rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-icp {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 0.28rem;
  align-items: center;
  margin: 0;
  padding: 0.05rem 0.1rem 0;
  color: #6d7585;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}
.site-icp:hover {
  color: #9aa3b2;
  text-decoration: underline;
}
.site-beian {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}
.sidebar-foot .site-beian,
.sidebar-foot .site-icp {
  align-self: flex-start;
}
.site-beian-mark {
  width: 14px;
  height: 14px;
  display: block;
}
.site-beian-text {
  min-width: 0;
  text-align: left;
}
.site-gongan-icon {
  flex: 0 0 auto;
}
.site-icp-auth {
  display: none;
  margin-top: 0.85rem;
  width: 100%;
  align-items: center;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
}

.sidebar-auth {
  margin: 0;
  padding: 0.75rem 0.55rem;
  border: 1px solid rgba(46, 53, 64, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(212, 160, 23, 0.08), transparent 55%),
    rgba(19, 21, 26, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
}
.sidebar-auth.is-user {
  gap: 0.55rem;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 0.15rem;
  transition: background 0.15s ease;
}
.sidebar-user-card:hover {
  background: rgba(35, 40, 50, 0.55);
}
.sidebar-avatar {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  color: #1a1408;
  background: linear-gradient(145deg, #e0b84a, #b8860b);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.28);
}
.sidebar-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.sidebar-auth-user {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-sub {
  font-size: 0.72rem;
  color: var(--muted);
}
.sidebar-auth-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: linear-gradient(180deg, rgba(224, 184, 74, 0.16), rgba(212, 160, 23, 0.08));
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.sidebar-auth-login:hover {
  border-color: rgba(212, 160, 23, 0.65);
  color: #f0d078;
  background: linear-gradient(180deg, rgba(224, 184, 74, 0.22), rgba(212, 160, 23, 0.12));
}
.sidebar-auth-link {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.15rem 0.2rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
}
.sidebar-auth-link:hover {
  color: var(--text);
}
.nav a.is-auth-gated,
.feature.is-auth-gated {
  opacity: 0.55;
}

.auth-page {
  max-width: 420px;
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1.25rem;
}

/* —— 独立登录舞台 —— */
body.is-auth-screen .app-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-width: 0;
}
body.is-auth-screen .sidebar,
body.is-auth-screen .index-ball-root,
body.is-auth-screen #page-nav-loading {
  display: none !important;
}
body.is-auth-screen .main {
  grid-column: 1;
  padding: 0;
  min-height: 100vh;
}
body.is-auth-screen .page-slots,
body.is-auth-screen .page-slot {
  min-height: 100vh;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
}
.auth-stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(212, 160, 23, 0.13), transparent 60%),
    radial-gradient(700px 480px at 88% 82%, rgba(111, 158, 143, 0.1), transparent 55%),
    linear-gradient(160deg, #101218 0%, #161920 48%, #12151b 100%);
}
.auth-stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(232, 234, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 234, 239, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
}
.auth-stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: auth-glow-drift 12s ease-in-out infinite alternate;
}
.auth-stage-glow-a {
  width: 280px;
  height: 280px;
  left: 8%;
  top: 18%;
  background: rgba(212, 160, 23, 0.16);
}
.auth-stage-glow-b {
  width: 320px;
  height: 320px;
  right: 6%;
  bottom: 10%;
  background: rgba(111, 158, 143, 0.12);
  animation-delay: -4s;
}
@keyframes auth-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -14px, 0) scale(1.06); }
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid rgba(46, 53, 64, 0.95);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(19, 21, 26, 0.72);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: auth-shell-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auth-shell-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.auth-brand-pane {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    linear-gradient(165deg, rgba(212, 160, 23, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(26, 28, 36, 0.96), rgba(18, 20, 26, 0.98));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  width: fit-content;
  text-decoration: none;
}
.auth-brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  height: 2.45rem;
}
.auth-brand > .auth-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  height: 2.45rem;
  margin: 0;
  max-width: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.auth-brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.auth-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8494;
  line-height: 1.15;
}
.auth-brand-headline {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 16em;
}
.auth-brand-lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 28em;
}
.auth-brand-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.auth-brand-points li {
  position: relative;
  padding-left: 1.05rem;
  color: #c5cad6;
  font-size: 0.88rem;
  line-height: 1.45;
}
.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.16);
}
.auth-brand-foot {
  margin-top: auto;
  padding-top: 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d7585;
}
.auth-brand-foot p {
  margin: 0;
}
.auth-brand-foot .site-beian {
  margin-top: 0.55rem;
  gap: 0.35rem;
}
.auth-brand-foot .site-icp {
  margin-top: 0;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.72rem;
}

.auth-panel-wrap {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: rgba(22, 24, 30, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: auth-panel-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
@keyframes auth-panel-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.auth-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.auth-card-head {
  margin-bottom: 1.25rem;
}
.auth-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.auth-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.auth-sub {
  margin: 0;
  line-height: 1.55;
  font-size: 0.9rem;
}
.auth-form {
  display: grid;
  gap: 0.95rem;
}
.auth-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.auth-form input,
.admin-role {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.9);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
.auth-form input::placeholder {
  color: #5f6776;
}
.auth-form input.is-autofill {
  color: #5f6776;
}
.auth-form input.is-autofill:focus {
  color: var(--text);
}
.auth-login-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.15rem 0 0.15rem;
}
.auth-forgot-link {
  color: #8b93a3;
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-forgot-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(212, 160, 23, 0.45);
}
.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
}
.auth-code-row input {
  min-width: 0;
}
.auth-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.auth-password-wrap input {
  padding-right: 2.75rem;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7a8494;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.auth-password-toggle:hover {
  color: #c8d0dc;
  background: rgba(255, 255, 255, 0.04);
}
.auth-password-toggle:focus-visible {
  outline: none;
  color: var(--accent, #d4a017);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.28);
}
.auth-password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  pointer-events: none;
}
.auth-password-toggle .auth-eye-off {
  display: none;
}
.auth-password-toggle.is-visible .auth-eye-on {
  display: none;
}
.auth-password-toggle.is-visible .auth-eye-off {
  display: block;
}
.auth-code-btn {
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(35, 40, 50, 0.95);
}
.auth-code-btn:hover:not(:disabled) {
  border-color: rgba(212, 160, 23, 0.4);
  color: var(--accent);
}
.auth-code-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.auth-ok {
  margin: 0;
  color: #8fbfb0;
  font-size: 0.86rem;
}
.auth-submit,
.btn-primary {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #e0b84a, var(--accent));
  color: #1a1408;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.auth-submit {
  margin-top: 0.25rem;
  width: 100%;
}
.auth-submit:hover,
.btn-primary:hover { filter: brightness(1.05); }
.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.auth-error,
.auth-msg {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}
.auth-msg.is-ok { color: var(--accent-2); }
.auth-switch {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 160, 23, 0.35);
}
.auth-switch a:hover {
  border-bottom-color: var(--accent);
}
.auth-legal {
  margin: 1.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 860px) {
  html:not(.layout-fixed) .auth-shell {
    grid-template-columns: 1fr;
  }
  html:not(.layout-fixed) .auth-brand-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.4rem;
  }
  html:not(.layout-fixed) .auth-brand-headline {
    max-width: none;
  }
  html:not(.layout-fixed) .auth-brand-points {
    display: none;
  }
  html:not(.layout-fixed) .auth-brand-foot {
    display: none;
  }
  html:not(.layout-fixed) .site-icp-auth {
    display: flex;
    flex-direction: column;
  }
  html:not(.layout-fixed) .auth-panel-wrap {
    animation: auth-shell-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-panel-wrap,
  .auth-stage-glow {
    animation: none !important;
  }
}

.account-page {
  max-width: 920px;
  margin: 0 auto;
}
.account-page .panel { margin-bottom: 1rem; }
.account-page-head {
  margin-bottom: 1.25rem;
}
.account-page-head .eyebrow {
  margin-bottom: 0.45rem;
}
.account-page-head h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.account-page-head .muted {
  margin: 0;
  line-height: 1.55;
  max-width: 36rem;
}

.account-guest {
  text-align: center;
  padding: 2.4rem 1.5rem;
}
.account-guest-inner {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}
.account-guest-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}
.account-guest .btn {
  margin-top: 0.45rem;
  min-width: 8.5rem;
}

.account-body {
  display: grid;
  gap: 1rem;
  animation: auth-shell-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(125deg, rgba(212, 160, 23, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    rgba(26, 28, 36, 0.92);
  border: 1px solid rgba(46, 53, 64, 0.95);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.account-hero-avatar {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #1a1408;
  background: linear-gradient(145deg, #e0b84a, #b8860b);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3);
}
.account-hero-meta {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.account-hero-meta > strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.account-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  border: 1px solid rgba(212, 160, 23, 0.28);
  color: #dcc28a;
  background: rgba(212, 160, 23, 0.12);
}
.account-chip.is-admin {
  color: #1a1408;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.account-chip.is-vip {
  color: #c9e4ff;
  background: rgba(90, 156, 214, 0.16);
  border-color: rgba(90, 156, 214, 0.35);
  font-weight: 600;
}
.account-chip.is-muted {
  color: var(--muted);
  border-color: rgba(46, 53, 64, 0.9);
  background: rgba(19, 21, 26, 0.45);
}
.account-hero-email {
  margin: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.account-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%),
    rgba(26, 28, 36, 0.92);
  border: 1px solid rgba(46, 53, 64, 0.95);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  margin-bottom: 0;
}
.account-panel-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(46, 53, 64, 0.7);
}
.account-panel-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.account-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.account-panel-head .muted {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.account-form .btn-primary {
  width: 100%;
  margin-top: 0.2rem;
}
.account-form input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  color: var(--muted);
}
.account-password-reset {
  display: grid;
  gap: 0.85rem;
}
.account-password-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}
.account-password-reset .btn-primary {
  width: 100%;
}
.account-password-reset .auth-msg {
  margin: 0;
}

.account-logout-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(46, 53, 64, 0.85);
}
.account-logout-bar .muted {
  margin: 0;
  max-width: 28rem;
  font-size: 0.86rem;
  line-height: 1.5;
}
.account-logout-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  color: #c89890;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(200, 152, 144, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.account-logout-btn:hover:not(:disabled) {
  color: #efc0b8;
  text-decoration-color: rgba(239, 192, 184, 0.7);
}
.account-logout-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 760px) {
  html:not(.layout-fixed) .account-grid {
    grid-template-columns: 1fr;
  }
  html:not(.layout-fixed) .account-logout-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-page {
  max-width: 1100px;
  margin: 0 auto;
}
.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.admin-page-head h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.admin-page-head-copy .muted {
  margin: 0;
  max-width: 36rem;
  line-height: 1.5;
}
.admin-refresh-btn {
  flex-shrink: 0;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(35, 40, 50, 0.85);
}
.admin-refresh-btn:hover {
  border-color: rgba(212, 160, 23, 0.45);
  color: var(--accent);
}
.admin-guest {
  text-align: center;
  padding: 2rem 1.5rem;
}
.admin-guest a { color: var(--accent); text-decoration: underline; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.admin-stat {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(212, 160, 23, 0.08), transparent 55%),
    rgba(26, 28, 36, 0.92);
}
.admin-stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.16), transparent 70%);
  pointer-events: none;
}
.admin-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.admin-stat-value {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
}
.admin-search {
  flex: 1 1 220px;
  min-width: 0;
}
.admin-search input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.admin-search input:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem;
  cursor: pointer;
}
.admin-filter:hover {
  color: var(--text);
  border-color: #3d4654;
}
.admin-filter.is-active {
  color: #1a1408;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.admin-toast {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.admin-toast.is-ok {
  color: #9fd0c0;
  background: rgba(111, 158, 143, 0.12);
  border-color: rgba(111, 158, 143, 0.28);
}
.admin-toast.is-err {
  color: #e4a399;
  background: rgba(196, 92, 74, 0.12);
  border-color: rgba(196, 92, 74, 0.3);
}

.admin-list-wrap {
  padding: 0;
  overflow: hidden;
}
.admin-list-head {
  display: none;
  grid-template-columns: minmax(0, 1.6fr) 9.5rem 5.5rem 10.5rem;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(19, 21, 26, 0.45);
}
.admin-user-list {
  display: flex;
  flex-direction: column;
}
.admin-user-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-row:hover {
  background: rgba(35, 40, 50, 0.45);
}
.admin-user-row.is-disabled {
  opacity: 0.78;
}
.admin-user-row.is-self {
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.08), transparent 42%);
}
.admin-user-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.admin-avatar {
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1408;
  background: linear-gradient(145deg, #e0b84a, #b8860b);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.25);
}
.admin-user-meta { min-width: 0; }
.admin-user-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.2rem;
}
.admin-user-name strong {
  font-size: 1rem;
  font-weight: 600;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.3;
  border: 1px solid transparent;
}
.admin-chip-you {
  color: #1a1408;
  background: var(--accent);
  font-weight: 600;
}
.admin-chip-role {
  color: #dcc28a;
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.28);
}
.admin-chip-vip {
  color: #c9e4ff;
  background: rgba(90, 156, 214, 0.16);
  border-color: rgba(90, 156, 214, 0.35);
}
.admin-user-sub,
.admin-user-login {
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-user-login { margin-top: 0.15rem; }
.admin-dot { margin: 0 0.2rem; opacity: 0.7; }

.admin-user-role .admin-role {
  width: 100%;
  min-width: 0;
  max-width: 10rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.admin-user-role .admin-role:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
}
.admin-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.admin-status.is-on { color: #8fbfb0; }
.admin-status.is-off { color: #b07a72; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.admin-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: rgba(35, 40, 50, 0.9);
}
.admin-btn:hover:not(:disabled) {
  border-color: rgba(212, 160, 23, 0.4);
}
.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-btn-danger {
  color: #efc0b8;
  border-color: rgba(196, 92, 74, 0.4);
  background: rgba(196, 92, 74, 0.12);
}
.admin-btn-danger:hover:not(:disabled) {
  border-color: rgba(196, 92, 74, 0.7);
  background: rgba(196, 92, 74, 0.2);
}
.admin-actions-note {
  font-size: 0.8rem;
}
.admin-empty {
  margin: 0;
  padding: 2.2rem 1.2rem;
  text-align: center;
}

@media (min-width: 900px) {
  .admin-list-head { display: grid; }
  .admin-user-row {
    grid-template-columns: minmax(0, 1.6fr) 9.5rem 5.5rem 10.5rem;
    align-items: center;
    gap: 0.75rem;
  }
  .admin-user-role .admin-role { max-width: none; }
  .admin-actions { justify-content: flex-end; }
}

@media (max-width: 720px) {
  html:not(.layout-fixed) .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html:not(.layout-fixed) .admin-page-head {
    flex-direction: column;
  }
}

.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;
}

.watchlist-page {
  max-width: none;
  width: 100%;
  position: relative;
}
.watchlist-page::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1rem auto auto;
  width: min(28rem, 55vw);
  height: 14rem;
  background:
    radial-gradient(closest-side, rgba(212, 160, 23, 0.12), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.watchlist-page > * {
  position: relative;
  z-index: 1;
}
.watchlist-head {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.watchlist-head h1 {
  letter-spacing: 0.02em;
}
.watchlist-lede {
  margin: 0;
  max-width: 36rem;
  line-height: 1.55;
  font-size: 0.95rem;
}
.watchlist-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.watchlist-indices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.9rem;
}
.watchlist-index {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(40, 44, 54, 0.72), rgba(22, 24, 30, 0.92));
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}
.watchlist-index:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.18);
}
.watchlist-index.is-active {
  border-color: rgba(212, 160, 23, 0.55);
  background:
    linear-gradient(165deg, rgba(58, 48, 28, 0.55), rgba(26, 28, 34, 0.95));
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.22);
}
.watchlist-index.is-up {
  --wl-idx-tone: rgba(224, 154, 140, 0.8);
  box-shadow:
    inset 3px 0 0 var(--wl-idx-tone),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.watchlist-index.is-down {
  --wl-idx-tone: rgba(143, 191, 176, 0.8);
  box-shadow:
    inset 3px 0 0 var(--wl-idx-tone),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.watchlist-index.is-active.is-up,
.watchlist-index.is-active.is-down {
  box-shadow:
    inset 3px 0 0 var(--wl-idx-tone),
    0 0 0 1px rgba(212, 160, 23, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.22);
}
.watchlist-index-name {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.watchlist-index-price {
  font-size: 1.28rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--text);
}
.watchlist-index-chg {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.watchlist-index.is-up .watchlist-index-price,
.watchlist-index .watchlist-index-chg.is-up { color: #e09a8c; }
.watchlist-index.is-down .watchlist-index-price,
.watchlist-index .watchlist-index-chg.is-down { color: #8fbfb0; }
#watchlist-index-peek {
  margin: 0 0 0.95rem;
}
@media (max-width: 720px) {
  html:not(.layout-fixed) .watchlist-board-top {
    flex-direction: column;
    align-items: stretch;
  }
  html:not(.layout-fixed) .watchlist-board-top .watchlist-add-form {
    max-width: none;
    margin-left: 0;
  }
  html:not(.layout-fixed) .watchlist-table-caption {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}
@media (max-width: 1100px) {
  html:not(.layout-fixed) .watchlist-indices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .watchlist-indices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  html:not(.layout-fixed) .watchlist-indices {
    grid-template-columns: 1fr;
  }
}
.watchlist-board {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(32, 35, 44, 0.96), rgba(24, 26, 32, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.watchlist-board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.watchlist-board-top .watchlist-meta {
  flex: 1 1 12rem;
}
.watchlist-board-top .watchlist-add-form {
  flex: 1 1 18rem;
  max-width: 28rem;
  margin-left: auto;
}
.watchlist-msg {
  margin-top: 0.7rem;
  opacity: 0;
  transform: translateY(-0.4rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
}
.watchlist-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.watchlist-msg[hidden] {
  display: none !important;
}
.watchlist-add-panel { margin-bottom: 1rem; }
.watchlist-groups-panel {
  margin-bottom: 1rem;
}
.watchlist-group-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.watchlist-group-section {
  padding-top: 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  padding-top: 0.85rem;
}
.watchlist-group-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
}
.watchlist-group-batch-toggle {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: rgba(212, 160, 23, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease;
}
.watchlist-group-batch-toggle:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.14);
}
.watchlist-group-batch-toggle.is-active {
  background: rgba(212, 160, 23, 0.2);
  border-color: rgba(212, 160, 23, 0.55);
  color: #f0e2b8;
}
.watchlist-group-batch-toggle:active {
  transform: scale(0.97);
}
.watchlist-group-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.05);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
}
.watchlist-group-batch-bar[hidden] {
  display: none !important;
}
.watchlist-group-chip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem 0 0.45rem;
  cursor: pointer;
}
.watchlist-group-batch-check {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.watchlist-group-chip.is-batchable {
  cursor: pointer;
}
.watchlist-group-chip.is-batch-selected {
  border-color: rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.1);
}
.watchlist-group-chip.is-batch-locked {
  opacity: 0.55;
  pointer-events: none;
}
.watchlist-group-section.is-group-batch .watchlist-group-chip.is-batchable:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: rgba(212, 160, 23, 0.08);
}
.watchlist-group-chip {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.55);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-group-chip.has-theme {
  border-color: color-mix(in srgb, var(--wl-group-color) 42%, var(--line));
  box-shadow: inset 3px 0 0 var(--wl-group-color);
}
.watchlist-group-chip.has-theme.is-active {
  border-color: color-mix(in srgb, var(--wl-group-color) 72%, transparent);
  background: color-mix(in srgb, var(--wl-group-color) 16%, rgba(16, 18, 24, 0.55));
  box-shadow:
    inset 3px 0 0 var(--wl-group-color),
    0 0 0 1px color-mix(in srgb, var(--wl-group-color) 22%, transparent);
}
.watchlist-group-chip.has-theme:not(.is-active):hover {
  border-color: color-mix(in srgb, var(--wl-group-color) 55%, var(--line));
  background: color-mix(in srgb, var(--wl-group-color) 10%, rgba(16, 18, 24, 0.55));
}
.watchlist-group-chip.is-ungrouped-chip {
  border-color: color-mix(in srgb, var(--wl-group-color, #7a808c) 35%, var(--line));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--wl-group-color, #7a808c) 70%, transparent);
}
.watchlist-group-chip.is-ungrouped-chip.is-active {
  border-color: color-mix(in srgb, var(--wl-group-color, #7a808c) 55%, transparent);
  background: color-mix(in srgb, var(--wl-group-color, #7a808c) 12%, rgba(16, 18, 24, 0.55));
  box-shadow:
    inset 3px 0 0 var(--wl-group-color, #7a808c),
    0 0 0 1px color-mix(in srgb, var(--wl-group-color, #7a808c) 18%, transparent);
}
.watchlist-group-chip.is-active:not(.has-theme):not(.is-ungrouped-chip) {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.14);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.12);
}
.watchlist-group-chip:not(.is-active):hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: rgba(212, 160, 23, 0.06);
}
.watchlist-group-chip:not(.is-active):hover .watchlist-group-tab {
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
}
.watchlist-group-chip:not(.is-active):hover .watchlist-group-tab-more {
  color: color-mix(in srgb, var(--text) 55%, var(--muted));
}
.watchlist-group-chip.is-just-added {
  animation: watchlistGroupChipIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes watchlistGroupChipIn {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(4px);
  }
  65% {
    opacity: 1;
    transform: scale(1.04) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.watchlist-group-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.watchlist-group-chip.is-active .watchlist-group-tab {
  color: var(--text);
}
.watchlist-group-tab-more {
  appearance: none;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: transparent;
  color: var(--muted);
  width: 1.55rem;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-group-chip.is-active .watchlist-group-tab-more,
.watchlist-group-tab-more:hover,
.watchlist-group-tab-more[aria-expanded="true"] {
  color: var(--text);
  background: rgba(212, 160, 23, 0.10);
}
.watchlist-group-tab-more:active {
  transform: scale(0.88);
}
.watchlist-group-add {
  appearance: none;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 600;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-group-add:hover {
  color: var(--text);
  background: rgba(212, 160, 23, 0.14);
  border-color: rgba(212, 160, 23, 0.55);
  border-style: solid;
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
.watchlist-group-add:active {
  transform: scale(0.92);
  box-shadow: none;
}
.watchlist-group-add.is-press {
  animation: watchlistGroupAddPress 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes watchlistGroupAddPress {
  0% { transform: scale(1); }
  35% { transform: scale(0.86) rotate(90deg); }
  70% { transform: scale(1.08) rotate(180deg); }
  100% { transform: scale(1) rotate(180deg); }
}
.watchlist-group-chip.is-editing {
  border-color: rgba(212, 160, 23, 0.65);
  background: rgba(212, 160, 23, 0.16);
}
.watchlist-group-tab.is-editing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  color: var(--text);
}
.watchlist-group-rename-input {
  width: 6.5rem;
  max-width: 28vw;
  min-width: 4.5rem;
  margin: 0;
  padding: 0.12rem 0.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 6px;
  background: rgba(16, 18, 24, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  outline: none;
}
.watchlist-group-rename-input:focus {
  border-color: rgba(212, 160, 23, 0.75);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.18);
}
.watchlist-group-pop[hidden] {
  display: none !important;
}
.watchlist-group-pop {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
}
.watchlist-group-pop.is-open {
  pointer-events: auto;
}
.watchlist-group-pop-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 14, 0.28);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.watchlist-group-pop.is-open .watchlist-group-pop-scrim {
  opacity: 1;
}
.watchlist-group-pop-card {
  position: fixed;
  width: min(16.5rem, calc(100vw - 1.5rem));
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(40, 44, 54, 0.98), rgba(24, 26, 32, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 0.55rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-group-pop.is-open .watchlist-group-pop-card {
  opacity: 1;
  transform: none;
}
.watchlist-group-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.watchlist-group-pop-head strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watchlist-group-pop-body {
  display: grid;
  gap: 0.35rem;
}
.watchlist-group-pop-color-block {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem 0.15rem 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  margin: 0.1rem 0;
}
.watchlist-group-pop-color-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.watchlist-group-pop-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.watchlist-group-pop-recent {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.15rem;
}
.watchlist-group-pop-recent[hidden] {
  display: none !important;
}
.watchlist-group-pop-swatch {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--wl-group-color) 35%, transparent);
  background: var(--wl-group-color);
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.watchlist-group-pop-swatch:hover {
  transform: scale(1.08);
}
.watchlist-group-pop-swatch.is-selected {
  box-shadow:
    0 0 0 2px rgba(24, 26, 32, 0.95),
    0 0 0 3.5px var(--wl-group-color);
}
.watchlist-group-pop-color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.watchlist-group-pop-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}
.watchlist-group-pop-color-picker input[type="color"] {
  width: 1.6rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.watchlist-group-pop-action {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease;
}
.watchlist-group-pop-action:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: rgba(212, 160, 23, 0.10);
}
.watchlist-group-pop-action:active {
  transform: scale(0.97);
}
.watchlist-group-pop-action.is-danger {
  color: #e09a8c;
}
.watchlist-group-pop-action.is-danger:hover {
  border-color: rgba(196, 92, 74, 0.45);
  background: rgba(196, 92, 74, 0.12);
}
.watchlist-move {
  min-width: 7rem;
  max-width: 10rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
}
.watchlist-add-form {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}
.watchlist-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.watchlist-search-wrap input {
  width: 100%;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.72);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.watchlist-search-wrap input:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14);
  background: rgba(16, 18, 24, 0.92);
}
.watchlist-add-btn {
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.watchlist-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: linear-gradient(180deg, rgba(36, 40, 50, 0.98), rgba(24, 26, 32, 0.98));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  max-height: 260px;
  overflow: auto;
}
.watchlist-suggest li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.watchlist-suggest li:hover {
  background: rgba(212, 160, 23, 0.10);
}
.watchlist-table-panel {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(30, 33, 42, 0.98), rgba(22, 24, 30, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.watchlist-table-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.85rem 1.15rem 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.watchlist-table-caption-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  min-width: 0;
}
.watchlist-table-caption strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.watchlist-table-caption .muted {
  font-size: 0.8rem;
}
.watchlist-batch-toggle {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: rgba(212, 160, 23, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease;
}
.watchlist-batch-toggle:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.14);
}
.watchlist-batch-toggle.is-active {
  background: rgba(212, 160, 23, 0.2);
  border-color: rgba(212, 160, 23, 0.55);
  color: #f0e2b8;
}
.watchlist-batch-toggle:active {
  transform: scale(0.97);
}
.watchlist-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: rgba(212, 160, 23, 0.05);
}
.watchlist-batch-bar[hidden] {
  display: none !important;
}
.watchlist-batch-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.watchlist-batch-all input {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}
.watchlist-batch-count {
  font-size: 0.86rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}
.watchlist-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.watchlist-batch-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.14s ease;
}
.watchlist-batch-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: rgba(212, 160, 23, 0.1);
}
.watchlist-batch-btn:active {
  transform: scale(0.97);
}
.watchlist-batch-btn.is-danger {
  color: #e09a8c;
}
.watchlist-batch-btn.is-danger:hover {
  border-color: rgba(196, 92, 74, 0.45);
  background: rgba(196, 92, 74, 0.12);
}
.watchlist-batch-btn.is-done {
  border-color: rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.16);
  color: #f0e2b8;
}
.watchlist-th-check,
.watchlist-check-cell {
  width: 2.2rem;
  text-align: center;
  vertical-align: middle;
}
.watchlist-th-check[hidden] {
  display: none !important;
}
.watchlist-row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.watchlist-row-check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.watchlist-table tbody tr.is-selected {
  background: rgba(212, 160, 23, 0.08);
}
.watchlist-table-panel.is-batch .watchlist-table tbody tr:hover {
  background: rgba(212, 160, 23, 0.1);
}
.watchlist-batch-group-pop[hidden] {
  display: none !important;
}
.watchlist-batch-group-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.watchlist-batch-group-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 14, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.watchlist-batch-group-pop.is-open .watchlist-batch-group-scrim {
  opacity: 1;
}
.watchlist-batch-group-card {
  position: relative;
  z-index: 1;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(40, 44, 54, 0.98), rgba(24, 26, 32, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-batch-group-pop.is-open .watchlist-batch-group-card {
  opacity: 1;
  transform: none;
}
.watchlist-batch-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.watchlist-batch-group-head strong {
  font-size: 1rem;
  font-weight: 600;
}
.watchlist-batch-group-body {
  max-height: min(50vh, 16rem);
  overflow: auto;
}
.watchlist-batch-group-create {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.watchlist-batch-group-create-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}
.watchlist-batch-group-create-input:focus {
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14);
}
.watchlist-batch-group-create .watchlist-batch-btn {
  flex-shrink: 0;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: rgba(212, 160, 23, 0.12);
}
.watchlist-batch-group-foot {
  display: flex;
  justify-content: flex-end;
}
.watchlist-batch-group-foot .btn-primary {
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
}
.watchlist-table-scroll {
  overflow-x: auto;
  --wl-slide-dir: 1;
  will-change: transform, opacity;
  padding: 0 0.35rem 0.35rem;
  /* 空分组与有内容分组切换时减少文档高度剧烈收缩 */
  min-height: 12.5rem;
}
.watchlist-table-scroll.is-slide-out {
  opacity: 0;
  transform: translateX(calc(var(--wl-slide-dir, 1) * -22px));
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s cubic-bezier(0.4, 0, 1, 1);
}
.watchlist-table-scroll.is-slide-prep {
  opacity: 0;
  transform: translateX(calc(var(--wl-slide-dir, 1) * 22px));
  transition: none;
  pointer-events: none;
}
.watchlist-table-scroll.is-slide-in {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .watchlist-table-scroll.is-slide-out,
  .watchlist-table-scroll.is-slide-prep,
  .watchlist-table-scroll.is-slide-in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
.watchlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.watchlist-table th,
.watchlist-table td {
  text-align: left;
  padding: 0.78rem 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  vertical-align: middle;
}
.watchlist-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  position: sticky;
  top: 0;
  background: rgba(24, 26, 32, 0.94);
  backdrop-filter: blur(6px);
  z-index: 1;
}
.watchlist-table tbody tr {
  transition: background-color 0.16s ease;
}
.watchlist-table tbody tr:hover {
  background: rgba(212, 160, 23, 0.06);
}
.watchlist-table tbody tr.watchlist-ai-row,
.watchlist-table tbody tr.watchlist-ai-row:hover {
  background: transparent;
}
.watchlist-table tbody tr:last-child td {
  border-bottom: 0;
}
.watchlist-th-num,
.watchlist-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.watchlist-th-date,
.watchlist-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--muted);
}
.watchlist-code {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.watchlist-name-cell {
  max-width: 14rem;
  min-width: 7.5rem;
}
.watchlist-name-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}
.watchlist-group-dots {
  /* 紧跟名称右侧；每行 5 个，超出换行，最多 4 行，宽度固定不挤后面列 */
  display: grid;
  grid-template-columns: repeat(5, 0.55rem);
  gap: 0.2rem 0.22rem;
  width: calc(5 * 0.55rem + 4 * 0.22rem);
  max-width: 100%;
  flex-shrink: 0;
  margin-top: 0;
  justify-items: center;
  align-items: center;
}
.watchlist-group-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--wl-group-color, #8a8f98);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wl-group-color, #8a8f98) 35%, transparent);
}
.watchlist-group-dot.is-ungrouped {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--wl-group-color, #7a808c) 75%, transparent);
  box-shadow: none;
  box-sizing: border-box;
}
.watchlist-group-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--wl-group-color, #8a8f98);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wl-group-color, #8a8f98) 30%, transparent);
}
.watchlist-name {
  color: var(--text);
  font-weight: 600;
  transition: color 0.15s ease;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watchlist-name:hover { color: var(--accent); }
.watchlist-empty-row td {
  border-bottom: 0;
  padding: 1.5rem 0.7rem 1.75rem;
}
.watchlist-empty {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--line) 90%, var(--accent));
  border-radius: 12px;
  background: rgba(16, 18, 24, 0.35);
  color: var(--muted);
}
.watchlist-empty strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}
.watchlist-empty span {
  font-size: 0.86rem;
  max-width: 22rem;
  line-height: 1.5;
}
.watchlist-th-manage,
.watchlist-manage-cell {
  width: 2.4rem;
  text-align: right;
  vertical-align: middle;
}
.watchlist-th-ai,
.watchlist-ai-cell { display: none !important; }
.watchlist-ai-row > td {
  padding: 0 0.65rem 0.7rem;
  border-top: none;
  background: transparent;
  vertical-align: top;
}
.watchlist-ai-row + tr[data-symbol] > td {
  border-top: 1px solid rgba(46, 53, 64, 0.7);
}
.watchlist-table tbody tr[data-symbol]:has(+ .watchlist-ai-row) > td {
  border-bottom: none;
  padding-bottom: 0.2rem;
}
.watchlist-ai-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(74, 80, 90, 0.45);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(90, 156, 214, 0.06), transparent 42%),
    rgba(14, 16, 22, 0.72);
}
.watchlist-ai-panel.is-empty {
  min-height: 0;
}
.watchlist-ai-panel.is-collapsed {
  padding: 0.4rem 0.65rem;
  gap: 0;
}
.watchlist-ai-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.6rem;
}
.watchlist-ai-body {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}
.watchlist-ai-panel.is-collapsed .watchlist-ai-body {
  display: none;
}
.watchlist-ai-peek {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.watchlist-ai-toggle {
  appearance: none;
  border: 1px solid rgba(74, 80, 90, 0.7);
  background: rgba(19, 21, 26, 0.55);
  color: #b8c2cc;
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  cursor: pointer;
  white-space: nowrap;
}
.watchlist-ai-toggle:hover {
  background: rgba(46, 53, 64, 0.55);
  color: var(--text);
}
.watchlist-ai-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.watchlist-ai-toggle:disabled:hover {
  background: rgba(19, 21, 26, 0.55);
  color: #b8c2cc;
}
.watchlist-ai-chart {
  flex: 0 0 240px;
  width: 240px;
  height: 168px;
  min-height: 168px;
  border-radius: 9px;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(46, 53, 64, 0.65);
}
.watchlist-ai-chart-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.78rem;
}
.watchlist-ai-info {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: flex-start;
}
.watchlist-ai-views {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.watchlist-ai-view {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: rgba(19, 21, 26, 0.42);
  border: 1px solid rgba(46, 53, 64, 0.55);
}
.watchlist-ai-view.is-err {
  opacity: 0.85;
}
.watchlist-ai-view-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.watchlist-ai-model {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #d5dde6;
}
.watchlist-ai-model i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--model-dot, #7eb6d9);
  flex: 0 0 auto;
}
.watchlist-ai-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.watchlist-ai-head-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.watchlist-ai-head-actions .watchlist-ai-gen {
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
}
.watchlist-ai-gen:disabled {
  opacity: 0.65;
  cursor: wait;
}
.watchlist-ai-bias {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  border: 1px solid transparent;
  background: rgba(154, 163, 173, 0.14);
  color: #c8d0d8;
}
.watchlist-ai-bias-scope {
  font-style: normal;
  font-weight: 550;
  font-size: 0.68rem;
  opacity: 0.78;
  letter-spacing: 0.02em;
}
.watchlist-ai-bias.is-up {
  color: #e09a8c;
  background: rgba(224, 154, 140, 0.14);
  border-color: rgba(224, 154, 140, 0.28);
}
.watchlist-ai-bias.is-down {
  color: #8fbfb0;
  background: rgba(143, 191, 176, 0.14);
  border-color: rgba(143, 191, 176, 0.28);
}
.watchlist-ai-conf,
.watchlist-ai-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(19, 21, 26, 0.55);
  border: 1px solid rgba(46, 53, 64, 0.75);
}
.watchlist-ai-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.watchlist-ai-metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  background: rgba(19, 21, 26, 0.5);
  border: 1px solid rgba(46, 53, 64, 0.55);
}
.watchlist-ai-k {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.watchlist-ai-metric strong,
.watchlist-ai-v {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watchlist-ai-week-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.watchlist-ai-week {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.watchlist-ai-week-item {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.35rem;
  row-gap: 0.05rem;
  align-items: baseline;
  min-width: 4.6rem;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  background: rgba(19, 21, 26, 0.48);
  border: 1px solid rgba(46, 53, 64, 0.55);
  font-variant-numeric: tabular-nums;
}
.watchlist-ai-week-item b {
  font-weight: 550;
  color: var(--muted);
  font-size: 0.68rem;
}
.watchlist-ai-week-item em {
  grid-column: 2;
  font-style: normal;
  font-size: 0.68rem;
  justify-self: end;
}
.watchlist-ai-week-item strong {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
}
.watchlist-ai-week-item.is-up em { color: #e09a8c; }
.watchlist-ai-week-item.is-down em { color: #8fbfb0; }
.watchlist-ai-week-item.is-flat em { color: var(--muted); }
.watchlist-ai-week-empty { font-size: 0.78rem; }
.watchlist-ai-summary {
  margin: 0;
  color: #9aa6b5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.78rem;
  padding-top: 0.1rem;
  border-top: 1px solid rgba(46, 53, 64, 0.45);
}
.watchlist-ai-view .watchlist-ai-summary {
  border-top: 1px solid rgba(46, 53, 64, 0.4);
  padding-top: 0.35rem;
  margin-top: 0.05rem;
}
.watchlist-ai-view .watchlist-ai-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .watchlist-ai-view .watchlist-ai-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .watchlist-ai-view .watchlist-ai-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.watchlist-ai-gen {
  appearance: none;
  border: 1px solid rgba(90, 156, 214, 0.4);
  background: rgba(90, 156, 214, 0.12);
  color: #c9e4ff;
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.watchlist-ai-gen:hover {
  background: rgba(90, 156, 214, 0.2);
}
.watchlist-ai-loading {
  color: var(--muted);
  font-size: 0.8rem;
}
.watchlist-ai-disclaimer {
  margin: 0.55rem 0.2rem 0;
  font-size: 0.78rem;
}
@media (max-width: 1100px) {
  .watchlist-ai-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .watchlist-ai-body {
    flex-direction: column;
  }
  .watchlist-ai-chart {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }
  .watchlist-ai-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.watchlist-row-manage-toggle {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  line-height: 1;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-row-manage-toggle:hover,
.watchlist-row-manage-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: rgba(212, 160, 23, 0.08);
}
.watchlist-row-manage-toggle:active {
  transform: scale(0.9);
}
.watchlist-row-pop[hidden] {
  display: none !important;
}
.watchlist-row-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.watchlist-row-pop.is-open {
  pointer-events: auto;
}
.watchlist-row-pop-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 14, 0.42);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.watchlist-row-pop.is-open .watchlist-row-pop-scrim {
  opacity: 1;
}
.watchlist-row-pop-card {
  position: fixed;
  width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.9rem 1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(40, 44, 54, 0.98), rgba(24, 26, 32, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  display: grid;
  gap: 0.85rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.watchlist-row-pop.is-open .watchlist-row-pop-card {
  opacity: 1;
  transform: none;
}
.watchlist-row-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.watchlist-row-pop-msg {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
}
.watchlist-row-pop-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.watchlist-row-pop-msg[hidden] {
  display: none !important;
}
.watchlist-row-pop-title-wrap {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.watchlist-row-pop-title-wrap strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.watchlist-row-pop-title-wrap .muted {
  font-size: 0.78rem;
}
.watchlist-row-pop-body {
  display: grid;
  gap: 0.75rem;
}
.watchlist-row-manage-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.watchlist-group-checks {
  display: grid;
  gap: 0.35rem;
  max-height: 11rem;
  overflow: auto;
  padding: 0.15rem 0;
}
.watchlist-group-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.watchlist-group-check:hover {
  background: rgba(255, 255, 255, 0.04);
}
.watchlist-group-check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.watchlist-group-hint,
.watchlist-group-empty {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}
.watchlist-row-manage-field .watchlist-move {
  width: 100%;
  max-width: none;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}
.watchlist-row-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}
.watchlist-row-pop-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  text-decoration: none;
}
.watchlist-table .is-up { color: #e09a8c; }
.watchlist-table .is-down { color: #8fbfb0; }
.watchlist-patterns {
  max-width: 22rem;
  min-width: 10rem;
}
.watchlist-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.watchlist-tag {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  background: rgba(212, 160, 23, 0.10);
  color: #e8d5a3;
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.abu-confirm[hidden] {
  display: none !important;
}
.abu-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  pointer-events: none;
}
.abu-confirm.is-open {
  pointer-events: auto;
}
.abu-confirm-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(6, 8, 12, 0.58);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.abu-confirm.is-open .abu-confirm-scrim {
  opacity: 1;
}
.abu-confirm-card {
  position: relative;
  z-index: 1;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background:
    linear-gradient(165deg, rgba(42, 46, 58, 0.99), rgba(22, 24, 30, 0.99));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.abu-confirm.is-open .abu-confirm-card {
  opacity: 1;
  transform: none;
}
.abu-confirm-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: #1a1408;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.14);
}
.abu-confirm-icon.is-danger,
.abu-confirm.is-danger .abu-confirm-icon {
  color: #fff6f4;
  background: linear-gradient(160deg, #d97868, #c45c4a);
  box-shadow: 0 0 0 6px rgba(196, 92, 74, 0.16);
}
.abu-confirm-icon.is-warn,
.abu-confirm.is-warn .abu-confirm-icon {
  color: #1a1408;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.14);
}
.abu-confirm-title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0.15rem 0 0;
}
.abu-confirm-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 18.5rem;
}
.abu-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  width: 100%;
}
.abu-confirm-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 5.5rem;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.14s ease,
    filter 0.16s ease;
}
.abu-confirm-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: rgba(212, 160, 23, 0.1);
}
.abu-confirm-btn:active {
  transform: scale(0.97);
}
.abu-confirm-cancel {
  color: var(--muted);
}
.abu-confirm-ok {
  border-color: transparent;
  background: var(--accent);
  color: #1a1408;
}
.abu-confirm-ok:hover {
  filter: brightness(1.06);
  border-color: transparent;
  background: var(--accent);
}
.abu-confirm-ok.is-danger {
  background: linear-gradient(160deg, #d97868, #c45c4a);
  color: #fff8f6;
}
.abu-confirm-ok.is-danger:hover {
  filter: brightness(1.05);
  background: linear-gradient(160deg, #d97868, #c45c4a);
}
@media (prefers-reduced-motion: reduce) {
  .abu-confirm-scrim,
  .abu-confirm-card {
    transition: none !important;
  }
  .abu-confirm.is-open .abu-confirm-card {
    transform: none !important;
  }
}

.main {
  /* 侧栏 fixed 后不占格，主栏必须落到第 2 列，否则会挤进侧栏下面的 232px 里“消失” */
  grid-column: 2;
  position: relative;
  min-height: 100vh;
  min-width: 0; /* grid 子项可收缩，避免宽表撑开整页 */
  padding: 1.75rem 2rem 3rem;
  z-index: 1;
  /* clip 不把父级变成滚动容器，减轻原生 date 日历滚动被夹死 */
  overflow-x: clip;
}
.main > .page-slots {
  position: relative;
}

/* 站内页保活：停泊时不可见但不 display:none，避免 ECharts 尺寸被清零 */
.page-slots {
  min-width: 0;
  position: relative;
}
.page-slot.is-parked {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}
.page-nav-loading {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.22);
  background: rgba(35, 40, 50, 0.94);
  color: #d8dce6;
  font-size: 0.92rem;
}
.page-nav-loading[hidden] {
  display: none !important;
}

.page-head { margin-bottom: 1.35rem; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}
.page-head > p:last-of-type {
  margin: 0;
  line-height: 1.55;
  max-width: 46rem;
}
.page-head p, .lede, .muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.hero-panel {
  position: relative;
  padding: 1.6rem 0 1.35rem;
  max-width: none;
  margin-bottom: 0.35rem;
}
.hero-panel::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-top: 1.15rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.72rem;
  margin: 0 0 0.55rem;
}
.hero-panel h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin: 0 0 0.7rem;
}
.hero-panel .lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .hero-panel .lede {
    white-space: normal;
  }
}
.cta-row { display: flex; gap: 0.75rem; margin-top: 1.4rem; flex-wrap: wrap; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
  margin-bottom: 0.5rem;
}
.feature-grid.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 1180px) {
  html:not(.layout-fixed) .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html.layout-fixed .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.tab.active, .tab:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--bg);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.tool-row select, .tool-row input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}
#kline-date-tools label.kline-date-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  z-index: 6;
  white-space: nowrap;
}
#kline-date-tools .kline-date-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  padding: 0.45rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#kline-date-tools .kline-date-input.empty {
  color: var(--muted);
  font-weight: 400;
}
#kline-date-tools .kline-date-input:hover {
  border-color: rgba(212, 160, 23, 0.45);
}
#kline-date-tools .kline-date-input:focus {
  outline: none;
  border-color: var(--accent, #d4a017);
}
.kline-date-pop {
  position: fixed;
  z-index: 1200;
  width: 18.5rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 10px;
  background: rgba(22, 26, 34, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  color: var(--text);
}
.kline-date-pop.hidden { display: none !important; }
.kline-date-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.kline-date-pop-head button {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.kline-date-pop-head button:hover {
  border-color: var(--accent, #d4a017);
}
.kline-date-pop-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.kline-date-pop-title button {
  width: auto;
  min-width: 3.2rem;
  padding: 0 0.45rem;
  height: 2rem;
}
.kline-date-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.kline-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}
.kline-date-grid button {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  height: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.kline-date-grid button:hover:not(:disabled) {
  background: rgba(212, 160, 23, 0.16);
}
.kline-date-grid button:disabled {
  color: #5a6270;
  cursor: default;
}
.kline-date-grid button.non-trade,
.kline-date-grid button.weekend:disabled {
  color: #4a5360;
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-color: rgba(120, 130, 118, 0.55);
}
.kline-date-grid button.muted-day { color: #6a7482; }
.kline-date-grid button.selected {
  background: rgba(212, 160, 23, 0.28);
  color: #f3e6b8;
  font-weight: 600;
}
.kline-date-grid button.today {
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.55);
}
.kline-date-years {
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.15rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.55) rgba(20, 24, 32, 0.8);
}
.kline-date-years::-webkit-scrollbar {
  width: 10px;
}
.kline-date-years::-webkit-scrollbar-track {
  background: rgba(20, 24, 32, 0.85);
  border-radius: 8px;
}
.kline-date-years::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.55);
  border-radius: 8px;
  border: 2px solid rgba(20, 24, 32, 0.85);
}
.kline-date-years button {
  border: 1px solid transparent;
  background: rgba(14, 16, 22, 0.55);
  color: var(--text);
  border-radius: 6px;
  height: 2.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.kline-date-years button:hover {
  border-color: rgba(212, 160, 23, 0.4);
}
.kline-date-years button.selected {
  border-color: var(--accent, #d4a017);
  background: rgba(212, 160, 23, 0.2);
  color: #f3e6b8;
  font-weight: 600;
}
.kline-date-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.15rem 0;
}
.kline-date-months button {
  border: 1px solid transparent;
  background: rgba(14, 16, 22, 0.55);
  color: var(--text);
  border-radius: 6px;
  height: 2.35rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.kline-date-months button:hover:not(:disabled) {
  border-color: rgba(212, 160, 23, 0.4);
}
.kline-date-months button.selected {
  border-color: var(--accent, #d4a017);
  background: rgba(212, 160, 23, 0.2);
  color: #f3e6b8;
  font-weight: 600;
}
.kline-date-months button:disabled {
  color: #5a6270;
  cursor: default;
  opacity: 0.55;
}
.kline-date-pop-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.kline-date-pop-foot button {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.kline-date-pop-foot button.primary {
  border-color: transparent;
  background: var(--accent, #d4a017);
  color: #1a1405;
  font-weight: 600;
}
.label.check, label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.img-list { display: flex; flex-direction: column; gap: 0.8rem; margin: 0.8rem 0; }
.plot-img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14171d;
}
.msg-list p { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.chip-static {
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
}
.data-table.matrix th:first-child { color: var(--text); }
.feature {
  display: block;
  position: relative;
  padding: 1.2rem 1.15rem 1.25rem;
  background:
    linear-gradient(145deg, rgba(212, 160, 23, 0.07), transparent 55%),
    rgba(26, 28, 36, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, transform .2s, background .2s;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.7), transparent);
  opacity: 0.55;
}
.feature:hover {
  border-color: rgba(212, 160, 23, 0.45);
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(212, 160, 23, 0.12), transparent 55%),
    rgba(30, 33, 42, 0.96);
}
.feature h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%),
    rgba(26, 28, 36, 0.92);
  border: 1px solid rgba(46, 53, 64, 0.95);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text);
}
.btn.primary {
  background: linear-gradient(180deg, #e0b84a, var(--accent));
  color: #1a1405;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn.danger {
  background: rgba(196, 92, 74, 0.92);
  color: #fff8f6;
  font-weight: 600;
  border-color: transparent;
}
.btn.danger:hover { filter: brightness(1.05); }
.btn:disabled,
.btn.primary:disabled,
.btn.danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
#kline-date-tools.is-locked .kline-date-input,
#kline-date-tools.is-locked .kline-range-btn,
#kline-date-tools.is-locked #kline-show-all,
#kline-date-tools.is-locked #kline-bt-toggle {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 回测计算中：整块 K 线区/搜索区锁定，仅保留「停止计算」 */
#stock-kline-panel.is-calculating,
.panel.is-calculating {
  position: relative;
}
#stock-kline-panel.is-calculating::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.18);
  background: rgba(18, 22, 28, 0.08);
}
#stock-kline-panel.is-calculating button:not(#kline-bt-stop),
#stock-kline-panel.is-calculating input,
#stock-kline-panel.is-calculating select,
#stock-kline-panel.is-calculating .chip,
#stock-kline-panel.is-calculating .kline-bt-ms,
#stock-kline-panel.is-calculating .kline-bt-ms-trigger,
#stock-kline-panel.is-calculating .period-tab,
#stock-kline-panel.is-calculating #kline-chart-wrap,
#stock-kline-panel.is-calculating .kline-ma-legend,
#stock-kline-panel.is-calculating .kline-vol-tools,
#stock-kline-panel.is-calculating .kline-pattern-master,
#stock-kline-panel.is-calculating #kline-macd-pre-cross,
.panel.is-calculating input,
.panel.is-calculating button {
  pointer-events: none !important;
  opacity: 0.48;
  cursor: not-allowed !important;
}
#stock-kline-panel.is-calculating #kline-bt-stop {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
  position: relative;
  z-index: 60;
}
#stock-kline-panel.is-calculating .kline-bt-ms.is-disabled,
#stock-kline-panel.is-calculating .kline-bt-ms.is-disabled * {
  pointer-events: none !important;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
}
.btn.wide { width: 100%; margin-top: 0.75rem; }
.btn:hover { filter: brightness(1.05); }

.search-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.search-bar input[type="search"],
.search-bar input[type="text"],
.search-bar input[type="number"],
.form-grid input,
.factor-pick select,
.param-row input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}
.search-bar input[type="search"],
.search-bar input[type="text"] { flex: 1; min-width: 180px; }

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-input-wrap input[type="search"] {
  width: 100%;
  box-sizing: border-box;
}
.search-history-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: min(360px, 55vh);
  overflow: auto;
  background: var(--bg-elevated, #232832);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 0.55rem 0.65rem 0.65rem;
}
.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.search-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 260px;
  overflow: auto;
}
.search-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}
.search-history-item:hover {
  background: rgba(212, 160, 23, 0.12);
}
.search-history-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-history-q {
  flex-shrink: 0;
  font-size: 0.78rem;
}
.search-history-empty {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.85rem;
}

.result-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 280px;
  overflow: auto;
}
.result-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  cursor: pointer;
}
.result-item:hover { border-color: var(--accent-2); }

.hidden { display: none !important; }

.quote-strip {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(120,140,170,0.10), rgba(212,160,23,0.08));
}
.kline-quote {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.quote-main {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.quote-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.15rem;
}
.quote-price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.quote-chg { font-size: 1.05rem; font-weight: 600; }
.quote-main.up .quote-price,
.quote-main.up .quote-chg { color: #c45c4a; }
.quote-main.down .quote-price,
.quote-main.down .quote-chg { color: #6f9e8f; }
.quote-main.halted .quote-price,
.quote-main.halted .quote-chg { color: #9aa3ad; }
.quote-halt-tag {
  margin-left: 0.15rem;
  padding: 0.14rem 0.48rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0f3f7;
  background: #5a6570;
  white-space: nowrap;
  vertical-align: middle;
}
.quote-strip.is-halted {
  border-color: rgba(90, 101, 112, 0.55);
  background: linear-gradient(135deg, rgba(90, 101, 112, 0.14), rgba(120, 140, 170, 0.08));
}
.kline-halt-badge {
  margin-left: 0.45rem;
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f0f3f7;
  background: #5a6570;
  vertical-align: middle;
}
.quote-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem 1rem;
}
.quote-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.quote-metrics strong { font-weight: 600; }
.intro-block { margin-top: 1rem; line-height: 1.55; }

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}
.kv {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
}
.kv span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 0.25rem; }
.kv strong { font-weight: 600; word-break: break-all; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.chip-static {
  cursor: default;
  border-radius: 8px;
}
.chip.chip-static:hover { border-color: var(--line); }

.peers-wrap { margin-top: 1.15rem; }
.peers-wrap h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.event-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.event-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 0;
  overflow: hidden;
}
.event-link {
  display: block;
  padding: 0.7rem 0.85rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.event-item:has(.event-link):hover {
  border-color: rgba(212, 160, 23, 0.55);
  background: var(--bg-elevated);
}
.event-link:hover .event-content {
  color: var(--text);
}
.event-link-hint {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.event-type {
  color: var(--accent-2);
}
.event-content {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}
.event-item > .event-meta,
.event-item > .event-content {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.event-item > .event-meta { padding-top: 0.7rem; }
.event-item > .event-content { padding-bottom: 0.7rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.form-grid label, .factor-block label.mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-grid .span-2 { grid-column: span 2; }
.form-grid input { color: var(--text); }

.factor-block { margin-top: 1.2rem; }
.factor-block h3 { margin: 0 0 0.55rem; font-size: 1rem; }
.factor-pick { display: flex; gap: 0.5rem; }
.factor-pick select { flex: 1; }
.factor-list { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.6rem; }
.factor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  background: var(--bg);
}
.factor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.param-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.link {
  background: none;
  border: none;
  color: var(--accent-2);
  cursor: pointer;
  padding: 0;
}
.link.danger { color: var(--danger); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
}
.metric span { display: block; color: var(--muted); font-size: 0.75rem; }
.metric strong { font-size: 1.05rem; }

.chart-box {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14171d;
}
.chart-box.tall { height: 560px; }
.chart-box.tall.indicators { height: 1400px; }

.kline-bt-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.kline-bt-shell.is-open {
  grid-template-rows: 1fr;
}
.kline-bt-shell-inner {
  overflow: hidden;
  min-height: 0;
}
/* 展开后允许策略下拉菜单溢出面板，避免被 shell 裁切 */
.kline-bt-shell.is-open:not(.is-closing) .kline-bt-shell-inner {
  overflow: visible;
}
.kline-bt-panel {
  margin: 0.85rem 0 0.55rem;
  padding: 0.95rem 1.05rem 1rem 1.1rem;
  border: 1px solid rgba(212, 160, 23, 0.42);
  border-left: 4px solid var(--accent, #d4a017);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.14) 0%, rgba(212, 160, 23, 0.04) 42%, rgba(28, 32, 40, 0.92) 100%),
    rgba(26, 30, 38, 0.96);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
  pointer-events: none;
  overflow: visible;
}
.kline-bt-shell.is-open .kline-bt-panel {
  opacity: 1;
  /* 必须为 none：任何 transform 都会让内部 fixed 菜单相对面板定位并被裁切 */
  transform: none;
  pointer-events: auto;
}
.kline-bt-shell.is-closing .kline-bt-panel {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
}
@media (prefers-reduced-motion: reduce) {
  .kline-bt-shell,
  .kline-bt-panel {
    transition: none !important;
  }
}
.kline-bt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: -0.15rem 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.22);
}
.kline-bt-head strong {
  color: var(--accent, #d4a017);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.kline-bt-range {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--text);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.kline-bt-range.empty {
  border-color: rgba(140, 150, 168, 0.28);
  background: rgba(20, 24, 32, 0.35);
  color: var(--muted);
  font-weight: 500;
}
.kline-bt-head .muted {
  color: #8b93a3;
}
.kline-bt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.kline-bt-presets .chip {
  cursor: pointer;
}
.kline-bt-presets .chip.active {
  border-color: var(--accent, #d4a017);
  color: #e8eaef;
  background: rgba(212, 160, 23, 0.18);
}
.kline-bt-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.1rem;
  overflow: visible;
}
.kline-bt-col {
  overflow: visible;
}
.kline-bt-col h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.kline-bt-ms {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kline-bt-ms-control {
  position: relative;
}
.kline-bt-ms-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(140, 150, 168, 0.35);
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.75);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}
.kline-bt-ms-trigger:hover {
  border-color: rgba(212, 160, 23, 0.45);
}
.kline-bt-ms.open .kline-bt-ms-trigger {
  border-color: var(--accent, #d4a017);
}
.kline-bt-ms-caret {
  color: var(--muted);
  font-size: 0.85rem;
}
/* 默认隐藏；打开后由 JS 设为 position:fixed，脱离面板 overflow 裁剪 */
.kline-bt-ms-menu {
  display: none;
  box-sizing: border-box;
  z-index: 5000;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border: 1px solid rgba(140, 150, 168, 0.45);
  border-radius: 8px;
  background: rgba(18, 22, 28, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.55) rgba(20, 24, 32, 0.85);
}
.kline-bt-ms.open .kline-bt-ms-menu,
.kline-bt-ms-menu.is-open {
  display: block;
}
.kline-bt-ms-menu::-webkit-scrollbar {
  width: 10px;
}
.kline-bt-ms-menu::-webkit-scrollbar-track {
  background: rgba(20, 24, 32, 0.85);
  border-radius: 8px;
}
.kline-bt-ms-menu::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.55);
  border-radius: 8px;
  border: 2px solid rgba(20, 24, 32, 0.85);
}
.kline-bt-ms-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.75);
}
.kline-bt-ms-option {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}
.kline-bt-ms-option:hover {
  background: rgba(212, 160, 23, 0.12);
}
.kline-bt-ms-option .desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.kline-bt-ms-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.8rem;
}
.kline-bt-ms-selected:empty::before {
  content: attr(data-empty);
  color: var(--muted);
  font-size: 0.88rem;
}
.kline-bt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.45rem 0.25rem 0.55rem;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.12);
  color: var(--text);
  font-size: 0.88rem;
}
.kline-bt-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.1rem;
}
.kline-bt-chip button:hover { color: #c45c4a; }
.kline-bt-ms-params {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kline-bt-ms-params:empty { display: none; }
.kline-bt-param-card {
  border: 1px solid rgba(140, 150, 168, 0.22);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: rgba(14, 16, 22, 0.45);
}
.kline-bt-param-card > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--text);
}
.kline-bt-param-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(140, 150, 168, 0.14);
}
.kline-bt-param-card-foot .kline-ind-guide-link {
  margin-left: 0;
}
.kline-bt-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.4rem 0.55rem;
  align-items: end;
}
.kline-bt-params label,
.kline-bt-params .kline-bt-choice {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 0;
}
.kline-bt-params label.kline-bt-bool {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(140, 150, 168, 0.28);
  border-radius: 6px;
  background: rgba(20, 24, 32, 0.45);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
}
.kline-bt-params label.kline-bt-bool input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent, #d4a017);
  flex: 0 0 auto;
}
.kline-bt-params input[type="number"],
.kline-bt-params input[type="text"] {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
}
.kline-bt-params .kline-bt-choice {
  gap: 0.3rem;
}
.kline-bt-stepper {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.kline-bt-stepper input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  padding: 0.4rem 0.2rem !important;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.kline-bt-stepper input::-webkit-outer-spin-button,
.kline-bt-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  display: none;
}
.kline-bt-step {
  position: relative;
  z-index: 2;
  border: 0;
  background: rgba(140, 150, 168, 0.12);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-height: 2.2rem;
  touch-action: manipulation;
}
.kline-bt-step:hover {
  background: rgba(212, 160, 23, 0.22);
  color: #f0d78a;
}
.kline-bt-step:active {
  background: rgba(212, 160, 23, 0.35);
}
.kline-bt-step:disabled,
.kline-bt-step:disabled:hover,
.kline-bt-step:disabled:active {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(140, 150, 168, 0.08);
  color: var(--muted);
}
.kline-bt-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem 0.75rem;
  margin-top: 0.75rem;
}
.kline-bt-opts label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #b8c2b4;
  margin: 0;
}
.kline-bt-opts input,
.kline-bt-opts select {
  min-width: 9.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}
.kline-bt-opts select {
  color-scheme: dark;
}
.kline-bt-opts select option {
  background: var(--bg-panel);
  color: var(--text);
}
.kline-bt-status {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.18) 0%, rgba(212, 160, 23, 0.06) 55%, rgba(20, 24, 32, 0.35) 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
  font-size: 0.92rem;
  color: var(--text);
}
.kline-bt-status.empty {
  display: none;
}
.kline-bt-status.is-msg {
  color: #aeb6c4;
}
.kline-bt-status.is-error {
  border-color: rgba(196, 92, 74, 0.55);
  background: rgba(196, 92, 74, 0.12);
  color: #e8b4ab;
}
.kline-bt-status.is-stale {
  border-color: rgba(212, 160, 23, 0.55);
  opacity: 0.88;
}
.kline-bt-metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 5.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.55);
  border: 1px solid rgba(140, 150, 168, 0.22);
}
.kline-bt-metric.range {
  min-width: 11rem;
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.14);
}
.kline-bt-metric.strategy {
  min-width: 8.5rem;
  max-width: 20rem;
  border-color: rgba(120, 140, 170, 0.4);
  background: rgba(120, 140, 170, 0.12);
}
.kline-bt-metric.strategy .val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
}
.kline-bt-strat-line {
  display: block;
  line-height: 1.35;
}
.kline-bt-metric .lbl {
  font-size: 0.72rem;
  color: #8b93a3;
  letter-spacing: 0.02em;
}
.kline-bt-metric .val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.kline-bt-metric.range .val {
  color: var(--accent, #d4a017);
  font-size: 0.92rem;
}
.kline-bt-metric.up .val { color: #e05a4a; }
.kline-bt-metric.down .val { color: #3db87a; }
.kline-bt-metric.flat .val { color: #e8eaef; }
.kline-bt-metric.pos .val { color: #e05a4a; }
.kline-bt-metric.neg .val { color: #3db87a; }
.kline-bt-status-note {
  flex: 1 1 100%;
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #8b93a3;
}
.kline-bt-cycles {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem 0.45rem;
  border: 1px solid rgba(140, 150, 168, 0.28);
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.45);
}
.kline-bt-cycles-head {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b93a3;
  letter-spacing: 0.02em;
}
.kline-bt-cycle-sum {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: #8b93a3;
  line-height: 1.4;
}
.kline-bt-cycle-sum strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kline-bt-cycle-item.is-open {
  background: rgba(212, 160, 23, 0.08);
  border-radius: 6px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.kline-bt-cycle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 11.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.55) rgba(20, 24, 32, 0.85);
}
.kline-bt-cycle-list::-webkit-scrollbar { width: 8px; }
.kline-bt-cycle-list::-webkit-scrollbar-track {
  background: rgba(20, 24, 32, 0.85);
  border-radius: 8px;
}
.kline-bt-cycle-list::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.55);
  border-radius: 8px;
}
.kline-bt-cycle-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  padding: 0.28rem 0.2rem;
  border-bottom: 1px solid rgba(140, 150, 168, 0.12);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.kline-bt-cycle-item:last-child { border-bottom: 0; }
.kline-bt-cycle-idx {
  flex: 0 0 1.4rem;
  color: var(--muted);
  font-weight: 600;
}
.kline-bt-cycle-range {
  flex: 1 1 auto;
  min-width: 11rem;
  color: var(--text);
}
.kline-bt-cycle-qty {
  color: #8b93a3;
  font-size: 0.8rem;
}
.kline-bt-cycle-add {
  color: #e8d5a3;
  font-size: 0.78rem;
  font-weight: 600;
}
.kline-bt-cycle-px {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}
.kline-bt-cycle-px em {
  margin-right: 0.18rem;
  font-style: normal;
  font-weight: 500;
  color: #8b93a3;
  font-size: 0.78rem;
}
.kline-bt-cycle-ret {
  margin-left: auto;
  font-weight: 700;
}
.kline-bt-cycle-ret.up { color: #e05a4a; }
.kline-bt-cycle-ret.down { color: #3db87a; }
.kline-bt-cycle-ret.flat { color: #e8eaef; }
.kline-bt-cycle-score {
  flex: 1 1 100%;
  margin-left: 1.95rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #8b93a3;
  word-break: break-word;
}
.kline-bt-cycle-score em {
  display: inline-block;
  min-width: 2.6em;
  margin-right: 0.45rem;
  font-style: normal;
  font-weight: 600;
  color: #c9d2c4;
}
.kline-bt-cycle-score.is-env em {
  color: #9eb0c0;
}
.kline-bt-cycle-score.is-warn {
  color: #b8860b;
}
.kline-bt-cycle-score.is-warn em {
  color: #c9a227;
}
.kline-bt-status-note.warn {
  color: #e0b84a;
  font-weight: 600;
}
@media (max-width: 860px) {
  html:not(.layout-fixed) .kline-bt-cols { grid-template-columns: 1fr; }
}

.kline-ma-legend {
  position: absolute;
  left: 12px;
  right: 80px;
  top: 6px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  pointer-events: none;
}
.kline-ma-legend.hidden { display: none !important; }
.kline-ma-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  pointer-events: auto;
}
.kline-ma-chip {
  border: 1px solid rgba(154, 168, 148, 0.35);
  background: rgba(20, 24, 32, 0.88);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.kline-ma-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.kline-ma-chip.on {
  color: var(--text);
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.12);
}
.kline-ma-chip:not(.on) {
  opacity: 0.55;
  text-decoration: line-through;
}

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.kline-status {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.kline-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.kline-stock-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  min-width: 0;
}
.stock-watchlist-btn {
  flex: 0 0 auto;
  padding: 0.38rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
}
.stock-watchlist-btn.is-active {
  color: #f0d6c8;
  border-color: rgba(196, 92, 74, 0.45);
  background: rgba(196, 92, 74, 0.16);
}
.stock-watchlist-btn.is-active:hover {
  filter: brightness(1.08);
}
.kline-stock-title h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.kline-stock-symbol {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.board-tag {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: #1d4f7c;
  background: #e8f2fb;
  border: 1px solid #c5dcf0;
}
.detail-head h2 .board-tag,
.kline-stock-title h2 .board-tag,
.search-history-label .board-tag {
  margin-left: 0.35rem;
}
.kline-vol-tools {
  position: absolute;
  left: 36px;
  top: 66%;
  z-index: 40;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}
.kline-vol-unit-label {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.22rem 0.45rem 0.22rem 0.55rem;
  border-radius: 8px;
  background: rgba(20, 24, 32, 0.9);
  border: 1px solid rgba(154, 168, 148, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}
/* 单位右侧：十字星当日成交量/额，风格对齐副图 HUD */
.kline-vol-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: rgba(20, 24, 32, 0.9);
  border: 1px solid rgba(154, 168, 148, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #c8d0c4;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.kline-vol-hud.hidden {
  display: none !important;
}
.kline-vol-hud-label {
  color: #c8d0c4;
  font-weight: 400;
}
.kline-vol-hud b {
  color: #e7ebe3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kline-vol-unit-label select {
  appearance: auto;
  -webkit-appearance: menulist;
  background: rgba(14, 16, 22, 0.95);
  border: 1px solid rgba(154, 168, 148, 0.35);
  color: var(--text);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  min-width: 4.5rem;
  pointer-events: auto;
}
.kline-vol-unit-label select:focus {
  outline: none;
  border-color: var(--accent);
}
.period-tab {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.86rem;
}
.period-tab:hover { border-color: var(--accent); color: var(--text); }
.period-tab.active {
  border-color: var(--accent);
  background: rgba(212, 160, 23, 0.16);
  color: var(--text);
  font-weight: 600;
}

.kline-day-layout {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.kline-day-layout > .kline-chart-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.kline-chart-wrap {
  position: relative;
  user-select: none;
  touch-action: none;
  width: 100%;
  min-width: 0;
}
/* 外部十字星 tip：ECharts 只画准星，内容走独立 DOM，避免 formatter 堵主线程 */
.kline-cross-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 28;
  display: none;
  pointer-events: none;
  min-width: 148px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2f3a2c;
  background: rgba(26, 32, 24, 0.94);
  color: #e7ebe3;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}
.kline-cross-tip.is-on {
  display: block;
}
.kline-cross-tip b {
  font-weight: 600;
}
/* 日K右侧：上筹码峰、下公司信息，撑满图表高度填空白 */
.kline-side-col {
  flex: 0 0 188px;
  width: 188px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  min-width: 0;
  align-self: flex-start; /* 高度由 JS 锁成与日K图一致，避免被内容撑长 */
  overflow: hidden;
  box-sizing: border-box;
}
.kline-side-col.hidden {
  display: none !important;
}
.kline-chip-panel {
  /* 上段对齐主图价格区；下方脚栏放统计；max-height 由 JS 锁定，避免撑死下方公司/概念区 */
  --chip-grid-top: 36px;
  --chip-price-h: 504px;
  flex: 0 1 auto;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid rgba(154, 168, 148, 0.22);
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.55);
  overflow: hidden;
}
/* 可见 >550：覆盖筹码峰，冻结更新（保留底层最后一帧） */
.kline-chip-frost {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(165deg, rgba(22, 26, 34, 0.78), rgba(14, 16, 22, 0.88));
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kline-chip-frost.hidden { display: none !important; }
.kline-chip-frost-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 11.5rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(26, 34, 26, 0.55);
  border: 1px solid rgba(232, 236, 228, 0.14);
  color: #e7ebe3;
}
.kline-chip-frost-panel strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent, #d4a017);
}
.kline-chip-frost-panel span {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #b7c2b2;
}
.kline-company-brief {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(154, 168, 148, 0.22);
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.55);
  overflow: hidden;
}
.kline-company-brief-head {
  flex: 0 0 auto;
  padding: 0.35rem 0.5rem 0.2rem;
}
.kline-company-brief-head strong {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.kline-company-brief-fields {
  /* 公司信息优先占位，不被概念栏挤压 */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.1rem 0.5rem 0.35rem;
  min-height: 0;
  overflow: visible;
}
.kline-company-brief-fields .kline-co-kv {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(154, 168, 148, 0.16);
}
.kline-company-brief-fields .kline-co-kv:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.kline-company-brief-fields .kline-co-kv span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}
.kline-company-brief-fields .kline-co-kv strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.kline-company-concepts-wrap {
  /* flex-basis:0 → 只吃公司信息下方剩余高度，内容再多也不挤公司信息 */
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0.1rem;
  padding-top: 0.1rem;
  border-top: 1px solid rgba(154, 168, 148, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kline-company-concepts-wrap.hidden {
  display: none !important;
}
.kline-company-concepts {
  --co-chip-fs: 0.60rem;
  --co-chip-pad-y: 0.12rem;
  --co-chip-pad-x: 0.28rem;
  --co-chip-gap: 0.18rem;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--co-chip-gap);
  padding: 0 0.45rem 0.4rem;
  overflow: hidden;
}
/* 覆盖全局 .chip-static 的 margin/字号，否则自适应会失效并裁切概念 */
.kline-company-concepts .chip,
.kline-company-concepts .chip.chip-static {
  margin: 0;
  font-size: var(--co-chip-fs);
  padding: var(--co-chip-pad-y) var(--co-chip-pad-x);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  word-break: break-all;
  box-sizing: border-box;
}
.kline-chip-head {
  flex: 0 0 var(--chip-grid-top);
  height: var(--chip-grid-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 0.4rem;
  box-sizing: border-box;
}
.kline-chip-head strong {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.kline-chip-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}
.kline-chip-panel.is-pinned .kline-chip-date {
  color: var(--accent);
}
.kline-chip-pin-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a2218;
  background: var(--accent);
  vertical-align: middle;
}
.quote-pin-tag {
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a2218;
  background: var(--accent);
  white-space: nowrap;
}
.kline-chart-wrap.is-day-pinned {
  cursor: default;
}
/* 钉住时十字虚线偏黄，强化停留位置 */
body.kline-day-pinned .kline-chart-wrap {
  --pin-cross: #e6c35c;
}
/* 钉住缩放球：贴视口右下，位于指数悬浮球左侧 */
.kline-pin-zoom {
  position: fixed;
  /* 指数球 right 1.25rem + 直径 3.4rem + 间距 */
  right: calc(1.25rem + 3.4rem + 0.65rem);
  bottom: 1.25rem;
  z-index: 81;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}
.kline-pin-zoom > * { pointer-events: auto; }
.kline-pin-zoom.hidden {
  display: none !important;
}
.kline-pin-zoom-btn {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 25%, rgba(212, 160, 23, 0.38), transparent 55%),
    var(--bg-elevated);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.kline-pin-zoom-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent);
}
.kline-pin-zoom-btn:active {
  transform: translateY(0) scale(0.97);
}
.kline-pin-zoom-btn[data-zoom="in"] {
  border-color: rgba(212, 160, 23, 0.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(243, 220, 122, 0.55), transparent 55%),
    linear-gradient(155deg, #f3dc7a 0%, #e6c35c 48%, #c9a227 100%);
  color: #1a2218;
}
.kline-pin-zoom-btn[data-zoom="out"] {
  border-color: rgba(111, 158, 143, 0.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(111, 158, 143, 0.35), transparent 55%),
    var(--bg-elevated);
  color: #e7ebe3;
}
.kline-pin-zoom-ico {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--display);
  letter-spacing: 0;
  user-select: none;
}
.kline-pin-zoom-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.35);
  animation: kline-pin-zoom-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.kline-pin-zoom-btn[data-zoom="out"] .kline-pin-zoom-pulse {
  border-color: rgba(111, 158, 143, 0.4);
}
@keyframes kline-pin-zoom-pulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .kline-pin-zoom {
    right: calc(0.85rem + 3.4rem + 0.55rem);
    bottom: 0.85rem;
  }
}
/* 钉住 / 取消钉住：鼠标旁瞬时提示（弹入 + 光晕 + 退场） */
.kline-pin-flash {
  position: fixed;
  z-index: 12000;
  pointer-events: none;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(12px, 14px) scale(0.84);
  will-change: transform, opacity;
}
.kline-pin-flash.is-visible {
  visibility: visible;
  animation: klinePinFlashIn 0.48s cubic-bezier(0.2, 1.35, 0.32, 1) forwards;
}
.kline-pin-flash.is-leaving {
  visibility: visible;
  animation: klinePinFlashOut 0.34s ease forwards;
}
.kline-pin-flash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 195, 92, 0.7);
  opacity: 0;
  pointer-events: none;
}
.kline-pin-flash.is-visible .kline-pin-flash-ring {
  animation: klinePinFlashRing 0.7s ease-out forwards;
}
.kline-pin-flash.is-unpin .kline-pin-flash-ring {
  border-color: rgba(111, 158, 143, 0.75);
}
.kline-pin-flash-card {
  position: relative;
  overflow: hidden;
  min-width: 5.5rem;
  padding: 0.52rem 0.78rem 0.48rem 0.7rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.kline-pin-flash.is-pin .kline-pin-flash-card {
  color: #1a2218;
  background:
    linear-gradient(155deg, #f3dc7a 0%, #e6c35c 48%, #c9a227 100%);
  box-shadow:
    0 0 0 1px rgba(255, 236, 170, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(230, 195, 92, 0.38);
}
.kline-pin-flash.is-unpin .kline-pin-flash-card {
  color: #e7ebe3;
  background:
    linear-gradient(155deg, rgba(48, 62, 50, 0.96) 0%, rgba(24, 32, 24, 0.96) 100%);
  border: 1px solid rgba(111, 158, 143, 0.55);
  box-shadow:
    0 0 0 1px rgba(111, 158, 143, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(111, 158, 143, 0.22);
}
.kline-pin-flash-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  pointer-events: none;
}
.kline-pin-flash.is-visible .kline-pin-flash-sheen {
  animation: klinePinFlashSheen 0.75s 0.08s ease-out forwards;
}
.kline-pin-flash-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kline-pin-flash-mark {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  position: relative;
}
.kline-pin-flash-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 1.5px;
  height: 0.42rem;
  margin-left: -0.75px;
  border-radius: 1px;
  background: currentColor;
}
.kline-pin-flash.is-pin .kline-pin-flash-mark {
  background: rgba(26, 34, 24, 0.18);
  color: #1a2218;
}
.kline-pin-flash.is-unpin .kline-pin-flash-mark {
  background: rgba(111, 158, 143, 0.22);
  color: #9ec9b8;
}
.kline-pin-flash-main {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.15;
}
.kline-pin-flash-sub {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.18rem;
  padding-left: 1.12rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.78;
}
.kline-pin-flash.is-pin .kline-pin-flash-sub {
  color: rgba(26, 34, 24, 0.78);
}
.kline-pin-flash.is-unpin .kline-pin-flash-sub {
  color: rgba(231, 235, 227, 0.72);
}
.kline-pin-flash-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.kline-pin-flash.is-pin .kline-pin-flash-spark {
  background: #ffe9a0;
  box-shadow: 0 0 6px rgba(255, 230, 140, 0.9);
}
.kline-pin-flash.is-unpin .kline-pin-flash-spark {
  background: #9ec9b8;
  box-shadow: 0 0 6px rgba(111, 158, 143, 0.85);
}
.kline-pin-flash.is-visible .kline-pin-flash-spark.s1 {
  left: -2px;
  top: 8px;
  animation: klinePinFlashSpark 0.7s 0.05s ease-out forwards;
}
.kline-pin-flash.is-visible .kline-pin-flash-spark.s2 {
  right: -4px;
  top: 4px;
  animation: klinePinFlashSpark 0.7s 0.14s ease-out forwards;
}
.kline-pin-flash.is-visible .kline-pin-flash-spark.s3 {
  left: 40%;
  top: -6px;
  animation: klinePinFlashSpark 0.7s 0.22s ease-out forwards;
}
@keyframes klinePinFlashIn {
  0% {
    opacity: 0;
    transform: translate(12px, 22px) scale(0.78);
  }
  62% {
    opacity: 1;
    transform: translate(12px, 10px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translate(12px, 14px) scale(1);
  }
}
@keyframes klinePinFlashOut {
  0% {
    opacity: 1;
    transform: translate(12px, 14px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(12px, 2px) scale(0.92);
  }
}
@keyframes klinePinFlashRing {
  0% {
    opacity: 0.85;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}
@keyframes klinePinFlashSheen {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(130%); }
}
@keyframes klinePinFlashSpark {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
    transform: translate(0, -4px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx, 6px), var(--sy, -14px)) scale(0.2);
  }
}
.kline-pin-flash-spark.s1 { --sx: -10px; --sy: -12px; }
.kline-pin-flash-spark.s2 { --sx: 12px; --sy: -10px; }
.kline-pin-flash-spark.s3 { --sx: 2px; --sy: -16px; }
/* 与日K主图价格 grid 同高，不被统计挤压 */
.kline-chip-chart {
  flex: 0 0 var(--chip-price-h);
  flex-shrink: 0;
  height: var(--chip-price-h);
  width: 100%;
  min-height: 0;
}
.kline-chip-foot {
  /* 面板触顶 max-height 时脚栏内部滚动，不向下挤压公司信息/概念 */
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  padding: 0.4rem 0.4rem 0.45rem;
  border-top: 1px solid rgba(154, 168, 148, 0.28);
  background: rgba(10, 14, 10, 0.55);
  overflow-x: hidden;
  overflow-y: auto;
}
.kline-chip-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}
.kline-chip-stats > span {
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.kline-chip-stats .kline-chip-stat-sep {
  display: block;
  width: 100%;
  height: 0;
  margin: 0.18rem 0 0.1rem;
  border: 0;
  border-top: 1px solid rgba(154, 168, 148, 0.28);
}
.kline-chip-stats b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kline-chip-stats .up { color: #e05a4a; }
.kline-chip-stats .down { color: #6f9e8f; }
/* 集中度等级：数值越小越集中 */
.kline-chip-stats .kline-chip-conc {
  display: inline;
  margin-left: 0.28em;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}
.kline-chip-stats .kline-chip-conc.conc-tight { color: #e05a4a; }
.kline-chip-stats .kline-chip-conc.conc-firm { color: #d4a017; }
.kline-chip-stats .kline-chip-conc.conc-fair { color: #9aa894; }
.kline-chip-stats .kline-chip-conc.conc-spread { color: #6f9e8f; }
.kline-chip-note {
  margin: 0.25rem 0 0;
  font-size: 0.66rem;
  line-height: 1.3;
  padding: 0;
}
.kline-chip-note:empty {
  display: none;
}

.kline-ind-guide {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.kline-ind-guide.hidden {
  display: none !important;
}
.kline-ind-guide-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.kline-pattern-master {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.2rem 0.55rem 0.2rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 168, 148, 0.35);
  background: rgba(20, 24, 32, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
}
.kline-pattern-master:hover {
  border-color: rgba(212, 160, 23, 0.55);
  color: var(--text);
}
.kline-pattern-master-switch {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(90, 98, 88, 0.85);
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.kline-pattern-master-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #e7ebe3;
  transition: transform 0.15s ease;
}
.kline-pattern-master.is-on {
  border-color: rgba(212, 160, 23, 0.55);
  color: #f0d78a;
}
.kline-pattern-master.is-on .kline-pattern-master-switch {
  background: rgba(212, 160, 23, 0.85);
}
.kline-pattern-master.is-on .kline-pattern-master-switch::after {
  transform: translateX(0.85rem);
}
.kline-ind-guide-link {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.kline-ind-guide-link:hover {
  color: #f0d78a;
  border-bottom-color: rgba(212, 160, 23, 0.55);
}
/* 完整覆盖日K副图 MACD / KDJ / RSI（含图例），底部留出 dataZoom 滑条 */
.kline-ind-frost {
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  bottom: 8px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(232, 236, 228, 0.1);
  /* 不用 backdrop-filter：底层 canvas 秒级重绘时模糊层会反复合成导致附图闪烁 */
  background:
    linear-gradient(180deg, rgba(22, 26, 34, 0.92), rgba(16, 20, 15, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kline-ind-frost.hidden { display: none !important; }
.kline-ind-hud {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
.kline-ind-hud.hidden { display: none !important; }
.kline-ind-hud-row {
  position: absolute;
  left: 24px;
  right: 76px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 0.55rem;
  font-size: 11px;
  line-height: 1.2;
  color: #c8d0c4;
  font-family: "IBM Plex Sans", "PingFang SC", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(20, 24, 32, 0.55);
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 100px);
}
.kline-ind-hud-row[data-panel="macd"] { top: 55.15%; }
.kline-ind-hud-row[data-panel="kdj"] { top: 69.15%; }
.kline-ind-hud-row[data-panel="rsi"] { top: 83.15%; }
.kline-ind-hud-title {
  color: #c8d0c4;
  font-weight: 400;
  margin-right: 0.15rem;
}
.kline-ind-hud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8d0c4;
  font: inherit;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.kline-ind-hud-item i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.kline-ind-hud-item b {
  color: #e7ebe3;
  font-weight: 600;
}
.kline-ind-hud-item.off {
  opacity: 0.38;
}
.kline-ind-hud-item.off b {
  color: #9aa894;
}
.kline-ind-frost-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(26, 34, 26, 0.55);
  border: 1px solid rgba(232, 236, 228, 0.14);
  color: #e7ebe3;
}
.kline-ind-frost-panel strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--accent, #d4a017);
}
.kline-ind-frost-panel span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b7c2b2;
}
.kline-chart-wrap.is-panning,
.kline-chart-wrap.is-panning *,
body.kline-panning,
body.kline-panning * {
  cursor: grabbing !important;
}
.kline-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(18, 22, 28, 0.28);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
.kline-loading.hidden { display: none !important; }
.kline-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 236, 228, 0.18);
  background: rgba(26, 34, 26, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.kline-loading-text {
  color: #e7ebe3;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.kline-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.25);
  border-top-color: #d4a017;
  animation: kline-spin 0.8s linear infinite;
}
@keyframes kline-spin {
  to { transform: rotate(360deg); }
}

/* 股票信息/K线区域加载蒙版：仅覆盖右侧内容块，绝不越过侧栏 */
.stock-load-scope {
  position: relative;
  overflow: visible;
  border-radius: 0;
  min-height: 12rem;
}
.stock-load-scope.is-loading {
  overflow: hidden;
}
.stock-glass-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(14, 20, 16, 0.28);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  /* 强制毛玻璃采样限制在本层，避免波及侧栏 */
  transform: translateZ(0);
  contain: paint;
}
.stock-glass-loading.hidden {
  display: none !important;
}
.stock-glass-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 236, 228, 0.2);
  background: rgba(28, 36, 28, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}
.stock-glass-loading-text {
  color: #e7ebe3;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.stock-glass-loading-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.28);
  border-top-color: #d4a017;
  animation: kline-spin 0.8s linear infinite;
}

.kline-brush {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 20;
  background: rgba(212, 160, 23, 0.18);
  border-left: 1px solid rgba(212, 160, 23, 0.9);
  border-right: 1px solid rgba(212, 160, 23, 0.9);
  box-sizing: border-box;
}
.kline-brush:not(.hidden) { display: block; }

.kline-nav {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(34, 42, 32, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kline-nav-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.kline-nav-title {
  min-width: 4.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.kline-nav select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}
.kline-pan-row { align-items: stretch; }
.kline-pan-row .btn {
  min-width: 2.4rem;
  padding: 0.35rem 0.5rem;
}
#kline-pan {
  flex: 1;
  min-width: 180px;
  height: 36px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.preset-box {
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.preset-box h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}
.preset-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 160, 23, 0.12);
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.img-grid .plot-img,
.img-list .plot-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0f140f;
}
.ump-pick { display: block; margin: 0.25rem 0; }

.table-wrap {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 16, 22, 0.35);
}
.table-wrap .data-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}
.data-table {
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th, .data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}
.data-table th { color: var(--muted); font-weight: 500; }

.error { color: var(--danger); }
.inline { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); }

/* —— 全球指数悬浮球 —— */
.index-ball-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  pointer-events: none;
}
.index-ball-root > * { pointer-events: auto; }

.index-ball-fab {
  position: relative;
  width: 3.85rem;
  height: 3.85rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .22s ease;
}
.index-ball-fab:hover { transform: translateY(-3px) scale(1.04); }
.index-ball-fab.is-open { transform: translateY(-1px) scale(1.02); }
.index-ball-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, rgba(212,160,23,0.95), rgba(111,158,143,0.55), rgba(212,160,23,0.2), rgba(212,160,23,0.95));
  box-shadow:
    0 10px 28px rgba(0,0,0,0.38),
    0 0 0 1px rgba(212,160,23,0.22);
}
.index-ball-fab-core {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,220,140,0.22), transparent 42%),
    linear-gradient(160deg, #2a303c 0%, #161920 100%);
  border: 1px solid rgba(46,53,64,0.9);
}
.index-ball-fab-mark {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  transform: translateY(-0.45rem);
}
.index-ball-fab-label {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(232,234,239,0.92);
}
.index-ball-fab-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.38);
  animation: index-ball-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.index-ball-fab.is-open .index-ball-fab-pulse { animation-play-state: paused; opacity: 0.25; }
@keyframes index-ball-pulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { opacity: 0; }
}

.index-ball-panel {
  width: min(392px, calc(100vw - 1.6rem));
  max-height: min(74vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,160,23,0.10), transparent 42%),
    radial-gradient(90% 70% at 100% 0%, rgba(111,158,143,0.08), transparent 40%),
    linear-gradient(180deg, rgba(36,40,50,0.98), rgba(18,20,26,0.98));
  backdrop-filter: blur(16px);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform-origin: bottom right;
}
.index-ball-panel.hidden { display: none; }
.index-ball-panel.is-enter {
  animation: index-ball-panel-in .22s ease-out;
}
@keyframes index-ball-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.index-ball-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.7rem;
}
.index-ball-head strong {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #f0d58a, var(--accent) 55%, #b8891a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.index-ball-sub {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.index-ball-close {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(46,53,64,0.95);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.index-ball-close:hover {
  color: var(--text);
  border-color: rgba(212,160,23,0.45);
  background: rgba(212,160,23,0.1);
}

.index-ball-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.9rem 0.75rem;
  overflow: visible;
}
.index-ball-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0 0.9rem 0.7rem;
  border-bottom: 1px solid rgba(46,53,64,0.8);
  overflow: visible;
}
.index-ball-subtabs.hidden { display: none; }
.index-ball-tab,
.index-ball-subtab {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 1.9rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(46,53,64,0.95);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}
.index-ball-tab:active,
.index-ball-subtab:active {
  transform: scale(0.96);
}
.index-ball-tab.is-active {
  color: #1a1408;
  border-color: rgba(212,160,23,0.85);
  background: linear-gradient(180deg, #e6c35a, var(--accent));
  box-shadow: 0 2px 8px rgba(212,160,23,0.22);
  transform: translateY(-1px);
}
.index-ball-tab > span {
  display: inline;
}
.index-ball-subtab {
  min-height: 1.65rem;
  padding: 0.26rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-color: transparent;
  background: rgba(255,255,255,0.02);
}
.index-ball-tab:hover,
.index-ball-subtab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,160,23,0.35);
}
.index-ball-subtab.is-active {
  color: var(--text);
  border-color: rgba(212,160,23,0.45);
  background: rgba(212,160,23,0.16);
}
.index-ball-page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0.35rem 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.index-ball-page-head strong {
  color: var(--text);
  font-size: 0.9rem;
}

.index-ball-body {
  flex: 1;
  overflow: auto;
  padding: 0.15rem 0.55rem 0.75rem;
  scrollbar-width: thin;
  will-change: opacity, transform;
}
.index-ball-body.is-swap-out {
  pointer-events: none;
  animation: index-ball-swap-out .12s ease forwards;
}
.index-ball-body.is-swap-out.is-swap-next {
  animation-name: index-ball-swap-out-next;
}
.index-ball-body.is-swap-out.is-swap-prev {
  animation-name: index-ball-swap-out-prev;
}
.index-ball-body.is-swap-in {
  animation: index-ball-swap-in .2s ease;
}
.index-ball-body.is-swap-in.is-swap-next {
  animation-name: index-ball-swap-in-next;
}
.index-ball-body.is-swap-in.is-swap-prev {
  animation-name: index-ball-swap-in-prev;
}
@keyframes index-ball-swap-out-next {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-10px); }
}
@keyframes index-ball-swap-out-prev {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(10px); }
}
@keyframes index-ball-swap-in-next {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes index-ball-swap-in-prev {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes index-ball-swap-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .index-ball-body.is-swap-out,
  .index-ball-body.is-swap-in,
  .index-ball-panel.is-enter {
    animation: none !important;
  }
}
.index-ball-empty {
  margin: 0;
  padding: 1.2rem 0.7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.index-ball-empty.is-error { color: var(--danger); }

.index-ball-group { margin-bottom: 0.35rem; }
.index-ball-group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.index-ball-group-title strong {
  color: var(--text);
  font-size: 0.84rem;
}
.index-ball-group-rows,
.index-ball-underlying-rows {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.index-ball-section { margin-bottom: 0.55rem; }
.index-ball-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.15rem 0.2rem 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(212,160,23,0.12), rgba(212,160,23,0.02));
  border: 1px solid rgba(212,160,23,0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.index-ball-section-title em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}
.index-ball-underlying { margin-bottom: 0.35rem; }
.index-ball-underlying-title {
  padding: 0.2rem 0.55rem 0.18rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(139,147,163,0.95);
}

.index-ball-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.index-ball-row:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(46,53,64,0.95);
}
.index-ball-row.is-static { cursor: default; opacity: 1; }
.index-ball-row.is-static:hover {
  background: rgba(255,255,255,0.02);
  border-color: transparent;
}
.index-ball-row:disabled { color: inherit; }
.index-ball-name {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 500;
}
.index-ball-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-ball-kind {
  flex: 0 0 auto;
  padding: 0.08rem 0.3rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(139,147,163,0.14);
}
.index-ball-kind.is-cn {
  color: #e0b84a;
  background: rgba(212,160,23,0.14);
}
.index-ball-kind.is-intl {
  color: #8eb8ad;
  background: rgba(111,158,143,0.16);
}
.index-ball-kind.is-spot {
  color: #9db0d4;
  background: rgba(120,140,190,0.16);
}
.index-ball-price {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 4.6rem;
  text-align: right;
  color: var(--text);
}
.index-ball-chg {
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 600;
  min-width: 3.7rem;
  text-align: right;
  padding: 0.12rem 0.28rem;
  border-radius: 6px;
}
.index-ball-chg.up {
  color: #ef6b5b;
  background: rgba(196,92,74,0.12);
}
.index-ball-chg.down {
  color: #4db88a;
  background: rgba(61,154,106,0.12);
}
.index-ball-chg.flat {
  color: var(--muted);
  background: rgba(139,147,163,0.1);
}

/* 窗口窄于版心时不改主布局（侧栏/栅格保持桌面排布），由横向滚动查看 */
@media (max-width: 900px) {
  html:not(.layout-fixed) .index-ball-root { right: 0.85rem; bottom: 0.85rem; }
  html:not(.layout-fixed) .index-ball-panel { width: min(360px, calc(100vw - 1.2rem)); max-height: min(68vh, 560px); }
  html:not(.layout-fixed) .index-ball-fab { width: 3.55rem; height: 3.55rem; }
}

/* —— 指标说明页 —— */
.ind-guide-head { max-width: 46rem; }
.ind-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 32, 24, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.ind-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  position: static;
  background: none;
}
.ind-toc a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.88rem;
}
.ind-toc a:hover { border-color: var(--accent-2); color: #fff; }
.ind-toc .ghost-link {
  border: none;
  background: transparent;
  color: var(--accent);
  margin-left: 0.25rem;
}
.ind-bias-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.08);
  font-size: 0.9rem;
  color: var(--text);
}
.ind-bias-legend-title {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-right: 0.15rem;
}
.ind-bias-legend-hint {
  color: var(--muted);
  font-size: 0.82rem;
}
.ind-section { margin-top: 1.25rem; scroll-margin-top: 7.5rem; }
.ind-resonance-hero h2#resonance,
.ind-resonance-hero h2#resonance-sell {
  scroll-margin-top: 14rem;
}
.ind-section-head h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
}
.ind-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 48rem;
}
.ind-block {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.ind-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--accent);
}
.ind-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}
.ind-list strong { color: var(--text); font-weight: 600; }
.ind-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
  align-items: start;
}
.ind-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.ind-col-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.95rem;
}
.ind-col-up {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(196, 92, 74, 0.06);
  border: 1px solid rgba(196, 92, 74, 0.22);
}
.ind-col-down {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(47, 143, 91, 0.06);
  border: 1px solid rgba(47, 143, 91, 0.22);
}
.ind-col-neutral {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(90, 98, 88, 0.12);
  border: 1px solid rgba(138, 148, 134, 0.28);
}
.ind-neutral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.ind-signal {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(34, 42, 32, 0.55);
}
.ind-signal h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}
.ind-signal p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ind-meta { color: #b7c2b2 !important; }
.bias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.8rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.bias-up {
  color: #fff5f3 !important;
  background: #c45c4a !important;
  border: 1px solid rgba(255, 200, 190, 0.35);
}
.bias-down {
  color: #f0fff6 !important;
  background: #2f8f5b !important;
  border: 1px solid rgba(170, 230, 200, 0.35);
}
.bias-neutral {
  color: #f2f4ef !important;
  background: #5c6658 !important;
  border: 1px solid rgba(190, 200, 185, 0.3);
}
.bias-up-card { border-left: 3px solid #c45c4a; }
.bias-down-card { border-left: 3px solid #2f8f5b; }
.bias-neutral-card { border-left: 3px solid #8a9486; }
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4f1ea;
}
.tag-bull { background: rgba(231, 76, 60, 0.92); }
.tag-bear { background: rgba(47, 143, 91, 0.92); }
.tag-warn { background: rgba(230, 126, 34, 0.92); }
.tag-info { background: rgba(52, 152, 219, 0.92); }
.tag-gold { background: rgba(241, 196, 15, 0.92); }
.tag-purple { background: rgba(142, 68, 173, 0.92); }
.tag-warm-red { background: rgba(231, 76, 60, 0.94); }
.tag-warm-orange { background: rgba(230, 126, 34, 0.94); }
.tag-warm-yellow { background: rgba(212, 160, 23, 0.94); color: #1a1c24; }
.tag-cool-green { background: rgba(47, 143, 91, 0.94); }
.tag-cool-blue { background: rgba(52, 152, 219, 0.94); }
.tag-cool-purple { background: rgba(142, 68, 173, 0.94); }
.tag-neutral { background: rgba(90, 98, 88, 0.94); }
.ind-note { margin-top: 1.25rem; }
.ind-note h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

/* —— 三线共振买入模板 —— */
.ind-resonance {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 160, 23, 0.3);
  background:
    radial-gradient(780px 300px at 0% 0%, rgba(212, 160, 23, 0.11), transparent 58%),
    radial-gradient(520px 260px at 100% 0%, rgba(111, 158, 143, 0.09), transparent 55%),
    var(--bg-panel);
}
.ind-resonance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}
.ind-resonance-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.ind-resonance-sell .ind-resonance-eyebrow {
  color: #c47a9a;
}
.ind-resonance-hero h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin: 0 0 0.55rem;
  line-height: 1.25;
}
.ind-resonance-hero-text > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 42rem;
}
.ind-resonance-hero-text > p strong { color: var(--text); }
.ind-resonance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.ind-resonance-chips span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.1);
  color: #e8d5a0;
  font-size: 0.78rem;
}
.ind-resonance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.22);
  background: rgba(19, 21, 26, 0.55);
}
.ind-resonance-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: rgba(34, 42, 32, 0.72);
  border: 1px solid var(--line);
}
.ind-resonance-stats em {
  font-style: normal;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.ind-resonance-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}
.ind-resonance-formula {
  margin-top: 1.3rem;
  padding: 1.05rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.13), rgba(212, 160, 23, 0.04));
}
.ind-resonance-formula-label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.ind-resonance-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.35rem;
}
.ind-flow-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 92, 74, 0.45);
  background: rgba(196, 92, 74, 0.16);
  color: #f3d2cb;
  font-size: 0.9rem;
  font-weight: 600;
}
.ind-flow-chip.muted {
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.12);
  color: #e8d5a0;
}
.ind-flow-chip.ok {
  border-color: rgba(111, 158, 143, 0.5);
  background: rgba(111, 158, 143, 0.16);
  color: #c5ddd4;
}
.ind-flow-chip.env {
  border-color: rgba(126, 182, 217, 0.5);
  background: rgba(126, 182, 217, 0.16);
  color: #c8d4e8;
}
.ind-env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.ind-env-card {
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 21, 26, 0.48);
  min-width: 0;
}
.ind-env-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ind-env-role {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.ind-env-card h4 {
  margin: 0.7rem 0 0.4rem;
  font-size: 0.86rem;
  color: var(--text);
}
.ind-env-card h4:first-of-type { margin-top: 0; }
.ind-env-card h4.ind-env-bonus { color: #e8d5a0; }
.ind-env-card h4.ind-env-fail { color: #e07a6a; }
.ind-env-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.ind-env-card ul.soft { color: #c8d0c4; }
.ind-env-card ul.fail { color: #d8b0a8; }
.ind-env-card li + li { margin-top: 0.2rem; }
.ind-layer.fund { color: #e8d5a0; background: rgba(212, 160, 23, 0.22); }
.ind-layer.liq { color: #c5ddd4; background: rgba(111, 158, 143, 0.24); }
.ind-layer.mkt { color: #c8d4e8; background: rgba(126, 182, 217, 0.22); }
.ind-env-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.ind-env-summary > div {
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(126, 182, 217, 0.28);
  background: rgba(126, 182, 217, 0.08);
}
.ind-env-summary strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #c8d4e8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ind-env-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ind-env-summary span b { color: var(--text); font-weight: 600; }
.ind-block-head-sub { margin-top: 1.15rem; }
.ind-block-head-sub h3 {
  color: var(--text);
  font-weight: 400;
}
.ind-grade-rules {
  list-style: none;
  margin: 0.55rem 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.ind-grade-rules li {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(34, 42, 32, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.ind-grade-rules strong {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 0.35rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.05rem;
}
.ind-grade-rules li:nth-child(1) { border-color: rgba(196, 92, 74, 0.35); }
.ind-grade-rules li:nth-child(1) strong { color: #e07a6a; }
.ind-grade-rules li:nth-child(2) { border-color: rgba(230, 126, 34, 0.35); }
.ind-grade-rules li:nth-child(2) strong { color: #e9a05a; }
.ind-grade-rules li:nth-child(3) { border-color: rgba(212, 160, 23, 0.35); }
.ind-grade-rules li:nth-child(3) strong { color: var(--accent); }
.ind-grade-rules li:nth-child(4) { border-color: rgba(47, 143, 91, 0.35); }
.ind-grade-rules li:nth-child(4) strong { color: #5faf84; }
@media (max-width: 900px) {
  html:not(.layout-fixed) .ind-grade-rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  html:not(.layout-fixed) .ind-grade-rules { grid-template-columns: 1fr; }
}
.ind-score-grid-env {
  margin-top: 0.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ind-pos-scale {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  background: rgba(212, 160, 23, 0.07);
}
.ind-pos-scale h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--accent);
}
.ind-pos-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.ind-pos-scale-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(19, 21, 26, 0.45);
}
.ind-pos-scale-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}
.ind-pos-scale-grid strong {
  color: var(--text);
  font-size: 0.92rem;
}
.ind-pos-scale-grid em {
  font-style: normal;
  color: #e8d5a0;
  font-size: 0.8rem;
}
.ind-pos-scale .ind-prose { margin: 0.75rem 0 0; }
.ind-flow-op {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.75;
  padding: 0 0.1rem;
}
.ind-resonance-formula-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.ind-resonance-formula-note strong { color: var(--text); }
.ind-prose {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52rem;
}
.ind-prose strong { color: var(--text); }
.ind-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.ind-block-head h3 { margin: 0; }
.ind-block-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1c24;
  background: var(--accent);
}
.ind-block-tag.soft {
  color: #e8d5a0;
  background: rgba(212, 160, 23, 0.14);
  border: 1px solid rgba(212, 160, 23, 0.35);
}
.ind-block-tag.danger {
  color: #fff5f3;
  background: rgba(196, 92, 74, 0.88);
}
.ind-must-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.ind-must-card {
  padding: 1rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 21, 26, 0.48);
  min-width: 0;
}
.ind-must-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ind-must-no {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(232, 236, 228, 0.26);
  letter-spacing: 0.04em;
}
.ind-layer {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ind-layer.macd { color: #f3d2cb; background: rgba(196, 92, 74, 0.28); }
.ind-layer.kdj { color: #e8d5a0; background: rgba(212, 160, 23, 0.22); }
.ind-layer.rsi { color: #c5ddd4; background: rgba(111, 158, 143, 0.24); }
.ind-layer.win { color: #c8d4e8; background: rgba(126, 182, 217, 0.22); }
.ind-must-card h4 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}
.ind-must-rule {
  margin: 0 0 0.55rem !important;
  color: var(--accent) !important;
  font-size: 0.88rem !important;
  font-weight: 600;
}
.ind-must-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}
.ind-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.ind-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(34, 42, 32, 0.52);
}
.ind-score-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  color: var(--text);
}
.ind-score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.ind-pts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.ind-score-card.pts3 .ind-pts {
  color: #1a1c24;
  background: #e0b84a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ind-score-card.pts2 .ind-pts {
  color: #1a1c24;
  background: var(--accent);
}
.ind-score-card.pts1 .ind-pts {
  color: #e8d5a0;
  background: rgba(212, 160, 23, 0.16);
  border: 1px solid rgba(212, 160, 23, 0.4);
}
.ind-grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.ind-grade {
  padding: 1.05rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 21, 26, 0.5);
  min-height: 100%;
}
.ind-grade-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.ind-grade-letter {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}
.ind-grade-score {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.ind-grade h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.ind-grade p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}
.ind-grade-a {
  border-color: rgba(196, 92, 74, 0.42);
  background: linear-gradient(180deg, rgba(196, 92, 74, 0.15), rgba(19, 21, 26, 0.35));
}
.ind-grade-a .ind-grade-letter { color: #e07a6a; }
.ind-grade-b {
  border-color: rgba(230, 126, 34, 0.42);
  background: linear-gradient(180deg, rgba(230, 126, 34, 0.13), rgba(19, 21, 26, 0.35));
}
.ind-grade-b .ind-grade-letter { color: #e9a05a; }
.ind-grade-c {
  border-color: rgba(212, 160, 23, 0.42);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.13), rgba(19, 21, 26, 0.35));
}
.ind-grade-c .ind-grade-letter { color: var(--accent); }
.ind-grade-d {
  border-color: rgba(47, 143, 91, 0.42);
  background: linear-gradient(180deg, rgba(47, 143, 91, 0.13), rgba(19, 21, 26, 0.35));
}
.ind-grade-d .ind-grade-letter { color: #5faf84; }
.ind-veto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ind-veto-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 92, 74, 0.28);
  background: rgba(196, 92, 74, 0.07);
}
.ind-veto-case {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.ind-veto-act {
  justify-self: end;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff5f3;
  background: rgba(196, 92, 74, 0.88);
}
.ind-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.ind-pattern-card {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 92, 74, 0.28);
  background:
    linear-gradient(160deg, rgba(196, 92, 74, 0.12), transparent 55%),
    rgba(34, 42, 32, 0.55);
  overflow: hidden;
}
.ind-pattern-idx {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  color: rgba(232, 236, 228, 0.12);
  line-height: 1;
}
.ind-pattern-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}
.ind-pattern-combo {
  margin: 0 0 0.55rem !important;
  color: #e8d5a0 !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  font-weight: 600;
}
.ind-pattern-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}
.ind-block-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.ind-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(212, 160, 23, 0.35);
  margin-left: 0.65rem;
}
.ind-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.55rem 0 0.55rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ind-timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.85rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}
.ind-timeline strong {
  color: var(--text);
  font-size: 0.9rem;
}
.ind-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.ind-risk-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(34, 42, 32, 0.55);
}
.ind-risk-card.wide { grid-column: 1 / -1; }
.ind-risk-card span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.ind-risk-card strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.ind-warn {
  margin-top: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(230, 126, 34, 0.35);
  background: rgba(230, 126, 34, 0.08);
  color: #d8c4a8;
}
.ind-resonance-cheat {
  margin-top: 1.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.4);
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.15), rgba(19, 21, 26, 0.2) 42%, rgba(120, 140, 170, 0.08));
}
.ind-resonance-cheat-label {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ind-resonance-cheat p {
  margin: 0.4rem 0 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
}
.ind-resonance-cheat p:first-of-type { margin-top: 0; }
.ind-resonance-cheat strong {
  color: var(--accent);
  margin-right: 0.4rem;
}
.ind-resonance-cheat-foot {
  margin-top: 0.7rem !important;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}
.ind-resonance-cheat-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ind-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(154, 168, 148, 0.22);
}
.ind-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}
.ind-param-table th,
.ind-param-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(154, 168, 148, 0.16);
}
.ind-param-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: rgba(19, 21, 26, 0.55);
  white-space: nowrap;
}
.ind-param-table td {
  color: var(--text);
}
.ind-param-table tbody tr:last-child td {
  border-bottom: none;
}
.ind-param-table tbody tr:hover td {
  background: rgba(154, 168, 148, 0.06);
}
.ind-param-table td:nth-child(1) {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.ind-param-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  color: #e8d5a3;
}
.ind-param-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

@media (max-width: 1100px) {
  html:not(.layout-fixed) .ind-must-grid, html:not(.layout-fixed) .ind-score-grid, html:not(.layout-fixed) .ind-pattern-grid, html:not(.layout-fixed) .ind-env-grid, html:not(.layout-fixed) .ind-pos-scale-grid { grid-template-columns: 1fr 1fr; }
  html:not(.layout-fixed) .ind-score-grid-env { grid-template-columns: 1fr 1fr; }
  html:not(.layout-fixed) .ind-block-split { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .ind-env-summary { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .ind-resonance-hero { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .ind-grade-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html:not(.layout-fixed) .ind-must-grid, html:not(.layout-fixed) .ind-score-grid, html:not(.layout-fixed) .ind-score-grid-env, html:not(.layout-fixed) .ind-pattern-grid, html:not(.layout-fixed) .ind-grade-grid, html:not(.layout-fixed) .ind-risk-grid, html:not(.layout-fixed) .ind-env-grid, html:not(.layout-fixed) .ind-pos-scale-grid { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .ind-veto-list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  html:not(.layout-fixed) .ind-veto-act { justify-self: start; }
  html:not(.layout-fixed) .ind-timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* —— 形态筛股 —— */
.pattern-screen-panel {
  position: relative;
  padding: 0.9rem 1.2rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(980px 460px at -8% -20%, rgba(212, 160, 23, 0.16), transparent 58%),
    radial-gradient(760px 420px at 108% -5%, rgba(120, 140, 170, 0.12), transparent 52%),
    radial-gradient(520px 280px at 50% 110%, rgba(196, 92, 74, 0.07), transparent 60%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.96), rgba(16, 18, 24, 0.98));
  border: 1px solid rgba(140, 150, 168, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.pattern-screen-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 55%);
}
.pattern-screen-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(140, 150, 168, 0.18);
}
.pattern-screen-meta-strip {
  border-radius: 10px;
  border: 1px solid rgba(140, 150, 168, 0.22);
  background:
    linear-gradient(180deg, rgba(28, 32, 40, 0.88), rgba(14, 16, 22, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: ps-fade-up 0.4s ease both;
}
.pattern-screen-meta-strip.is-ready {
  border-color: rgba(120, 150, 170, 0.4);
}
.pattern-screen-meta-strip.is-warn {
  border-color: rgba(224, 138, 58, 0.4);
}
.pattern-screen-meta-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
}
.pattern-screen-meta-cell {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-right: 1px solid rgba(140, 150, 168, 0.16);
}
.pattern-screen-meta-cell:last-child {
  border-right: 0;
}
.pattern-screen-meta-label {
  color: #8b93a3;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}
.pattern-screen-meta-value {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  min-width: 0;
  color: #e8e2d2;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.pattern-screen-meta-value strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pattern-screen-meta-value.is-accent strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #f3e2b0;
  letter-spacing: 0.03em;
}
.pattern-screen-meta-value small {
  font-size: 0.72rem;
  color: #9aa3b2;
  font-weight: 500;
  flex: 0 0 auto;
}
.pattern-screen-meta-note {
  margin: 0;
  font-size: 0.84rem;
}
.pattern-screen-meta-note:not(.hidden) {
  margin: 0 0 0.55rem;
}
.pattern-screen-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
}
.pattern-screen-status:empty { display: none; }
.pattern-screen-status.is-busy {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-color: rgba(212, 160, 23, 0.3);
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.12), rgba(212, 160, 23, 0.04));
  color: #f0d78a;
}
.pattern-screen-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d4a017;
  box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.55);
  animation: ps-pulse 1.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes ps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}
@keyframes ps-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pattern-screen-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.pattern-screen-sub {
  margin: 0 0 0.28rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pattern-screen-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 42rem;
}
.pattern-screen-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pattern-screen-group {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 150, 168, 0.2);
  background:
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: ps-fade-up 0.5s ease both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pattern-screen-group:nth-child(2) { animation-delay: 0.05s; }
.pattern-screen-group:nth-child(3) { animation-delay: 0.1s; }
.pattern-screen-group:hover {
  border-color: rgba(212, 160, 23, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.24);
}
.pattern-screen-group::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(140, 150, 168, 0.45);
}
.pattern-screen-group.is-macd::before { background: linear-gradient(180deg, #e0b84a, #8a7020); }
.pattern-screen-group.is-kdj::before { background: linear-gradient(180deg, #ef9a4a, #9a5a22); }
.pattern-screen-group.is-rsi::before { background: linear-gradient(180deg, #d66a58, #8a3a2e); }
.pattern-screen-group.is-price::before { background: linear-gradient(180deg, #5b8fd6, #2a4a7a); }
.pattern-screen-group.is-digit::before { background: linear-gradient(180deg, #9b6bc9, #5a3a7a); }
.pattern-screen-group.is-macd {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(212, 160, 23, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
}
.pattern-screen-group.is-kdj {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(224, 138, 58, 0.13), transparent 70%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
}
.pattern-screen-group.is-rsi {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(196, 92, 74, 0.14), transparent 70%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
}
.pattern-screen-group.is-price {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(91, 143, 214, 0.14), transparent 70%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
}
.pattern-screen-group.is-digit {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(155, 107, 201, 0.14), transparent 70%),
    linear-gradient(165deg, rgba(28, 32, 40, 0.92), rgba(14, 16, 22, 0.88));
}
.pattern-screen-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(140, 150, 168, 0.14);
}
.pattern-screen-group-title-wrap {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-width: 0;
}
.pattern-screen-group-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: rgba(212, 160, 23, 0.16);
  color: #f0d78a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.18);
}
.pattern-screen-group.is-kdj .pattern-screen-group-mark {
  background: rgba(224, 138, 58, 0.2);
  color: #efc08a;
  box-shadow: inset 0 0 0 1px rgba(224, 138, 58, 0.22);
}
.pattern-screen-group.is-rsi .pattern-screen-group-mark {
  background: rgba(196, 92, 74, 0.22);
  color: #efc0b4;
  box-shadow: inset 0 0 0 1px rgba(196, 92, 74, 0.22);
}
.pattern-screen-group.is-price .pattern-screen-group-mark {
  background: rgba(91, 143, 214, 0.2);
  color: #a8c6ef;
  box-shadow: inset 0 0 0 1px rgba(91, 143, 214, 0.22);
}
.pattern-screen-group.is-digit .pattern-screen-group-mark {
  background: rgba(155, 107, 201, 0.22);
  color: #d4b8ef;
  box-shadow: inset 0 0 0 1px rgba(155, 107, 201, 0.24);
}
.pattern-screen-group-title {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pattern-screen-group-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.pattern-screen-group-picked {
  flex: 0 0 auto;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.12);
  color: #e8d39a;
  font-size: 0.72rem;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pattern-screen-group-picked.is-empty {
  border-color: rgba(140, 150, 168, 0.2);
  background: transparent;
  color: var(--muted);
}
.pattern-screen-group-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pattern-screen-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.42rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 150, 168, 0.1);
  background: rgba(10, 12, 16, 0.28);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.pattern-screen-tag-row:hover {
  border-color: rgba(140, 150, 168, 0.28);
  background: rgba(18, 22, 28, 0.55);
}
.pattern-screen-tag-row.is-on {
  border-color: rgba(212, 160, 23, 0.36);
  background: rgba(212, 160, 23, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
}
.pattern-screen-tag-row.is-fixed-lb .pattern-screen-tag {
  flex: 1 1 auto;
}
.pattern-screen-group.is-kdj .pattern-screen-tag-row.is-on {
  border-color: rgba(224, 138, 58, 0.38);
  background: rgba(224, 138, 58, 0.09);
  box-shadow: inset 0 0 0 1px rgba(224, 138, 58, 0.08);
}
.pattern-screen-group.is-rsi .pattern-screen-tag-row.is-on {
  border-color: rgba(196, 92, 74, 0.38);
  background: rgba(196, 92, 74, 0.09);
  box-shadow: inset 0 0 0 1px rgba(196, 92, 74, 0.08);
}
.pattern-screen-tag-lookback {
  display: inline-flex;
  margin-left: auto;
}
.pattern-screen-lb-track {
  display: inline-flex;
  padding: 0.14rem;
  gap: 0.1rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 150, 168, 0.22);
  background: rgba(12, 14, 20, 0.65);
}
.pattern-screen-tag-lb-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8b93a3;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.pattern-screen-tag-lb-btn:hover {
  color: #efe2c0;
}
.pattern-screen-tag-lb-btn.is-on {
  background: linear-gradient(180deg, rgba(232, 196, 90, 0.28), rgba(212, 160, 23, 0.18));
  color: #f7e7b2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pattern-screen-group.is-kdj .pattern-screen-tag-lb-btn.is-on {
  background: linear-gradient(180deg, rgba(239, 170, 90, 0.3), rgba(224, 138, 58, 0.18));
  color: #f6d2a4;
}
.pattern-screen-group.is-rsi .pattern-screen-tag-lb-btn.is-on {
  background: linear-gradient(180deg, rgba(232, 140, 120, 0.3), rgba(196, 92, 74, 0.18));
  color: #f3cfc6;
}
.pattern-screen-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 150, 168, 0.28);
  background: rgba(24, 28, 36, 0.75);
  color: #aeb6c4;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.pattern-screen-tag:hover {
  border-color: rgba(212, 160, 23, 0.45);
  color: var(--text);
}
.pattern-screen-tag-switch {
  position: relative;
  width: 1.9rem;
  height: 1.08rem;
  border-radius: 999px;
  background: rgba(70, 78, 92, 0.9);
  flex: 0 0 auto;
  transition: background 0.18s ease;
}
.pattern-screen-tag-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: #eef0f4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.pattern-screen-tag.is-on {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.14);
  color: #f0d78a;
}
.pattern-screen-group.is-kdj .pattern-screen-tag.is-on {
  border-color: rgba(224, 138, 58, 0.6);
  background: rgba(224, 138, 58, 0.15);
  color: #f0c28a;
}
.pattern-screen-group.is-rsi .pattern-screen-tag.is-on {
  border-color: rgba(196, 92, 74, 0.6);
  background: rgba(196, 92, 74, 0.15);
  color: #efc4bc;
}
.pattern-screen-tag.is-on .pattern-screen-tag-switch {
  background: rgba(212, 160, 23, 0.9);
}
.pattern-screen-group.is-kdj .pattern-screen-tag.is-on .pattern-screen-tag-switch {
  background: rgba(224, 138, 58, 0.95);
}
.pattern-screen-group.is-rsi .pattern-screen-tag.is-on .pattern-screen-tag-switch {
  background: rgba(196, 92, 74, 0.95);
}
.pattern-screen-tag.is-on .pattern-screen-tag-switch::after {
  transform: translateX(0.78rem);
}
.pattern-screen-tag-count {
  margin-left: 0.05rem;
  min-width: 1.4rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #d9c894;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.pattern-screen-tag.is-on .pattern-screen-tag-count {
  background: rgba(212, 160, 23, 0.22);
  color: #f3e0a8;
}
.pattern-screen-results {
  padding-top: 0.2rem;
}
.pattern-screen-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.pattern-screen-result-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  background: rgba(212, 160, 23, 0.1);
  color: #e8d39a;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pattern-screen-result-count:empty {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}
.pattern-screen-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0 0 0.85rem;
  min-height: 2.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 150, 168, 0.22);
  background:
    linear-gradient(120deg, rgba(212, 160, 23, 0.06), transparent 40%),
    rgba(12, 16, 12, 0.45);
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c5cec0;
}
.pattern-screen-filter-summary.muted {
  color: var(--muted);
  border-style: dashed;
  background: rgba(12, 16, 12, 0.28);
}
.pattern-screen-filter-mode {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 150, 168, 0.3);
  background: rgba(140, 150, 168, 0.1);
  color: #d5dccf;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.pattern-screen-filter-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.32);
  background: rgba(212, 160, 23, 0.1);
  color: #f0d78a;
}
.pattern-screen-filter-chip strong {
  font-weight: 600;
}
.pattern-screen-filter-chip em {
  font-style: normal;
  color: #c4b07a;
  font-size: 0.74rem;
}
.pattern-screen-filter-chip.is-kdj {
  border-color: rgba(224, 138, 58, 0.38);
  background: rgba(224, 138, 58, 0.12);
  color: #f0c28a;
}
.pattern-screen-filter-chip.is-kdj em { color: #d9a06a; }
.pattern-screen-filter-chip.is-rsi {
  border-color: rgba(196, 92, 74, 0.38);
  background: rgba(196, 92, 74, 0.12);
  color: #efc4bc;
}
.pattern-screen-filter-chip.is-rsi em { color: #d59a90; }
.pattern-screen-filter-chip.is-price {
  border-color: rgba(91, 143, 214, 0.38);
  background: rgba(91, 143, 214, 0.12);
  color: #a8c6ef;
}
.pattern-screen-filter-chip.is-price em { color: #7ea0d4; }
.pattern-screen-filter-chip.is-digit {
  border-color: rgba(155, 107, 201, 0.4);
  background: rgba(155, 107, 201, 0.14);
  color: #d4b8ef;
}
.pattern-screen-filter-chip.is-digit em { color: #b894d4; }
.pattern-screen-filter-join {
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.8;
}
.pattern-screen-empty {
  padding: 1.45rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(140, 150, 168, 0.3);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(212, 160, 23, 0.08), transparent 70%),
    rgba(12, 16, 12, 0.4);
  font-size: 0.94rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.pattern-screen-results-stage {
  min-height: 12rem;
}
.pattern-screen-table-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid rgba(140, 150, 168, 0.22);
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.pattern-screen-table-wrap.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.pattern-screen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pattern-screen-table th,
.pattern-screen-table td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(46, 53, 64, 0.75);
  text-align: left;
  vertical-align: top;
}
.pattern-screen-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #2a303a, #1c2028);
  color: #aeb6c4;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pattern-screen-table tr:last-child td { border-bottom: 0; }
.pattern-screen-table tbody tr {
  transition: background 0.15s ease;
}
.pattern-screen-table tbody tr:hover { background: rgba(48, 56, 72, 0.5); }
.pattern-screen-th-wl,
.pattern-screen-td-wl {
  width: 2.4rem;
  padding-left: 0.55rem;
  padding-right: 0.35rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.pattern-screen-wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(212, 160, 23, 0.42);
  background: rgba(212, 160, 23, 0.12);
  color: #f0d56a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.pattern-screen-wl-btn:hover:not(:disabled) {
  background: rgba(212, 160, 23, 0.24);
  border-color: rgba(212, 160, 23, 0.7);
  transform: translateY(-1px);
}
.pattern-screen-wl-btn:disabled {
  cursor: default;
  opacity: 0.9;
}
.pattern-screen-wl-btn.is-busy {
  opacity: 0.55;
  cursor: wait;
}
.pattern-screen-wl-btn.is-added {
  border-color: rgba(111, 158, 143, 0.55);
  background: rgba(111, 158, 143, 0.18);
  color: #9ecbb8;
  font-size: 0.92rem;
  cursor: pointer;
}
.pattern-screen-wl-btn.is-added:hover:not(:disabled) {
  background: rgba(180, 90, 90, 0.22);
  border-color: rgba(200, 110, 110, 0.55);
  color: #e8a0a0;
}
.pattern-screen-link {
  color: #ebd7a0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pattern-screen-link:hover {
  color: #f6e7ba;
  border-bottom-color: rgba(212, 160, 23, 0.55);
}
.pattern-screen-link.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pattern-screen-concepts,
.pattern-screen-hit-tags {
  max-width: 22rem;
  line-height: 1.45;
  color: #c5cec0;
}
.pattern-screen-row { cursor: pointer; }
.pattern-screen-row:focus-visible {
  outline: 2px solid rgba(212, 160, 23, 0.65);
  outline-offset: -2px;
}
@media (max-width: 1100px) {
  html:not(.layout-fixed) .pattern-screen-groups { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .pattern-screen-meta-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  html:not(.layout-fixed) .pattern-screen-meta-cell:nth-child(2n) {
    border-right: 0;
  }
  html:not(.layout-fixed) .pattern-screen-meta-cell:nth-child(-n+2) {
    border-bottom: 1px solid rgba(140, 150, 168, 0.16);
  }
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .pattern-screen-concepts, html:not(.layout-fixed) .pattern-screen-hit-tags { max-width: 14rem; }
  html:not(.layout-fixed) .pattern-screen-tag-lookback { width: 100%; margin-left: 0; }
  html:not(.layout-fixed) .pattern-screen-lb-track { width: 100%; justify-content: space-between; }
}

/* —— 概览：今日热门板块 —— */
.hot-board-section {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(46, 53, 64, 0.9);
}
.night-hot-board-section {
  margin-top: 2.4rem;
}
.night-hot-board-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}
.night-hot-card {
  padding: 0.42rem 0.5rem 0.45rem;
  border-left-width: 2px;
}
.night-hot-card .hot-board-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}
.night-hot-card .hot-board-chg {
  font-size: 0.78rem;
}
.night-hot-card .hot-board-kind {
  font-size: 0.58rem;
  padding: 0.02rem 0.24rem;
}
.night-hot-card .hot-board-card-top {
  gap: 0.25rem 0.35rem;
}
.night-hot-card .hot-board-leader-row {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  gap: 0.25rem;
}
.night-hot-card .hot-board-leader,
.night-hot-card .hot-board-leader-chg {
  font-size: 0.68rem;
}
@media (max-width: 1200px) {
  html:not(.layout-fixed) .night-hot-board-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  html:not(.layout-fixed) .night-hot-board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html:not(.layout-fixed) .night-hot-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  html:not(.layout-fixed) .night-hot-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hot-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.hot-board-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem 0.8rem;
  border-left: 3px solid rgba(154, 168, 148, 0.4);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
  align-self: start;
}
.hot-board-card:hover {
  border-color: rgba(212, 160, 23, 0.35);
  transform: translateY(-1px);
}
.hot-board-card.is-active,
.hot-board-card.is-open {
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(212, 160, 23, 0.22);
  transform: translateY(0);
}
.hot-board-card:focus-visible {
  outline: 2px solid rgba(212, 160, 23, 0.65);
  outline-offset: 2px;
}
.hot-board-card.is-up {
  border-left-color: rgba(196, 92, 74, 0.85);
  background: rgba(196, 92, 74, 0.06);
}
.hot-board-card.is-down {
  border-left-color: rgba(111, 158, 143, 0.85);
  background: rgba(111, 158, 143, 0.06);
}
.hot-board-card-top {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.hot-board-kind {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.06rem 0.32rem;
  border-radius: 3px;
  line-height: 1.35;
}
.hot-board-kind.is-concept {
  color: #d4c9a8;
  background: rgba(212, 160, 23, 0.12);
}
.hot-board-kind.is-industry {
  color: #b7c4d8;
  background: rgba(120, 145, 180, 0.16);
}
.hot-board-kind.is-pin {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.16);
}
.hot-board-card.is-pinned {
  border-color: rgba(201, 162, 39, 0.35);
}
.hot-board-name {
  flex: 1 1 auto;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  min-width: 0;
}
.hot-board-card.is-active .hot-board-name,
.hot-board-card:hover .hot-board-name { color: var(--accent); }
.hot-board-chg {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.88rem;
}
.hot-board-chg.is-up,
.hot-board-leader-chg.is-up,
.ai-report-quote .is-up { color: #d88a7a; }
.hot-board-chg.is-down,
.hot-board-leader-chg.is-down,
.ai-report-quote .is-down { color: #7fb59f; }
.hot-board-chg.is-flat,
.hot-board-leader-chg.is-flat { color: var(--muted); }
.hot-board-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.hot-board-leader-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(154, 168, 148, 0.14);
}
.hot-board-leader {
  color: var(--text);
  font-weight: 600;
}
a.hot-board-leader:hover { color: var(--accent); }
.hot-board-leader-chg {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
}
.hot-board-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.hot-board-card.is-open .hot-board-expand {
  grid-template-rows: 1fr;
}
.hot-board-expand-inner {
  overflow: hidden;
  min-height: 0;
}
.hot-board-expand-body {
  padding-top: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.28s ease 0.06s,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
    padding-top 0.28s ease;
}
.hot-board-card.is-open .hot-board-expand-body {
  padding-top: 0.65rem;
  opacity: 1;
  transform: translateY(0);
}
.hot-board-expand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(154, 168, 148, 0.16);
}
.hot-board-expand-empty {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(154, 168, 148, 0.16);
  font-size: 0.8rem;
}
.hot-board-members-close {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(154, 168, 148, 0.1);
  color: var(--muted);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hot-board-members-close:hover {
  color: var(--text);
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.1);
}
.hot-mem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hot-mem-row {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.45rem;
  align-items: baseline;
  padding: 0.28rem 0.15rem;
  border-radius: 4px;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.15s ease;
  transition-delay: calc(var(--i, 0) * 35ms);
}
.hot-mem-row.is-in,
.hot-board-card.is-open .hot-mem-row {
  opacity: 1;
  transform: translateY(0);
}
.hot-mem-row:hover {
  background: rgba(154, 168, 148, 0.08);
}
.hot-mem-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}
.hot-mem-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
}
.hot-mem-link:hover { color: var(--accent); }
.hot-mem-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.hot-mem-code {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hot-mem-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.hot-mem-num.is-up { color: #d88a7a; }
.hot-mem-num.is-down { color: #7fb59f; }
.hot-board-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}
@media (max-width: 1100px) {
  html:not(.layout-fixed) .hot-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  html:not(.layout-fixed) .hot-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  html:not(.layout-fixed) .hot-board-grid { grid-template-columns: 1fr; }
}

/* —— 概览：大盘资金热力图 —— */
.fund-hm-section {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(46, 53, 64, 0.9);
}
.fund-hm-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}
.fund-hm-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: flex-start;
  gap: 0.3rem 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(46, 53, 64, 0.95);
  background:
    linear-gradient(165deg, rgba(35, 40, 50, 0.9), rgba(26, 28, 36, 0.95));
  border-left: 3px solid rgba(154, 168, 148, 0.4);
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
button.fund-hm-chip {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
button.fund-hm-chip.is-index {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    filter 0.28s ease,
    background 0.28s ease;
  will-change: transform;
  touch-action: manipulation;
}
button.fund-hm-chip.is-index:hover {
  border-color: rgba(120, 140, 160, 0.55);
  filter: brightness(1.05);
  transform: translateY(-1px);
}
button.fund-hm-chip.is-index:active,
button.fund-hm-chip.is-index.is-press {
  transform: scale(0.972);
  filter: brightness(0.98);
  transition-duration: 0.12s;
}
button.fund-hm-chip.is-index.is-active {
  outline: none;
  border-color: rgba(200, 168, 120, 0.55);
  box-shadow:
    0 0 0 1px rgba(200, 168, 120, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
button.fund-hm-chip.is-index.is-active:active,
button.fund-hm-chip.is-index.is-active.is-press {
  transform: scale(0.978);
}
.fund-hm-chip.is-up {
  border-left-color: rgba(196, 92, 74, 0.9);
  background:
    linear-gradient(165deg, rgba(70, 36, 34, 0.45), rgba(26, 28, 36, 0.95));
}
.fund-hm-chip.is-down {
  border-left-color: rgba(111, 158, 143, 0.9);
  background:
    linear-gradient(165deg, rgba(32, 54, 48, 0.5), rgba(26, 28, 36, 0.95));
}
.fund-hm-chip-name {
  font-size: 0.76rem;
  color: var(--muted);
  width: 100%;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.fund-hm-chip-val {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fund-hm-chip.is-volume {
  border-left-color: rgba(212, 160, 23, 0.8);
  background:
    linear-gradient(165deg, rgba(62, 52, 28, 0.55), rgba(26, 28, 36, 0.95));
}
button.fund-hm-chip.is-volume.is-active {
  outline: none;
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.fund-hm-chip.is-volume.is-up {
  border-left-color: rgba(196, 92, 74, 0.9);
  background:
    linear-gradient(165deg, rgba(70, 36, 34, 0.45), rgba(26, 28, 36, 0.95));
}
.fund-hm-chip.is-volume.is-down {
  border-left-color: rgba(111, 158, 143, 0.9);
  background:
    linear-gradient(165deg, rgba(32, 54, 48, 0.5), rgba(26, 28, 36, 0.95));
}
.fund-hm-chip.is-volume .fund-hm-chip-val {
  color: #ebd7a0;
}
.fund-hm-chip.is-volume.is-up .fund-hm-chip-val { color: #d88a7a; }
.fund-hm-chip.is-volume.is-down .fund-hm-chip-val { color: #7fb59f; }
.fund-hm-chip-vs {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}
.fund-hm-chip-vs.is-up { color: #d88a7a; }
.fund-hm-chip-vs.is-down { color: #7fb59f; }
.fund-hm-chip-vs.is-flat { color: var(--muted); }
.fund-hm-chip.is-up .fund-hm-chip-val { color: #d88a7a; }
.fund-hm-chip.is-down .fund-hm-chip-val { color: #7fb59f; }
.fund-hm-chip-sub {
  font-size: 0.7rem;
  color: var(--muted);
  width: 100%;
  line-height: 1.35;
  word-break: break-word;
}
@media (max-width: 1100px) {
  html:not(.layout-fixed) .fund-hm-summary {
    grid-template-columns: repeat(7, minmax(8.2rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
}
@media (max-width: 560px) {
  html:not(.layout-fixed) .fund-hm-summary {
    grid-template-columns: repeat(7, minmax(7.5rem, 1fr));
  }
}
.fund-hm-index-peek {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  transition:
    grid-template-rows 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-index-peek.is-open {
  grid-template-rows: 1fr;
  margin: 0 0 0.95rem;
}
.fund-hm-index-peek-clip {
  overflow: hidden;
  min-height: 0;
}
.fund-hm-index-peek-inner {
  padding: 0.75rem 0.85rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 60, 72, 0.95);
  background:
    linear-gradient(165deg, rgba(32, 36, 44, 0.96), rgba(22, 24, 30, 0.98));
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 0.34s ease 0.04s,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.02s,
    filter 0.36s ease 0.02s,
    border-color 0.3s ease;
  will-change: transform, opacity;
}
.fund-hm-index-peek.is-open .fund-hm-index-peek-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.fund-hm-index-peek.is-switching .fund-hm-index-peek-inner {
  border-color: rgba(120, 140, 160, 0.45);
}
.fund-hm-index-peek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.fund-hm-index-peek-title {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}
.fund-hm-index-peek-title strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-index-peek.is-switching .fund-hm-index-peek-title strong {
  opacity: 0.35;
  transform: translateY(2px);
}
.fund-hm-index-peek-link {
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.fund-hm-index-peek-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.fund-hm-index-peek-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.fund-hm-index-peek-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.fund-hm-index-peek-close:active {
  transform: scale(0.96);
}
.fund-hm-index-peek-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
/* author display:grid 会盖过原生 [hidden]，需显式隐藏 */
.fund-hm-index-peek-charts[hidden] {
  display: none !important;
}
.fund-hm-index-peek-link[hidden] {
  display: none !important;
}
.fund-hm-index-peek-charts.is-volume { grid-template-columns: 1fr; }
.fund-hm-index-peek-chart.is-volume { height: 220px; }
.fund-hm-index-peek-pane {
  min-width: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-index-peek-pane:nth-child(1) { transition-delay: 0.06s; }
.fund-hm-index-peek-pane:nth-child(2) { transition-delay: 0.12s; }
.fund-hm-index-peek.is-ready .fund-hm-index-peek-pane {
  opacity: 1;
  transform: translateY(0);
}
.fund-hm-index-peek.is-switching .fund-hm-index-peek-pane {
  opacity: 0.22;
  transform: translateY(4px) scale(0.992);
  transition-duration: 0.2s;
  transition-delay: 0s;
}
.fund-hm-index-peek-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.fund-hm-index-peek-chart {
  height: 168px;
  width: 100%;
  border-radius: 8px;
  background: rgba(14, 16, 20, 0.55);
  border: 1px solid rgba(60, 68, 80, 0.55);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
.fund-hm-index-peek.is-ready .fund-hm-index-peek-chart {
  border-color: rgba(90, 104, 120, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.fund-hm-index-peek-status {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  min-height: 1.1em;
  transition: opacity 0.22s ease;
}
.fund-hm-index-peek.is-switching .fund-hm-index-peek-status {
  opacity: 0.45;
}
@media (max-width: 720px) {
  html:not(.layout-fixed) .fund-hm-index-peek-charts { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .fund-hm-index-peek-chart { height: 150px; }
  html:not(.layout-fixed) .fund-hm-index-peek-pane:nth-child(2) { transition-delay: 0.08s; }
}
@media (prefers-reduced-motion: reduce) {
  .fund-hm-index-peek,
  .fund-hm-index-peek-inner,
  .fund-hm-index-peek-pane,
  .fund-hm-index-peek-title strong,
  .fund-hm-index-peek-chart,
  .fund-hm-index-peek-status,
  button.fund-hm-chip.is-index {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
  .fund-hm-index-peek-inner,
  .fund-hm-index-peek-pane {
    transform: none !important;
  }
}
.fund-hm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.fund-hm-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.9);
  border: 1px solid rgba(46, 53, 64, 0.95);
}
.fund-hm-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.fund-hm-tab:hover { color: var(--text); }
.fund-hm-tab.is-active {
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.24), rgba(212, 160, 23, 0.12));
  color: #f0dfb0;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.28);
}
.fund-hm-stats {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.fund-hm-chart-wrap {
  position: relative;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(212, 160, 23, 0.06), transparent 45%),
    radial-gradient(90% 70% at 100% 100%, rgba(111, 158, 143, 0.07), transparent 40%),
    linear-gradient(180deg, #1c2029 0%, #161920 100%);
  border: 1px solid rgba(55, 63, 76, 0.95);
  border-radius: 14px;
  padding: 0.7rem 0.7rem 0.55rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.fund-hm-chart {
  width: 100%;
  height: 36rem;
  border-radius: 10px;
  --hm-view-dir: 1;
  will-change: opacity, transform;
}
.fund-hm-chart.is-view-out {
  opacity: 0;
  transform: translateX(calc(var(--hm-view-dir, 1) * -12px)) scale(0.988);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.fund-hm-chart.is-view-prep {
  opacity: 0;
  transform: translateX(calc(var(--hm-view-dir, 1) * 12px)) scale(0.988);
  transition: none;
  pointer-events: none;
}
.fund-hm-chart.is-view-in {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .fund-hm-chart.is-view-out,
  .fund-hm-chart.is-view-prep,
  .fund-hm-chart.is-view-in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
.fund-hm-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.2rem 0.1rem;
  color: var(--muted);
  font-size: 0.74rem;
}
.fund-hm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.fund-hm-legend-item i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  display: inline-block;
}
.fund-hm-legend-item.is-out i {
  background: #6f9e8f;
  box-shadow: 0 0 0 1px rgba(111, 158, 143, 0.35);
}
.fund-hm-legend-item.is-in i {
  background: #c45c4a;
  box-shadow: 0 0 0 1px rgba(196, 92, 74, 0.35);
}
.fund-hm-legend-item.is-stock {
  opacity: 0.85;
}
.fund-hm-legend-bar {
  width: 4.8rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f9e8f 0%, rgba(90, 107, 90, 0.45) 48%, #c45c4a 100%);
}
.fund-hm-legend-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(154, 168, 148, 0.25);
}
.fund-hm-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
}
.fund-hm-leaders {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition:
    grid-template-rows 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-leaders.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
}
.fund-hm-leaders-inner {
  overflow: hidden;
  min-height: 0;
}
.fund-hm-leaders-body {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 0.34s ease 0.04s,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.02s,
    filter 0.36s ease 0.02s,
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform, opacity;
}
.fund-hm-leaders.is-open .fund-hm-leaders-body {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  padding: 0.85rem 0.95rem 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.fund-hm-leaders.is-switching .fund-hm-leaders-body {
  opacity: 0.28;
  transform: translateY(4px) scale(0.99);
  filter: blur(1px);
  border-color: rgba(120, 140, 160, 0.45);
  transition-duration: 0.18s;
  transition-delay: 0s;
}
.fund-hm-leaders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-leaders.is-switching .fund-hm-leaders-head {
  opacity: 0.4;
  transform: translateY(2px);
}
.fund-hm-leaders-head strong {
  font-size: 0.98rem;
  margin-right: 0.4rem;
}
.fund-hm-leaders-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  color: #d4c9a8;
  background: rgba(212, 160, 23, 0.12);
}
.fund-hm-leaders-tag.is-up {
  color: #d88a7a;
  background: rgba(196, 92, 74, 0.14);
}
.fund-hm-leaders-tag.is-down {
  color: #7fb59f;
  background: rgba(111, 158, 143, 0.14);
}
.fund-hm-leaders-close {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(154, 168, 148, 0.1);
  color: var(--muted);
  border-radius: 4px;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fund-hm-leaders-close:hover {
  color: var(--text);
  border-color: rgba(212, 160, 23, 0.45);
}
.fund-hm-leaders-close:active {
  transform: scale(0.96);
}
.fund-hm-leaders-empty {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.fund-hm-leaders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1rem;
}
.fund-hm-leader-row {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1.4fr) 3.8rem 3.4rem 3.6rem;
  gap: 0.3rem 0.4rem;
  align-items: baseline;
  padding: 0.36rem 0.35rem;
  border-radius: 6px;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease;
  transition-delay: calc(var(--i, 0) * 28ms + 40ms);
  will-change: transform, opacity;
}
.fund-hm-leaders-legend {
  display: none;
}
.fund-hm-leader-w {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}
.fund-hm-leader-w.is-up { color: #d88a7a; }
.fund-hm-leader-w.is-down { color: #7fb59f; }
.fund-hm-leader-w.is-flat { color: var(--muted); }
.fund-hm-leader-row.is-in {
  opacity: 1;
  transform: translateY(0);
}
.fund-hm-leader-row:hover {
  background: rgba(154, 168, 148, 0.08);
}
.fund-hm-leader-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}
.fund-hm-leader-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  align-items: baseline;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  transition: color 0.18s ease;
}
.fund-hm-leader-link:hover { color: var(--accent); }
.fund-hm-leader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.fund-hm-leader-code {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.fund-hm-leader-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.fund-hm-leader-num.is-up { color: #d88a7a; }
.fund-hm-leader-num.is-down { color: #7fb59f; }
.fund-hm-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}
@media (max-width: 700px) {
  html:not(.layout-fixed) .fund-hm-chart { height: 30rem; }
  html:not(.layout-fixed) .fund-hm-leaders-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fund-hm-leaders,
  .fund-hm-leaders-body,
  .fund-hm-leaders-head,
  .fund-hm-leader-row {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
  .fund-hm-leaders-body,
  .fund-hm-leader-row {
    transform: none !important;
  }
  .fund-hm-leader-row {
    opacity: 1;
  }
}

/* —— 概览：A股指数 AI 研报 —— */
.ai-report-section {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(46, 53, 64, 0.9);
}
.ai-report-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(46, 53, 64, 0.55);
}
.ai-report-head h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.ai-report-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ai-report-lede strong {
  color: var(--accent);
  font-weight: 600;
}
.ai-report-meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: right;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 53, 64, 0.8);
  background: rgba(19, 21, 26, 0.55);
}
.ai-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.ai-report-loading { margin: 0.5rem 0; }
.ai-report-key-hint {
  grid-column: 1 / -1;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(120, 140, 170, 0.45);
  border-radius: var(--radius);
  background: rgba(30, 34, 42, 0.85);
  color: #c5cec0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.ai-report-key-hint ol {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}
.ai-report-key-hint code {
  font-size: 0.84em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
}
.ai-pred-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ai-pred-row {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 80, 90, 0.7);
  background: rgba(0, 0, 0, 0.18);
}
.ai-pred-row.is-bull { border-color: rgba(196, 92, 74, 0.35); }
.ai-pred-row.is-bear { border-color: rgba(111, 158, 143, 0.35); }
.ai-pred-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.82rem;
}
.ai-pred-hz { font-weight: 650; color: #e8ece4; }
.ai-pred-date {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.78rem;
}
.ai-pred-dir { font-weight: 650; }
.ai-pred-dir.is-bull { color: #f0c4bc; }
.ai-pred-dir.is-bear { color: #c5e6d8; }
.ai-pred-dir.is-neutral { color: var(--muted); }
.ai-pred-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #b7c0b4;
  font-variant-numeric: tabular-nums;
}
.ai-pred-note {
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #a8b2a6;
}
.ai-pred-chart {
  width: 100%;
  height: 168px;
  border-radius: 8px;
  border: 1px solid rgba(74, 80, 90, 0.65);
  background: rgba(0, 0, 0, 0.16);
}
.ai-model-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ai-model-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(74, 80, 90, 0.55);
}
.ai-model-block:first-child {
  padding-top: 0;
  border-top: 0;
}
.ai-model-block .ai-report-card-head {
  align-items: flex-start;
}
.ai-model-block .ai-model-name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #e8ece4;
}
.ai-model-block .ai-model-name i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--model-dot, #9aa6b5);
  display: inline-block;
}
.ai-model-block .ai-model-sub {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.ai-report-lede code {
  font-size: 0.86em;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}
.ai-report-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem 0.9rem;
  background:
    linear-gradient(165deg, rgba(38, 42, 50, 0.92), rgba(22, 24, 30, 0.97));
  border: 1px solid rgba(90, 100, 115, 0.85);
  border-radius: var(--radius);
  min-height: 12.5rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.ai-report-card.is-err { opacity: 0.72; }
.ai-report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.ai-report-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}
.ai-report-name:hover { color: var(--accent); }
.ai-report-code {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.ai-report-score-wrap {
  text-align: right;
  line-height: 1.15;
  padding: 0.35rem 0.55rem 0.4rem;
  border-radius: 8px;
  min-width: 3.6rem;
}
.ai-report-score-kind {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.82;
  margin-bottom: 0.12rem;
}
.ai-report-score-wrap.is-bull {
  background: rgba(196, 92, 74, 0.42);
  color: #f0c4bc;
}
.ai-report-score-wrap.is-bear {
  background: rgba(111, 158, 143, 0.42);
  color: #c5e6d8;
}
.ai-report-score-wrap.is-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.ai-report-score {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ai-report-stance {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ai-report-score-wrap.is-cursor {
  min-width: 4.2rem;
}
.ai-report-score-wrap.is-cursor .ai-report-stance.is-primary {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.ai-report-score-wrap.is-cursor .ai-report-conf {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}
.ai-report-stance.is-bull,
.ai-hchip.is-bull { color: #f0c4bc; }
.ai-report-stance.is-bear,
.ai-hchip.is-bear { color: #c5e6d8; }
.ai-report-stance.is-neutral,
.ai-hchip.is-neutral { color: var(--muted); }
.ai-report-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  font-size: 0.84rem;
  color: #c5cec0;
}
.ai-report-quote .is-up { color: #c45c4a; }
.ai-report-quote .is-down { color: #6f9e8f; }
.ai-report-charts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ai-report-chart {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(154, 168, 148, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    #0c0e12;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.ai-report-chart img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: center top;
  background: #101218;
  /* 源站浅底图压暗，贴近本站深色面板，不改动走势线本身结构 */
  filter: brightness(0.92) contrast(1.04) saturate(0.92);
}
.ai-report-chart.is-levels img {
  max-height: 170px;
}
.ai-report-chart-cap {
  position: absolute;
  left: 0.45rem;
  bottom: 0.4rem;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #e8eaef;
  background: rgba(16, 18, 24, 0.78);
  pointer-events: none;
}
.ai-report-chart.is-buy { border-color: rgba(216, 138, 122, 0.35); }
.ai-report-chart.is-sell { border-color: rgba(127, 181, 159, 0.35); }
.ai-report-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ai-pt-asof {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.ai-pt-hz {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.35rem 0.5rem;
  align-items: start;
}
.ai-pt-hz-name {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: #b8c0cc;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ai-tx-src {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8fa3c4;
  text-decoration: none;
}
.ai-tx-src:hover { color: #c5d4ec; text-decoration: underline; }
.ai-pt-label.is-target { color: #c4b48a; min-width: 3.2rem; }
.ai-pt-label.is-mood { color: #b8a8d4; min-width: 3.2rem; }
.ai-tx-main.is-target .ai-tx-px { color: #e0d2a8; }
.ai-tx-main.is-mood.is-bull .ai-tx-mood { color: #e7b2a6; }
.ai-tx-main.is-mood.is-bear .ai-tx-mood { color: #a9d0c2; }
.ai-tx-main.is-mood.is-neutral .ai-tx-mood { color: #c5cec0; }
.ai-tx-mood {
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ai-tx-dopa {
  font-style: normal;
  font-size: 0.7rem;
  color: #8b93a3;
  font-variant-numeric: tabular-nums;
}
.ai-tx-style {
  font-size: 0.68rem;
  color: #9aa3b2;
}
.ai-tx-pattern {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c4b48a;
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  border: 1px solid rgba(196, 180, 138, 0.28);
  background: rgba(196, 180, 138, 0.08);
}
.ai-tx-desc {
  font-size: 0.68rem;
  max-width: 100%;
}
.ai-pt-hz-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.ai-pt-empty {
  font-size: 0.72rem;
  margin-top: 0.16rem;
}
.ai-pt-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.ai-pt-signal {
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(46, 53, 64, 0.9);
  color: var(--muted);
}
.ai-pt-signal-kind {
  font-style: normal;
  font-weight: 600;
  margin-right: 0.35rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.ai-pt-signal.is-bull {
  color: #f0c4bc;
  border-color: rgba(196, 92, 74, 0.4);
}
.ai-pt-signal.is-bear {
  color: #c5e6d8;
  border-color: rgba(111, 158, 143, 0.4);
}
.ai-pt-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.ai-pt-row.is-signal { opacity: 0.92; }
.ai-pt-label {
  flex: 0 0 auto;
  margin-top: 0.16rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  min-width: 3.2rem;
}
.ai-pt-label.is-buy { color: #d88a7a; }
.ai-pt-label.is-sell { color: #7fb59f; }
.ai-tx-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #d8dce6;
}
.ai-tx-main.is-buy .ai-tx-px { color: #e7b2a6; }
.ai-tx-main.is-sell .ai-tx-px { color: #a9d0c2; }
.ai-tx-px {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.ai-tx-px em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  margin-left: 0.2rem;
  opacity: 0.85;
}
.ai-tx-main time,
.ai-tx-sig time {
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: #9aa3b2;
}
.ai-tx-main i {
  font-style: normal;
  font-size: 0.68rem;
  color: #7f8794;
}
.ai-tx-sig {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  align-items: baseline;
  font-size: 0.74rem;
  color: #b8c0cc;
}
.ai-report-chart-note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.ai-report-forecast {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d8dce6;
}
.ai-report-horizons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ai-hchip {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(154, 168, 148, 0.18);
}
.ai-hchip b {
  margin-right: 0.25rem;
  font-weight: 600;
  color: var(--text);
}
.ai-report-levels {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.ai-lv-legend {
  display: grid;
  grid-template-columns: 2.4rem 1fr 1fr;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  padding-left: 0;
}
.ai-lv-legend span:nth-child(1) { grid-column: 2; }
.ai-lv-legend span:nth-child(2) { grid-column: 3; }
.ai-report-level {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto 1fr;
  gap: 0.25rem;
  align-items: baseline;
}
.ai-lv-name { color: var(--muted); }
.ai-lv-tp { color: #d88a7a; }
.ai-lv-sl { color: #7fb59f; }
.ai-lv-tp em,
.ai-lv-sl em {
  font-style: normal;
  opacity: 0.8;
  margin-left: 0.2rem;
  font-size: 0.72rem;
}
.ai-lv-sep { color: var(--muted); text-align: center; }
.ai-report-card-foot {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(154, 168, 148, 0.14);
}
.ai-report-link {
  font-size: 0.82rem;
  color: var(--accent);
}
.ai-report-link.is-soft { color: var(--muted); }
.ai-report-link:hover { text-decoration: underline; }
.ai-report-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
}
@media (max-width: 1100px) {
  html:not(.layout-fixed) .ai-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  html:not(.layout-fixed) .ai-report-grid { grid-template-columns: 1fr; }
  html:not(.layout-fixed) .ai-report-meta { text-align: left; }
}

/* —— 影响 A 股要闻 —— */
.mkt-news-section {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(46, 53, 64, 0.9);
}
.mkt-news-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cb-watch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .cb-watch-row { grid-template-columns: 1fr; }
}
.mkt-news-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%),
    rgba(26, 28, 36, 0.92);
  border: 1px solid rgba(46, 53, 64, 0.95);
  border-radius: 12px;
  padding: 0.55rem 0.65rem 0.65rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.mkt-news-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.55rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(74, 80, 90, 0.55);
}
.mkt-news-panel-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa6b5;
}

/* —— 美联储 / 日银议息预期 —— */
.fed-watch-card {
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(212, 160, 23, 0.09), transparent 48%),
    rgba(22, 24, 30, 0.96);
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  min-width: 0;
}
.fed-watch-card.is-boj {
  border-color: rgba(120, 140, 170, 0.4);
  background:
    linear-gradient(160deg, rgba(90, 110, 145, 0.14), transparent 48%),
    rgba(22, 24, 30, 0.96);
}
.fed-watch-card.is-boj .fed-watch-eyebrow {
  color: rgba(160, 178, 205, 0.95);
}
.fed-watch-card.is-boj .fed-watch-link {
  border-color: rgba(120, 140, 170, 0.4);
}
.fed-watch-card.is-boj .fed-watch-link:hover {
  color: #b8c8de;
  border-color: rgba(160, 178, 205, 0.55);
}
.fed-watch-card.is-boj .fed-watch-upcoming li.is-next {
  color: #b8c8de;
  border-color: rgba(120, 140, 170, 0.5);
}
.fed-watch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.fed-watch-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 160, 23, 0.85);
}
.fed-watch-title {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #e8ece4;
}
.fed-watch-link {
  flex: none;
  font-size: 0.72rem;
  color: #9aa6b5;
  text-decoration: none;
  border: 1px solid rgba(154, 168, 148, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.fed-watch-link:hover { color: var(--accent); border-color: rgba(212, 160, 23, 0.45); }
.fed-watch-loading { margin: 0.35rem 0 0; font-size: 0.85rem; }
.fed-watch-body { margin: 0; }
.fed-watch-meet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: #9aa6b5;
}
.fed-watch-meet strong {
  color: #e8ece4;
  font-weight: 600;
  margin-left: 0.2rem;
}
.fed-watch-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.fed-watch-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.8rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
}
.fed-watch-row-name { color: #c5ccd6; }
.fed-watch-row-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #e8ece4;
  font-weight: 650;
}
.fed-watch-track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(74, 80, 90, 0.55);
  overflow: hidden;
}
.fed-watch-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fed-watch-row.is-cut .fed-watch-fill { background: #7fb59f; }
.fed-watch-row.is-hold .fed-watch-fill { background: #9aa6b5; }
.fed-watch-row.is-hike .fed-watch-fill { background: #d88a7a; }
.fed-watch-row.is-top .fed-watch-row-name,
.fed-watch-row.is-top .fed-watch-row-val { font-weight: 700; }
.fed-watch-row.is-cut.is-top .fed-watch-row-name,
.fed-watch-row.is-cut.is-top .fed-watch-row-val { color: #8fbfb0; }
.fed-watch-row.is-hold.is-top .fed-watch-row-name,
.fed-watch-row.is-hold.is-top .fed-watch-row-val { color: #c5ced9; }
.fed-watch-row.is-hike.is-top .fed-watch-row-name,
.fed-watch-row.is-hike.is-top .fed-watch-row-val { color: #e09a8c; }
.fed-watch-timing {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d5dbe3;
}
.fed-watch-rate {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #9aa6b5;
}
.fed-watch-rate em {
  font-style: normal;
  color: #e8ece4;
  font-weight: 600;
}
.fed-watch-upcoming {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.fed-watch-upcoming li {
  font-size: 0.68rem;
  color: #9aa6b5;
  border: 1px solid rgba(74, 80, 90, 0.8);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.fed-watch-upcoming li.is-next {
  color: rgba(212, 160, 23, 0.95);
  border-color: rgba(212, 160, 23, 0.4);
}

/* 美国宏观日程 */
.us-macro-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(212, 160, 23, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(111, 158, 143, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(35, 40, 50, 0.5), transparent 40%),
    rgba(26, 28, 36, 0.96);
  border: 1px solid rgba(60, 68, 80, 0.9);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.us-macro-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #8b93a3;
  letter-spacing: 0.04em;
}
.us-macro-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .us-macro-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.us-macro-hi {
  position: relative;
  border: 1px solid rgba(52, 58, 70, 0.95);
  border-radius: 12px;
  padding: 0.65rem 0.7rem 0.7rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 45%),
    rgba(14, 16, 22, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 4.4rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.us-macro-hi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(140, 148, 160, 0.45);
}
.us-macro-hi.is-nfp::before { background: #7fb59f; }
.us-macro-hi.is-adp::before { background: #9aa6b5; }
.us-macro-hi.is-pce::before { background: #d88a7a; }
.us-macro-hi.is-fomc::before { background: #d4a017; }
.us-macro-hi.is-boj::before { background: #9b6bc9; }
.us-macro-hi:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background:
    linear-gradient(165deg, rgba(212, 160, 23, 0.08), transparent 50%),
    rgba(18, 20, 28, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.us-macro-hi-lab {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b93a3;
}
.us-macro-hi strong {
  font-size: 0.95rem;
  font-weight: 650;
  color: #e8eaef;
  letter-spacing: 0.01em;
}
.us-macro-hi em {
  font-style: normal;
  font-size: 0.78rem;
  color: #d4a017;
}
.us-macro-hi.is-nfp { border-color: rgba(127, 181, 159, 0.32); }
.us-macro-hi.is-adp { border-color: rgba(154, 166, 181, 0.35); }
.us-macro-hi.is-pce { border-color: rgba(216, 138, 122, 0.35); }
.us-macro-hi.is-fomc { border-color: rgba(212, 160, 23, 0.4); }
.us-macro-hi.is-boj { border-color: rgba(155, 107, 201, 0.42); }
.us-macro-note {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  color: #6d7585;
}
.us-macro-disc {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #6d7585;
}
.us-macro-imp {
  font-size: 0.66rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 138, 122, 0.45);
  color: #e09a8c;
  background: rgba(216, 138, 122, 0.08);
}
.us-macro-tag {
  font-size: 0.9rem;
  font-weight: 650;
  color: #e8eaef;
}
.us-macro-why {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #8b93a3;
}
.us-macro-vals {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.us-macro-vals span {
  font-size: 0.72rem;
  color: #8b93a3;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(46, 53, 64, 0.8);
}
.us-macro-vals b {
  color: #dce2ea;
  font-weight: 650;
  margin-left: 0.15rem;
}
.us-macro-cd {
  font-style: normal;
  font-size: 0.78rem;
  color: #d4a017;
  font-weight: 600;
  margin-left: auto;
}
.us-macro-time {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: #e0b84a;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
}
.us-macro-time small {
  font-size: 0.62rem;
  color: #6d7585;
  font-weight: 500;
}

/* 月历网格 */
.us-cal-shell {
  margin-top: 0.35rem;
}
.us-cal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0 0.55rem;
}
.us-cal-title-wrap {
  flex: 1;
  text-align: center;
  line-height: 1.15;
}
.us-cal-year {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b93a3;
  margin-bottom: 0.1rem;
}
.us-cal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8eaef;
  letter-spacing: 0.06em;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
}
.us-cal-title em {
  font-style: normal;
  color: #e0b84a;
  font-size: 1.45rem;
}
.us-cal-nav,
.us-cal-today-btn {
  border: 1px solid rgba(55, 62, 74, 0.95);
  background: rgba(16, 18, 24, 0.7);
  color: #c5ccd6;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.us-cal-nav {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.us-cal-today-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.us-cal-nav:hover,
.us-cal-today-btn:hover {
  border-color: rgba(212, 160, 23, 0.5);
  color: #e0b84a;
  background: rgba(212, 160, 23, 0.08);
}
.us-cal-nav:active,
.us-cal-today-btn:active {
  transform: scale(0.97);
}
.us-cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  border-color: rgba(55, 62, 74, 0.7);
  color: #6d7585;
  background: rgba(16, 18, 24, 0.45);
}
.us-cal-nav:disabled:hover {
  border-color: rgba(55, 62, 74, 0.7);
  color: #6d7585;
  background: rgba(16, 18, 24, 0.45);
}
.us-cal-range-hint {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: #8a93a3;
}
.us-cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: #9aa3b0;
}
.us-cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.us-cal-legend-item .us-cal-hi-star {
  font-size: 0.78rem;
}
.us-cal-board {
  border: 1px solid rgba(52, 58, 70, 0.9);
  border-radius: 14px;
  padding: 0.55rem 0.55rem 0.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    rgba(12, 14, 18, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.us-cal-weekhead,
.us-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}
.us-cal-dow {
  text-align: center;
  font-size: 0.7rem;
  color: #7a8494;
  letter-spacing: 0.1em;
  padding: 0.2rem 0 0.45rem;
  font-weight: 600;
}
.us-cal-dow.is-weekend { color: #a89060; }
.us-cal-day {
  position: relative;
  min-height: 5.8rem;
  height: auto;
  border: 1px solid rgba(40, 45, 55, 0.7);
  border-radius: 11px;
  background: rgba(14, 16, 20, 0.42);
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.4rem 0.42rem 0.42rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  cursor: default;
  overflow: visible;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
/* 无数据公布：灰色暗沉 */
.us-cal-day:not(.has-ev):not(.is-out) {
  opacity: 0.42;
  filter: grayscale(0.55) brightness(0.78);
  border-color: rgba(36, 40, 48, 0.65);
  background: rgba(12, 13, 16, 0.5);
  color: #6a7280;
}
.us-cal-day:not(.has-ev):not(.is-out) .us-cal-num {
  color: #5c6573;
  font-weight: 500;
}
.us-cal-day.is-weekend:not(.has-ev):not(.is-out) {
  background: rgba(12, 13, 16, 0.5);
}
/* 有数据公布：高亮 */
.us-cal-day.has-ev {
  cursor: pointer;
  opacity: 1;
  filter: none;
  border-color: rgba(90, 100, 118, 0.95);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(40, 46, 58, 0.95), rgba(22, 25, 32, 0.92));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 14px rgba(0, 0, 0, 0.18);
}
.us-cal-day.has-ev .us-cal-num {
  color: #e8eaef;
  font-weight: 700;
}
.us-cal-day.has-ev.is-weekend {
  background:
    linear-gradient(165deg, rgba(212, 160, 23, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(40, 46, 58, 0.95), rgba(22, 25, 32, 0.92));
}
.us-cal-day.has-ev:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.12), transparent 55%),
    rgba(28, 32, 42, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  z-index: 1;
}
.us-cal-day.is-out {
  opacity: 0.22;
  filter: grayscale(0.7) brightness(0.7);
}
.us-cal-day.is-high.has-ev:not(.is-out) {
  border-color: rgba(120, 130, 148, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(212, 160, 23, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.2);
}
.us-cal-day.is-high:not(.is-out)::after {
  display: none;
}
.us-cal-live-hint {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #8fbfb0;
  border: 1px solid rgba(127, 181, 159, 0.4);
  border-radius: 999px;
  background: rgba(127, 181, 159, 0.1);
  animation: us-cal-pulse 1.6s ease-in-out infinite;
}
.us-cal-next-hint {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: #aeb6c4;
}
@keyframes us-cal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.us-cal-chip.has-actual {
  font-weight: 700;
}
.us-macro-vals .is-actual {
  border-color: rgba(212, 160, 23, 0.5);
  color: #e0b84a;
}
.us-macro-vals .is-actual b { color: #f0d078; }
.us-macro-detail.is-out-now {
  border-color: rgba(212, 160, 23, 0.4);
}
.us-cal-out-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 0;
  padding: 0.08rem 0.34rem;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 650;
  color: #e0b84a;
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.1);
  line-height: 1.2;
  white-space: nowrap;
}
.us-cal-pending-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.08rem 0.34rem;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 650;
  color: #8a93a3;
  border: 1px solid rgba(110, 120, 135, 0.45);
  border-radius: 999px;
  background: rgba(110, 120, 135, 0.12);
  line-height: 1.2;
  white-space: nowrap;
}
.us-macro-vals .is-pending {
  border-color: rgba(110, 120, 135, 0.45);
  color: #8a93a3;
  background: rgba(110, 120, 135, 0.1);
}
.us-cal-day.is-today.has-ev {
  box-shadow:
    inset 0 0 0 1px rgba(212, 160, 23, 0.55),
    0 0 0 1px rgba(212, 160, 23, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.2);
}
.us-cal-day.is-today:not(.has-ev):not(.is-out) {
  opacity: 0.55;
  filter: grayscale(0.35) brightness(0.85);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.28);
}
.us-cal-day.is-sel.has-ev {
  border-color: rgba(212, 160, 23, 0.65);
  background:
    linear-gradient(160deg, rgba(212, 160, 23, 0.14), rgba(212, 160, 23, 0.03) 55%),
    rgba(30, 34, 44, 0.96);
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.22);
  opacity: 1;
  filter: none;
}
.us-cal-day:disabled { cursor: default; }
.us-cal-day-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.15rem;
}
.us-cal-num {
  font-size: 0.86rem;
  font-weight: 700;
  color: #c5ccd6;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.us-cal-day.is-today .us-cal-num {
  color: #1a1408;
  background: linear-gradient(180deg, #e0b84a, #d4a017);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.us-cal-today-mark {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #e0b84a;
  font-weight: 650;
}
.us-cal-dots {
  margin-left: auto;
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}
.us-cal-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #6d7585;
  display: inline-block;
}
.us-cal-chips {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-height: 0;
  overflow: visible;
}
.us-cal-chip-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.16rem;
  min-width: 0;
  overflow: visible;
}
.us-cal-chip-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  overflow: visible;
}
.us-cal-hi-badge.is-ph {
  visibility: hidden;
  pointer-events: none;
}
.us-cal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  flex: 0 0 var(--us-cal-name-w, auto);
  width: var(--us-cal-name-w, auto);
  min-width: var(--us-cal-name-w, 0);
  max-width: none;
  box-sizing: border-box;
  font-size: 0.66rem;
  line-height: 1.25;
  padding: 0.14rem 0.28rem;
  border-radius: 6px;
  border: 1px solid rgba(70, 78, 92, 0.85);
  color: #c5ccd6;
  background: rgba(32, 36, 46, 0.92);
  white-space: nowrap;
  overflow: visible;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}
.us-cal-chip.is-hi {
  padding-right: 0.22rem;
}
.us-cal-hi-star {
  flex: 0 0 auto;
  color: #e0b84a;
  font-size: 0.68rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(212, 160, 23, 0.35);
}
.us-asset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.16rem;
  min-width: 0;
}
.us-asset-bias {
  font-size: 0.58rem;
  color: #9aa3b0;
  letter-spacing: 0.01em;
  margin-right: 0.05rem;
}
.us-asset-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.us-asset-tag.is-bull {
  color: #d47a7a;
  background: rgba(180, 70, 70, 0.12);
  border-color: rgba(180, 70, 70, 0.35);
}
.us-asset-tag.is-bear {
  color: #7fb59f;
  background: rgba(127, 181, 159, 0.12);
  border-color: rgba(127, 181, 159, 0.38);
}
.us-asset-tag.is-neutral {
  color: #9aa3b0;
  background: rgba(110, 120, 135, 0.1);
  border-color: rgba(110, 120, 135, 0.35);
}
.us-macro-assets {
  margin-top: 0.35rem;
}
.us-macro-assets .us-asset-row {
  gap: 0.28rem;
}
.us-macro-assets .us-asset-bias {
  font-size: 0.72rem;
  width: 100%;
  margin-bottom: 0.1rem;
}
.us-macro-assets .us-asset-tag {
  font-size: 0.72rem;
  padding: 0.16rem 0.4rem;
}
.us-cal-actual {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e0b84a;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 5px;
  padding: 0.12rem 0.32rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
}
.us-cal-hi-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d8b4a6;
  border: 1px solid rgba(200, 140, 120, 0.5);
  border-radius: 999px;
  background: rgba(200, 140, 120, 0.12);
  padding: 0.08rem 0.34rem;
  line-height: 1.2;
  white-space: nowrap;
}
.us-macro-detail-top .us-cal-hi-badge {
  font-size: 0.64rem;
  padding: 0.1rem 0.4rem;
}
.us-cal-legend .us-cal-hi-badge {
  font-size: 0.66rem;
  padding: 0.12rem 0.4rem;
}
.us-cal-more {
  font-size: 0.62rem;
  color: #6d7585;
  padding-left: 0.15rem;
  letter-spacing: 0.02em;
}
.us-cal-detail {
  margin-top: 0.85rem;
  border: 1px solid rgba(55, 62, 74, 0.95);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.06), transparent 40%),
    rgba(14, 16, 22, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.us-cal-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(46, 53, 64, 0.85);
}
.us-cal-detail-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a3;
  margin-bottom: 0.2rem;
}
.us-cal-detail-head strong {
  font-size: 1.05rem;
  color: #e8eaef;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.us-cal-detail-head small {
  font-size: 0.78rem;
  color: #aeb6c4;
  font-weight: 500;
  margin-left: 0.25rem;
}
.us-cal-detail-count {
  font-size: 0.76rem;
  color: #d4a017;
  white-space: nowrap;
}
.us-macro-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.us-macro-detail {
  position: relative;
  padding: 0.6rem 0.65rem 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(48, 54, 66, 0.85);
  background: rgba(26, 28, 36, 0.72);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.us-macro-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(140, 148, 160, 0.45);
}
.us-macro-detail.is-nfp::before { background: #7fb59f; }
.us-macro-detail.is-adp::before { background: #9aa6b5; }
.us-macro-detail.is-pce::before { background: #d88a7a; }
.us-macro-detail.is-cpi::before { background: #d4a86a; }
.us-macro-detail.is-fomc::before { background: #d4a017; }
.us-macro-detail.is-boj::before { background: #9b6bc9; }
.us-macro-detail.is-claims::before { background: #9bb0c4; }
.us-macro-detail.is-ism::before { background: #a8b89a; }
.us-macro-rate-move {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.35rem;
}
.us-rate-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(140, 150, 168, 0.28);
  background: rgba(20, 22, 28, 0.55);
  color: #c8d0dc;
}
.us-rate-chip b { font-weight: 700; color: #f0f2f6; }
.us-rate-chip.is-cut { border-color: rgba(47, 143, 91, 0.45); color: #9fd4b4; }
.us-rate-chip.is-hold { border-color: rgba(140, 150, 168, 0.4); }
.us-rate-chip.is-hike { border-color: rgba(196, 92, 74, 0.45); color: #efb4a8; }
.us-rate-chip.is-top {
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.1);
}
.us-macro-detail:hover {
  border-color: rgba(212, 160, 23, 0.35);
  background: rgba(30, 32, 40, 0.85);
}
.us-macro-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
}
.us-macro-empty-day {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0.5rem;
  color: #6d7585;
}
@media (max-width: 720px) {
  html:not(.layout-fixed) .us-cal-day {
    min-height: 4.4rem;
    padding: 0.28rem 0.28rem;
  }
  html:not(.layout-fixed) .us-cal-chip {
    font-size: 0.56rem;
    padding: 0.08rem 0.18rem 0.08rem 0.28rem;
  }
  html:not(.layout-fixed) .us-cal-today-mark { display: none; }
  html:not(.layout-fixed) .us-cal-hi-badge {
    font-size: 0.5rem;
    padding: 0.05rem 0.26rem;
  }
  html:not(.layout-fixed) .us-cal-title { font-size: 1.15rem; }
}

.mkt-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 40rem;
  overflow: auto;
  padding: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 168, 148, 0.35) transparent;
}
.mkt-news-list::-webkit-scrollbar { width: 6px; }
.mkt-news-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 148, 0.35);
  border-radius: 999px;
}
@media (max-width: 900px) {
  html:not(.layout-fixed) .mkt-news-list { max-height: 28rem; }
}
.mkt-news-empty {
  margin: 0;
  padding: 1.6rem 0.8rem;
  text-align: center;
}
.mkt-news-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(19, 21, 26, 0.28);
  border-left: 3px solid rgba(154, 168, 148, 0.4);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}
.mkt-news-item:hover {
  border-color: rgba(212, 160, 23, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.mkt-news-item.is-hot {
  border-left-color: rgba(212, 160, 23, 0.75);
  background: rgba(212, 160, 23, 0.06);
}
.mkt-news-item-body {
  padding: 0.7rem 0.85rem 0.72rem;
  min-width: 0;
}
.mkt-news-item-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  align-items: start;
}
.mkt-news-score {
  min-width: 1.75rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 750;
  color: #ebd7a0;
  background: rgba(212, 160, 23, 0.14);
  border: 1px solid rgba(212, 160, 23, 0.22);
  line-height: 1;
  margin-top: 0.1rem;
}
.mkt-news-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}
a.mkt-news-title:hover { color: var(--accent); }
.mkt-news-sum {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #aeb8ad;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-news-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.mkt-news-provider { color: #9aa6b5; }
.mkt-news-time {
  color: #8b93a3;
  font-variant-numeric: tabular-nums;
}
.mkt-news-why {
  color: #9aa6b5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.4rem;
}
.mkt-news-tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(120, 145, 180, 0.14);
  color: #b7c4d8;
  border: 1px solid rgba(120, 145, 180, 0.22);
}
.mkt-news-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}
@media (max-width: 640px) {
  html:not(.layout-fixed) .mkt-news-why { white-space: normal; }
}


/* —— 全站模块进场动画 —— */
html.abu-motion-on .anim-target {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--anim-i, 0) * 48ms);
  will-change: opacity, transform;
}
html.abu-motion-on .anim-target.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
html.abu-motion-on .anim-target.anim-sidebar {
  transform: translate3d(-18px, 0, 0);
}
html.abu-motion-on .anim-target.anim-sidebar.is-visible {
  transform: translate3d(0, 0, 0);
}
html.abu-motion-on .anim-target.anim-nav {
  transform: translate3d(-10px, 0, 0);
}
html.abu-motion-on .anim-target.anim-nav.is-visible {
  transform: translate3d(0, 0, 0);
}

html.abu-motion-on .page-slot.anim-page-enter {
  animation: abuPageEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes abuPageEnter {
  from {
    opacity: 0.35;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 模块轻交互反馈（不抢戏） */
html.abu-motion-on .feature,
html.abu-motion-on .hot-board-card,
html.abu-motion-on .ai-report-card,
html.abu-motion-on .mkt-news-item,
html.abu-motion-on .fund-hm-chip,
html.abu-motion-on .ind-section.panel {
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.abu-motion-on .feature:hover,
html.abu-motion-on .hot-board-card:hover,
html.abu-motion-on .ai-report-card:hover,
html.abu-motion-on .mkt-news-item:hover,
html.abu-motion-on .fund-hm-chip:hover {
  transform: translateY(-2px);
}
html.abu-motion-on button.fund-hm-chip.is-index:hover {
  transform: translateY(-1px);
}
html.abu-motion-on button.fund-hm-chip.is-index:active,
html.abu-motion-on button.fund-hm-chip.is-index.is-press {
  transform: scale(0.972);
}
html.abu-motion-on button.fund-hm-chip.is-index.is-active {
  transform: translateY(-1px);
}
html.abu-motion-on button.fund-hm-chip.is-index.is-active:active,
html.abu-motion-on button.fund-hm-chip.is-index.is-active.is-press {
  transform: scale(0.978);
}
html.abu-motion-on .anim-target:not(.is-visible).feature,
html.abu-motion-on .anim-target:not(.is-visible).hot-board-card,
html.abu-motion-on .anim-target:not(.is-visible).ai-report-card,
html.abu-motion-on .anim-target:not(.is-visible).mkt-news-item,
html.abu-motion-on .anim-target:not(.is-visible).fund-hm-chip {
  transform: translate3d(0, 16px, 0);
}
html.abu-motion-on .anim-target.is-visible.feature:hover,
html.abu-motion-on .anim-target.is-visible.hot-board-card:hover,
html.abu-motion-on .anim-target.is-visible.ai-report-card:hover,
html.abu-motion-on .anim-target.is-visible.mkt-news-item:hover,
html.abu-motion-on .anim-target.is-visible.fund-hm-chip:hover {
  transform: translateY(-2px);
}

html.abu-motion-on .nav a {
  transition: color 0.18s ease, background 0.18s ease, transform 0.22s ease;
}
html.abu-motion-on .nav a:hover {
  transform: translateX(2px);
}
html.abu-motion-on .btn,
html.abu-motion-on .fund-hm-tab,
html.abu-motion-on .period-tab,
html.abu-motion-on .hot-board-members-close,
html.abu-motion-on .fund-hm-leaders-close,
html.abu-motion-on .watchlist-group-add,
html.abu-motion-on .watchlist-group-tab-more,
html.abu-motion-on .watchlist-row-manage-toggle,
html.abu-motion-on .watchlist-group-pop-action {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.18s ease;
}
html.abu-motion-on .btn:active,
html.abu-motion-on .fund-hm-tab:active,
html.abu-motion-on .period-tab:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  html.abu-motion-on .anim-target,
  html.abu-motion-on .anim-target.is-visible,
  html.abu-motion-on .feature:hover,
  html.abu-motion-on .hot-board-card:hover,
  html.abu-motion-on .ai-report-card:hover,
  html.abu-motion-on .mkt-news-item:hover,
  html.abu-motion-on .fund-hm-chip:hover,
  html.abu-motion-on .nav a:hover,
  html.abu-motion-on .btn:active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  html.abu-motion-on .page-slot.anim-page-enter {
    animation: none !important;
  }
  .watchlist-group-chip.is-just-added,
  .watchlist-group-add.is-press,
  .watchlist-group-add:hover,
  .watchlist-group-add:active,
  .watchlist-group-tab-more:active,
  .watchlist-row-manage-toggle:active,
  .watchlist-group-pop-action:active {
    animation: none !important;
    transform: none !important;
  }
  .watchlist-group-pop-scrim,
  .watchlist-group-pop-card,
  .watchlist-row-pop-scrim,
  .watchlist-row-pop-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— 小窗版心锁定：保持桌面左右布局，不被媒体查询改成上下堆叠 —— */
html.layout-fixed .app-shell {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) !important;
  min-width: var(--layout-min-width) !important;
}
html.layout-fixed .main {
  grid-column: 2 !important;
  padding: 1.75rem 2rem 3rem !important;
}
html.layout-fixed .sidebar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--sidebar-w) !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-right: 1px solid rgba(46, 53, 64, 0.95) !important;
  border-bottom: none !important;
}
html.layout-fixed .sidebar::before { display: block !important; }
html.layout-fixed .nav {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}
html.layout-fixed .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
html.layout-fixed .hot-board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
html.layout-fixed .night-hot-board-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
html.layout-fixed .ai-report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
html.layout-fixed .cb-watch-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html.layout-fixed .quote-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
html.layout-fixed .kline-bt-cols {
  grid-template-columns: 1fr 1fr !important;
}
html.layout-fixed .watchlist-indices {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
html.layout-fixed .kline-day-layout.is-day-side {
  flex-direction: row !important;
  align-items: stretch !important;
}
html.layout-fixed .kline-day-layout.is-day-side .kline-side-col {
  flex: 0 0 188px !important;
  width: 188px !important;
  flex-direction: column !important;
}
html.layout-fixed .kline-day-layout.is-day-side > .kline-chart-wrap {
  width: auto !important;
  flex: 1 1 auto !important;
}
html.layout-fixed .chart-box.tall { height: 560px !important; }
html.layout-fixed .chart-box.tall.indicators { height: 1400px !important; }
