:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #12161c;
  --surface-solid: #12161c;
  --surface-raised: #1a1f27;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eaecef;
  --text-secondary: #b7bdc6;
  --muted: #848e9c;
  --muted-light: #9aa3af;
  --cyan: #f0b90b;
  --cyan-soft: rgba(240, 185, 11, 0.12);
  --green: #0ecb81;
  --green-soft: rgba(14, 203, 129, 0.14);
  --red: #f6465d;
  --red-soft: rgba(246, 70, 93, 0.14);
  --accent: #f0b90b;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #000;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app-root,
.landing-root {
  position: relative;
  z-index: 1;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(240, 185, 11, .7);
  outline-offset: 2px;
}

.ambient {
  display: none;
}

.ambient-one,
.ambient-two { display: none; }

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  position: relative;
  transition: width .2s ease, margin .2s ease;
}

.topbar {
  min-height: 52px;
  padding: 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.live-chip {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 2px;
  color: var(--accent);
  background: rgba(240, 185, 11, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.live-chip.is-live {
  color: var(--green);
  border-color: rgba(14, 203, 129, 0.35);
  background: rgba(14, 203, 129, 0.08);
}

.live-chip.is-live::before {
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-chip.is-reconnect {
  color: var(--muted-light);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-text {
  white-space: nowrap;
  line-height: 1.1;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.topbar-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-guest {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-guest.hidden {
  display: none;
}

.topbar-login-btn,
.topbar-register-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.topbar-login-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-secondary);
}

.topbar-login-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.topbar-register-btn {
  border: 0;
  background: var(--accent);
  color: #0b0e11;
}

.topbar-register-btn:hover {
  filter: brightness(1.06);
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 3px 4px 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  transition: opacity .15s ease, color .15s ease;
}

.user-trigger:hover {
  background: transparent;
  color: var(--text);
}

.user-trigger[aria-expanded="true"],
.user-trigger.has-plan {
  background: transparent;
  box-shadow: none;
}

.user-avatar,
.user-dropdown-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(240, 185, 11, 0.28), transparent 48%),
    linear-gradient(160deg, #2a313c, #151a21);
  color: var(--accent);
  box-shadow: none;
}

.user-avatar svg,
.user-dropdown-avatar svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.user-dropdown-avatar {
  width: 46px;
  height: 46px;
  box-shadow: 0 0 24px rgba(240, 185, 11, 0.12);
}

.user-dropdown-avatar svg {
  width: 24px;
  height: 24px;
}

.user-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease, stroke .15s ease;
}

.user-trigger[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(300px, calc(100vw - 28px));
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 185, 11, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(32, 38, 48, 0.98) 0%, rgba(14, 17, 22, 0.98) 55%, rgba(10, 12, 16, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 40px rgba(240, 185, 11, 0.06);
  transform-origin: top right;
}

.user-dropdown-aura {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.18), transparent 68%);
  pointer-events: none;
  filter: blur(2px);
}

.user-dropdown:not(.hidden) {
  animation: userDropdownIn .28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes userDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 2px 14px;
}

.user-dropdown-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.user-dropdown-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.user-plan-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.user-plan-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.user-plan-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted-light);
}

.user-plan-tag.is-active {
  color: #f5d06a;
}

.user-plan-tag.is-expired {
  color: #ff8f9f;
}

.user-plan-expire {
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.user-dropdown-plan {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 2px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.user-dropdown-plan::before {
  display: none;
}

.user-plan-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.user-plan-remain {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.user-dropdown-plan.is-active .user-plan-remain {
  color: #f5d06a;
}

.user-dropdown-plan.is-expired .user-plan-remain {
  color: #ff8f9f;
}

.user-plan-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.user-plan-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c49208, #f0b90b 55%, #ffe08a);
  transition: width .35s ease;
}

.user-dropdown-plan.is-expired .user-plan-bar i,
.user-dropdown-plan.is-empty .user-plan-bar i {
  background: rgba(255, 255, 255, 0.18);
}

.user-dropdown-bind,
.user-dropdown-contact {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 2px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity .15s ease;
}

.user-dropdown-invite {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 2px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity .15s ease;
}

.user-contact-logo {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(240, 185, 11, 0.12);
  color: #f0b90b;
}

.user-contact-logo svg {
  width: 16px;
  height: 16px;
  display: block;
}

.user-dropdown-contact .user-dropdown-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.user-dropdown-bind .user-dropdown-hint {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.user-dropdown-bind:hover,
.user-dropdown-bind:focus-visible,
.user-dropdown-invite:hover:not(:disabled),
.user-dropdown-invite:focus-visible:not(:disabled),
.user-dropdown-contact:hover,
.user-dropdown-contact:focus-visible {
  opacity: 0.88;
  outline: none;
  transform: none;
}

.user-dropdown-invite:disabled {
  cursor: default;
  opacity: 0.72;
}

.user-dropdown-invite .user-dropdown-value {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.user-dropdown-bind .user-dropdown-value {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.user-dropdown-bind.is-active .user-dropdown-value {
  color: #f5d06a;
}

.user-dropdown-bind.is-expired .user-dropdown-value {
  color: #ff8f9f;
}

.user-dropdown-expire {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.user-dropdown-bind.is-empty .user-dropdown-expire {
  display: none;
}

.user-dropdown-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-dropdown-value {
  color: var(--text);
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.user-dropdown-hint {
  color: var(--muted);
  font-size: 11px;
}

.user-dropdown-logout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
  padding: 8px 2px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff9eac;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, opacity .15s ease;
}

.user-logout-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-dropdown-logout:hover,
.user-dropdown-logout:focus-visible {
  color: #ffc0c9;
  opacity: 0.92;
  outline: none;
}

.live-badge {
  display: none;
}

.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 18px 0 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 4.6vw, 28px);
  line-height: 1.28;
  letter-spacing: -.03em;
  font-weight: 600;
  white-space: normal;
  max-width: 16em;
}

h1 em { color: var(--muted-light); font-style: normal; font-weight: 450; }

.hero-copy {
  max-width: 100%;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hero-orbit {
  display: none;
}

.orbit-ring {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(56, 189, 248, .25);
  border-radius: 50%;
  animation: orbit 14s linear infinite;
}

.orbit-ring::before, .orbit-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
}

.orbit-ring::before { top: 9px; right: 17px; }
.orbit-ring::after { bottom: 7px; left: 20px; opacity: .45; }
.orbit-core { color: var(--accent); font: 300 28px Georgia, serif; text-shadow: 0 0 20px rgba(56, 189, 248, .35); }

.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.metric { padding: 22px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.metric strong { font-size: 24px; font-weight: 620; letter-spacing: -.03em; }

.feature-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0 4px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.feature-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.feature-nav .symbol-float {
  flex: 0 0 auto;
  margin: 0 2px 0 0;
  align-self: center;
}

.feature-nav .symbol-trigger {
  min-height: 32px;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.feature-nav .symbol-trigger:hover,
.feature-nav .symbol-float.is-open .symbol-trigger {
  color: var(--text);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-nav .symbol-menu {
  left: auto;
  right: 0;
  min-width: 148px;
  max-height: 320px;
  z-index: 40;
}

.feature-item {
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  position: relative;
  overflow: visible;
  text-align: center;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color .15s ease;
}

.feature-item::after {
  content: "";
  display: block;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}

.feature-item:hover {
  color: var(--text-secondary);
  background: transparent;
}

.feature-item.active {
  color: var(--text);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.feature-item.active::after {
  background: var(--accent);
}

.feature-item:active,
.wl-row:active,
.symbol-option:active {
  background: rgba(255, 255, 255, .03);
}

.feature-item.active:active {
  background: transparent;
}

.feature-item > span:nth-child(2) { display: contents; }
.feature-item strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}
.feature-item small { display: none; }
.feature-item em { display: none; }

.feature-icon { display: none; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: -4px 0 14px;
}

.symbol-float,
.status-float {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

.symbol-float {
  justify-content: flex-start;
}

.status-float {
  margin-left: auto;
}

.symbol-trigger {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.symbol-trigger span {
  display: inline-block;
  line-height: 1;
}

.symbol-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
  transition: transform .18s ease;
}

.symbol-float.is-open .symbol-trigger,
.status-float.is-open .symbol-trigger {
  border: 0;
  background: transparent;
}

.symbol-float.is-open .symbol-trigger svg,
.status-float.is-open .symbol-trigger svg {
  transform: rotate(180deg);
}

.symbol-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 132px;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.status-menu {
  left: auto;
  right: 0;
  min-width: 168px;
}

.symbol-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.symbol-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 2px;
  color: var(--muted-light);
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.symbol-option:hover,
.symbol-option.active {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.symbol-option.active {
  color: var(--cyan);
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}

.filter-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 36px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--muted-light) 50%) calc(100% - 18px) calc(50% - 2px) / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted-light) 50%, transparent 50%) calc(100% - 12px) calc(50% - 2px) / 6px 6px no-repeat,
    var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  outline: none;
}

.filter-field select:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.signals-section { padding-top: 52px; }
#realtimeView, #watchlistView, #historyView { padding-top: 14px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }

.refresh-button, .close-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.refresh-button { width: 40px; height: 40px; }
.refresh-button svg, .close-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }

.filters {
  display: flex;
  gap: 7px;
  margin: 22px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: .2s ease;
}

.filter.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
  font-weight: 600;
}

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

#realtimeView {
  position: relative;
}

body.page-realtime {
  overscroll-behavior-y: contain;
}

.realtime-ptr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
  user-select: none;
}

.realtime-ptr.is-visible {
  opacity: 1;
}

.realtime-ptr.is-armed {
  color: var(--text-secondary);
}

.realtime-ptr.is-loading {
  opacity: 1;
  color: var(--text-secondary);
}

.realtime-ptr svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .12s ease;
}

.realtime-ptr.is-armed svg {
  transform: rotate(180deg);
}

.realtime-ptr.is-loading svg {
  animation: spin .8s linear infinite;
  transform: none;
}

.realtime-body {
  position: relative;
}

#realtimeView.is-plan-locked .realtime-body {
  filter: blur(4px);
  opacity: .62;
  pointer-events: none;
  user-select: none;
}

.plan-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: linear-gradient(180deg, rgba(11, 14, 17, 0.08), rgba(11, 14, 17, 0.32));
}

.plan-lock-overlay.hidden {
  display: none;
}

.plan-lock-card {
  width: min(100%, 320px);
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.plan-lock-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.plan-lock-card p {
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.45;
}

.plan-lock-contact {
  margin-top: 16px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 10px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, filter .15s ease;
}

.plan-lock-contact:hover,
.plan-lock-contact:focus-visible {
  background: rgba(240, 185, 11, 0.18);
  border-color: rgba(240, 185, 11, 0.5);
  outline: none;
  filter: brightness(1.04);
}

.plan-lock-contact-logo {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(240, 185, 11, 0.16);
  color: #f0b90b;
  flex: none;
}

.plan-lock-contact-logo svg {
  width: 16px;
  height: 16px;
  display: block;
}

.plan-lock-btn {
  margin-top: 16px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0e11;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.plan-lock-btn.plan-lock-login {
  margin-top: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

.plan-lock-btn.plan-lock-login:hover {
  filter: none;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-lock-btn:hover {
  filter: brightness(1.06);
}

.signal-card {
  width: 100%;
  padding: 18px;
  display: block;
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(240, 185, 11, 0.055), transparent 42%),
    linear-gradient(90deg, color-mix(in srgb, var(--direction-color) 10%, transparent), transparent 28%),
    var(--surface);
}

.signal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--direction-color);
  opacity: .85;
}

.signal-card[role="button"] {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.signal-card[role="button"]:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.signal-card[role="button"]:active {
  transform: scale(.995);
}

.signal-card.is-settled {
  --direction-color: #555;
  --green: var(--muted-light);
  --red: var(--muted-light);
  color: var(--muted-light);
  border-color: var(--line);
  background: var(--surface-raised);
  opacity: .88;
}

.signal-card.is-settled .symbol-name,
.signal-card.is-settled .signal-ref,
.signal-card.is-settled .signal-ref-copy,
.signal-card.is-settled .order-size-muted,
.signal-card.is-settled .live-row strong,
.signal-card.is-settled .levels strong,
.signal-card.is-settled .levels em,
.signal-card.is-settled .levels small,
.signal-card.is-settled .live-row small,
.signal-card.is-settled .chip,
.signal-card.is-settled .tp,
.signal-card.is-settled .sl,
.signal-card.is-settled .pnl-pct {
  color: var(--muted-light) !important;
}

.signal-card.is-settled .contract-tag,
.signal-card.is-settled .chip.soft,
.signal-card.is-settled .reason-tags i {
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}

.signal-card.is-settled .order-meta-text,
.signal-card.is-settled .order-size-meta {
  color: var(--muted);
}

.signal-card.is-settled .leading-direction {
  color: var(--surface);
  background: #555;
}

.signal-card.is-settled .live-dot {
  background: #6b7280;
  box-shadow: none;
  animation: none;
}

.live-price {
  position: relative;
  min-width: 0;
}

.live-price .settle-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--text-secondary, var(--muted));
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-price .settle-time svg {
  width: 11px;
  height: 11px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.settle-stamp {
  position: absolute;
  left: 72%;
  top: 28%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  opacity: .9;
}

.settle-stamp.stamp-win {
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35);
}

.settle-stamp.stamp-loss {
  color: var(--muted-light);
  box-shadow: inset 0 0 0 1px rgba(136, 136, 136, .35);
}

.settle-stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}

.signal-card.is-settled .settle-stamp.stamp-win {
  color: var(--green) !important;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  justify-content: center;
  margin-left: auto;
  min-width: 0;
}

.card-head-meta-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.symbol-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.symbol-group .wl-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.symbol-group .wl-icon img {
  width: 32px;
  height: 32px;
}

.symbol-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.leading-direction {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--surface);
  background: var(--direction-color);
  font-size: 12px;
  font-weight: 800;
}

.symbol-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.signal-ref,
.signal-ref-copy,
.order-size-muted {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.signal-ref-copy {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color .15s ease;
}

.signal-ref-copy:hover {
  color: var(--text-secondary, #c7ccd4);
}

.order-size-muted {
  font-family: var(--font-display);
  font-weight: 500;
}

.contract-tag {
  padding: 3px 6px;
  border-radius: 2px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, .04);
  font-size: 10px;
}

.head-metrics {
  display: none;
}

.order-size-meta,
.order-meta-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--direction-color);
  background: color-mix(in srgb, var(--direction-color) 12%, transparent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.soft {
  color: var(--muted-light);
  background: rgba(255, 255, 255, .04);
  font-weight: 600;
}

.chip-win {
  cursor: pointer;
}

.chip-pnl.chip-profit {
  color: var(--green);
}

.chip-pnl.chip-loss {
  color: var(--red);
}

.live-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 16px;
}

.live-row small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.live-row strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.live-pnl { text-align: right; }

.pnl-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}

.pnl-value strong {
  line-height: 1;
}

.pnl-value .pnl-pct {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  opacity: .9;
}

.live-pnl .tp, .levels .tp, .stats-row .tp, .pnl-value .tp { color: var(--green); }
.live-pnl .sl, .levels .sl, .stats-row .sl, .pnl-value .sl { color: var(--red); }

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.levels small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.levels strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -.02em;
}

.levels em {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
}

.levels .entry-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.levels .entry-time svg {
  width: 11px;
  height: 11px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.levels > div:nth-child(2),
.levels > div:nth-child(3) { text-align: right; }

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 12px;
}

.stats-row b {
  margin-left: 3px;
  color: var(--text-secondary);
  font-weight: 650;
}

.core-logic {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.signal-insight {
  margin-top: 10px;
  padding: 7px 10px 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.signal-insight.is-toggleable {
  cursor: pointer;
}

.signal-insight.is-toggleable:active {
  background: rgba(255, 255, 255, 0.035);
}

.reason-compact {
  display: grid;
  gap: 4px;
}

.reason-list {
  display: grid;
  gap: 4px;
}

.reason-line {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.signal-insight.is-expanded .reason-line {
  -webkit-line-clamp: unset;
  display: block;
}

.reason-tags {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.reason-tags i {
  min-width: 0;
  padding-left: 11px;
  position: relative;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.reason-tags i::before {
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  left: 0;
  top: 8px;
  border-radius: 50%;
  background: var(--direction-color);
}

.reason-toggle {
  width: 100%;
  height: 12px;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 0;
  pointer-events: none;
}

.reason-toggle svg {
  width: 10px;
  height: 10px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
  opacity: 0.55;
}

.reason-toggle.is-open svg { transform: rotate(180deg); }

.signal-card.is-settled .signal-insight {
  background: rgba(255, 255, 255, .02);
}

.signal-card.is-settled .reason-line {
  color: var(--muted-light);
}

.signal-card.is-settled .reason-group-exit {
  border-left-color: #525252;
  background: rgba(255, 255, 255, .02);
}

.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.55);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-mark-price,
.wl-last {
  transition: color .12s ease;
}

.live-mark-price.tick-up,
.wl-last.tick-up {
  color: var(--green) !important;
  animation: tick-flash 520ms ease;
}

.live-mark-price.tick-down,
.wl-last.tick-down {
  color: var(--red) !important;
  animation: tick-flash 520ms ease;
}

@keyframes tick-flash {
  0% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .live-chip.is-live::before,
  .live-mark-price.tick-up,
  .live-mark-price.tick-down,
  .wl-last.tick-up,
  .wl-last.tick-down {
    animation: none !important;
  }
}

.direction-tag {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--direction-color);
  background: color-mix(in srgb, var(--direction-color) 10%, transparent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

.rr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--direction-color) 14%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--direction-color) 5%, transparent);
}

.rr-main small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.rr-main strong {
  color: var(--direction-color);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.rr-side {
  display: grid;
  gap: 6px;
  text-align: right;
}

.rr-side span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.rr-side i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.rr-side b {
  min-width: 54px;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.rr-side .tp, .rr-main .tp { color: var(--green); }
.rr-side .sl, .rr-main .sl { color: var(--red); }
.detail-rr { margin-top: 12px; }

.live-position small i {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.status-label { display: flex; align-items: center; gap: 6px; }
.status-label i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-open { color: var(--cyan); }
.status-win { color: var(--green); }
.status-loss { color: var(--red); }

.skeleton-card {
  height: 172px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #111 30%, #161616 50%, #111 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
}

.empty-state { padding: 70px 20px; text-align: center; }
.empty-icon { color: var(--accent); font-size: 38px; }
.empty-state h3 { margin: 12px 0 7px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }

.history-grid { margin-top: 0; }

.history-grid .watchlist-panel {
  margin-top: 0;
}
.history-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.history-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.history-card header span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.history-card header span em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}
.history-card.history-card-symbol {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.history-card.history-card-symbol:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, .04);
}

.history-card.history-card-symbol:hover .history-card-action,
.history-card.history-card-symbol:hover .history-chevron {
  color: var(--cyan);
}

.history-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.history-chevron {
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.history-card-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 12px;
  text-align: center;
  letter-spacing: .02em;
}

.history-card header i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.history-main { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; padding: 18px 0 0; }
.history-main > span:nth-child(2) { text-align: center; }
.history-main > span:last-child { text-align: right; }
.history-main small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.history-main strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.history-footer {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.history-empty { padding: 70px 20px; color: var(--muted); text-align: center; font-size: 14px; }

body.page-main-tabs .hero,
body.page-main-tabs footer,
body.page-watchlist .hero,
body.page-watchlist footer {
  display: none;
}

body.page-main-tabs .signals-section,
body.page-watchlist .signals-section {
  padding-top: 10px;
}

body.page-main-tabs .feature-nav {
  margin-top: 4px;
}

#watchlistView {
  padding-top: 0;
}

.watchlist-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wl-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(96px, 1fr) 76px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 6px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-soft);
}

.wl-cols .wl-col-quote,
.wl-cols .wl-col-chg {
  text-align: right;
}

.wl-col-name {
  color: var(--muted);
  font-weight: 500;
}

.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

.wl-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(96px, 1fr) 76px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.wl-bias {
  display: none;
}

.wl-row-chevron { display: none; }

.wl-row:hover {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-soft);
  box-shadow: inset 2px 0 0 rgba(240, 185, 11, 0.45);
}

.wl-row:active {
  background: rgba(255, 255, 255, .045);
  transform: scale(.995);
}

.wl-row.is-active {
  background: rgba(240, 185, 11, .07);
  border-color: rgba(240, 185, 11, .22);
  box-shadow: inset 2px 0 0 var(--accent);
}

.wl-row:last-child {
  border-bottom-color: transparent;
}

.wl-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #555;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
}

.wl-row:hover .wl-remove {
  opacity: 1;
}

@media (hover: none) {
  .wl-remove { opacity: 1; }
}

.wl-remove:hover {
  color: #aaa;
}

.wl-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 0;
}

.wl-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

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

.wl-icon.has-logo {
  background: transparent;
  box-shadow: none;
}

.wl-icon.has-logo.btc,
.wl-icon.has-logo.eth,
.wl-icon.has-logo.xau,
.wl-icon.has-logo.nvda,
.wl-icon.has-logo.tsla,
.wl-icon.has-logo.spcx,
.wl-icon.has-logo.sndk,
.wl-icon.has-logo.aapl {
  background: transparent;
}

.wl-icon.btc { background: radial-gradient(circle at 30% 28%, #ffc15a, #f7931a 58%, #c56f00); }
.wl-icon.eth { background: radial-gradient(circle at 30% 28%, #8ea2ff, #627eea 58%, #3b4db7); }
.wl-icon.bnb { background: radial-gradient(circle at 30% 28%, #ffe08a, #f0b90b 58%, #b88700); color: #111; }
.wl-icon.sol { background: radial-gradient(circle at 30% 28%, #7dffc6, #14f195 50%, #9945ff); color: #0b0e11; }
.wl-icon.doge { background: radial-gradient(circle at 30% 28%, #f0d86a, #c2a633 58%, #8a7320); color: #111; }
.wl-icon.xau { background: radial-gradient(circle at 30% 28%, #f5e6a6, #d4af37 55%, #8a6b18); color: #1a1408; }
.wl-icon.spy { background: radial-gradient(circle at 30% 28%, #7ec8ff, #2f6fed 58%, #1a3f9c); }
.wl-icon.tsla { background: radial-gradient(circle at 30% 28%, #ff7a7a, #cc0000 58%, #7a0000); }
.wl-icon.nvda { background: radial-gradient(circle at 30% 28%, #9cff7a, #76b900 58%, #3f6400); color: #0b0e11; }
.wl-icon.aapl { background: radial-gradient(circle at 30% 28%, #c8c8c8, #555 58%, #222); }
.wl-icon.sndk { background: radial-gradient(circle at 30% 28%, #9ad0ff, #1f6feb 58%, #0d3d8c); }
.wl-icon.spcx { background: radial-gradient(circle at 30% 28%, #c9a6ff, #7b4dff 58%, #3d208a); }
.wl-icon.default { background: radial-gradient(circle at 30% 28%, #4a5360, #2b3139 60%, #1a1f27); color: #eaecef; }

.wl-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.wl-symbol {
  display: block;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-strategy-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted, #8b93a7);
}

.wl-pair {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.wl-pair.perp {
  color: #f0b90b;
  background: rgba(240, 185, 11, 0.12);
}

.wl-pair.gold {
  color: #e6c35c;
  background: rgba(212, 175, 55, 0.14);
}

.wl-pair.stock {
  color: #7ec8ff;
  background: rgba(47, 111, 237, 0.16);
}

.history-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.history-period span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.history-period strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.history-overview {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  grid-template-columns: repeat(2, 1fr);
}

.history-overview .metric {
  padding: 16px 14px;
}

.history-overview .metric:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.history-overview .metric:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.history-overview .metric + .metric {
  border-left: 0;
}

.history-overview .metric strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.history-overview .metric strong.tp { color: var(--green); }
.history-overview .metric strong.sl { color: var(--red); }

.history-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.9fr) !important;
  gap: 16px;
  margin: 0 2px 4px;
  padding: 0 4px 8px;
}

.history-cols span:last-child {
  text-align: right;
}

.wl-symbol-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  padding-left: 0;
}

.history-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.45);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.history-row-meta-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.winrate-signal {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
  flex: 0 0 auto;
  padding: 0;
}

.winrate-signal i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.winrate-signal i:nth-child(1) { height: 4px; }
.winrate-signal i:nth-child(2) { height: 7px; }
.winrate-signal i:nth-child(3) { height: 10px; }
.winrate-signal i:nth-child(4) { height: 13px; }

.winrate-signal.none i {
  background: rgba(255, 255, 255, 0.1);
}

.winrate-signal[data-level="1"] i:nth-child(-n+1),
.winrate-signal.low i:nth-child(-n+1) {
  background: var(--red);
}

.winrate-signal[data-level="2"] i:nth-child(-n+2),
.winrate-signal.mid i:nth-child(-n+2) {
  background: var(--accent);
}

.winrate-signal[data-level="3"] i:nth-child(-n+3),
.winrate-signal.good i:nth-child(-n+3) {
  background: var(--green);
}

.winrate-signal[data-level="4"] i,
.winrate-signal.good[data-level="4"] i {
  background: var(--green);
}

#historyContent .watchlist-list {
  gap: 10px;
  padding-top: 2px;
}

.history-symbol-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.85fr) !important;
  gap: 16px !important;
  align-items: center;
  min-height: 76px;
  padding: 16px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.history-all-row {
  cursor: default;
  border-color: rgba(240, 185, 11, 0.22);
  background: rgba(240, 185, 11, 0.06);
}

.history-all-row:hover {
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.3);
}

.history-all-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(240, 185, 11, 0.14);
  color: #f0b90b;
  flex: none;
}

.history-all-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.history-symbol-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.history-symbol-row .wl-left {
  gap: 14px;
}

.history-symbol-row .wl-info {
  gap: 6px;
  min-width: 0;
}

.history-symbol-row .wl-symbol {
  font-size: 15px;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.history-symbol-row .wl-quote {
  display: none;
}

.history-symbol-row .wl-row-chevron {
  display: none;
}

.history-symbol-row .wl-pair.history-meta {
  display: inline-flex;
  color: var(--muted);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.history-row-right {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-self: stretch;
  justify-content: center;
  gap: 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
  padding-top: 0;
}

.history-row-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  min-width: 0;
}

.history-row-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-row-pnl {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.history-symbol-row .wl-last {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.03em;
}

.history-return {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -.02em;
  opacity: 0.92;
}

.history-return.up { color: var(--green); }
.history-return.down { color: var(--red); }
.history-return.flat { color: var(--muted); }

.history-symbol-row .wl-last.up { color: var(--green); }
.history-symbol-row .wl-last.down { color: var(--red); }
.history-symbol-row .wl-last.flat { color: var(--muted); }

.wl-mid { display: none; }

.wl-bias {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wl-bias-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.wl-bias-tag.bull {
  color: var(--green);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.wl-bias-tag.bear {
  color: var(--red);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.wl-bias-tag.neutral {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.wl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.wl-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  text-align: right;
}

.wl-last {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.wl-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  line-height: 1.1;
}

.wl-last.up,
.wl-last.down,
.wl-last.flat { color: var(--text); }

.wl-chg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 72px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}

.wl-chg.up {
  color: #fff;
  background: #0ecb81;
}
.wl-chg.down {
  color: #fff;
  background: #f6465d;
}
.wl-chg.flat {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.wl-price {
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
}

.wl-change {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wl-change.up { color: var(--green); }
.wl-change.down { color: var(--red); }
.wl-change.flat { color: var(--muted-light); }

.wl-meta {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wl-price.up { color: var(--green); }
.wl-price.down { color: var(--red); }

.history-win-rate {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-range-stats {
  background: var(--red);
}

.wl-range-stats .wl-range-gain {
  background: var(--green);
}

.wl-range-stats .wl-range-cursor {
  display: none;
}

.wl-right {
  width: 112px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.wl-badge {
  padding: 2px 7px;
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--text);
  background: transparent;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.wl-badge.loss {
  border-color: var(--red);
  color: var(--text);
}

.wl-badge.win {
  border-color: var(--green);
  color: var(--green);
}

.wl-badge.open {
  border-color: var(--cyan);
  color: var(--cyan);
}

.wl-range {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 1px;
  overflow: hidden;
  background: var(--red);
}

.wl-range-gain {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--green);
}

.wl-range-cursor {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(56, 189, 248, .75);
  transform: translateY(-50%);
}

.wl-spark {
  width: 100%;
  height: 42px;
  display: block;
  overflow: visible;
}

.wl-spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-spark-area {
  fill: url(#wlSparkGrad);
  stroke: none;
}

.wl-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 130px;
  padding: 24px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.wl-add:hover {
  background: rgba(255, 255, 255, .02);
  color: #999;
}

.wl-add-hint {
  font-size: 11px;
  color: #555;
}

.wl-add-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #444;
}

.wl-add-label {
  font-size: 12px;
  color: #666;
}

.wl-skeleton {
  height: 52px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(255,255,255,.02) 25%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.02) 75%);
  background-size: 200% 100%;
  animation: wlShimmer 1.2s infinite;
}

@keyframes wlShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.page-watch-detail .hero,
body.page-watch-detail .topbar,
body.page-watch-detail footer,
body.page-watch-detail .feature-nav {
  display: none;
}

body.page-watch-detail .signals-section {
  padding-top: 4px;
}

.subpage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 8px;
}

.trades-toolbar {
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

/* 覆盖 .back-button 的负 margin（原为居中标题布局），避免与交易对重叠 */
.trades-toolbar .back-button {
  flex: 0 0 auto;
  margin-right: 0;
  margin-left: -8px;
  position: relative;
  z-index: 1;
}

.trades-toolbar-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.trades-toolbar-meta strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
}

.subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-left: auto;
}

.subpage-brand .brand-mark {
  width: 28px;
  height: 28px;
  padding: 0;
}

.subpage-brand .brand-text {
  white-space: nowrap;
}

.back-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 0 -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.back-button-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button-icon:active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.wl-detail-toolbar {
  margin-bottom: 10px;
}

.wl-trade-toolbar {
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}

.wl-trade-toolbar .back-button {
  flex: 0 0 auto;
  margin-right: 0;
  margin-left: -8px;
}

.wl-trade-pair {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wl-trade-pair strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.2;
}

.wl-detail-head,
.wl-trade-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  margin: 4px 0 10px;
}

.wl-trade-quote {
  min-width: 0;
}

.wl-trade-price {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.wl-trade-price.up { color: var(--green); }
.wl-trade-price.down { color: var(--red); }
.wl-trade-price.flat { color: var(--text); }

.wl-trade-change-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.wl-trade-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.wl-trade-delta.up { color: var(--green); }
.wl-trade-delta.down { color: var(--red); }
.wl-trade-delta.flat { color: var(--muted); }

.wl-trade-usd {
  display: none;
}

.wl-trade-change-row .wl-change {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.wl-trade-change-row .wl-change.up { color: var(--green); }
.wl-trade-change-row .wl-change.down { color: var(--red); }
.wl-trade-change-row .wl-change.flat { color: var(--muted); }

.wl-trade-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  min-width: 0;
}

.wl-trade-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wl-trade-stat span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-trade-stat strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-tf-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
  padding: 0 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wl-tf-bar::-webkit-scrollbar { display: none; }

.wl-tf-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wl-tf-btn.is-active {
  color: var(--accent);
}

.wl-tf-btn:active {
  color: var(--text);
}

.wl-chart-wrap {
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.wl-chart-host {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
}

.wl-chart-host.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
}

.wl-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: #000;
}

.wl-analysis {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.035), transparent 22%),
    rgba(8, 11, 16, 0.96);
  padding: 0;
  overflow: hidden;
  margin-bottom: 28px;
}

.wl-analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 48px 24px;
  color: var(--muted-light);
}
.wl-analysis-loading .wl-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.wl-analysis-loading p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.ka-analysis {
  color: var(--text);
}

.ka-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.ka-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.ka-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.ka-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: #666;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ka-close:hover { color: #aaa; }

.wl-signal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 72px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wl-signal.bull { color: var(--green, #34d399); }
.wl-signal.bear { color: var(--red, #fb7185); }
.wl-signal.neutral { color: var(--muted-light, #888); }

.ka-signal-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid rgba(220, 230, 245, 0.28);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.04), transparent 42%);
}

.ka-signal-card.bull {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.08), transparent 46%);
}
.ka-signal-card.bear {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.08), transparent 46%);
}

.ka-signal-main {
  padding: 20px 18px 18px;
}

.ka-signal-main small,
.ka-cell small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ka-signal-value {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;
}

.ka-signal-card.bull .ka-signal-value { color: var(--green); }
.ka-signal-card.bear .ka-signal-value { color: var(--red); }
.ka-signal-card.neutral .ka-signal-value { color: var(--text-secondary); }

.ka-signal-main em,
.ka-cell em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.ka-signal-main em {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.ka-signal-summary {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.ka-signal-strategy {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.7;
}

.ka-signal-interpret {
  margin: 0;
  padding: 14px;
  border: 0;
  border-top: 1px solid #222;
  border-radius: 0;
  background: transparent;
}

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

.ka-cell {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.ka-cell + .ka-cell {
  border-left: 1px solid #222;
}

.ka-cell strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.ka-cell.tp strong,
.ka-cell.tp em { color: #34d399; }

.ka-cell.sl strong,
.ka-cell.sl em { color: #fb7185; }

.ka-cell strong.up { color: #34d399; }
.ka-cell strong.down { color: #fb7185; }

.ka-strategy-note {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #222;
  color: #666;
  font-size: 11px;
}

.ka-section {
  border-top: 1px solid var(--line-soft);
}

.ka-section-title {
  margin: 0;
  padding: 16px 18px 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ka-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
}

.ka-plan-grid .ka-cell:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.ka-plan-grid .ka-cell:nth-child(-n+4) {
  border-bottom: 1px solid var(--line-soft);
}

.ka-plan-grid .ka-cell strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.ka-plan-grid .ka-cell.sl strong { color: var(--red); }
.ka-plan-grid .ka-cell.tp strong { color: var(--green); }
.ka-plan-grid .ka-cell.trend-up strong { color: var(--green); }
.ka-plan-grid .ka-cell.trend-down strong { color: var(--red); }

.ka-text-block {
  margin: 0;
  padding: 14px;
  border-top: 1px solid #222;
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.65;
}

.ka-strategy-note.bordered {
  border: 1px solid #2a3441;
  margin: 0 14px 14px;
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.04);
}

.ka-range-section .ka-section-title {
  padding-bottom: 0;
}

.ka-range-track {
  padding: 8px 18px 18px;
}

.ka-range-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #34d399 0%, #fbbf24 50%, #fb7185 100%);
}

.ka-range-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 16px;
  background: #f8fafc;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.ka-range-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ka-range-labels strong {
  color: var(--text);
  font-size: 12px;
}

.ka-range-labels span:last-child {
  text-align: right;
}

.ka-interpret-card {
  margin: 0 18px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.ka-interpret-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ka-interpret-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.ka-interpret-card p {
  margin: 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.65;
}

.ka-interpret-card.plain {
  margin: 0;
  padding: 0 18px 18px;
  border: 0;
  background: transparent;
}

.ka-interpret-card.plain p {
  color: var(--text-secondary);
}

.ka-steps {
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  border: 0;
}

.ka-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.ka-steps li + li {
  border-top: 0;
}

.ka-steps li:last-child {
  padding-bottom: 16px;
}

.ka-step-no {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.wl-reasons {
  margin: 0;
  padding-left: 16px;
  color: #888;
  font-size: 11px;
  line-height: 1.7;
}

.wl-reasons li + li {
  margin-top: 4px;
}

footer {
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
}

footer span {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .16em;
}

footer .footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .08em;
}

footer .footer-brand img {
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

footer p { max-width: 460px; margin: 10px auto 0; }

.detail-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: end;
  justify-content: center;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(7px);
}

.detail-sheet {
  width: min(100%, 680px);
  max-height: 92vh;
  padding: 15px 22px calc(28px + env(safe-area-inset-bottom));
  position: relative;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  box-shadow: 0 -30px 90px rgba(0, 0, 0, .55);
  animation: sheetUp .28s ease-out;
}

.sheet-handle { width: 38px; height: 4px; margin: 0 auto 16px; border-radius: 9px; background: var(--line-strong); }
.close-button { width: 38px; height: 38px; position: absolute; right: 20px; top: 25px; border-radius: var(--radius); }

.detail-hero { padding: 12px 0 27px; }
.detail-symbol { margin: 5px 0 9px; font-size: 30px; letter-spacing: -.04em; }
.detail-summary { max-width: 80%; margin: 16px 0 0; color: var(--muted-light); font-size: 13px; line-height: 1.7; }

.detail-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-price { padding: 18px 14px; }
.detail-price + .detail-price { border-left: 1px solid var(--line); }
.detail-price small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.detail-price strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-price .tp { color: var(--green); }
.detail-price .sl { color: var(--red); }
.detail-price em { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; }

.live-position {
  margin-top: 12px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.live-position > div:last-child { text-align: right; }
.live-position small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.live-position strong { font-size: 19px; font-weight: 620; font-variant-numeric: tabular-nums; }

.trade-list {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
}

.trade-row {
  padding: 12px 12px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid color-mix(in srgb, var(--direction-color) 78%, transparent);
}

.trade-row.is-win {
  background: linear-gradient(90deg, var(--green-soft), rgba(255,255,255,.025) 48%);
}

.trade-row.is-loss {
  background: linear-gradient(90deg, var(--red-soft), rgba(255,255,255,.025) 48%);
}

.trade-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-main .leading-direction {
  width: 24px;
  height: 24px;
  flex: none;
  font-size: 12px;
}

.trade-main-text {
  min-width: 0;
  flex: 1;
}

.trade-main-text strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.trade-main-text strong i {
  flex: none;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.trade-main-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-main-pnl {
  text-align: right;
  flex: none;
  min-width: 76px;
}

.trade-main-pnl b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.trade-main-pnl em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: .9;
}

.trade-main-pnl .tp,
.trade-sub .tp { color: var(--green); }
.trade-main-pnl .sl,
.trade-sub .sl { color: var(--red); }

.trade-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.trade-sub span {
  min-width: 0;
}

.trade-sub span:nth-child(2) { text-align: center; }
.trade-sub span:nth-child(3) { text-align: right; }

.trade-sub small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.trade-sub b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.page-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px;
  min-height: 36px;
}

.page-toolbar-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  pointer-events: none;
}

.page-toolbar .back-button {
  position: relative;
  z-index: 1;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: -48px;
  padding: 6px 8px 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.back-button:active { color: var(--text); }

.back-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trades-empty {
  padding: 28px 4px;
}

.trades-empty h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.trades-empty p {
  margin: 0;
  color: var(--muted);
}

.trades-summary {
  margin-bottom: 16px;
}

.trades-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.trades-summary-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.trades-period {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -.01em;
}

.trades-strategy-tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-light);
  font-size: 11px;
  white-space: nowrap;
}

.trades-overview {
  margin-bottom: 0;
  grid-template-columns: repeat(4, 1fr);
}

.trades-overview .metric strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.trades-overview .metric strong.tp { color: var(--green); }
.trades-overview .metric strong.sl { color: var(--red); }

.trades-list-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
}

.trades-list-label i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

body.page-trades .hero,
body.page-trades .topbar,
body.page-trades .feature-nav,
body.page-trades footer {
  display: none;
}

body.page-trades {
  background: #000;
}

body.page-trades .app-root,
body.page-trades #tradesView,
body.page-trades .subpage-toolbar {
  background: #000;
}

body.page-trades .subpage-toolbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-trades #tradesView {
  padding-top: 4px;
  min-height: 100dvh;
}

body.page-trades .trades-overview {
  background: transparent;
  border-color: var(--line-soft);
}

.trades-signal-list {
  margin-top: 0;
  padding-bottom: 24px;
}

.trades-summary-head h2 {
  font-family: var(--font-display);
}

@media (max-width: 420px) {
  .trades-summary-head h2 {
    font-size: 20px;
  }

  .trades-overview .metric strong {
    font-size: 20px;
  }
}

.confidence-panel {
  margin-top: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid color-mix(in srgb, var(--direction-color) 18%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--direction-color) 5%, transparent);
}

.confidence-panel > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.confidence-panel small { color: var(--muted); font-size: 10px; }
.confidence-panel strong { color: var(--direction-color); font-size: 18px; }
.confidence-panel em { color: var(--direction-color); font-size: 10px; font-style: normal; }

.detail-confidence-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.detail-confidence-track i {
  display: block;
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--direction-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--direction-color) 45%, transparent);
}

.detail-section { padding: 25px 0 2px; }
.detail-section h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.reason-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.reason-list li {
  padding: 12px 14px;
  border-radius: 12px;
  color: #aeb7c4;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  line-height: 1.5;
}
.reason-list li::before { content: "✓"; margin-right: 9px; color: var(--accent); }

.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meta-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.meta-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.meta-item strong { font-size: 11px; font-weight: 520; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateX(-50%);
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: rgba(10, 10, 10, .94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  font-size: 11px;
}

@keyframes pulse { 50% { opacity: .45; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position-x: -300%; } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }

@media (max-width: 560px) {
  .app-shell {
    padding-top: env(safe-area-inset-top);
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
  .topbar {
    min-height: 52px;
    padding: 8px 0 6px;
    gap: 8px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    padding: 0;
  }
  .topbar-user {
    gap: 0;
  }
  .user-trigger {
    min-height: 38px;
    padding: 4px 10px 4px 4px;
    gap: 6px;
  }
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .user-dropdown-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .user-name { max-width: 64px; font-size: 11px; }
  .user-chevron { width: 12px; height: 12px; }
  .hero { min-height: 0; padding: 8px 0 14px; }
  .hero-copy { font-size: 11px; }
  .feature-item { min-height: 40px; padding: 10px 12px; border-radius: 0; }
  .feature-item strong { font-size: 15px; }
  .metric { padding: 18px 13px; }
  .metric strong { font-size: 20px; }
  .signals-section { padding-top: 43px; }
  .signal-card { padding: 14px; }
  .live-row strong { font-size: 26px; }
  .levels strong { font-size: 15px; }
  .stats-row { font-size: 11px; }
  .reason-tags i { font-size: 12px; }
  .detail-sheet { padding-left: 17px; padding-right: 17px; }
  .detail-price { padding: 16px 10px; }
  .detail-price strong { font-size: 13px; }
  .confidence-panel { grid-template-columns: auto 1fr; }
  .confidence-panel em { display: none; }
  .market-tab,
  .symbol-trigger { min-height: 44px; }
  .ka-close,
  .close-button {
    min-width: 44px;
    min-height: 44px;
  }
  .ka-close { margin: -8px -8px 0 0; }
  .feed-toolbar { margin-bottom: 12px; }
  .signal-card { border-radius: var(--radius-lg); }
  .card-head { align-items: flex-start; flex-wrap: wrap; }
  .head-metrics { width: 100%; justify-content: flex-start; }
  .order-size-meta,
  .order-meta-text { font-size: 10px; }
  .live-row { gap: 12px; }
  .live-row > * { min-width: 0; }
  .live-row strong { font-size: clamp(21px, 7vw, 26px); }
  .levels { gap: 5px; }
  .levels strong { font-size: 13px; }
  .levels small,
  .levels em { font-size: 10px; }
  .wl-row:not(.history-symbol-row) {
    grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 68px;
    gap: 8px;
    padding: 10px 8px;
  }
  .wl-cols:not(.history-cols) {
    grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 68px;
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .wl-left { gap: 10px; padding-right: 0; }
  .wl-bias-tag {
    font-size: 17px;
  }
  .wl-right,
  .history-row-right { width: auto; min-width: 0; }
  .wl-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .wl-last { font-size: 14px; }
  .wl-chg { min-width: 68px; min-height: 26px; font-size: 11px; }
  .wl-row-chevron { font-size: 16px; }
  .wl-chart-host { height: min(380px, 52dvh); min-height: 300px; }
  .wl-chart-wrap { margin-left: -4px; margin-right: -4px; }
  .ka-signal-value { font-size: 30px; }
  .ka-cell strong { font-size: 20px; overflow-wrap: anywhere; }
  .ka-plan-grid .ka-cell strong { font-size: 18px; }
  .subpage-toolbar { position: sticky; top: env(safe-area-inset-top); z-index: 12; background: #000; }
  .detail-sheet { max-height: 94dvh; overscroll-behavior: contain; }
  .detail-summary { max-width: calc(100% - 44px); }
  .trade-main { align-items: flex-start; }
  .trade-main-text strong { flex-wrap: wrap; }
  .trade-sub { padding: 9px 7px; gap: 4px; }
  .trade-sub small { font-size: 9px; }
  .trade-sub b { font-size: 12px; }
  .detail-price small,
  .meta-item span { font-size: 11px; }
  .detail-price em { font-size: 11px; }
  .confidence-panel em { display: block; }
  .confidence-panel em { grid-column: 1 / -1; }
  .toast {
    max-width: calc(100% - 32px);
    bottom: calc(16px + env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .brand-text { display: none; }
  .user-name { display: none; }
  .user-trigger { padding-right: 8px; }
  .feature-nav { gap: 0; }
  .feature-item { min-height: 40px; padding: 10px 12px; }
  .feature-item strong { font-size: 14px; }
  .feature-item small { display: none; }
  .feature-item em { display: none; }
  .wl-row:not(.history-symbol-row) {
    grid-template-columns: minmax(0, 1.3fr) minmax(72px, 1fr) 62px;
    gap: 6px;
    min-height: 54px;
    padding: 8px 6px;
  }
  .wl-cols:not(.history-cols) {
    grid-template-columns: minmax(0, 1.3fr) minmax(72px, 1fr) 62px;
    gap: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .wl-bias-tag {
    font-size: 16px;
  }
  .wl-right,
  .history-row-right { width: auto; min-width: 0; }
  .wl-symbol { font-size: 12px; }
  .wl-last { font-size: 13px; }
  .wl-ref { font-size: 10px; }
  .wl-chg { min-width: 62px; min-height: 24px; font-size: 10px; }
  .wl-quote { gap: 4px; }
  .wl-price,
  .wl-change { font-size: 10px; }
  h1 { white-space: normal; }
  .history-overview .metric { padding: 14px 12px; }
  .history-overview .metric span { font-size: 11px; }
  .history-overview .metric strong { font-size: 18px; }
  .history-symbol-row {
    min-height: 72px;
    padding: 14px 12px;
  }
  .trades-overview .metric { padding: 14px 8px; }
  .trades-overview .metric strong { font-size: 16px; }
  .history-win-rate { font-size: 9px; }
  .chip { padding: 5px 6px; font-size: 10px; }
  .detail-price-grid { grid-template-columns: 1fr; }
  .detail-price + .detail-price { border-left: 0; border-top: 1px solid var(--line); }
  .detail-price { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
  .detail-price small { margin: 0; }
  .detail-price em { grid-column: 2; margin: 0; text-align: right; }
}

@media (min-width: 700px) {
  .signal-list { grid-template-columns: 1fr 1fr; }
  .skeleton-card { height: 250px; }
}

/* —— PC / 宽屏适配 —— */
@media (min-width: 900px) {
  .app-shell {
    width: min(100%, 960px);
    padding-left: 24px;
    padding-right: 24px;
  }

  .wl-cols,
  .wl-row:not(.history-symbol-row) {
    grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr) 84px;
    gap: 16px;
  }

  .wl-row:not(.history-symbol-row) {
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .wl-row:hover {
    background: rgba(255, 255, 255, .035);
  }

  .wl-row.is-active {
    background: rgba(240, 185, 11, .08);
  }

  .wl-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .wl-symbol {
    font-size: 15px;
  }

  .wl-bias-tag {
    font-size: 20px;
  }

  .wl-last {
    font-size: 16px;
  }

  .wl-ref {
    font-size: 12px;
  }

  .wl-chg {
    min-width: 80px;
    min-height: 30px;
    font-size: 13px;
  }

  .feature-nav {
    margin-bottom: 4px;
  }

  /* 聪明钱详情：右侧面板 */
  .detail-layer {
    align-items: stretch;
    justify-content: flex-end;
  }

  .detail-backdrop {
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(2px);
  }

  .detail-sheet {
    width: 440px;
    max-width: 440px;
    max-height: none;
    height: 100%;
    padding: 20px 22px 28px;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .35);
    animation: sheetSide .24s ease-out;
  }

  .sheet-handle {
    display: none;
  }

  .close-button {
    top: 16px;
    right: 16px;
  }

  /* 行情分析详情：右侧面板，列表仍可见 */
  body.page-watch-detail .topbar {
    display: flex;
  }

  body.page-watch-detail .feature-nav {
    display: flex;
  }

  body.page-watch-detail .app-shell {
    width: min(100% - 460px, 960px);
    margin-left: max(24px, calc((100% - 960px - 460px) / 2));
    margin-right: 460px;
  }

  body.page-watch-detail #watchlistDetailView {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    width: 440px;
    margin: 0;
    padding: 16px 18px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg, #000);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .35);
    animation: sheetSide .24s ease-out;
  }

  body.page-watch-detail .wl-trade-head {
    gap: 16px 24px;
  }

  body.page-watch-detail .wl-trade-price {
    font-size: 40px;
  }

  body.page-watch-detail .wl-chart-host {
    height: min(420px, 48vh);
    min-height: 320px;
  }
}

@media (min-width: 1200px) {
  .app-shell {
    width: min(100%, 1120px);
    padding-left: 28px;
    padding-right: 28px;
  }

  .wl-cols,
  .wl-row:not(.history-symbol-row) {
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1.1fr) 88px;
    gap: 18px;
  }

  body.page-watch-detail .app-shell {
    width: min(100% - 500px, 1120px);
    margin-left: max(28px, calc((100% - 1120px - 500px) / 2));
    margin-right: 500px;
  }

  body.page-watch-detail #watchlistDetailView {
    width: 480px;
  }

  .detail-sheet {
    width: 480px;
    max-width: 480px;
  }
}

@keyframes sheetSide {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Kairo unified tokens for analysis + shared panels */
.ka-tag {
  border-color: var(--cyan);
}

.ka-step-no {
  color: var(--cyan);
}

.ka-signal-card.bull { border-left-color: var(--green); }
.ka-signal-card.bear { border-left-color: var(--red); }
.ka-signal-card.bull .ka-signal-value { color: var(--green); }
.ka-signal-card.bear .ka-signal-value { color: var(--red); }
.ka-cell.tp strong,
.ka-cell.tp em,
.ka-plan-grid .ka-cell.tp strong,
.ka-plan-grid .ka-cell.trend-up strong { color: var(--green); }
.ka-cell.sl strong,
.ka-cell.sl em,
.ka-plan-grid .ka-cell.sl strong,
.ka-plan-grid .ka-cell.trend-down strong { color: var(--red); }
.ka-cell strong.up { color: var(--green); }
.ka-cell strong.down { color: var(--red); }

.wl-analysis,
.ka-analysis,
.wl-chart-wrap {
  border-color: var(--line);
  background: var(--surface);
}

.ka-top,
.ka-signal-card,
.ka-cell,
.ka-strategy-note,
.ka-section,
.ka-steps li + li,
.ka-plan-grid,
.ka-plan-grid .ka-cell:nth-child(odd),
.ka-plan-grid .ka-cell:nth-child(-n+4),
.ka-text-block,
.ka-interpret-card,
.ka-steps {
  border-color: var(--line-soft);
}

.wl-row {
  border-bottom-color: var(--line);
}
