:root {
  --ink: #1a2421;
  --paper: #f4f1e8;
  --teal: #2d6a5c;
  --teal-dark: #1f4d44;
  --gold: #c9a962;
  --muted: #5c6f6a;
  --danger: #a34c4c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background: radial-gradient(circle at 20% 20%, #eef5f2 0, transparent 45%),
    radial-gradient(circle at 80% 0%, #e8eef0 0, transparent 40%),
    linear-gradient(160deg, #f7f5ef 0%, #e9ead8 100%);
  color: var(--ink);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
}

/* 不在全局给 a:hover 加下划线：整块可点区域（如策略中心强势板块卡片）会误伤全文 */
a:hover {
  text-decoration: none;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(45, 106, 92, 0.2);
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.brand h1 {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 1.65rem;
  color: var(--teal-dark);
}

.header-tools {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  min-width: 0;
}

.stock-search {
  position: relative;
  flex: 0 1 17rem;
  min-width: 11rem;
}

.stock-search-input {
  height: 2.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border-color: rgba(45, 106, 92, 0.28);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.stock-search-input:focus {
  outline: 2px solid rgba(45, 106, 92, 0.24);
  outline-offset: 1px;
  border-color: rgba(45, 106, 92, 0.58);
}

.stock-search-results {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: min(25rem, 65vh);
  overflow-y: auto;
  border: 1px solid rgba(45, 106, 92, 0.22);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 36, 33, 0.16);
}

.stock-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.55rem;
  padding: 0.48rem 0.65rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(45, 106, 92, 0.09);
}

.stock-search-result:last-child {
  border-bottom: 0;
}

.stock-search-result:hover,
.stock-search-result.is-active {
  background: rgba(45, 106, 92, 0.08);
}

.stock-search-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 620;
}

.stock-search-code {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.stock-search-empty {
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.nav-me) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: border-color 0.16s ease, background 0.16s ease,
    color 0.16s ease;
}

.nav a:not(.nav-me):hover {
  border-color: transparent;
  background: rgba(45, 106, 92, 0.07);
  color: rgba(21, 70, 59, 0.98);
}

.nav a:not(.nav-me):focus-visible {
  outline: 2px solid rgba(45, 106, 92, 0.34);
  outline-offset: 2px;
}

.nav a.nav-vip {
  border-color: rgba(201, 169, 98, 0.5);
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.18), rgba(255, 255, 255, 0.58));
  color: #6d5516;
}

.nav a.nav-vip:hover {
  border-color: rgba(201, 169, 98, 0.72);
  background: rgba(201, 169, 98, 0.2);
  color: #5c470f;
}

.nav a.nav-me {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.84rem;
  color: rgba(26, 36, 33, 0.56);
  font-weight: 520;
  margin-left: 0.22rem;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav a.nav-me:hover {
  color: rgba(26, 36, 33, 0.82);
  background: rgba(45, 106, 92, 0.06);
}

.pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 92, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

a.pill {
  color: var(--teal-dark);
  text-decoration: none;
}
a.pill:hover {
  background: rgba(45, 106, 92, 0.1);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 77, 68, 0.22);
}
.btn:hover {
  filter: brightness(1.05);
}
.btn.secondary {
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid rgba(45, 106, 92, 0.4);
  box-shadow: none;
}
.btn.danger {
  background: var(--danger);
  box-shadow: 0 6px 16px rgba(163, 76, 76, 0.2);
}

.app-alert-modal[hidden] {
  display: none;
}

.app-alert-modal,
.app-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.app-alert-backdrop,
.app-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 28, 0.42);
  backdrop-filter: blur(3px);
}

.app-confirm-modal[hidden] {
  display: none;
}

.featured-plan-dialog {
  width: min(92vw, 520px);
}

.featured-plan-auto-note {
  margin: 0.08rem 0 0.55rem;
  padding: 0 0.15rem;
  line-height: 1.15;
  font-size: 0.62rem;
  font-style: italic;
  color: var(--muted, #6b7280);
  text-align: left;
  letter-spacing: 0.01em;
}

.featured-plan-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.featured-plan-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 92, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.featured-plan-btn:hover {
  border-color: rgba(45, 106, 92, 0.45);
}

.featured-plan-btn.is-selected {
  border-color: rgba(45, 106, 92, 0.65);
  background: rgba(45, 106, 92, 0.08);
  box-shadow: 0 0 0 1px rgba(45, 106, 92, 0.12);
}

.featured-plan-actions-row {
  margin-top: 0.25rem;
}

.app-alert-card,
.app-confirm-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  margin: min(16vh, 7rem) auto 0;
  padding: 1rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 92, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(26, 36, 33, 0.22);
}

.app-alert-head,
.app-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.app-alert-title,
.app-confirm-title {
  margin: 0;
  font-size: 1rem;
  color: var(--teal-dark);
}

.app-alert-x,
.app-confirm-x {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.app-alert-x:hover,
.app-confirm-x:hover {
  background: rgba(45, 106, 92, 0.08);
  color: var(--teal-dark);
}

.app-alert-message,
.app-confirm-message {
  color: var(--ink);
  white-space: pre-wrap;
}

.app-alert-actions,
.app-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(45, 106, 92, 0.12);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 14px 40px rgba(26, 36, 33, 0.08);
}

.hero-title {
  font-size: 1.55rem;
  margin: 0 0 0.75rem;
  color: var(--teal-dark);
}

.home-institutional {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: min(66vh, 620px);
  padding: clamp(2.4rem, 7vw, 5.2rem) clamp(1.25rem, 4vw, 3.4rem);
  border: 1px solid rgba(45, 106, 92, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(248, 246, 236, 0.78)),
    radial-gradient(circle at 88% 12%, rgba(201, 169, 98, 0.14), transparent 38%);
  box-shadow: 0 22px 60px rgba(26, 36, 33, 0.08);
  overflow: hidden;
}

.home-institutional::before {
  content: "";
  position: absolute;
  inset: 1.15rem;
  border: 1px solid rgba(45, 106, 92, 0.07);
  border-radius: 14px;
  pointer-events: none;
}

.home-copy,
.home-visual {
  position: relative;
  z-index: 1;
}

.home-kicker {
  margin: 0 0 1rem;
  color: rgba(31, 77, 68, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.home-headline {
  max-width: 12em;
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(2.05rem, 5.5vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 620;
}

.home-lead {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: rgba(92, 111, 106, 0.92);
  font-size: 1rem;
  line-height: 1.9;
}

.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn.secondary.home-android-btn {
  border-color: rgba(45, 106, 92, 0.5);
  background: rgba(238, 247, 243, 0.92);
  color: var(--teal-dark);
  white-space: nowrap;
}

.btn.secondary.home-android-btn:hover {
  border-color: rgba(45, 106, 92, 0.7);
  background: rgba(45, 106, 92, 0.12);
}

.home-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.home-tree {
  display: block;
  width: min(32vw, 340px);
  min-width: 240px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 20px 30px rgba(31, 77, 68, 0.12));
}

.home-principles {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 420px);
  transform: translateX(-50%);
  border: 1px solid rgba(45, 106, 92, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.home-principles div {
  padding: 0.82rem 0.7rem;
  text-align: center;
  border-left: 1px solid rgba(45, 106, 92, 0.08);
}

.home-principles div:first-child {
  border-left: none;
}

.home-principles strong,
.home-principles small {
  display: block;
}

.home-principles strong {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 650;
}

.home-principles small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.member-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 0.35rem;
  width: 1.12rem !important;
  height: 1.12rem !important;
  min-width: 1.12rem !important;
  min-height: 1.12rem !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  vertical-align: middle;
  border: 1px solid rgba(45, 106, 92, 0.24) !important;
  color: var(--muted) !important;
  background: rgba(45, 106, 92, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  cursor: help;
}

.member-badge-advanced {
  color: #2f6e63;
  border-color: rgba(47, 110, 99, 0.28);
}

.member-badge-normal {
  color: #5c6f6a;
  border-color: rgba(92, 111, 106, 0.26);
}

.member-badge-silver {
  color: #5f6777;
  border-color: rgba(95, 103, 119, 0.3);
}

.member-badge-gold {
  color: #9b7b31;
  border-color: rgba(155, 123, 49, 0.3);
}

.member-badge-diamond {
  color: #3f5db3;
  border-color: rgba(63, 93, 179, 0.3);
}

.hero-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 780px) {
  .home-institutional {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  .home-headline {
    max-width: 10em;
  }
  .home-visual {
    min-height: 310px;
  }
  .home-tree {
    width: min(72vw, 310px);
    min-width: 0;
  }
  .home-principles {
    position: relative;
    margin-top: -1.2rem;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }
  .stock-search {
    width: 100%;
    flex-basis: auto;
  }
  .nav {
    width: 100%;
  }
}

label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 36, 33, 0.18);
  background: #fff;
}

form .row {
  margin-bottom: 0.9rem;
}

.login-remember-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: -0.15rem 0 0.95rem;
}

.remember-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  user-select: none;
}

.remember-opt input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}

.login-user-row {
  position: relative;
}

.saved-user-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  border: 1px solid rgba(26, 36, 33, 0.12);
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 36, 33, 0.12);
  overflow: hidden;
}

.saved-user-item {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(26, 36, 33, 0.06);
}

.saved-user-item:first-child {
  border-top: none;
}

.saved-user-name,
.saved-user-del {
  border: none;
  background: transparent;
  cursor: pointer;
}

.saved-user-name {
  flex: 1;
  text-align: left;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.saved-user-del {
  width: 2.1rem;
  height: 2rem;
  font-size: 1rem;
  color: rgba(163, 76, 76, 0.88);
  border-left: 1px solid rgba(26, 36, 33, 0.08);
}

.saved-user-name:hover {
  background: rgba(45, 106, 92, 0.08);
}

.saved-user-del:hover {
  background: rgba(163, 76, 76, 0.1);
}

.alert {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  background: rgba(163, 76, 76, 0.08);
  color: var(--danger);
  border: 1px solid rgba(163, 76, 76, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(26, 36, 33, 0.08);
  text-align: left;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
}

th.sortable-head {
  cursor: pointer;
  user-select: none;
}

th.sortable-head:focus-visible {
  outline: 2px solid rgba(45, 106, 92, 0.45);
  outline-offset: 2px;
}

.sort-indicator {
  display: inline-block;
  min-width: 0.95em;
  margin-left: 0.15rem;
  color: rgba(26, 36, 33, 0.35);
}

th.sortable-head.sorted-asc .sort-indicator::before {
  content: "▲";
  font-size: 0.68em;
}

th.sortable-head.sorted-desc .sort-indicator::before {
  content: "▼";
  font-size: 0.68em;
}

tr:hover td {
  background: rgba(45, 106, 92, 0.04);
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.muted-inline {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.inline-form {
  display: inline;
}

.mini {
  width: auto;
  min-width: 4rem;
}

select.mini {
  display: inline-block;
  width: auto;
  min-width: 5.5rem;
  margin-right: 0.35rem;
}

.date-toolbar {
  margin: 1rem 0 1.15rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(45, 106, 92, 0.15);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Strategy result page: large page title + compact date picker */
.strategy-dashboard-head {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.strategy-dashboard-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
}

.strategy-dashboard-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

.strategy-dashboard-head .strategy-date-form {
  margin: 0;
}

.strategy-dashboard-head .strategy-date-form select,
.strategy-dashboard-head .strategy-date-select {
  min-width: 0 !important;
  width: auto;
  max-width: 10.5rem;
  padding: 0.22rem 1.75rem 0.22rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  border-radius: 6px;
  border: 1px solid rgba(45, 106, 92, 0.22);
  background-color: #fff;
  color: var(--ink);
  box-sizing: border-box;
  cursor: pointer;
}

.strategy-dashboard-head .strategy-dashboard-note {
  margin-left: auto;
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: 16rem;
}

@media (max-width: 520px) {
  .strategy-dashboard-head .strategy-dashboard-note {
    margin-left: 0;
    max-width: none;
    flex: 1 1 100%;
  }
}

.screen-code-actions {
  gap: 0.35rem;
}

.btn.secondary.mini.screen-code-tool {
  padding: 0.18rem 0.42rem;
  font-size: 0.72rem;
  min-width: 0;
  box-shadow: none;
}

.date-toolbar-note {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.date-toolbar-title {
  margin-bottom: 0.55rem;
}

.date-chip {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 106, 92, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.date-select-form select {
  min-width: 190px;
  width: auto;
}

.date-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.date-list-inline {
  max-height: 8.5rem;
  overflow: auto;
}

.date-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
}

.date-list a:hover {
  background: rgba(45, 106, 92, 0.08);
}

.date-list a.date-active {
  background: rgba(45, 106, 92, 0.18);
  font-weight: 600;
  color: var(--teal-dark);
}

.panel-back {
  margin: 0 0 0.9rem;
}

.panel-back a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.panel-back a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.section-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--teal-dark);
  font-weight: 650;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin: 0.45rem 0 0.6rem;
}

.section-title-row .section-title {
  margin: 0;
}

.export-xlsx-link {
  flex-shrink: 0;
}

.section-title-row + .table-wrap {
  margin-top: 0.35rem;
}

#screen-result-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

#screen-result-table th,
#screen-result-table td {
  box-sizing: border-box;
  padding: 0.56rem 0.28rem;
  vertical-align: middle;
}

#screen-result-table thead th {
  vertical-align: middle;
  white-space: nowrap;
  text-align: left;
  line-height: 1.1;
  height: auto;
  padding-top: 0.66rem;
  padding-bottom: 0.66rem;
  padding-left: 0.42rem;
}

.screen-row-hot td {
  background: rgba(231, 188, 73, 0.14);
}

.screen-cell-name {
  width: 6rem;
  min-width: 6rem;
  max-width: 6rem;
}

.screen-name-main {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.screen-theme-cell {
  width: 7.2rem;
  min-width: 7.2rem;
  max-width: 7.2rem;
}

.screen-theme-text {
  max-width: 7.2rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--ink);
}

#screen-result-table td.num-cell,
#screen-result-table td:nth-child(4),
#screen-result-table td:nth-child(5),
#screen-result-table td:nth-child(6),
#screen-result-table td:nth-child(7),
#screen-result-table td:nth-child(8) {
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#screen-result-table td:nth-child(2),
#screen-result-table td:nth-child(3) {
  text-align: left;
}

#screen-result-table td.up {
  color: #c03a2b;
  font-weight: 600;
}

#screen-result-table td.down {
  color: #1f8a4c;
  font-weight: 600;
}

#screen-result-table th:nth-child(1),
#screen-result-table td:nth-child(1) {
  width: 6rem;
  min-width: 6rem;
  max-width: 6rem;
}

#screen-result-table th:nth-child(2),
#screen-result-table td:nth-child(2) {
  width: 5rem;
  min-width: 5rem;
  max-width: 5rem;
}

#screen-result-table th:nth-child(3),
#screen-result-table td:nth-child(3) {
  width: 7.2rem;
  min-width: 7.2rem;
  max-width: 7.2rem;
}

#screen-result-table th:nth-child(4),
#screen-result-table td:nth-child(4) {
  width: 4.7rem;
  min-width: 4.7rem;
}

#screen-result-table th:nth-child(5),
#screen-result-table td:nth-child(5) {
  width: 5rem;
  min-width: 5rem;
}

#screen-result-table th:nth-child(6),
#screen-result-table td:nth-child(6) {
  width: 5.2rem;
  min-width: 5.2rem;
}

#screen-result-table th:nth-child(7),
#screen-result-table td:nth-child(7) {
  width: 4.6rem;
  min-width: 4.6rem;
}

#screen-result-table th:nth-child(8),
#screen-result-table td:nth-child(8) {
  width: 5rem;
  min-width: 5rem;
}

#screen-result-table th:nth-child(9),
#screen-result-table td:nth-child(9) {
  width: 4.8rem;
  min-width: 4.8rem;
  max-width: 4.8rem;
}

.screen-table-action {
  min-width: 3.25rem;
  padding: 0.26rem 0.52rem;
  font-size: 0.78rem;
  line-height: 1.1;
}

.hot-themes-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-featured-pick {
  white-space: nowrap;
  vertical-align: middle;
}

th.pick-col-head,
td.td-featured-pick {
  width: 5.6rem;
  min-width: 5.6rem;
}

.btn-featured-done:disabled,
button.btn-featured-done:disabled {
  cursor: default;
  opacity: 1;
  font-weight: 650;
  color: var(--teal-dark);
  background: rgba(45, 106, 92, 0.22);
  border: 1px solid rgba(45, 106, 92, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.btn.mini {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-left: 2px solid rgba(45, 106, 92, 0.25);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--paper);
}

.timeline-time {
  font-size: 0.88rem;
  color: var(--muted);
}

.timeline-title {
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--ink);
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.timeline-sign {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.timeline-sign .sign-name {
  color: var(--teal-dark);
  font-weight: 650;
}

.timeline-sign .sign-hint {
  margin-left: 0.35rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.timeline .muted {
  font-weight: 400;
  color: var(--muted);
}

/* 精选池：左时间轴 + 右详情（轻量分隔、时间右贴内容） */
.featured-page {
  padding-top: 0.25rem;
}

.featured-profile-head {
  align-items: flex-start;
}

.featured-profile-hero-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 7.5rem);
}

.featured-profile-back {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.featured-profile-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(45, 106, 92, 0.72);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.featured-profile-settings-btn:hover {
  color: rgba(45, 106, 92, 0.95);
  background: rgba(45, 106, 92, 0.07);
}

.featured-profile-settings-btn:focus-visible {
  outline: 2px solid rgba(45, 106, 92, 0.45);
  outline-offset: 2px;
}

.featured-settings-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  display: block;
}

.featured-profile-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin: 0.35rem 0 0.45rem;
}

.featured-profile-yield {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.featured-profile-stat-sep {
  margin: 0 0.35rem;
  color: rgba(26, 36, 33, 0.35);
}

.featured-profile-win-detail {
  margin-left: 0.15rem;
  font-size: 0.92em;
}

.featured-active-only-empty {
  margin: 0.35rem 0 0;
}

.featured-flow > .featured-row.featured-row--active-only-hidden {
  display: none !important;
}

.featured-active-only-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
  color: inherit;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.15rem;
  margin: -0.15rem;
}

.featured-active-only-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.featured-active-only-input:focus {
  outline: none;
}

.featured-active-only-track {
  display: inline-block;
  width: 1.85em;
  height: 1em;
  border-radius: 999px;
  background: rgba(45, 106, 92, 0.18);
  border: none;
  position: relative;
  vertical-align: middle;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  box-sizing: content-box;
  box-shadow: inset 0 1px 2px rgba(28, 66, 58, 0.06);
}

.featured-active-only-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(1em - 2px);
  height: calc(1em - 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 66, 58, 0.18);
  transition: transform 0.16s ease;
}

.featured-active-only-input:checked + .featured-active-only-track {
  background: rgba(45, 106, 92, 0.48);
  box-shadow: inset 0 1px 2px rgba(28, 66, 58, 0.08);
}

.featured-active-only-input:checked + .featured-active-only-track .featured-active-only-thumb {
  transform: translateX(0.82em);
}

.featured-active-only-toggle:focus-within .featured-active-only-track {
  outline: 2px solid rgba(45, 106, 92, 0.35);
  outline-offset: 2px;
}

.featured-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 0.5rem;
}

.featured-pager-bottom {
  margin: 0.85rem 0 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(45, 106, 92, 0.15);
}

.featured-pager-actions {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.featured-load-hint {
  margin: 0.1rem 0 0.05rem;
  padding: 0.06rem 0;
  border-radius: 0;
  font-size: 0.75rem;
  color: rgba(76, 104, 95, 0.95);
  background: transparent;
  border: 0;
  line-height: 1.35;
}

.featured-load-hint.is-warn {
  color: rgba(138, 84, 0, 0.95);
}

.featured-flow {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0 0;
}

.featured-flow > .featured-row {
  display: grid;
  grid-template-columns:
    minmax(8.75rem, 11.25rem)
    minmax(0, 1fr)
    minmax(17rem, 24rem);
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 0.85rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(45, 106, 92, 0.08);
}

.featured-flow > .featured-row:last-child {
  border-bottom: none;
}

.featured-axis {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.4rem 0 1.05rem;
  margin-left: 3px;
  border-left: 2px solid rgba(45, 106, 92, 0.2);
  min-height: 2.65rem;
  text-align: right;
}

.featured-dot {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--paper);
  box-sizing: content-box;
}

.featured-when {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.featured-detail {
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: 36rem;
}

.featured-stock {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.strategy-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
  vertical-align: middle;
}

.strategy-tag {
  display: inline-block;
  padding: 0.03rem 0.32rem;
  border: 1px solid rgba(26, 105, 83, 0.14);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(26, 105, 83, 0.62);
  background: rgba(26, 105, 83, 0.03);
  line-height: 1.25;
}

/* Featured style tier (A/B/S from 20d return at pick): small, next to name */
.style-tier-mark {
  margin-left: 0.22em;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(32, 88, 72, 0.52);
  vertical-align: 0.12em;
  user-select: none;
}

.style-tier-mark--featured {
  font-size: 0.58rem;
  color: rgba(28, 82, 68, 0.58);
}

.featured-profile-stake {
  margin-top: 0.28rem;
}

.featured-stake-tag {
  display: inline-block;
  padding: 0.06rem 0.42rem;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 193, 7, 0.08);
  line-height: 1.35;
}

.featured-stake-num {
  color: var(--gold, #c9a962);
  font-weight: 600;
}

.featured-byline .featured-stake-num {
  font-weight: 600;
}

.featured-byline {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.featured-byline .sign-name {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.featured-byline .sign-name:hover {
  text-decoration: underline;
}

.featured-detail .muted {
  font-weight: 500;
  font-size: 0.9em;
}

/* 战绩数轴（-10% ~ +20%） */
.featured-track {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  padding-left: 0.2rem;
}

.featured-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.06rem;
}

.perf-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.perf-subline {
  font-size: 0.78rem;
  color: var(--muted);
}

.perf-inline-pct {
  font-size: 0.74rem;
  font-weight: 600;
}

.perf-inline-up {
  color: #cc2f2f !important;
}

.perf-inline-down {
  color: #198b57 !important;
}

.perf-inline-neutral {
  color: var(--muted);
}

.btn-featured-close {
  padding: 0.03rem 0.28rem !important;
  min-height: 1.04rem !important;
  min-width: 0 !important;
  font-size: 0.62rem !important;
  line-height: 1;
  border-radius: 999px;
  margin-left: 0.12rem;
  color: #49655f;
  border-color: rgba(45, 106, 92, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.btn-featured-close:hover {
  color: var(--teal-dark);
  border-color: rgba(45, 106, 92, 0.38);
  background: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

.featured-track-head .inline-form {
  margin-left: auto;
}

.perf-fail {
  color: #1b7a5c;
}

.perf-ok {
  color: #c42b2b;
}

.perf-progress {
  color: var(--teal-dark);
}

.perf-muted {
  color: var(--muted);
  font-weight: 500;
}

.featured-rail-box {
  margin: 0.2rem 0 0.55rem;
}

.featured-rail-line {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  overflow: visible;
}

.featured-rail-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(168, 224, 178, 0.88) 0%,
    rgba(168, 224, 178, 0.88) var(--base-left, 33.3333%),
    rgba(255, 192, 192, 0.88) var(--base-left, 33.3333%),
    rgba(255, 192, 192, 0.88) 100%
  );
}

.featured-rail-progress {
  position: absolute;
  top: 0;
  display: block;
  height: 100%;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  min-width: 0;
}

.featured-rail-progress[data-dir="neutral"] {
  opacity: 0;
}

.featured-marker-base {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #b8daf4;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(120, 170, 210, 0.35);
  pointer-events: none;
  z-index: 2;
}

.featured-scale-wrap {
  position: relative;
  margin-top: 0.42rem;
  min-height: 2.35rem;
}

.featured-scale-row {
  position: relative;
  height: 1.08rem;
}

.featured-scale-row + .featured-scale-row {
  margin-top: 0.06rem;
}

.featured-scale-pct {
  font-size: 0.72rem;
  color: var(--muted);
}

.featured-scale-pr {
  font-size: 0.74rem;
  color: var(--muted);
}

.featured-scale-row span {
  position: absolute;
  white-space: nowrap;
  line-height: 1.15;
  color: var(--muted);
  transform: translateX(-50%);
}

.featured-scale-row .tick-sl,
.featured-scale-row .scale-num.tick-sl {
  left: 0%;
  transform: translateX(0);
}

.featured-scale-row .tick-base,
.featured-scale-row .scale-num.tick-base {
  left: 33.3333%;
}

.featured-scale-row .tick-t1,
.featured-scale-row .scale-num.tick-t1 {
  left: 66.6666%;
}

.featured-scale-row .tick-t2,
.featured-scale-row .scale-num.tick-t2 {
  left: 100%;
  transform: translateX(-100%);
}

.featured-scale-row .is-base {
  font-weight: 600;
  color: var(--ink);
}

.featured-scale-row .is-hit {
  font-weight: 700;
  color: var(--ink);
}

.perf-gate-note {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.featured-track.perf-progress .featured-rail-progress[data-dir="up"],
.featured-track.perf-ok .featured-rail-progress[data-dir="up"] {
  background: rgba(196, 52, 52, 0.78);
}

.featured-track.perf-progress .featured-rail-progress[data-dir="down"],
.featured-track.perf-fail .featured-rail-progress[data-dir="down"] {
  background: rgba(28, 118, 86, 0.78);
}

@media (max-width: 960px) {
  .featured-flow > .featured-row {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 0.55rem;
  }

  .featured-track {
    grid-column: 1 / -1;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(45, 106, 92, 0.12);
    margin-top: 0.15rem;
  }
}

@media (max-width: 520px) {
  .featured-flow {
    padding-top: 0.35rem;
  }

  .featured-flow > .featured-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.4rem;
    align-items: start;
    padding: 0.75rem 0;
  }

  .featured-axis {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    min-height: 0;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .featured-dot {
    position: static;
    transform: none;
    margin-top: 0.22rem;
    flex-shrink: 0;
  }

  .featured-when {
    flex: 1;
    min-width: 0;
  }

  .featured-detail {
    max-width: none;
    padding-left: 1.6rem;
  }

  .featured-track {
    padding-left: 0;
  }

  .featured-scale-pct {
    font-size: 0.66rem;
  }

  .featured-scale-pr {
    font-size: 0.68rem;
  }
}

.pool-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.pool-tag-on {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(45, 106, 92, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
}

.hot-themes-panel {
  margin: 0 0 1.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 92, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 245, 0.75));
  box-shadow: 0 10px 26px rgba(28, 66, 58, 0.06);
}

.hot-themes-head {
  margin-bottom: 0.75rem;
}

.hot-themes-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--teal-dark);
}

.hot-themes-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hot-themes-col {
  min-width: 0;
}

.hot-themes-col-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.hot-themes-meta {
  margin: 0;
  line-height: 1.55;
}

.hot-themes-meta code {
  font-size: 0.78rem;
  padding: 0.08rem 0.28rem;
  border-radius: 6px;
  background: rgba(45, 106, 92, 0.08);
  color: var(--teal-dark);
}

.hot-themes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

/* 与下方策略卡一致：可见标题不在 <a> 内；整块点击由透明覆盖层承担，避免悬停给全文划线下划线 */
.hot-theme-card {
  position: relative;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 106, 92, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.hot-theme-card-main {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  min-width: 0;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.hot-theme-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

.hot-theme-card-stretch:focus-visible {
  outline: 2px solid rgba(45, 106, 92, 0.38);
  outline-offset: 2px;
}

.hot-theme-rank {
  flex: 0 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-dark);
  background: rgba(45, 106, 92, 0.1);
  border-radius: 10px;
}

.hot-theme-body {
  flex: 1;
  min-width: 0;
}

.hot-theme-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.hot-theme-name {
  font-weight: 650;
  color: var(--ink);
}

.hot-theme-code {
  font-size: 0.82rem;
}

.hot-board-code {
  font-size: 0.86rem;
}

.hot-board-code-cell {
  text-align: left;
}

.hot-board-code-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 2.1rem;
  flex-wrap: wrap;
}

.hot-board-code-main {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hot-board-tag-col {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

.hot-board-tag-col .strategy-tag {
  margin: 0;
}

.hot-board-page .strategy-dashboard-title {
  font-size: clamp(1.16rem, 2.3vw, 1.42rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  margin: 0;
}

.hot-board-overview {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 106, 92, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.hot-board-overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hot-board-commentary {
  margin: 0.45rem 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(26, 36, 33, 0.88);
  font-size: 0.86rem;
  line-height: 1.58;
}

.hot-board-pick-tip {
  margin: 0;
}

.hot-board-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.hot-board-loading-overlay[hidden] {
  display: none !important;
}

.hot-board-loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  text-align: center;
  pointer-events: none;
}

.hot-board-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(45, 106, 92, 0.2);
  border-top-color: #2d6a5c;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(26, 36, 33, 0.12);
  animation: hot-board-loading-spin 0.85s linear infinite;
}

@keyframes hot-board-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.hot-board-loading-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hot-board-loading-hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(26, 36, 33, 0.72);
  line-height: 1.5;
}

.hot-board-loading-hint[hidden] {
  display: none !important;
}

.hot-board-loading-overlay.hot-board-market-error .hot-board-loading-spinner {
  display: none;
}

.hot-board-loading-overlay.hot-board-market-error .hot-board-loading-title {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 1.05rem;
  font-weight: 600;
  color: #a33b2b;
  letter-spacing: 0.02em;
}

.featured-tier-quota-label {
  cursor: help;
  border-bottom: 1px dotted rgba(26, 36, 33, 0.35);
}

.hot-board-list-head {
  align-items: baseline;
}

.hot-board-list-head .section-title {
  margin: 0;
}

.hot-board-list-head .hot-board-pick-tip {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.hot-board-page #screen-result-table {
  table-layout: auto;
}

.hot-board-page #screen-result-table th,
.hot-board-page #screen-result-table td {
  padding: 0.68rem 0.78rem;
  text-align: left;
}

.hot-board-page #screen-result-table th:nth-child(1),
.hot-board-page #screen-result-table td:nth-child(1),
.hot-board-page #screen-result-table th:nth-child(2),
.hot-board-page #screen-result-table td:nth-child(2),
.hot-board-page #screen-result-table th:nth-child(3),
.hot-board-page #screen-result-table td:nth-child(3),
.hot-board-page #screen-result-table th:nth-child(4),
.hot-board-page #screen-result-table td:nth-child(4),
.hot-board-page #screen-result-table th:nth-child(5),
.hot-board-page #screen-result-table td:nth-child(5),
.hot-board-page #screen-result-table th:nth-child(6),
.hot-board-page #screen-result-table td:nth-child(6),
.hot-board-page #screen-result-table th:nth-child(7),
.hot-board-page #screen-result-table td:nth-child(7) {
  width: auto;
  min-width: 0;
  max-width: none;
}

.hot-board-page #screen-result-table th:nth-child(8),
.hot-board-page #screen-result-table td:nth-child(8) {
  width: 5.4rem;
  min-width: 5.4rem;
  max-width: 5.4rem;
}

.hot-board-page .screen-cell-name .screen-name-main {
  line-height: 1.28;
}

.hot-theme-tag {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.18);
  color: #7a5f1f;
  font-weight: 600;
}

.hot-theme-leader {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.hot-leader-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(45, 106, 92, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
}

.hot-leader-pct {
  margin-left: 0.35rem;
  font-weight: 650;
}

.hot-leader-pct.up {
  color: #c42b2b;
}

.hot-leader-pct.down {
  color: #198b57;
}

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

.strategy-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strategy-card {
  border: 1px solid rgba(45, 106, 92, 0.16);
  border-radius: 14px;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 249, 0.82));
  box-shadow: 0 8px 20px rgba(28, 66, 58, 0.08);
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.strategy-card h3,
.strategy-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}

.strategy-desc {
  margin: 0;
  line-height: 1.55;
  color: rgba(26, 36, 33, 0.76);
}

.strategy-enter-wrap {
  margin: auto 0 0;
  padding-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.strategy-enter {
  min-width: 0;
  padding: 0.28rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid rgba(45, 106, 92, 0.22);
  background: linear-gradient(180deg, rgba(232, 245, 240, 0.98), rgba(220, 238, 232, 0.92));
  color: var(--teal-dark);
  box-shadow: 0 1px 3px rgba(45, 106, 92, 0.08);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.strategy-center-panel {
  background:
    radial-gradient(circle at top left, rgba(230, 242, 238, 0.9), transparent 34%),
    radial-gradient(circle at top right, rgba(226, 236, 245, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(248, 251, 250, 0.97), rgba(241, 247, 245, 0.95));
  border: 1px solid rgba(45, 106, 92, 0.14);
  box-shadow: 0 18px 44px rgba(28, 66, 58, 0.1);
}

.strategy-center-panel .hero-title {
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}

.strategy-center-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.strategy-center-title-row .hero-title {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.sentiment-radar-strip {
  flex: 0 1 min(42vw, 520px);
  max-width: 520px;
  margin-left: auto;
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 0.04rem 0;
}

.sentiment-radar-strip::before,
.sentiment-radar-strip::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 2rem;
  pointer-events: none;
}

/* Few chips + wide fade = chips sit under gradient forever; keep fades tight when list is short. */
.sentiment-radar-strip[data-sentiment-kw="2"]::before,
.sentiment-radar-strip[data-sentiment-kw="2"]::after,
.sentiment-radar-strip[data-sentiment-kw="3"]::before,
.sentiment-radar-strip[data-sentiment-kw="3"]::after {
  width: 0.85rem;
}

.sentiment-radar-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), transparent);
}

.sentiment-radar-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 251, 250, 0.95), transparent);
}

.sentiment-radar-track {
  display: flex;
  width: max-content;
  gap: 0.3rem;
  /* Fixed duration + translateX(-50%) => short tracks move slowly in px/s; scale down when few chips. */
  animation: sentimentRadarScroll 38s linear infinite;
}

/* Exactly two keywords: three identical runs; one loop = translate by one run (-33.33%), faster px/s + less time stuck under edge fades. */
.sentiment-radar-strip.sentiment-radar-strip--dup3 .sentiment-radar-track {
  animation: sentimentRadarScrollDup3 8s linear infinite;
}

.sentiment-radar-strip[data-sentiment-kw="1"] .sentiment-radar-track {
  animation: sentimentRadarScrollDup3 7s linear infinite;
}

.sentiment-radar-strip[data-sentiment-kw="3"] .sentiment-radar-track {
  animation-duration: 11s;
}

.sentiment-radar-strip[data-sentiment-kw="4"] .sentiment-radar-track {
  animation-duration: 22s;
}

.sentiment-radar-strip:hover .sentiment-radar-track {
  animation-play-state: paused;
}

.sentiment-radar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.25rem;
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(45, 106, 92, 0.13);
  border-radius: 999px;
  color: rgba(26, 36, 33, 0.82);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
}

.sentiment-radar-chip:hover {
  color: rgba(26, 36, 33, 0.9);
  border-color: rgba(45, 106, 92, 0.24);
  text-decoration: none;
}

.sentiment-radar-chip strong {
  color: var(--teal-dark);
  font-size: 0.7rem;
}

.sentiment-radar-chip small {
  color: rgba(26, 36, 33, 0.52);
  font-size: 0.58rem;
}

.sentiment-radar-chip em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
}

.sentiment-radar-chip em.up,
.sentiment-trend.up {
  color: #c42b2b;
}

.sentiment-radar-chip em.down,
.sentiment-trend.down {
  color: #2d6a5c;
}

.sentiment-radar-chip em.flat,
.sentiment-trend.flat {
  color: rgba(26, 36, 33, 0.48);
}

@keyframes sentimentRadarScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes sentimentRadarScrollDup3 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333333333%);
  }
}

/* 尊重系统「减少动态效果」偏好：关闭跑马灯与旋转动画，避免前庭不适、降低移动端耗电。 */
@media (prefers-reduced-motion: reduce) {
  .sentiment-radar-track,
  .sentiment-radar-strip.sentiment-radar-strip--dup3 .sentiment-radar-track,
  .sentiment-radar-strip[data-sentiment-kw="1"] .sentiment-radar-track,
  .sentiment-radar-strip[data-sentiment-kw="3"] .sentiment-radar-track {
    animation: none;
    transform: none;
  }
}

.sentiment-detail-panel {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 98, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 249, 0.93));
}

.sentiment-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.sentiment-detail-metrics {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sentiment-detail-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 92, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(26, 36, 33, 0.72);
  font-size: 0.78rem;
}

.sentiment-detail-boards {
  margin: -0.2rem 0 1rem;
}

.sentiment-news-list {
  display: grid;
  gap: 0.72rem;
}

.sentiment-news-card {
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(45, 106, 92, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.sentiment-news-meta {
  display: flex;
  gap: 0.46rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  color: rgba(26, 36, 33, 0.5);
  font-size: 0.72rem;
}

.sentiment-news-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.sentiment-news-card h3 a {
  color: var(--teal-dark);
  text-decoration: none;
}

.sentiment-news-card h3 a:hover {
  text-decoration: underline;
}

.sentiment-news-card p {
  margin: 0.35rem 0 0;
  color: rgba(26, 36, 33, 0.72);
  font-size: 0.86rem;
  line-height: 1.65;
}

.sentiment-rating-form {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
  color: rgba(26, 36, 33, 0.5);
  font-size: 0.72rem;
}

.sentiment-rating-form button {
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(26, 36, 33, 0.62);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.1;
  padding: 0.18rem 0.42rem;
}

.sentiment-rating-form button:hover,
.sentiment-rating-form button.is-active {
  background: rgba(201, 169, 98, 0.16);
  border-color: rgba(201, 169, 98, 0.5);
  color: #9a6b18;
}

.strategy-center-panel .hot-themes-panel {
  border: 1px solid rgba(45, 106, 92, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 245, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 248, 0.9));
  box-shadow: 0 14px 32px rgba(28, 66, 58, 0.08);
}

.strategy-center-panel .hot-themes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.strategy-center-panel .hot-themes-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.strategy-center-panel .hot-themes-panel-title {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.18rem;
  font-weight: 750;
}

.strategy-center-panel .hot-themes-title-wrap .hot-themes-update-note {
  display: inline-block;
  font-size: 0.72rem !important;
  line-height: 1.15;
  font-weight: 400 !important;
  color: var(--muted) !important;
  white-space: nowrap;
  letter-spacing: 0;
  vertical-align: baseline;
}

.strategy-center-panel .hot-themes-panel-subtitle {
  margin: 0;
}

.strategy-center-panel .hot-themes-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 92, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.strategy-center-panel .hot-themes-switch-btn {
  min-width: 3.7rem;
  border: 0;
  background: transparent;
  color: rgba(26, 36, 33, 0.72);
  border-radius: 999px;
  padding: 0.34rem 0.82rem;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.strategy-center-panel .hot-themes-switch-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(45, 106, 92, 0.95), rgba(57, 133, 116, 0.95));
  box-shadow: 0 4px 12px rgba(28, 66, 58, 0.18);
}

.strategy-center-panel .hot-themes-mode-panel[hidden] {
  display: none !important;
}

.strategy-center-panel .hot-themes-list-wide {
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-center-panel .hot-theme-card {
  border: 1px solid rgba(45, 106, 92, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 246, 0.9));
  box-shadow: 0 6px 16px rgba(28, 66, 58, 0.055);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  padding: 0.56rem 0.62rem;
}

.strategy-center-panel .hot-theme-card:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 106, 92, 0.2);
  box-shadow: 0 10px 22px rgba(28, 66, 58, 0.09);
}

.strategy-center-panel .hot-theme-rank {
  color: var(--teal-dark);
  background: linear-gradient(180deg, rgba(214, 232, 226, 0.92), rgba(189, 217, 208, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.strategy-center-panel .hot-theme-name {
  color: var(--ink);
  font-size: 0.97rem;
}

.strategy-center-panel .hot-theme-code {
  color: rgba(26, 36, 33, 0.58);
  font-size: 0.76rem;
}

.strategy-center-panel .hot-leader-label {
  background: rgba(196, 43, 43, 0.12);
  color: #c42b2b;
}

.strategy-center-panel .hot-theme-leader {
  color: var(--ink);
  margin-top: 0.22rem;
  font-size: 0.85rem;
}

.strategy-center-panel .hot-leader-pct.up {
  color: #c42b2b;
}

.strategy-center-panel .strategy-card {
  border: 1px solid rgba(45, 106, 92, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 249, 0.82));
  box-shadow: 0 8px 20px rgba(28, 66, 58, 0.08);
}

.strategy-center-panel .strategy-card::before {
  content: none;
}

.strategy-center-panel .strategy-title {
  color: var(--teal-dark);
  text-shadow: none;
}

.strategy-center-panel .strategy-desc {
  color: rgba(26, 36, 33, 0.76);
}

.strategy-center-panel .strategy-enter:hover {
  border-color: rgba(45, 106, 92, 0.38);
  background: linear-gradient(180deg, rgba(218, 237, 229, 0.98), rgba(205, 228, 219, 0.95));
  color: var(--teal-dark);
  box-shadow: 0 2px 6px rgba(45, 106, 92, 0.12);
}

@media (max-width: 1100px) {
  .strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-center-panel .hot-themes-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .strategy-center-panel .hot-themes-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-center-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
  }

  .sentiment-radar-strip {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-self: stretch;
    margin-left: 0;
  }

  .strategy-center-panel .hot-themes-panel {
    margin-top: 0;
  }

  .sentiment-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sentiment-detail-metrics {
    justify-content: flex-start;
  }

  .strategy-center-panel .hot-themes-switch {
    width: 100%;
  }

  .strategy-center-panel .hot-themes-switch-btn {
    flex: 1 1 0;
  }

  .strategy-center-panel .hot-themes-list-wide {
    grid-template-columns: 1fr;
  }

  .strategy-card {
    min-height: 138px;
  }
}

.kline-jump,
.industry-board-link {
  color: inherit;
  text-decoration: none;
}

.kline-jump:hover,
.industry-board-link:hover {
  text-decoration: underline;
}

.kline-page .kline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.2rem 0 0.35rem;
}

.kline-page .kline-toolbar-left {
  display: inline-flex;
  gap: 0.45rem;
}

.kline-page .kline-top-actions {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.kline-page .kline-toolbar .btn.is-active {
  background: rgba(45, 106, 92, 0.85);
  border-color: rgba(45, 106, 92, 0.85);
  color: #fff;
}

.kline-page .kline-updated-at {
  color: var(--muted);
  white-space: nowrap;
}

.kline-inlay-info {
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 5;
  max-width: calc(100% - 8px);
  pointer-events: none;
  user-select: none;
  font-size: 10px;
  line-height: 1.25;
  color: rgba(62, 78, 73, 0.78);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.88), 0 0 1px rgba(255, 255, 255, 1);
}

.kline-inlay-info .kh-sep {
  opacity: 0.55;
  margin: 0 0.15em;
}

.kline-inlay-info .kh-pct-val.up {
  color: #c03a2b;
  font-weight: 600;
}

.kline-inlay-info .kh-pct-val.down {
  color: #1f8a4c;
  font-weight: 600;
}

.kline-canvas-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(45, 106, 92, 0.18);
  border-radius: 10px;
  background: #fff;
}

.kline-canvas-stack {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

/* 底层与覆盖层必须用相同的缩放方式；勿对 overlay 使用 height:100%，否则会与底图像素对齐错位 */
.kline-canvas-stack canvas#kline-canvas-base {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.kline-canvas-stack canvas.kline-canvas-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  pointer-events: none;
  display: block;
}

.wealth-balance-num {
  color: var(--accent, #c9a227);
}

.wealth-balance-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.65);
}

.wealth-balance-link:hover .wealth-balance-num,
.wealth-balance-link:focus-visible .wealth-balance-num {
  color: #a88418;
}

.wealth-balance-link:focus-visible {
  outline: 2px solid rgba(45, 106, 92, 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}

.featured-plan-stake-row {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.28rem;
  max-width: 11rem;
}

.featured-plan-stake-row > label {
  margin-bottom: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
}

.featured-plan-stake-input {
  width: 100%;
  box-sizing: border-box;
  height: 2rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(26, 36, 33, 0.16);
  background: #fff;
  color: var(--text, #1a2421);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.featured-plan-stake-input::placeholder {
  color: rgba(26, 36, 33, 0.34);
  font-size: 0.86rem;
}

.featured-plan-stake-input:focus {
  outline: none;
  border-color: rgba(45, 106, 92, 0.45);
  box-shadow: 0 0 0 2px rgba(45, 106, 92, 0.1);
}

.featured-plan-stake-input.is-invalid {
  border-color: rgba(196, 72, 72, 0.55);
  box-shadow: 0 0 0 2px rgba(196, 72, 72, 0.1);
}

.featured-plan-stake-input:disabled {
  background: rgba(26, 36, 33, 0.04);
  color: var(--muted);
}

.featured-plan-wealth-note {
  margin: 0;
  font-size: 0.8rem;
}

.wealth-ledger-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.wealth-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.wealth-ledger-table th,
.wealth-ledger-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border, #2a2a2a);
  text-align: left;
  vertical-align: top;
}

.wealth-ledger-table th {
  color: var(--muted, #888);
  font-weight: 600;
}

.wealth-delta-up {
  color: #3ecf8e;
}

.wealth-delta-down {
  color: #f07178;
}

.wealth-delta-neutral {
  color: var(--muted);
}

.wealth-ledger-summary-sep {
  margin: 0 0.35rem;
  color: var(--muted);
}

.wealth-ledger-note {
  max-width: 22rem;
}

.vip-page {
  --vip-ink: #111d21;
  --vip-cyan: #1685a3;
  --vip-amber: #d98a24;
  --vip-line: #d8e1e4;
  padding: 0 0 1rem;
  overflow: hidden;
  border-color: #d8e1e4;
  border-radius: 4px;
  background: #f4f7f8;
  box-shadow: none;
}

.vip-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.55rem 1.15rem 0;
}

.vip-portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--vip-line);
}

.vip-portfolio-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: -1px;
  padding: 0.38rem 0.82rem;
  border-bottom: 2px solid transparent;
  color: #65757a;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
}

.vip-portfolio-tab:hover {
  color: #0e7189;
}

.vip-portfolio-tab.active {
  border-bottom-color: var(--vip-cyan);
  color: var(--vip-ink);
}

.vip-page-meta {
  margin-left: auto;
  padding-bottom: 0.4rem;
  color: #6a787d;
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.vip-stat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin: 1.1rem 1.15rem 0;
  border-top: 1px solid var(--vip-line);
  border-left: 1px solid var(--vip-line);
  background: #fff;
}

.vip-stat-card {
  min-width: 0;
  min-height: 64px;
  padding: 0.58rem 0.62rem;
  border: 0;
  border-right: 1px solid var(--vip-line);
  border-bottom: 1px solid var(--vip-line);
  border-radius: 0;
  background: #fff;
}

.vip-stat-card:first-child {
  box-shadow: inset 0 3px var(--vip-amber);
}

.vip-stat-card:nth-child(2) {
  box-shadow: inset 0 3px var(--vip-cyan);
}

.vip-stat-card span {
  display: block;
  margin-bottom: 0.12rem;
  overflow: hidden;
  color: #66777d;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-stat-card strong {
  color: var(--vip-ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.vip-page .up {
  color: #c0392b;
}

.vip-page .down {
  color: #1e8449;
}

.vip-section {
  margin-top: 1.15rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-top: 1px solid var(--vip-line);
  background: #fff;
}

.vip-chart-head {
  align-items: center;
  gap: 0.8rem;
}

.vip-page .section-title {
  color: var(--vip-ink);
  font-size: 1.02rem;
  letter-spacing: 0;
}

.vip-range-tabs {
  display: grid;
  grid-template-columns: repeat(5, auto);
  overflow: hidden;
  border: 1px solid #ccd8dc;
}

.vip-range-tabs button {
  min-height: 30px;
  padding: 0.3rem 0.58rem;
  border: 0;
  border-left: 1px solid #ccd8dc;
  border-radius: 0;
  background: #f7f9fa;
  color: #5c6b70;
  cursor: pointer;
  font-size: 0.78rem;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.vip-range-tabs button:first-child {
  border-left: 0;
}

.vip-range-tabs button:hover,
.vip-range-tabs button.active {
  background: #e4f2f5;
  color: #0e7189;
}

.vip-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 356px;
  padding: 0.15rem 0 0;
  border: 1px solid var(--vip-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.vip-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 348px;
}

.vip-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 8.8rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccd8dc;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(17, 29, 33, 0.12);
  color: #425158;
  font-size: 0.78rem;
  pointer-events: none;
}

.vip-chart-tooltip strong,
.vip-chart-tooltip span {
  display: block;
}

.vip-chart-tooltip strong {
  margin-bottom: 0.18rem;
  color: var(--vip-ink);
}

.vip-table-wrap {
  max-height: 520px;
}

.vip-trades-wrap {
  max-height: 620px;
}

.vip-daily-wrap {
  max-height: 340px;
  margin-bottom: 0.65rem;
}

.vip-daily-summary {
  margin: -0.25rem 0 0.5rem;
  color: #66777d;
}

.vip-subtitle {
  margin: 0.4rem 0 0.3rem;
  color: var(--vip-ink);
  font-size: 0.95rem;
}

.vip-empty-note {
  margin: 0.2rem 0 0;
}

.vip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.vip-table th,
.vip-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid #e1e7e9;
  text-align: left;
  white-space: nowrap;
}

.vip-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #56686e;
  background: #eef3f4;
  font-weight: 650;
}

.vip-table tbody tr:hover {
  background: #f5f9fa;
}

.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.vip-plan-head {
  justify-content: flex-end;
  gap: 0.65rem;
}

.vip-plan-summary {
  color: #66777d;
  font-size: 0.82rem;
  white-space: nowrap;
}

.vip-plan-alert {
  margin: -0.2rem 0 0.55rem;
  color: #9a3412;
}

.vip-plan-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--vip-line);
  border-top: 3px solid var(--vip-cyan);
  border-radius: 2px;
  background: #fbfcfc;
}

.vip-plan-card:nth-child(2) {
  border-top-color: var(--vip-amber);
}

.vip-plan-card:nth-child(3) {
  border-top-color: #687980;
}

.vip-plan-card h4 {
  margin: 0 0 0.5rem;
  color: var(--vip-ink);
  font-size: 0.96rem;
}

.vip-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vip-plan-list li {
  padding: 0.46rem 0;
  border-top: 1px solid #e1e7e9;
}

.vip-plan-list li:first-child {
  border-top: 0;
}

.vip-plan-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.vip-plan-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-plan-main span,
.vip-plan-meta span {
  color: #66777d;
  font-size: 0.82rem;
}

.vip-plan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.45rem;
  margin-top: 0.14rem;
}

.vip-plan-action {
  color: #425158;
  font-size: 0.82rem;
}

.vip-plan-buy {
  color: #c0392b;
}

.vip-plan-sell,
.vip-plan-risk {
  color: #1e8449;
}

.vip-plan-card em {
  display: block;
  margin-top: 0.08rem;
  color: #56686e;
  font-size: 0.82rem;
  font-style: normal;
}

.vip-trade-details {
  border: 1px solid var(--vip-line);
  border-radius: 0;
  background: #fbfcfc;
}

.vip-trade-details summary {
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  color: var(--vip-ink);
  font-weight: 650;
}

@media (max-width: 960px) {
  .vip-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vip-page-toolbar {
    padding: 0.5rem 0.85rem 0;
  }

  .vip-portfolio-tab {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .vip-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.85rem 0.85rem 0;
  }

  .vip-section {
    margin-top: 0.85rem;
    padding: 0.95rem 0.85rem 1rem;
  }

  .vip-chart-head {
    align-items: flex-start;
  }

  .vip-range-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    justify-content: flex-start;
  }

  .vip-range-tabs button {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .vip-chart-wrap {
    min-height: 318px;
  }

  .vip-chart-wrap canvas {
    height: 310px;
  }

  .vip-plan-head {
    justify-content: flex-start;
  }

  .vip-plan-summary {
    white-space: normal;
  }
}
