/* ========== APPLE STYLE OVERRIDES ========== */

/* ── 全局字体 ── */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1d1d1f; background: #fff; }

/* ── 盘前推荐表现 ── */
.perf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.perf-filter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
}
.perf-filter select {
  height: 38px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 14px;
}
.perf-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.perf-stat {
  padding: 16px;
}
.perf-stat span {
  display: block;
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.perf-stat strong {
  font-size: 22px;
  letter-spacing: -0.4px;
}
.perf-table-card {
  padding: 0;
  overflow: hidden;
}
.perf-table-wrap {
  overflow-x: auto;
}
.perf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}
.perf-table th,
.perf-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
.perf-table th {
  color: #86868b;
  font-size: 12px;
  font-weight: 700;
  background: #fafafa;
}
.perf-table tbody tr:hover {
  background: #fbfbfd;
}
.perf-stock {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.perf-stock span,
.perf-table small {
  color: #86868b;
  font-size: 12px;
}
.perf-up { color: #d70015 !important; }
.perf-down { color: #1a7f37 !important; }
@media (max-width: 900px) {
  .perf-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .perf-filter { display: grid; grid-template-columns: 1fr; }
  .perf-filter label { min-width: 0; }
  .perf-summary-grid { grid-template-columns: 1fr; }
}

/* ── 导航栏苹果风 ── */
.header {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 52px;
  padding: 0 24px;
}
.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1d1d1f;
}
.menu-btn span { background: #1d1d1f; }

/* ── 侧边栏苹果风 ── */
.sidebar {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid rgba(0,0,0,.06);
  padding: 20px 16px;
}
.nav-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #86868b;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover {
  background: rgba(0,0,0,.04);
  color: #1d1d1f;
}
.nav-item.active {
  background: #0071e3;
  color: #fff;
}
.nav-user {
  font-size: 13px;
  color: #86868b;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.02);
  margin-bottom: 8px;
}

/* ── 主内容区 ── */
.main {
  margin-left: 220px;
  padding: 24px 32px 32px;
  padding-top: 80px;
  max-width: 1200px;
}

/* ── 页面标题 ── */
.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.page-desc {
  font-size: 15px;
  color: #86868b;
  margin-bottom: 0;
}

/* ── 卡片苹果风 ── */
.card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover {
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px;
}

/* ── 按钮苹果风 ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #0071e3;
  color: #fff;
}
.btn-primary:hover {
  background: #0077ed;
}
.btn-outline {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid #d2d2d7;
}
.btn-outline:hover {
  border-color: #86868b;
}

/* ── 输入框苹果风 ── */
input, textarea, select {
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  color: #1d1d1f;
}
input::placeholder, textarea::placeholder {
  color: #c7c7cc;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}

/* ── 表格苹果风 ── */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #1d1d1f;
}
.table tr:hover td {
  background: #fafafa;
}

/* ── 徽章苹果风 ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge.green {
  background: #fef2f2;
  color: #dc2626;
}
.badge.red {
  background: #fef2f2;
  color: #dc2626;
}
.badge.blue {
  background: #e8f0fe;
  color: #0071e3;
}

/* ── 空状态 ── */
.empty {
  padding: 40px 24px;
  text-align: center;
  color: #c7c7cc;
  font-size: 14px;
}

/* ── 响应式覆盖 ── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .main {
    margin-left: 0;
    padding: 16px;
    padding-top: 68px;
  }
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform .2s;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; }
  .page-title { font-size: 24px; }
  .card { padding: 16px; }
}

@media (max-width: 480px) {
  .main { padding: 12px; padding-top: 64px; }
  .page-title { font-size: 22px; }
  .card { padding: 14px; }
}

/* ========== 新增苹果风覆盖样式 ========== */

/* ── 页面工具栏苹果风 ── */
.page-toolbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.page-desc {
  font-size: 15px;
  color: #86868b;
  margin-bottom: 0;
}

/* ── 排序栏苹果风 ── */
.sort-bar {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0 24px;
}
.sort-label {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sort-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sort-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1.5px solid #d2d2d7;
  border-radius: 980px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  transition: all .15s;
}
.sort-chip:hover {
  background: #f5f5f7;
  border-color: #86868b;
}
.sort-chip.active {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
}

/* ── 统计卡片苹果风 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.stat-card:hover {
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.stat-label {
  font-size: 13px;
  color: #86868b;
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.5px;
}

/* ── 网格布局苹果风 ── */
.grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
.grid-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── 表单苹果风 ── */
.holding-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 6px;
}
.holding-form input,
.holding-form textarea,
.holding-form select {
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  color: #1d1d1f;
  width: 100%;
}
.holding-form input::placeholder,
.holding-form textarea::placeholder {
  color: #c7c7cc;
}
.holding-form input:focus,
.holding-form textarea:focus,
.holding-form select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}

/* ── 表单网格苹果风 ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
.form-grid > div {
  min-width: 0;
}
.field-span-2 {
  grid-column: span 2;
}

/* ── 表单操作按钮苹果风 ── */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.form-actions button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  border: none;
  cursor: pointer;
}
.form-actions button[type="submit"] {
  background: #0071e3;
  color: #fff;
}
.form-actions button[type="submit"]:hover {
  background: #0077ed;
}
.form-actions .secondary-btn {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid #d2d2d7;
}
.form-actions .secondary-btn:hover {
  border-color: #86868b;
}

/* ── 刷新按钮苹果风 ── */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #fff;
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  color: #1d1d1f;
}
.refresh-btn:hover {
  background: #f5f5f7;
  border-color: #86868b;
}
.refresh-btn.spinning .refresh-icon {
  animation: spin .6s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── 表格苹果风增强 ── */
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.table th {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  background: #fafafa;
}
.table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #1d1d1f;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background: #fafafa;
}

/* ── 列表苹果风 ── */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item {
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.list-item:hover {
  border-color: #d2d2d7;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── 搜索栏苹果风 ── */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search-bar input {
  flex: 1;
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 15px;
  background: #fff;
  color: #1d1d1f;
  transition: border-color .15s, box-shadow .15s;
}
.search-bar input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}
.search-bar button {
  padding: 11px 20px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.search-bar button:hover {
  background: #0077ed;
}

/* ── 徽章苹果风增强 ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge.green {
  background: #fef2f2;
  color: #dc2626;
}
.badge.red {
  background: #fef2f2;
  color: #dc2626;
}
.badge.blue {
  background: #e8f0fe;
  color: #0071e3;
}
.badge.yellow {
  background: #fefce8;
  color: #ca8a04;
}

/* ── 空状态苹果风 ── */
.empty {
  padding: 40px 24px;
  text-align: center;
  color: #c7c7cc;
  font-size: 14px;
  border: 1px dashed #e5e5e7;
  border-radius: 16px;
  background: #fafafa;
}

/* ── 分割布局苹果风 ── */
.split {
  display: flex;
  gap: 24px;
}
.split .left {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
}
.split .right {
  flex: 1;
  min-width: 0;
}

/* ── 目录布局苹果风 ── */
.directory-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.directory-panel {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.directory-panel:hover {
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.directory-panel-title {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}
.directory-group-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.directory-group-item:hover {
  border-color: #d2d2d7;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── 流程步骤苹果风 ── */
.flow-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}
.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 980px;
  border: 1.5px solid #d2d2d7;
  background: #fff;
  color: #86868b;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
}
.flow-step.active {
  border-color: #0071e3;
  color: #0071e3;
}
.flow-step.active span {
  background: #0071e3;
  color: #fff;
}
.flow-step.done {
  border-color: #e6f9f0;
  color: #00b894;
  background: #f0fdf9;
}
.flow-step.done span {
  background: #00b894;
  color: #fff;
}

/* ── 流程卡片苹果风 ── */
.flow-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.flow-card:hover {
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.flow-tip {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
}

/* ── Grouped sidebar navigation (collapsible) ── */

/* Base nav item — everything uses this */
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; margin: 1px 0; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #1d1d1f;
  text-decoration: none; cursor: pointer;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: #f5f5f7; }
.nav-item.active { background: #e8f0fe; color: #0071e3; font-weight: 600; }

/* Group header — looks identical to nav-item, just has an arrow */
.nav-group { }
.nav-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; margin: 1px 0; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #1d1d1f;
  cursor: pointer; user-select: none;
  transition: background .12s;
}
.nav-group-header:hover { background: #f5f5f7; }
.nav-group.expanded .nav-group-header { color: #1d1d1f; }
.nav-group-title {
  font-size: 14px; font-weight: 500; color: inherit;
  text-decoration: none;
}

/* Arrow */
.nav-group-arrow {
  width: 5px; height: 5px;
  border-right: 1.5px solid #c7c7cc; border-bottom: 1.5px solid #c7c7cc;
  transform: rotate(-45deg); transition: transform .2s;
}
.nav-group.expanded .nav-group-arrow { transform: rotate(45deg); }

/* Collapsible body */
.nav-group-body {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.nav-group.expanded .nav-group-body { max-height: 300px; }

/* Sub-items — same size, just indented, slightly lighter */
.nav-group-body .nav-item {
  padding-left: 32px;
  font-size: 13px; color: #86868b;
}
.nav-group-body .nav-item:hover { color: #1d1d1f; background: #f5f5f7; }
.nav-group-body .nav-item.active { color: #0071e3; font-weight: 600; background: #e8f0fe; }

/* Spacing: gap between groups and standalone items */
.nav > .nav-item + .nav-group,
.nav > .nav-group + .nav-item,
.nav > .nav-group + .nav-group { margin-top: 6px; }

/* ========== APPLE UI SYSTEM V2 ========== */
:root {
  --apple-bg: #f5f5f7;
  --apple-surface: rgba(255, 255, 255, 0.92);
  --apple-surface-solid: #ffffff;
  --apple-surface-muted: #fbfbfd;
  --apple-text: #1d1d1f;
  --apple-text-secondary: #6e6e73;
  --apple-text-tertiary: #86868b;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-border-strong: #d2d2d7;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #168a45;
  --apple-red: #d70015;
  --apple-orange: #b25b00;
  --accent-indigo: #5856d6;
  --accent-teal: #30b0c7;
  --accent-amber: #c47f17;
  --accent-rose: #c2185b;
  --accent-slate: #546e7a;
  --apple-radius-sm: 10px;
  --apple-radius-md: 14px;
  --apple-radius-lg: 18px;
  --apple-shadow-card: 0 1px 2px rgba(0,0,0,.035), 0 10px 30px rgba(0,0,0,.035);
  --apple-shadow-hover: 0 2px 4px rgba(0,0,0,.04), 0 16px 42px rgba(0,0,0,.06);
}

html { background: var(--apple-bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  background: var(--apple-bg);
  color: var(--apple-text);
  letter-spacing: -0.01em;
}

.header {
  height: 54px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--apple-border);
}
.logo {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.sidebar {
  top: 54px;
  height: calc(100vh - 54px);
  background: rgba(245,245,247,.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-right: 1px solid var(--apple-border);
}
.main {
  max-width: none;
  width: calc(100% - 220px);
  padding: 84px clamp(20px, 3vw, 40px) 44px;
}

.page-toolbar,
.flow-header,
.pm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-title,
.pm-title {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -0.035em;
  color: var(--apple-text);
  margin: 0 0 6px;
}
.page-desc,
.pm-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--apple-text-secondary);
  margin: 0;
}

.card,
.stat-card,
.pm-stat-card,
.pm-item,
.pm-lesson,
.flow-card,
.directory-panel,
.quote-bar,
.kline-section,
.ai-chat-box,
.report-card,
.holding-mobile-card,
.overview-summary-card,
.quad-card,
.overview-holding-tile,
.theme-card,
.kpl-theme-card {
  background: var(--apple-surface-solid);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow-card);
}
.card,
.stat-card,
.pm-stat-card,
.pm-item,
.pm-lesson,
.flow-card,
.directory-panel { padding: 20px; }
.card:hover,
.stat-card:hover,
.theme-card:hover,
.directory-panel:hover,
.list-item:hover {
  border-color: var(--apple-border-strong);
  box-shadow: var(--apple-shadow-hover);
}
.card h3,
.directory-panel-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--apple-text);
  margin: 0 0 14px;
}

.stats,
.pm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-label,
.pm-stat-label,
.overview-summary-label,
.theme-metrics-grid span {
  color: var(--apple-text-secondary);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}
.stat-value,
.pm-stat-value,
.overview-summary-value {
  color: var(--apple-text);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.btn,
.secondary-btn,
.search-bar button,
.form-actions button,
.mobile-action-btn,
.refresh-btn,
.btn-deep,
.btn-fin,
.btn-watch,
.btn-note {
  border-radius: 999px;
  font-weight: 620;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.btn-primary,
.search-bar button,
.form-actions button[type="submit"],
.mobile-action-btn.primary,
.btn-deep {
  background: var(--apple-blue);
  color: #fff;
  border-color: var(--apple-blue);
}
.btn-primary:hover,
.search-bar button:hover,
.form-actions button[type="submit"]:hover,
.mobile-action-btn.primary:hover,
.btn-deep:hover { background: var(--apple-blue-hover); }
.btn-outline,
.secondary-btn,
.btn-watch,
.btn-note {
  background: #fff;
  color: var(--apple-text);
  border: 1px solid var(--apple-border-strong);
}
.btn:active,
.search-bar button:active,
.form-actions button:active,
.mobile-action-btn:active,
.refresh-btn:active { transform: scale(.98); }

input,
textarea,
select,
.pm-select,
.date-input {
  border: 1px solid var(--apple-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--apple-text);
}
input:focus,
textarea:focus,
select:focus,
.pm-select:focus,
.date-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0,113,227,.12);
}

.table {
  border: 0;
  border-radius: var(--apple-radius-md);
  overflow: hidden;
}
.table th {
  background: var(--apple-surface-muted);
  color: var(--apple-text-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 620;
}
.table td { color: var(--apple-text); }
.table tr:hover td { background: #fbfbfd; }

.badge,
.action-badge,
.pm-badge,
.pred-conf,
.concept-chip,
.stock-tag,
.val-badge,
.leader-badge {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 620;
}
.badge.green,
.pm-badge-green,
.action-badge.signal-strong-buy { background: #eef8f1; color: var(--apple-green); border-color: #d9efdF; }
.badge.red,
.pm-badge-red,
.action-badge.signal-stop-loss { background: #fff0f1; color: var(--apple-red); border-color: #ffd7dc; }
.badge.blue,
.pm-badge-blue,
.action-badge.signal-hold { background: #eef6ff; color: var(--apple-blue); border-color: #d6eaff; }
.badge.yellow,
.pm-badge-yellow,
.action-badge.signal-reduce { background: #fff7e8; color: var(--apple-orange); border-color: #ffe5b8; }
.action-badge.signal-watch { background: #f5f5f7; color: var(--apple-text-secondary); border-color: var(--apple-border); }

.red,
.text-red { color: var(--apple-red); }
.green,
.text-green { color: var(--apple-green); }
.muted,
.text-muted { color: var(--apple-text-secondary); }

.empty,
.pm-empty {
  color: var(--apple-text-secondary);
  background: rgba(255,255,255,.7);
  border: 1px dashed var(--apple-border-strong);
  border-radius: var(--apple-radius-lg);
}
.mh-empty-icon { display: none; }

.list { gap: 10px; }
.list-item {
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-md);
  background: #fff;
}

.sort-bar,
.date-filter-row,
.prediction-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin: 0 0 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow-card);
}
.date-filter-label { font-size: 13px; color: var(--apple-text-secondary); }
.prediction-summary-row { margin-top: 28px; padding: 18px; }
.prediction-summary-item { min-width: 92px; text-align: center; }
.prediction-summary-value { font-size: 24px; font-weight: 720; letter-spacing: -0.03em; color: var(--apple-text); }
.prediction-summary-label { font-size: 12px; color: var(--apple-text-secondary); margin-top: 3px; }

.pred-stitle,
.pm-section {
  margin: 26px 0 12px;
  color: var(--apple-text-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pred-dir-card,
.pred-risk-card,
.pred-stock-card,
.pred-theme-card,
.pm-item,
.pm-lesson {
  border-left: 0 !important;
  box-shadow: var(--apple-shadow-card) !important;
}
.pred-dir-bull,
.pm-item-hit { box-shadow: var(--apple-shadow-card) !important; }
.pred-dir-bear,
.pm-item-miss { box-shadow: var(--apple-shadow-card) !important; }
.pm-item-partial { box-shadow: var(--apple-shadow-card) !important; }
.pred-stock-card { box-shadow: var(--apple-shadow-card) !important; }
.pred-theme-card { box-shadow: var(--apple-shadow-card) !important; }
.pred-risk-card { box-shadow: var(--apple-shadow-card) !important; }

.view-toggle {
  border: 1px solid var(--apple-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--apple-surface-muted);
}
.view-btn {
  border-radius: 999px;
  min-width: 52px;
  padding: 5px 10px;
  color: var(--apple-text-secondary);
}
.view-btn.active {
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.theme-card.active,
.directory-group-item.active {
  border-color: var(--apple-blue);
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 0 0 1px rgba(0,113,227,.18), var(--apple-shadow-card);
}
.directory-group-item.active .directory-group-desc,
.directory-group-item.active .directory-group-count { color: var(--apple-text-secondary); }
.directory-group-item.active .directory-group-count { background: #eef6ff; color: var(--apple-blue); }

.pm-summary-label {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
.pm-summary-label.success { color: var(--apple-green); }
.pm-summary-label.danger { color: var(--apple-red); }
.pm-summary-label.info { color: var(--apple-blue); }

@media (max-width: 768px) {
  .header { height: 54px; }
  .sidebar { top: 54px; width: 280px; }
  .main { width: 100%; margin-left: 0; padding: 74px 14px 28px; }
  .page-toolbar,
  .flow-header,
  .pm-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .stats,
  .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card,
  .stat-card,
  .pm-stat-card,
  .pm-item,
  .pm-lesson,
  .directory-panel { padding: 16px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .stats,
  .pm-stats { grid-template-columns: 1fr; }
}


/* ========== APPLE UI COMPONENTS V3: componentization + inline-style cleanup ========== */
.toolbar-actions,
.card-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-header-row h3 { margin-bottom: 0; }
.section-title-row { margin: 26px 0 12px; }
.section-title,
.pred-stitle,
.pm-section {
  color: var(--apple-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  margin: 28px 0 14px;
}
.pred-stitle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--apple-border);
  margin-bottom: 14px;
}
.pred-stitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pred-stitle[data-section="buy"]::before { background: var(--apple-red); }
.pred-stitle[data-section="buy"] { color: var(--apple-red); }
.pred-stitle[data-section="watch"]::before { background: var(--accent-amber); }
.pred-stitle[data-section="watch"] { color: var(--accent-amber); }
.pred-stitle[data-section="theme"]::before { background: var(--accent-indigo); }
.pred-stitle[data-section="theme"] { color: var(--accent-indigo); }
.pred-stitle[data-section="risk"]::before { background: var(--apple-green); }
.pred-stitle[data-section="risk"] { color: var(--apple-green); }
.pred-stitle[data-section="event"]::before { background: var(--accent-teal); }
.pred-stitle[data-section="event"] { color: var(--accent-teal); }
.pred-stitle:not([data-section])::before { background: var(--apple-text); }
.pred-stitle::after {
  content: '';
  margin-left: auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--apple-text-tertiary);
  border-bottom: 2px solid var(--apple-text-tertiary);
  transform: rotate(-135deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.pred-stitle.collapsed::after {
  transform: rotate(45deg);
}
.pred-section-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  max-height: 3000px;
  opacity: 1;
}
.pred-section-body.collapsed {
  max-height: 0;
  opacity: 0;
}
.section-subtitle { margin-top: 4px; color: var(--apple-text-secondary); font-size: 13px; }

/* Prediction inline tags */
.fp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 2px;
  vertical-align: baseline;
  background: rgba(88,86,214,0.08);
  color: var(--accent-indigo);
}

.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui-row-wrap { flex-wrap: wrap; }
.ui-stack-xs > * + * { margin-top: 4px; }
.ui-stack-sm > * + * { margin-top: 8px; }
.ui-stack-md > * + * { margin-top: 12px; }
.ui-stack-lg > * + * { margin-top: 16px; }
.ui-block { display: block; }
.ui-inline { display: inline; }
.inline-form { display: inline; }
.card-link { display: block; color: inherit; text-decoration: none; }
.ui-card-zero { padding: 0; overflow: hidden; }
.ui-card-relative { position: relative; }
.ui-table-sm { font-size: 12px; }
.ui-table-md { font-size: 13px; }
.ui-meta { color: var(--apple-text-secondary); font-size: 12px; }
.ui-meta-xs { color: var(--apple-text-secondary); font-size: 11px; }
.ui-copy { color: var(--apple-text-secondary); font-size: 13px; line-height: 1.75; }
.ui-title-xs { color: var(--apple-text); font-size: 13px; font-weight: 650; }
.ui-title-sm { color: var(--apple-text); font-size: 15px; font-weight: 650; }
.ui-title-md { color: var(--apple-text); font-size: 17px; font-weight: 650; }
.text-xs { font-size: 12px; }
.text-2xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 18px; }
.font-semibold { font-weight: 650; }
.text-brand,
.text-info { color: var(--apple-blue); }
.text-success { color: var(--apple-green); }
.text-danger { color: var(--apple-red); }
.text-warning { color: var(--apple-orange); }
.text-tertiary { color: var(--apple-text-tertiary); }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.tone-success .stat-value { color: var(--apple-green); }
.tone-warning .stat-value { color: var(--apple-orange); }
.tone-danger .stat-value { color: var(--apple-red); }
.tone-info .stat-value { color: var(--apple-blue); }
.is-up { color: var(--apple-red); }
.is-down { color: var(--apple-green); }
.is-neutral { color: var(--apple-text-secondary); }
.row-highlight { background: #fff7e8; font-weight: 650; }
.admin-link { color: #6c5ce7; font-weight: 650; }

.form-field-stack { margin-top: 12px; }
.form-field-stack label,
.modal-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--apple-text-secondary);
  font-size: 12px;
  font-weight: 560;
}

/* Predictions components */
.pred-top-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .pred-top-grid { grid-template-columns: 3fr 2fr; } }
.pred-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 640px) { .pred-grid-2 { grid-template-columns: 1fr; } }
.pred-card-link { color: inherit; text-decoration: none; margin-bottom: 0; }
.pred-card-spaced { margin-bottom: 0; }
.pred-card-compact { margin-bottom: 0; }
.pred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pred-card-header-lg { margin-bottom: 10px; }
.pred-card-title { color: var(--apple-text); font-size: 15px; font-weight: 650; }
.pred-card-title-lg { color: var(--apple-text); font-size: 17px; font-weight: 650; }
.pred-card-content { color: var(--apple-text-secondary); font-size: 13px; line-height: 1.75; }
.pred-card-operation { box-shadow: var(--apple-shadow-card) !important; border: 1px solid var(--apple-border) !important; }
.pred-card-watch { box-shadow: var(--apple-shadow-card) !important; border: 1px solid var(--apple-border) !important; }
.pred-muted-date { color: #c7c7cc; }
.pred-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  color: var(--apple-text-secondary);
  font-size: 12px;
}
.pred-conf { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 999px; }
.pred-conf-high { background: #fff0f1; color: var(--apple-red); }
.pred-conf-mid { background: #fff7e8; color: var(--accent-amber); }
.pred-conf-low { background: #f0f5ff; color: var(--accent-indigo); }
.fp-gap { height: 10px !important; }
.fp-heading { font-size: 13px !important; font-weight: 650 !important; color: var(--apple-text) !important; margin: 10px 0 4px !important; }
.fp-item,
.fp-line { font-size: 13px !important; line-height: 1.75 !important; color: var(--apple-text-secondary) !important; margin-bottom: 6px !important; }

/* Postmarket review components */
.pm-select { font-size: 14px; padding: 8px 14px; font-family: inherit; }
.pm-stat-card { text-align: center; }
.pm-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pm-item-title { color: var(--apple-text); font-size: 15px; font-weight: 650; }
.pm-badge { font-size: 11px; padding: 3px 8px; }
.pm-reasoning { color: var(--apple-text-secondary); font-size: 13px; line-height: 1.75; }
.pm-chain {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--apple-bg);
  border-radius: 10px;
  color: var(--apple-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.pm-lesson-title { color: var(--apple-text); font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.pm-lesson-text { color: var(--apple-text-secondary); font-size: 13px; line-height: 1.6; }
.pm-empty-hint { display: block; margin-top: 4px; font-size: 13px; }

/* Holdings components */
.action-badge { display: inline-block; padding: 2px 8px; font-size: 12px; white-space: nowrap; }
.recommendation-strip.signal-strong-buy { border-left: 4px solid var(--apple-green); background: #f0fff4; }
.recommendation-strip.signal-hold { border-left: 4px solid var(--apple-blue); background: #f0faff; }
.recommendation-strip.signal-reduce { border-left: 4px solid #ffc107; background: #fffdf0; }
.recommendation-strip.signal-stop-loss { border-left: 4px solid var(--apple-red); background: #fff5f5; }
.recommendation-strip.signal-watch { border-left: 4px solid var(--apple-text-secondary); background: #f8f9fa; }
.outer-inner-strip { margin: 8px 0; padding: 0 4px; }
.oi-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #eee; }
.oi-outer { background: var(--apple-red); transition: width .3s; }
.oi-inner { background: var(--apple-green); transition: width .3s; }
.oi-labels { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11px; }

/* Stock research components */
.quote-footnote { margin-top: 8px; color: var(--apple-text-tertiary); font-size: 11px; }
.kline-title { font-size: 13px; font-weight: 650; }
.search-results-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.search-result-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 10px; background: #fff; border: 1px solid #ddd; font-size: 16px; text-decoration: none; color: var(--apple-text); transition: border-color .15s, background .15s; font-weight: 600; }
.search-result-pill:hover { border-color: var(--apple-red); background: #fff5f6; }
.kline-chip-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.kline-chip-legend span { position: relative; padding-left: 18px; color: var(--apple-text-secondary); font-size: 11px; font-weight: 620; }
.kline-chip-legend span::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; transform: translateY(-50%); border-radius: 2px; background: currentColor; }
.kline-chip-legend .legend-chip-peak { color: #7c3aed; }
.kline-chip-legend .legend-main-cost { color: var(--apple-red); }
.kline-chip-legend .legend-small-cost { color: #2563eb; }
.kline-chip-legend .legend-avg-cost { color: #f59e0b; }
.kline-chip-legend .legend-profit { color: var(--apple-red); font-weight: 700; }
.kline-chip-legend .legend-profit i { background: var(--apple-red); }
.kline-chip-legend span i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.kline-chip-legend .legend-chip-peak i { background: #7c3aed; }
.kline-chip-legend .legend-main-cost i { background: var(--apple-red); }
.kline-chip-legend .legend-small-cost i { background: #2563eb; }
.kline-chip-legend .legend-avg-cost i { background: #f59e0b; }
.kline-chip-container { display: flex; gap: 0; }
.kline-chip-col { flex: 1; min-width: 0; }
.kline-chip-col .chart-kline { height: 360px; }
.kline-chip-col .chart-volume { height: 100px; }
.chip-side-panel { width: 180px; height: 360px; flex-shrink: 0; position: relative; background: #fafbfc; border-left: 1px solid #eee; overflow: hidden; }
.chip-bars-wrap { position: absolute; inset: 0; height: 360px; padding: 0; overflow: hidden; }
.chip-bar-row { position: absolute; right: 0; height: 5px; margin: 0; border-radius: 2px 0 0 2px; min-width: 3px; transform: translateY(-50%); transition: top .08s linear, width .12s ease; z-index: 1; }
.chip-bar-row.chip-profit { background: rgba(215, 0, 21, 0.55); }
.chip-bar-row.chip-loss { background: rgba(37, 99, 235, 0.45); }
.chip-avg-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #f59e0b; color: #f59e0b; font-size: 9px; padding-left: 2px; transform: translateY(-50%); pointer-events: none; z-index: 3; background: rgba(250,251,252,.72); }
.chip-zone-label { position: absolute; left: 4px; right: 4px; transform: translateY(-50%); font-size: 9px; padding: 2px 4px; font-weight: 600; border-radius: 6px; background: rgba(255,255,255,.78); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.chip-zone-main { color: var(--apple-red); border-left: 2px solid var(--apple-red); }
.chip-zone-small { color: #2563eb; border-left: 2px solid #2563eb; }
.chip-profit-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--apple-red); padding: 4px 0; border-top: 1px solid #eee; background: rgba(250,251,252,.92); z-index: 4; }
.stock-section { margin-top: 16px; }
.stock-section-title { color: var(--apple-text); font-size: 13px; font-weight: 650; }
.smart-money-panel {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  background: #fff;
}
.smart-money-good { border-color: rgba(215, 0, 21, .28); background: linear-gradient(180deg, #fff5f6, #fff); }
.smart-money-watch { border-color: rgba(255, 149, 0, .35); background: linear-gradient(180deg, #fffaf2, #fff); }
.smart-money-risk { border-color: rgba(22, 138, 69, .35); background: linear-gradient(180deg, #f3fbf6, #fff); }
.smart-money-bad { border-color: rgba(22, 138, 69, .35); background: linear-gradient(180deg, #f3fbf6, #fff); }
.smart-money-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.smart-money-state { color: var(--apple-text); font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.smart-money-badge { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--apple-text); font-size: 12px; font-weight: 700; }
.smart-money-score-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sm-score-item, .sm-kv { padding: 10px; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; background: rgba(255,255,255,.72); }
.sm-score-item span, .sm-kv span { display: block; color: var(--apple-text-secondary); font-size: 11px; }
.sm-score-item strong, .sm-kv strong { display: block; margin-top: 3px; color: var(--apple-text); font-size: 18px; }
.sm-risk strong { color: var(--apple-green); }
.smart-money-kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.smart-money-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.smart-money-block { padding: 10px; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; background: rgba(255,255,255,.72); }
.sm-block-title { margin-bottom: 6px; color: var(--apple-text); font-size: 12px; font-weight: 720; }
.sm-list { margin: 0; padding-left: 18px; color: var(--apple-text-secondary); font-size: 12px; line-height: 1.55; }
.smart-money-evidence, .smart-money-risk-note { margin-top: 10px; }
.smart-money-risk-note { border-color: rgba(255, 59, 48, .18); background: rgba(255, 59, 48, .04); }
.smart-money-advice { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 122, 255, .06); color: var(--apple-text); font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) {
  .smart-money-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-money-kv-grid, .smart-money-columns { grid-template-columns: 1fr; }
}

/* Smart Money v2: chart-first layout */
.smart-money-section { margin-top: 18px; }
.smart-money-shell {
  --sm-accent: #6b7280;
  --sm-soft: rgba(107, 114, 128, .10);
  padding: 18px;
  border: 1px solid var(--apple-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
.smart-money-shell.smart-money-good { --sm-accent: var(--apple-red); --sm-soft: rgba(215, 0, 21, .10); }
.smart-money-shell.smart-money-watch { --sm-accent: #d97706; --sm-soft: rgba(217, 119, 6, .11); }
.smart-money-shell.smart-money-risk { --sm-accent: var(--apple-green); --sm-soft: rgba(22, 138, 69, .10); }
.smart-money-shell.smart-money-bad { --sm-accent: var(--apple-green); --sm-soft: rgba(22, 138, 69, .10); }
.smart-money-shell.smart-money-neutral { --sm-accent: #64748b; --sm-soft: rgba(100, 116, 139, .10); }
.sm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 18px; align-items: start; margin-bottom: 16px; }
.sm-eyebrow { color: var(--apple-text-tertiary); font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sm-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.sm-state-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--sm-accent); color: #fff; font-size: 18px; font-weight: 780; letter-spacing: -.02em; }
.sm-confidence { color: var(--apple-text-secondary); font-size: 12px; font-weight: 620; }
.sm-hero-advice { margin-top: 12px; max-width: 920px; color: var(--apple-text); font-size: 13px; line-height: 1.65; }
.sm-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; max-width: 920px; }
.sm-layer-card { min-height: 96px; padding: 14px 15px; border: 1px solid rgba(0,0,0,.075); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(0,0,0,.035), inset 0 1px 0 rgba(255,255,255,.72); }
.sm-layer-card span { display: block; color: var(--apple-text-tertiary); font-size: 11px; font-weight: 800; letter-spacing: .055em; }
.sm-layer-card strong { display: block; margin-top: 7px; color: var(--apple-text); font-size: 22px; line-height: 1.12; font-weight: 840; letter-spacing: -.03em; }
.sm-layer-card small { display: block; margin-top: 9px; color: var(--apple-text-secondary); font-size: 12px; line-height: 1.45; }
.sm-layer-stage strong { color: var(--sm-accent); }
.sm-layer-action strong { color: #b4233c; }
.sm-layer-entry strong { color: #0071e3; }
.sm-layer-confidence { margin-top: 12px; }
.sm-combo-summary { padding: 13px 15px; border-radius: 16px; background: var(--sm-soft); font-weight: 700; border: 1px solid color-mix(in srgb, var(--sm-accent) 20%, transparent); }
.sm-gauge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sm-accent) calc(var(--score) * 1%), rgba(0,0,0,.07) 0);
}
.sm-gauge-inner { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.sm-gauge-inner strong { color: var(--apple-text); font-size: 18px; line-height: 1; }
.sm-gauge-inner span { margin-top: 3px; color: var(--apple-text-tertiary); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.sm-chart-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 12px; }
.sm-chart-grid-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(260px, .75fr); margin-top: 12px; }
.sm-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.sm-card { padding: 14px; border: 1px solid rgba(0,0,0,.065); border-radius: 16px; background: rgba(255,255,255,.82); }
.sm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sm-card-head span { color: var(--apple-text); font-size: 13px; font-weight: 760; }
.sm-card-head small { color: var(--apple-text-tertiary); font-size: 11px; }
.sm-score-bars { display: grid; gap: 9px; }
.sm-score-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: center; }
.sm-radar-wrap { min-height: 184px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 45%, var(--sm-soft), transparent 68%); }
.sm-radar { width: 100%; max-width: 230px; height: 184px; overflow: visible; }
.sm-radar-ring { fill: none; stroke: rgba(0,0,0,.10); stroke-width: 1; }
.sm-radar-axis { stroke: rgba(0,0,0,.10); stroke-width: 1; }
.sm-radar-area { fill: color-mix(in srgb, var(--sm-accent) 28%, transparent); stroke: none; }
.sm-radar-line { fill: none; stroke: var(--sm-accent); stroke-width: 2.5; stroke-linejoin: round; }
.sm-radar-label { fill: var(--apple-text-secondary); font-size: 9px; font-weight: 650; text-anchor: middle; dominant-baseline: middle; }
.sm-score-row { --bar-color: #94a3b8; }
.sm-score-row.sm-tone-good { --bar-color: #dc2626; }
.sm-score-row.sm-tone-watch { --bar-color: #d97706; }
.sm-score-row.sm-tone-bad { --bar-color: #16a34a; }
.sm-score-label { display: grid; grid-template-columns: 86px 42px; align-items: baseline; gap: 8px; }
.sm-score-label span { color: var(--apple-text-secondary); font-size: 12px; }
.sm-score-label strong { color: var(--apple-text); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.sm-bar-track { height: 7px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.07); }
.sm-bar-fill { height: 100%; border-radius: inherit; background: var(--bar-color); }
.sm-score-hint { margin-top: 3px; color: var(--apple-text-tertiary); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-range-chart { padding: 8px 0 4px; }
.sm-range-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #16a34a, #d97706, #dc2626); }
.sm-range-pin { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%; background: var(--apple-text); box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.sm-range-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--apple-text-secondary); font-size: 11px; }
.sm-range-labels strong { color: var(--apple-text); font-size: 12px; }
.sm-metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sm-metrics-row div { padding: 8px; border-radius: 12px; background: rgba(0,0,0,.035); }
.sm-metrics-row span { display: block; color: var(--apple-text-tertiary); font-size: 10px; }
.sm-metrics-row strong { display: block; margin-top: 2px; color: var(--apple-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.sm-flow-chart { display: grid; gap: 9px; }
.sm-flow-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 70px; align-items: center; gap: 8px; }
.sm-flow-label { color: var(--apple-text-secondary); font-size: 11px; }
.sm-flow-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.07); }
.sm-flow-fill { height: 100%; border-radius: inherit; }
.sm-flow-positive .sm-flow-fill { background: var(--apple-red); }
.sm-flow-negative .sm-flow-fill { background: var(--apple-green); }
.sm-flow-value { color: var(--apple-text); font-size: 11px; font-weight: 680; text-align: right; font-variant-numeric: tabular-nums; }
.sm-flow-positive .sm-flow-value { color: var(--apple-red); }
.sm-flow-negative .sm-flow-value { color: var(--apple-green); }
.sm-cost-axis { padding: 20px 4px 36px; }
.sm-cost-line { position: relative; height: 10px; border-radius: 999px; background: rgba(0,0,0,.08); }
.sm-cost-zone { position: absolute; top: 0; height: 10px; border-radius: 999px; opacity: .92; }
.sm-cost-large { background: rgba(220, 38, 38, .45); }
.sm-cost-small { background: rgba(37, 99, 235, .38); }
.sm-cost-marker { position: absolute; top: -10px; transform: translateX(-50%); min-width: 54px; text-align: center; }
.sm-cost-marker span { display: block; width: 2px; height: 28px; margin: 0 auto 2px; border-radius: 2px; background: var(--apple-text); }
.sm-cost-marker em { display: block; color: var(--apple-text-secondary); font-size: 9px; font-style: normal; white-space: nowrap; }
.sm-cost-marker strong { display: block; color: var(--apple-text); font-size: 10px; font-variant-numeric: tabular-nums; }
.sm-marker-current span { width: 3px; background: var(--sm-accent); }
.sm-marker-avg span { background: #7c3aed; }
.sm-marker-peak span { background: #0f766e; }
.sm-cost-legend { display: flex; flex-wrap: wrap; gap: 6px; color: var(--apple-text-secondary); font-size: 10px; }
.sm-cost-legend span { padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.045); }
.sm-cost-legend .legend-large { background: rgba(220, 38, 38, .10); color: #b91c1c; }
.sm-cost-legend .legend-small { background: rgba(37, 99, 235, .10); color: #1d4ed8; }
.sm-chip-bars { display: grid; gap: 9px; }
.sm-chip-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.sm-chip-row span, .sm-chip-row strong { color: var(--apple-text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.sm-chip-row strong { color: var(--apple-text); text-align: right; }
.sm-chip-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.07); }
.sm-chip-fill { height: 100%; border-radius: inherit; background: #0f766e; }
.sm-chip-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sm-chip-summary div { padding: 8px; border-radius: 12px; background: rgba(0,0,0,.035); }
.sm-chip-summary span { display: block; color: var(--apple-text-tertiary); font-size: 10px; }
.sm-chip-summary strong { display: block; margin-top: 2px; color: var(--apple-text); font-size: 14px; }
.sm-token-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sm-token-list span { display: inline-flex; padding: 5px 8px; border-radius: 10px; background: var(--sm-soft); color: var(--apple-text); font-size: 11px; line-height: 1.35; }
.sm-risk-card { border-color: rgba(22, 163, 74, .24); }
.sm-token-risk span { background: rgba(22, 163, 74, .08); color: #166534; }
.sm-disclaimer { margin-top: 12px; color: var(--apple-text-tertiary); font-size: 10px; line-height: 1.45; }
@media (max-width: 1100px) {
  .sm-chart-grid, .sm-chart-grid-lower, .sm-bottom-grid { grid-template-columns: 1fr; }
  .sm-layer-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 760px) {
  .sm-score-layout { grid-template-columns: 1fr; }
  .sm-hero { grid-template-columns: 1fr; }
  .sm-gauge { display: none; }
  .sm-layer-grid { grid-template-columns: 1fr; gap: 10px; }
  .sm-layer-card { min-height: 0; padding: 12px 14px; }
  .sm-layer-card strong { font-size: 20px; }
  .sm-layer-card small { margin-top: 6px; }
}
@media (max-width: 640px) {
  .smart-money-shell { padding: 14px; border-radius: 18px; }
  .sm-state-pill { font-size: 16px; }
  .sm-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-flow-row { grid-template-columns: 82px minmax(0, 1fr) 62px; }
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.holding-line { margin-top: 8px; color: var(--apple-text-secondary); font-size: 14px; }
.news-answer { margin-top: 8px; padding: 10px; background: #f8f9fa; border-radius: 10px; color: var(--apple-text); font-size: 13px; line-height: 1.6; }
.news-list { margin-top: 8px; }
.news-row { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.news-link { color: #2563eb; font-size: 13px; text-decoration: none; }
.news-meta { margin-left: 6px; color: var(--apple-text-tertiary); font-size: 11px; }
.vip-link {
  display: block;
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  border: 1px solid var(--apple-border);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
}
.vip-link:hover { border-color: var(--apple-border-strong); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.vip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.vip-chip { padding: 1px 6px; border-radius: 6px; background: #f0f0f5; color: var(--apple-text-secondary); font-size: 11px; }
.vip-date { color: #aeaeb2; font-size: 11px; }
.vip-title {
  color: var(--apple-text);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vip-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vip-tag { padding: 1px 6px; border-radius: 8px; background: #f3e5f5; color: #7b1fa2; font-size: 10px; }
.deep-analysis-trigger { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 999; }
.modal-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 90vw);
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.modal-panel-wide { width: min(480px, 90vw); }
.modal-title { margin: 0 0 16px; color: var(--apple-text); }
.modal-code { margin-bottom: 12px; color: var(--apple-text-secondary); font-size: 13px; }
.modal-code-strong { color: var(--apple-text); font-size: 14px; font-weight: 650; }
.modal-field { margin-bottom: 12px; }
.modal-help { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--apple-border-strong); border-radius: 10px; background: var(--apple-bg); color: var(--apple-text); font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.btn-secondary,
.btn-submit { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 620; }
.btn-secondary { background: #fff; border: 1px solid #d1d5db; color: var(--apple-text-secondary); }
.btn-submit { background: var(--apple-blue); border: 0; color: #fff; }
.btn-submit-success { background: #166534; }
.report-shell { position: relative; }
.report-shell-accent { position: relative; border-color: #166534; }
.report-header-title-success { color: #166534; }
.report-status { color: var(--apple-text-secondary); font-size: 12px; }
.ai-card-shell { padding: 0; overflow: hidden; }
.ai-chat-help { margin-left: auto; color: var(--apple-text-secondary); font-size: 11px; }
.loading-state { text-align: center; padding: 40px; color: var(--apple-text-secondary); }
.loading-title { font-size: 24px; margin-bottom: 12px; }
.loading-hint { margin-top: 8px; font-size: 12px; }
.error-state { padding: 20px; color: #ff6b6b; }
.period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #f0f7ff;
  border: 1px solid #b8daff;
  border-radius: 10px;
}
.period-title { color: var(--apple-text); font-weight: 650; }
.period-name { color: #166534; }
.period-next { color: var(--apple-text-secondary); font-size: 13px; }

@media (max-width: 768px) {
  .toolbar-actions { width: 100%; }
  .card-header-row { align-items: flex-start; }
  .pred-card-header { align-items: flex-start; flex-direction: column; }
}
.pm-item-info { box-shadow: var(--apple-shadow-card) !important; }
.inline-meta { margin-left: 8px; }

/* ========== APPLE UI COMPONENTS V4: detail/research pages ========== */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-1-2 { grid-template-columns: 1fr; } }
.subsection-title { margin-bottom: 8px; color: var(--apple-text); font-size: 14px; font-weight: 650; }
.list-sm { font-size: 13px; }
.ml-6 { margin-left: 6px; }
.score-push { margin-left: auto; }
.detail-meta { margin-bottom: 12px; color: var(--apple-text-secondary); font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-count { margin-left: 2px; opacity: .6; }
.chip-theme,
.chip-stock {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
}
.chip-theme { background: #f3e5f5; color: #7b1fa2; }
.chip-stock { background: #e3f2fd; color: #1565c0; }
.validation-block { margin-bottom: 16px; }
.validation-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.validation-details { margin-bottom: 10px; }
.validation-summary { cursor: pointer; color: var(--apple-text); font-size: 13px; font-weight: 650; }
.validation-panel { margin-top: 6px; padding: 10px; border-radius: 10px; color: var(--apple-text); font-size: 13px; }
.validation-panel-pre { white-space: pre-line; }
.validation-line { margin-bottom: 4px; padding-left: 8px; border-left: 2px solid #d1d5db; }
.validation-row { margin-bottom: 4px; }
.failure-box { padding: 10px; border: 1px solid #fecaca; border-radius: 10px; color: var(--apple-text); font-size: 13px; }
.accent-danger { border-left: 3px solid var(--apple-red); }
.accent-info { border-left: 3px solid var(--apple-blue); }
.accent-success { border-left: 3px solid var(--apple-green); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }

.action-signal-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d6eaff;
  flex-shrink: 0;
}
.dim-bar-fill.bar-success { background: var(--apple-green); }
.dim-bar-fill.bar-info { background: var(--apple-blue); }
.dim-bar-fill.bar-warning { background: #ffc107; }
.dim-bar-fill.bar-danger { background: var(--apple-red); }
.risk-list-item { color: var(--apple-red); }
.research-link { color: var(--apple-blue); font-size: 14px; }

/* ========== APPLE UI COMPONENTS V5: legacy inline style replacements ========== */
.hidden { display: none; }
.ui-row-start { display: flex; align-items: flex-start; gap: 12px; }
.ui-row-tight { display: flex; align-items: center; gap: 6px; }
.ui-row-compact { display: flex; align-items: center; gap: 8px; }
.ui-row-wide { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ui-card-compact { padding: 10px 16px; }
.ui-center-card { text-align: center; padding: 40px; }
.ui-empty-large { padding: 80px 20px; }
.ui-empty-title { color: var(--apple-text); font-size: 16px; margin-bottom: 6px; }
.ui-empty-desc { color: var(--apple-text-secondary); font-size: 13px; }
.ui-link-xs { color: #1d4ed8; font-size: 11px; }
.ui-link-muted { color: inherit; text-decoration: none; }
.ui-iconless-space { font-size: 40px; margin-bottom: 12px; }
.ui-input-search { width: 100%; padding: 10px 14px 10px 36px; border: 1.5px solid var(--apple-border-strong); border-radius: 10px; font-size: 13px; }
.ui-input-left-icon { padding-left: 36px; }
.ui-primary-soft { background: var(--apple-blue); color: #fff; border-color: var(--apple-blue); }
.ui-form-top { margin-top: 16px; }
.ui-form-row { margin-top: 12px; }
.ui-divider-top { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.ui-divider-dashed { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #e5e7eb; }
.ui-report-box { color: var(--apple-text); font-size: 12px; line-height: 1.7; max-height: 400px; overflow-y: auto; background: var(--apple-bg); border-radius: 10px; padding: 12px; }
.ui-note-box { background: var(--apple-bg); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.ui-ai-box { background: var(--apple-bg); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.ui-panel-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ui-panel-title { color: var(--apple-text); font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.ui-source { color: var(--apple-text-secondary); font-size: 10px; margin-bottom: 4px; }
.ui-subtle-line { color: var(--apple-text-secondary); font-size: 11px; margin-bottom: 8px; }
.ui-subtitle-xs { color: var(--apple-text-secondary); font-size: 11px; margin-bottom: 6px; }
.ui-empty-pad { color: var(--apple-text-secondary); padding: 12px; }
.ui-loading-pad { color: var(--apple-text-secondary); font-size: 13px; padding: 20px; text-align: center; }
.ui-min-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-close-btn { border: 0; background: none; color: var(--apple-text-secondary); cursor: pointer; font-size: 18px; }
.ui-scroll-panel { flex: 1; overflow-y: auto; padding: 16px 18px; }
.ui-chip-count { margin-left: 2px; opacity: .6; }
.ui-tag-muted { background: var(--apple-bg); color: var(--apple-text-secondary); }
.ui-tag-buy { background: #d1fae5; color: #065f46; }
.ui-tag-sell { background: #fee2e2; color: #991b1b; }
.ui-state-green { background: rgba(215,0,21,0.06); }
.ui-state-red { background: rgba(22,138,69,0.06); }
.ui-state-blue { background: #eff6ff; }
.ui-stage-accumulate { background: rgba(215,0,21,0.06) !important; }
.ui-stage-advance { background: rgba(88,86,214,0.06) !important; }
.ui-stage-distribute { background: rgba(22,138,69,0.06) !important; }
.ui-stage-neutral { background: #f5f5f7; }
.ui-purple-grad { background: linear-gradient(135deg, #667eea22, #764ba222); }
.ui-purple { color: #4f46e5; }
.ui-stock-stage-tag { background: #fff; font-size: 10px; font-weight: 650; border-radius: 999px; padding: 2px 8px; }
.ui-trend-row { margin-bottom: 8px; padding: 6px 0; }
.ui-trend-row + .ui-trend-row { border-top: 1px solid var(--apple-border); }
.ui-trend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ui-trend-title { color: var(--apple-text); font-size: 12px; font-weight: 560; }
.ui-trend-total { color: var(--apple-text-tertiary); font-size: 10px; }
.ui-trend-bars { display: flex; gap: 2px; align-items: flex-end; height: 20px; }
.ui-bar-45 { width: 45%; }
.confidence-fill[data-width],
.vr-fill[data-width],
.lsd-fill[data-width],
.bar-fill[data-width] { width: 0; }
.pre-line { line-height: 1.6; white-space: pre-line; }
.align-right { text-align: right; }
.ui-trend-bar { flex: 1; min-height: 2px; border-radius: 2px; background: #f0f0f5; }
.ui-trend-bar.active { background: rgba(123,31,162,.45); }
.clamp-sm { max-height: 60px; overflow: hidden; }
.mb-6 { margin-bottom: 6px; }
.theme-detail-title.compact { margin: 8px 0; }
.trend-chart-mini { width: 100%; height: 50px; }
.ml-4 { margin-left: 4px; }
.ml-20 { margin-left: 20px; }
.mt-20 { margin-top: 20px; }
.form-label-compact { display:block; margin-bottom:6px; color:var(--apple-text); font-size:13px; font-weight:650; }

/* ========== APPLE UI SYSTEM V6: premium neutral base + A-share red-up/green-down ========== */
:root {
  --market-up: #d70015;
  --market-up-bg: #fff1f2;
  --market-up-border: #ffd7dc;
  --market-down: #168a45;
  --market-down-bg: #eef8f1;
  --market-down-border: #d9efdf;
  --premium-neutral-bg: #f5f5f7;
  --premium-neutral-border: #e5e5e7;
}

/* A股色彩规则：涨/好 = 红；跌/坏 = 绿 */
.red,
.is-up,
.market-up,
.text-red { color: var(--market-up) !important; }
.green,
.is-down,
.market-down { color: var(--market-down) !important; }

.badge.green,
.pm-badge-green,
.action-badge.signal-strong-buy,
.badge-result-correct,
.badge-long,
.badge-breakout {
  background: rgba(215,0,21,0.08) !important;
  color: #c41a1a !important;
  border-color: rgba(215,0,21,0.18) !important;
}
.badge.red,
.pm-badge-red,
.action-badge.signal-stop-loss,
.badge-result-wrong,
.badge-result-loss,
.badge-short,
.badge-reversal {
  background: rgba(22,138,69,0.08) !important;
  color: #15803d !important;
  border-color: rgba(22,138,69,0.18) !important;
}
.badge.blue,
.pm-badge-blue,
.action-badge.signal-hold,
.badge-direction,
.badge-theme,
.badge-stock,
.badge-event,
.badge-status-testing,
.badge-trend,
.val-badge.pe,
.stock-tag.industry-tag,
.concept-chip,
.stock-tag,
.wl-tag,
.news-tag,
.news-cluster-count,
.tree-badge.stocks,
.badge-user,
.fi-blue,
.note-tag,
.qn-tag,
.qn-btn-pin.is-pinned {
  background: rgba(88,86,214,0.08) !important;
  color: var(--accent-indigo) !important;
  border-color: rgba(88,86,214,0.15) !important;
}
.badge.yellow,
.pm-badge-yellow,
.action-badge.signal-reduce {
  background: rgba(196,127,23,0.10) !important;
  color: var(--accent-amber) !important;
  border-color: rgba(196,127,23,0.20) !important;
}

.tone-success .stat-value,
.text-success { color: #c41a1a !important; }
.tone-danger .stat-value,
.text-danger { color: #15803d !important; }
.tone-warning .stat-value { color: var(--accent-amber) !important; }
.tone-info .stat-value { color: var(--accent-indigo) !important; }

/* Remove cheap gradients / pale-blue panels. Keep surfaces white or Apple gray. */
.hero h1 span,
.g1,.g2,.g3,.g4,.g5,
.kpl-theme-lb,
.hero-bull,
.hero-bear,
.hero-neutral,
.sm-ai,
.ui-purple-grad,
.action-signal-card.signal-strong-buy,
.action-signal-card.signal-hold,
.action-signal-card.signal-reduce,
.action-signal-card.signal-stop-loss,
.action-signal-card.signal-watch,
.vr-fill.hot,
.vr-fill.warm,
.vr-fill.cold,
.lsd-fill {
  background-image: none !important;
  background: var(--apple-surface-solid) !important;
}
.hero h1 span {
  color: var(--apple-text) !important;
  -webkit-text-fill-color: currentColor !important;
}
.g1,.g2,.g3,.g4,.g5,
.bar-fill { background: var(--apple-text) !important; }
.g1,.bar-fill.red,.bar-fill.g1 { background: var(--market-up) !important; }
.g4,.bar-fill.green,.bar-fill.g4 { background: var(--market-down) !important; }

.sm-ai,
.action-signal-card,
.hero-bull,
.hero-bear,
.hero-neutral {
  border: 1px solid var(--apple-border) !important;
  box-shadow: var(--apple-shadow-card) !important;
}
.period-bar,
.ai-chat-header,
.chat-msg.user .chat-bubble,
.wl-chat-bubble.user .bubble,
.dev-banner,
.news-refresh,
.btn-watch.in-list,
.btn-note.has-note,
.chat-avatar.ai,
.chat-avatar.human,
.ui-state-blue,
.chip-stock,
.wl-btn-primary,
.note-btn-primary,
.lmi-mv {
  background: var(--premium-neutral-bg) !important;
  color: var(--apple-text-secondary) !important;
  border-color: var(--premium-neutral-border) !important;
}
.chat-msg.user .chat-bubble,
.wl-chat-bubble.user .bubble {
  color: var(--apple-text) !important;
}
.nav-item.active,
.nav-group-body .nav-item.active,
.directory-group-item.active .directory-group-count {
  background: rgba(88,86,214,0.08) !important;
  color: var(--accent-indigo) !important;
  border: 1px solid rgba(88,86,214,0.15) !important;
}

/* Market-specific fills */
.dim-bar-fill.bar-success,
.oi-outer,
.ui-state-green,
.vr-fill.hot,
.lsd-fill {
  background: rgba(215,0,21,0.08) !important;
}
.dim-bar-fill.bar-danger,
.oi-inner,
.ui-state-red,
.vr-fill.cold {
  background: rgba(22,138,69,0.08) !important;
}
.dim-bar-fill.bar-info,
.vr-fill.warm { background: #a15c00 !important; }

.pred-dir-bull,
.pm-item-hit,
.pred-stock-card,
.pred-card-operation {
  box-shadow: var(--apple-shadow-card) !important;
  border: 1px solid var(--apple-border) !important;
}
.pred-dir-bear,
.pm-item-miss,
.pred-risk-card {
  box-shadow: var(--apple-shadow-card) !important;
  border: 1px solid var(--apple-border) !important;
}
.pm-item-info,
.pred-theme-card,
.pred-card-watch {
  box-shadow: var(--apple-shadow-card) !important;
  border: 1px solid var(--apple-border) !important;
}


/* ========== MIGRATED PAGE-SCOPED STYLES (2026-05-09) ========== */
/* Source inventory: /tmp/dashboard-style-inventory.md. Keep future CSS here/global, not inside templates. */

/* ---- admin_users.html :: migrated <style> block 1; scope: body.admin-users-page ---- */
body.admin-users-page, body.admin-users-page *, body.admin-users-page *::before, body.admin-users-page *::after {box-sizing:border-box;margin:0;padding:0}
html {-webkit-font-smoothing:antialiased}
body.admin-users-page {font-family:"Inter",system-ui,-apple-system,sans-serif;background:#fff;color:#1d1d1f;min-height:100vh}
body.admin-users-page a {text-decoration:none;color:inherit}

body.admin-users-page nav {display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:52px;position:sticky;top:0;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(20px);z-index:100;border-bottom:1px solid rgba(0,0,0,.06)}
body.admin-users-page .nav-logo {font-size:16px;font-weight:700;letter-spacing:-.3px;color:#1d1d1f}
body.admin-users-page .nav-logo svg {vertical-align:-2px;margin-right:6px}
body.admin-users-page .nav-links {display:flex;gap:20px;align-items:center}
body.admin-users-page .nav-link {font-size:13px;color:#86868b;font-weight:500;transition:color .15s}
body.admin-users-page .nav-link:hover {color:#1d1d1f}

body.admin-users-page .container {max-width:960px;margin:0 auto;padding:40px 24px}

body.admin-users-page .page-title {font-size:28px;font-weight:700;letter-spacing:-.5px;margin-bottom:8px}
body.admin-users-page .page-sub {font-size:15px;color:#86868b;margin-bottom:32px}

body.admin-users-page .stats {display:flex;gap:16px;margin-bottom:32px}
body.admin-users-page .stat {flex:1;padding:20px;border-radius:12px;background:#f5f5f7}
body.admin-users-page .stat-num {font-size:28px;font-weight:700;color:#1d1d1f}
body.admin-users-page .stat-label {font-size:13px;color:#86868b;margin-top:4px}

body.admin-users-page table {width:100%;border-collapse:collapse;font-size:14px}
body.admin-users-page th {text-align:left;padding:12px 16px;font-size:12px;font-weight:600;color:#86868b;text-transform:uppercase;letter-spacing:.05em;border-bottom:1.5px solid #e5e5ea;background:#fafafa}
body.admin-users-page td {padding:14px 16px;border-bottom:1px solid #f0f0f0;vertical-align:middle}
body.admin-users-page tr:hover td {background:#fafafa}

body.admin-users-page .badge {display:inline-block;padding:3px 10px;border-radius:980px;font-size:11px;font-weight:600}
body.admin-users-page .badge-admin {background:#ede8fe;color:#6c5ce7}
body.admin-users-page .badge-user {background:#f5f5f7;color:#1d1d1f}
body.admin-users-page .badge-active {background:#fff1f2;color:#d70015}
body.admin-users-page .badge-inactive {background:#fef2f2;color:#dc2626}
body.admin-users-page .badge-verified {background:#fff1f2;color:#d70015}
body.admin-users-page .badge-unverified {background:#fef3e8;color:#f0932b}

body.admin-users-page .btn {display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:8px;font-size:12px;font-weight:500;border:1px solid #d2d2d7;background:#fff;color:#1d1d1f;cursor:pointer;font-family:inherit;transition:all .15s}
body.admin-users-page .btn:hover {border-color:#86868b}
body.admin-users-page .btn-danger {border-color:#fecaca;color:#dc2626}
body.admin-users-page .btn-danger:hover {background:#fef2f2;border-color:#dc2626}
body.admin-users-page .btn-primary {background:#0071e3;color:#fff;border-color:#0071e3}
body.admin-users-page .btn-primary:hover {background:#0077ed}
body.admin-users-page .btn-group {display:flex;gap:6px;flex-wrap:wrap}

body.admin-users-page .empty {text-align:center;padding:60px;color:#86868b;font-size:15px}

@media (max-width:600px) {
body.admin-users-page .container {padding:24px 16px}
  body.admin-users-page .stats {flex-direction:column}
  body.admin-users-page table {font-size:13px}
  body.admin-users-page th, body.admin-users-page td {padding:10px 8px}
  body.admin-users-page nav {padding:0 16px}
}

/* ---- landing.html :: migrated <style> block 1; scope: body.public-landing ---- */
body.public-landing, body.public-landing *, body.public-landing *::before, body.public-landing *::after {box-sizing:border-box;margin:0;padding:0}
html {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.public-landing {font-family:"Inter",system-ui,-apple-system,sans-serif;background:#fff;color:#1d1d1f;min-height:100vh}
body.public-landing a {text-decoration:none;color:inherit}

/* ── Nav ── */
body.public-landing nav {display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:52px;position:sticky;top:0;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);z-index:100;border-bottom:1px solid rgba(0,0,0,.06)}
body.public-landing .nav-logo {font-size:16px;font-weight:700;letter-spacing:-.3px;color:#1d1d1f}
body.public-landing .nav-logo svg {vertical-align:-2px;margin-right:6px}
body.public-landing .nav-right {display:flex;gap:24px;align-items:center}
body.public-landing .nav-link {font-size:13px;color:#86868b;transition:color .15s;font-weight:500}
body.public-landing .nav-link:hover {color:#1d1d1f}
body.public-landing .nav-cta {font-size:13px;color:#fff;background:#0071e3;padding:6px 16px;border-radius:980px;font-weight:500;transition:background .15s}
body.public-landing .nav-cta:hover {background:#0077ed}

/* ── Hero ── */
body.public-landing .hero {text-align:center;padding:100px 24px 60px}
body.public-landing .hero h1 {font-size:52px;font-weight:800;letter-spacing:-1.5px;line-height:1.08;color:#1d1d1f}
body.public-landing .hero h1 span {color:#1d1d1f}
body.public-landing .hero p {margin-top:16px;font-size:19px;color:#86868b;font-weight:400;line-height:1.4}
body.public-landing .hero-btns {margin-top:36px;display:flex;gap:14px;justify-content:center}
body.public-landing .btn-primary {display:inline-flex;align-items:center;gap:6px;padding:14px 32px;border-radius:980px;background:#0071e3;color:#fff;font-size:16px;font-weight:600;transition:all .2s}
body.public-landing .btn-primary:hover {background:#0077ed;transform:scale(1.02)}
body.public-landing .btn-primary svg {width:16px;height:16px}
body.public-landing .btn-sec {display:inline-flex;align-items:center;padding:14px 32px;border-radius:980px;border:1.5px solid #d2d2d7;color:#1d1d1f;font-size:16px;font-weight:600;transition:all .2s}
body.public-landing .btn-sec:hover {border-color:#86868b}

/* ── Section ── */
body.public-landing .section {max-width:840px;margin:0 auto;padding:0 24px}
body.public-landing .s-label {font-size:12px;font-weight:600;color:#86868b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:20px}

/* ── Bar chart (replace heatmap) ── */
body.public-landing .bars {display:flex;flex-direction:column;gap:6px}
body.public-landing .bar-row {display:flex;align-items:center;gap:12px;height:32px}
body.public-landing .bar-name {width:72px;font-size:13px;font-weight:500;color:#1d1d1f;text-align:right;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.public-landing .bar-track {flex:1;height:28px;border-radius:6px;overflow:hidden;position:relative}
body.public-landing .bar-fill {height:100%;border-radius:6px;transition:width .6s cubic-bezier(.25,.1,.25,1);display:flex;align-items:center;padding-left:10px}
body.public-landing .bar-val {font-size:11px;font-weight:600;color:rgba(255,255,255,.9);white-space:nowrap}

/* gradient palette */
body.public-landing .g1 {background:#d70015}
body.public-landing .g2 {background:#f5f5f7}
body.public-landing .g3 {background:#1d1d1f}
body.public-landing .g4 {background:#168a45}
body.public-landing .g5 {background:#0071e3}

/* ── Divider ── */
body.public-landing .sep {border:none;border-top:1px solid #f0f0f0;margin:56px 0}

/* ── Features ── */
body.public-landing .feats {display:grid;grid-template-columns:1fr 1fr;gap:0}
body.public-landing .feat {padding:36px 28px;border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}
body.public-landing .feat:nth-child(2n) {border-right:none}
body.public-landing .feat:nth-last-child(-n/**/+2) {border-bottom:none}
body.public-landing .feat-icon {width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
body.public-landing .feat-icon svg {width:20px;height:20px}
body.public-landing .fi-blue {background:#f5f5f7;color:#1d1d1f}
body.public-landing .fi-purple {background:#ede8fe;color:#6c5ce7}
body.public-landing .fi-green {background:#e6f9f0;color:#00b894}
body.public-landing .fi-orange {background:#fef3e8;color:#f0932b}
body.public-landing .feat h4 {font-size:17px;font-weight:600;color:#1d1d1f;margin-bottom:4px;letter-spacing:-.2px}
body.public-landing .feat p {font-size:13px;color:#86868b;line-height:1.5}

/* ── Footer ── */
body.public-landing .footer {text-align:center;padding:48px 24px 32px;color:#c7c7cc;font-size:12px}

/* ── Responsive ── */
@media (max-width:600px) {
body.public-landing .hero h1 {font-size:36px}
  body.public-landing .hero p {font-size:16px}
  body.public-landing .feats {grid-template-columns:1fr}
  body.public-landing .feat {border-right:none!important}
  body.public-landing .feat:nth-last-child(-n/**/+2) {border-bottom:1px solid #f0f0f0}
  body.public-landing .feat:last-child {border-bottom:none}
  body.public-landing nav {padding:0 20px}
  body.public-landing .bar-name {width:56px;font-size:12px}
}

/* ---- login.html :: migrated <style> block 1; scope: body.auth-page ---- */
body.auth-page, body.auth-page *, body.auth-page *::before, body.auth-page *::after {box-sizing:border-box;margin:0;padding:0}
html {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.auth-page {font-family:"Inter",system-ui,-apple-system,sans-serif;background:#fff;color:#1d1d1f;min-height:100vh;display:flex;flex-direction:column}
body.auth-page a {text-decoration:none;color:inherit}

body.auth-page nav {display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:52px;position:sticky;top:0;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);z-index:100;border-bottom:1px solid rgba(0,0,0,.06)}
body.auth-page .nav-logo {font-size:16px;font-weight:700;letter-spacing:-.3px;color:#1d1d1f}
body.auth-page .nav-logo svg {vertical-align:-2px;margin-right:6px}

body.auth-page .auth-wrap {flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px}
body.auth-page .auth {width:100%;max-width:380px}

body.auth-page .auth h1 {font-size:28px;font-weight:700;letter-spacing:-.5px;color:#1d1d1f;text-align:center;margin-bottom:4px}
body.auth-page .auth .sub {font-size:15px;color:#86868b;text-align:center;margin-bottom:32px;font-weight:400}

body.auth-page .err {background:#fef2f2;color:#dc2626;font-size:13px;font-weight:500;padding:10px 14px;border-radius:10px;margin-bottom:20px;text-align:center}
body.auth-page .dev-banner {background:#f5f5f7;color:#1d1d1f;font-size:12px;font-weight:500;padding:8px 12px;border-radius:8px;margin-bottom:16px;text-align:center;border:1px solid #d2d2d7}

body.auth-page .field {margin-bottom:16px}
body.auth-page .field label {display:block;font-size:13px;font-weight:600;color:#1d1d1f;margin-bottom:6px}
body.auth-page .field input {width:100%;padding:11px 14px;border:1.5px solid #d2d2d7;border-radius:10px;font-size:15px;font-family:inherit;
  transition:border-color .15s,box-shadow .15s;background:#fff;color:#1d1d1f;}
body.auth-page .field input::placeholder {color:#c7c7cc}
body.auth-page .field input:focus {outline:none;border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12)}

body.auth-page .code-row {display:flex;gap:8px;align-items:flex-end}
body.auth-page .code-row .field {flex:1;margin-bottom:0}
body.auth-page .code-btn {flex-shrink:0;padding:11px 16px;border:1.5px solid #0071e3;border-radius:10px;
  background:#fff;color:#0071e3;font-size:13px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:all .15s;white-space:nowrap;height:44px;}
body.auth-page .code-btn:hover {background:#0071e3;color:#fff}
body.auth-page .code-btn:disabled {opacity:.5;cursor:not-allowed;background:#f5f5f7;color:#86868b;border-color:#d2d2d7}

body.auth-page .submit {width:100%;padding:13px;border:none;border-radius:980px;font-size:16px;font-weight:600;
  font-family:inherit;cursor:pointer;transition:all .15s;margin-top:8px;
  background:#0071e3;color:#fff;}
body.auth-page .submit:hover {background:#0077ed}
body.auth-page .submit:active {transform:scale(.98)}

body.auth-page .switch {text-align:center;margin-top:24px;font-size:14px;color:#86868b}
body.auth-page .switch a {color:#0071e3;font-weight:500;transition:color .15s}
body.auth-page .switch a:hover {color:#0077ed;text-decoration:underline}

body.auth-page .back {display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#86868b;font-weight:500;margin-bottom:24px;transition:color .15s}
body.auth-page .back:hover {color:#1d1d1f}
body.auth-page .back svg {width:16px;height:16px}

body.auth-page .timer {font-size:11px;color:#86868b;margin-top:4px}

/* ---- clsvip.html :: migrated <style> block 1; scope: body.page-clsvip ---- */
body.page-clsvip .clsvip-header {display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;}
  body.page-clsvip .clsvip-header .page-title {margin-bottom: 0;}
  body.page-clsvip .clsvip-tabs {display: flex;
    gap: 8px;
    margin-bottom: 20px;}
  body.page-clsvip .clsvip-tab {padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: var(--bg-secondary, #f5f5f7);
    color: var(--text-secondary, #86868b);
    border: none;}
  body.page-clsvip .clsvip-tab:hover {background: var(--bg-tertiary, #e8e8ed);}
  body.page-clsvip .clsvip-tab.active {background: var(--accent, #007aff);
    color: #fff;}
  /* Date cards */
  body.page-clsvip .date-group {margin-bottom: 24px;}
  body.page-clsvip .date-group-header {display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border, #e5e5ea);}
  body.page-clsvip .date-group-header .date-text {font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);}
  body.page-clsvip .date-group-header .date-weekday {font-size: 12px;
    color: var(--text-tertiary, #aeaeb2);}
  body.page-clsvip .date-group-header .date-count {font-size: 11px;
    background: var(--bg-tertiary, #e8e8ed);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-secondary, #86868b);}
  /* Article cards */
  body.page-clsvip .article-card {background: var(--card-bg, #fff);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
    border: 1px solid var(--border, #e5e5ea);
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;}
  body.page-clsvip .article-card:hover {box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);}
  body.page-clsvip .article-card-top {display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;}
  body.page-clsvip .article-category {font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-secondary, #f5f5f7);
    color: var(--text-secondary, #86868b);
    white-space: nowrap;}
  body.page-clsvip .article-category.cat-panzhongbao {background: #fff0f0; color: #d32f2f;}
  body.page-clsvip .article-category.cat-fengkou {background: #fff3e0; color: #e65100;}
  body.page-clsvip .article-category.cat-dianbao {background: #fff8e1; color: #f57f17;}
  body.page-clsvip .article-category.cat-yanxuan {background: #e3f2fd; color: #1565c0;}
  body.page-clsvip .article-category.cat-diaoyan {background: #e8f5e9; color: #2e7d32;}
  body.page-clsvip .article-category.cat-dianjin {background: #fce4ec; color: #c62828;}
  body.page-clsvip .article-category.cat-gonggao {background: #f3e5f5; color: #6a1b9a;}
  body.page-clsvip .article-category.cat-zaozhidao {background: #fffde7; color: #f9a825;}
  body.page-clsvip .article-title {font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1d1d1f);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;}
  body.page-clsvip .article-summary {font-size: 12.5px;
    color: var(--text-secondary, #86868b);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;}
  /* Hashtags */
  body.page-clsvip .hashtag-row {display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;}
  body.page-clsvip .hashtag-row .label {font-size: 11px;
    color: var(--text-tertiary, #aeaeb2);
    margin-right: 2px;}
  body.page-clsvip .hashtag {display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;}
  body.page-clsvip .hashtag:hover {transform: scale(1.05);}
  body.page-clsvip .hashtag.stock {background: #e3f2fd;
    color: #1565c0;}
  body.page-clsvip .hashtag.stock:hover {background: #bbdefb;}
  body.page-clsvip .hashtag.industry {background: #f3e5f5;
    color: #7b1fa2;}
  /* Hot stock sidebar */
  body.page-clsvip .hot-stocks-panel {background: var(--card-bg, #fff);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border, #e5e5ea);
    margin-bottom: 16px;}
  body.page-clsvip .hot-stocks-title {font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;}
  body.page-clsvip .hot-stock-item {display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.04));}
  body.page-clsvip .hot-stock-item:last-child {border-bottom: none;}
  body.page-clsvip .hot-stock-rank {width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;}
  body.page-clsvip .hot-stock-rank.top1 {background: #ff6b6b; color: #fff;}
  body.page-clsvip .hot-stock-rank.top2 {background: #ffa502; color: #fff;}
  body.page-clsvip .hot-stock-rank.top3 {background: #ffd43b; color: #333;}
  body.page-clsvip .hot-stock-rank.topn {background: var(--bg-secondary, #f5f5f7); color: var(--text-tertiary, #aeaeb2);}
  body.page-clsvip .hot-stock-name {flex: 1;
    font-size: 13px;
    color: var(--text-primary, #1d1d1f);
    text-decoration: none;}
  body.page-clsvip .hot-stock-name:hover {color: var(--accent, #007aff);}
  body.page-clsvip .hot-stock-count {font-size: 11px;
    color: var(--text-tertiary, #aeaeb2);
    background: var(--bg-secondary, #f5f5f7);
    padding: 1px 7px;
    border-radius: 8px;}
  /* Layout */
  body.page-clsvip .clsvip-layout {display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;}
  @media (max-width: 768px) {
body.page-clsvip .clsvip-layout {grid-template-columns: 1fr;}
}
  /* Key points */
  body.page-clsvip .key-points {margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border, rgba(0,0,0,0.06));}
  body.page-clsvip .key-point {font-size: 12px;
    color: var(--text-secondary, #86868b);
    line-height: 1.5;
    padding: 2px 0;
    padding-left: 12px;
    position: relative;}
  body.page-clsvip .key-point::before {content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent, #007aff);}
  /* Risk warning */
  body.page-clsvip .risk-warning {margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff8e1;
    font-size: 11.5px;
    color: #f57f17;
    line-height: 1.5;}
  /* Weekday names */
  body.page-clsvip .weekday-0 {color: #d32f2f;}
  body.page-clsvip .weekday-6 {color: #1565c0;}

/* ---- clsvip_detail.html :: migrated <style> block 1; scope: body.page-clsvip ---- */
body.page-clsvip .article-detail {max-width: 800px; margin: 0 auto;}
  body.page-clsvip .article-detail-back {display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--accent, #007aff);
    text-decoration: none;
    margin-bottom: 16px;}
  body.page-clsvip .article-detail-back:hover {text-decoration: underline;}
  body.page-clsvip .article-detail-header {background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border, #e5e5ea);
    margin-bottom: 16px;}
  body.page-clsvip .article-detail-meta {display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;}
  body.page-clsvip .article-detail-category {font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--bg-secondary, #f5f5f7);
    color: var(--text-secondary, #86868b);}
  body.page-clsvip .article-detail-date {font-size: 12px;
    color: var(--text-tertiary, #aeaeb2);}
  body.page-clsvip .article-detail-title {font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    line-height: 1.5;
    margin-bottom: 12px;}
  body.page-clsvip .article-detail-tags {display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;}
  body.page-clsvip .detail-tag {display: inline-block;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;}
  body.page-clsvip .detail-tag:hover {transform: scale(1.05);}
  body.page-clsvip .detail-tag.stock {background: #e3f2fd;
    color: #1565c0;}
  body.page-clsvip .detail-tag.industry {background: #f3e5f5;
    color: #7b1fa2;}
  /* Content sections */
  body.page-clsvip .article-section {background: var(--card-bg, #fff);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border, #e5e5ea);
    margin-bottom: 12px;}
  body.page-clsvip .article-section-title {font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;}
  body.page-clsvip .article-section-body {font-size: 13.5px;
    color: var(--text-primary, #1d1d1f);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;}
  body.page-clsvip .key-points-list {list-style: none;
    padding: 0;}
  body.page-clsvip .key-points-list li {padding: 6px 0 6px 18px;
    position: relative;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary, #1d1d1f);}
  body.page-clsvip .key-points-list li::before {content: "●";
    position: absolute;
    left: 2px;
    color: var(--accent, #007aff);
    font-size: 8px;
    top: 10px;}
  body.page-clsvip .stock-table {width: 100%;
    border-collapse: collapse;
    margin-top: 8px;}
  body.page-clsvip .stock-table th {font-size: 11px;
    color: var(--text-tertiary, #aeaeb2);
    font-weight: 500;
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border, #e5e5ea);}
  body.page-clsvip .stock-table td {font-size: 13px;
    padding: 8px;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.04));
    vertical-align: top;}
  body.page-clsvip .stock-table .stock-link {color: var(--accent, #007aff);
    text-decoration: none;
    font-weight: 500;}
  body.page-clsvip .stock-table .stock-link:hover {text-decoration: underline;}
  body.page-clsvip .risk-box {background: #fff8e1;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #f57f17;
    line-height: 1.6;}

/* ---- directory_detail_partial.html :: migrated <style> block 1; scope: body.page-directory ---- */
/* Tab navigation */
body.page-directory .detail-grid {display:flex;flex-direction:column;gap:0;margin-bottom:16px}
body.page-directory .detail-tabs {display:flex;gap:0;border-bottom:2px solid #f1f5f9;margin-bottom:12px}
body.page-directory .detail-tab {padding:8px 16px;font-size:13px;font-weight:600;color:#94a3b8;background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}
body.page-directory .detail-tab:hover {color:#64748b}
body.page-directory .detail-tab.active {color:#111;border-bottom-color:#6366f1}
body.page-directory .detail-tab-content {display:none}
body.page-directory .detail-tab-content.active {display:block}

/* Overview */
body.page-directory .profile-overview-grid {display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:10px 0;padding:10px;background:#f8fafc;border-radius:8px}
@media (max-width:600px) {
body.page-directory .profile-overview-grid {grid-template-columns:repeat(3,1fr)}
}
body.page-directory .profile-metric {display:flex;flex-direction:column;align-items:center;gap:1px}
body.page-directory .profile-metric-label {font-size:10px;color:#94a3b8}
body.page-directory .profile-metric strong {font-size:14px}
body.page-directory .rank-tag {font-size:9px;color:#6366f1;background:#eef2ff;padding:0 3px;border-radius:3px}

/* Volume ratio */
body.page-directory .vol-ratio-bar {display:flex;align-items:center;gap:6px;margin:4px 0;padding:6px 8px;background:#f8fafc;border-radius:6px}
body.page-directory .vr-label {font-size:10px;color:#94a3b8;flex-shrink:0}
body.page-directory .vr-track {flex:1;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}
body.page-directory .vr-fill {height:100%;border-radius:4px;transition:width .3s}
body.page-directory .vr-fill.hot {background:#d70015}
body.page-directory .vr-fill.warm {background:#a15c00}
body.page-directory .vr-fill.cold {background:#168a45}
body.page-directory .vr-value {font-size:12px;font-weight:700;min-width:36px;text-align:right}
body.page-directory .vr-hint {font-size:10px;color:#94a3b8}

/* Trend sparkline */
body.page-directory .profile-trend-section {margin:8px 0;padding:8px;background:#fafbfc;border-radius:8px}
body.page-directory .profile-trend-title {font-size:12px;font-weight:600;color:#6b7280;margin-bottom:4px}
body.page-directory .trend-legend {font-size:10px;font-weight:400;margin-left:8px}
body.page-directory .leg-line {display:inline-block;width:14px;height:2px;vertical-align:middle;margin:0 2px}
body.page-directory .concept-line {background:#ef4444}
body.page-directory .hs300-line {background:#6366f1;height:1px;border-top:1px dashed #6366f1;background:none}
body.page-directory .profile-sparkline {width:100%;height:40px}
body.page-directory .profile-trend-labels {display:flex;justify-content:space-between;margin-top:4px}
body.page-directory .trend-label {font-size:10px;color:#94a3b8}

/* Sections */
body.page-directory .profile-section {margin-top:12px;padding-top:12px;border-top:1px solid #f1f5f9}
body.page-directory .profile-section-title {font-size:13px;font-weight:700;color:#374151;margin-bottom:8px}

/* Leader Matrix */
body.page-directory .leader-matrix {display:flex;flex-wrap:wrap;gap:6px}
body.page-directory .leader-matrix-item {flex:1 1 calc(20% - 6px);min-width:120px;display:flex;flex-direction:column;padding:8px;background:#fafbfc;border-radius:6px;text-decoration:none;color:inherit;transition:background .15s}
body.page-directory .leader-matrix-item:hover {background:#f0f4f8}
body.page-directory .lmi-header {display:flex;align-items:center;gap:4px;margin-bottom:4px}
body.page-directory .lmi-rank {font-size:10px;font-weight:700;color:#fff;background:#6366f1;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
body.page-directory .lmi-name {font-size:12px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-directory .lmi-metrics {display:flex;gap:4px;flex-wrap:wrap;font-size:11px}
body.page-directory .lmi-mv {color:#1d1d1f;background:#f5f5f7;padding:1px 4px;border-radius:3px}
body.page-directory .lmi-pe {color:#475569}
body.page-directory .lmi-chg {font-weight:600}
body.page-directory .lmi-flow {font-size:10px;font-weight:600}
body.page-directory .lmi-tags {display:flex;gap:2px;flex-wrap:wrap;margin-top:3px}
body.page-directory .lmi-tag {font-size:9px;color:#6b7280;background:#f1f5f9;padding:1px 3px;border-radius:2px}

/* Capital Flow */
body.page-directory .cf-summary {display:flex;gap:20px;margin-bottom:8px;padding:6px 10px;background:#f8fafc;border-radius:6px}
body.page-directory .cf-summary-item {display:flex;flex-direction:column;gap:1px}
body.page-directory .cf-summary-item span {font-size:10px;color:#94a3b8}
body.page-directory .cf-summary-item strong {font-size:14px}
body.page-directory .cf-breakdown {margin:6px 0}
body.page-directory .cf-row {display:flex;align-items:center;gap:6px;padding:3px 0;font-size:11px}
body.page-directory .cf-row-label {width:56px;color:#6b7280;flex-shrink:0;font-size:10px}
body.page-directory .cf-row-bar {flex:1;height:10px;background:#f1f5f9;border-radius:3px;display:flex;overflow:hidden}
body.page-directory .cf-bar {height:100%}
body.page-directory .cf-bar.buy {background:#fca5a5}
body.page-directory .cf-bar.sell {background:#93c5fd}
body.page-directory .cf-row-val {font-size:10px;color:#64748b;white-space:nowrap}
body.page-directory .cf-flow-list {margin-top:6px}
body.page-directory .cf-flow-label {font-size:11px;font-weight:600;color:#6b7280;margin-bottom:3px}
body.page-directory .cf-flow-row {display:flex;justify-content:space-between;padding:3px 6px;font-size:12px}
body.page-directory .cf-flow-name {color:#374151}
body.page-directory .cf-flow-amount {font-weight:600;font-size:11px}

/* Limit-Up */
body.page-directory .limit-stats-grid {display:flex;flex-direction:column;gap:3px}
body.page-directory .limit-stat-day {display:flex;align-items:center;gap:6px;font-size:12px}
body.page-directory .lsd-date {width:36px;color:#94a3b8;font-size:11px;flex-shrink:0}
body.page-directory .lsd-bar {flex:1;height:14px;background:#f1f5f9;border-radius:3px;overflow:hidden}
body.page-directory .lsd-fill {height:100%;background:#d70015;border-radius:3px}
body.page-directory .lsd-count {font-size:11px;flex-shrink:0;white-space:nowrap}
body.page-directory .lsd-count strong {color:#ef4444}
body.page-directory .lsd-multi {color:#0071e3;font-size:10px;margin-left:2px}
body.page-directory .lsd-broken {color:#94a3b8;font-size:9px;margin-left:2px}
body.page-directory .active-limit-list {margin-top:6px}
body.page-directory .active-limit-item {display:flex;align-items:center;gap:6px;padding:3px 6px;text-decoration:none;color:inherit;font-size:12px}
body.page-directory .active-limit-item:hover {background:#f8fafc;border-radius:4px}
body.page-directory .ali-name {font-weight:600;color:#111;flex:1}
body.page-directory .ali-times {font-size:10px;color:#fff;background:#ef4444;padding:1px 5px;border-radius:8px}
body.page-directory .ali-pct {font-size:11px;font-weight:600}
body.page-directory .ali-stat {font-size:10px;color:#94a3b8}

/* Leaders */
body.page-directory .detail-leader-section {margin-top:8px}
body.page-directory .detail-leader-card {padding:8px;background:#f8fafc;border-radius:8px;margin-bottom:6px}
body.page-directory .detail-leader-label {font-size:11px;color:#94a3b8}
body.page-directory .detail-leader-name {font-size:15px;font-weight:700;margin:2px 0}
body.page-directory .detail-leader-meta {display:flex;gap:8px;font-size:12px;color:#6b7280}

/* ---- holding_detail.html :: migrated <style> block 1; scope: body.page-holdings ---- */
/* Action signal card */
body.page-holdings .action-signal-card {border-left: 5px solid;
  transition: border-color .3s;}
body.page-holdings .action-signal-card.signal-strong-buy {border-left-color: var(--market-up); background: #fff;}
body.page-holdings .action-signal-card.signal-hold {border-left-color: #8e8e93; background: #fff;}
body.page-holdings .action-signal-card.signal-reduce {border-left-color: #a15c00; background: #fff;}
body.page-holdings .action-signal-card.signal-stop-loss {border-left-color: var(--market-down); background: #fff;}
body.page-holdings .action-signal-card.signal-watch {border-left-color: #8e8e93; background: #fff;}

body.page-holdings .action-signal-header {display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;}
body.page-holdings .action-signal-left {display: flex;
  align-items: center;
  gap: 12px;}
body.page-holdings .action-signal-emoji {font-size: 32px;}
body.page-holdings .action-signal-label {font-size: 20px;
  font-weight: 700;}
body.page-holdings .action-signal-desc {font-size: 13px;
  color: #666;
  margin-top: 2px;}

/* Score ring */
body.page-holdings .score-ring {position: relative;
  width: 60px;
  height: 60px;}
body.page-holdings .score-ring svg {width: 60px;
  height: 60px;
  transform: rotate(-90deg);}
body.page-holdings .score-ring-bg {fill: none;
  stroke: #e9ecef;
  stroke-width: 3;}
body.page-holdings .score-ring-fill {fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray .5s ease;}
body.page-holdings .signal-strong-buy .score-ring-fill {stroke: #28a745;}
body.page-holdings .signal-hold .score-ring-fill {stroke: #17a2b8;}
body.page-holdings .signal-reduce .score-ring-fill {stroke: #ffc107;}
body.page-holdings .signal-stop-loss .score-ring-fill {stroke: #dc3545;}
body.page-holdings .signal-watch .score-ring-fill {stroke: #6c757d;}
body.page-holdings .score-ring-text {position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;}

/* Dimension bars */
body.page-holdings .action-signal-dims {display: flex;
  gap: 16px;
  flex-wrap: wrap;}
body.page-holdings .dim-item {flex: 1;
  min-width: 80px;}
body.page-holdings .dim-label {font-size: 11px;
  color: #666;
  margin-bottom: 3px;}
body.page-holdings .dim-bar-bg {height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;}
body.page-holdings .dim-bar-fill {height: 100%;
  border-radius: 3px;
  transition: width .5s ease;}
body.page-holdings .dim-val {font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  text-align: right;}

/* Trigger conditions */
body.page-holdings .trigger-card {border-left: 4px solid #f39c12;}
body.page-holdings .trigger-grid {display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;}
body.page-holdings .trigger-item {padding: 12px;
  border-radius: 8px;
  border-left: 3px solid;}
body.page-holdings .trigger-item.trigger-high {border-left-color: var(--market-up); background: var(--market-up-bg);}
body.page-holdings .trigger-item.trigger-medium {border-left-color: #f39c12; background: #fffdf0;}
body.page-holdings .trigger-item.trigger-low {border-left-color: #3498db; background: #f0f8ff;}
body.page-holdings .trigger-type {font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;}
body.page-holdings .trigger-high .trigger-type {color: var(--market-up);}
body.page-holdings .trigger-medium .trigger-type {color: #f39c12;}
body.page-holdings .trigger-low .trigger-type {color: #3498db;}
body.page-holdings .trigger-condition {font-size: 13px; color: #333; font-weight: 500;}
body.page-holdings .trigger-detail {font-size: 12px; color: #666; margin-top: 4px;}

/* ---- industry_tree.html :: migrated <style> block 1; scope: body.page-industry_tree ---- */
body.page-industry_tree .tree-container {display:flex;flex-direction:column;gap:8px;margin-top:12px}
body.page-industry_tree .tree-main-theme {background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:all .2s}
body.page-industry_tree .tree-main-theme.expanded {border-color:#3b82f6;box-shadow:0 2px 12px rgba(59,130,246,.1)}
body.page-industry_tree .tree-main-header {display:flex;justify-content:space-between;align-items:center;padding:14px 18px;cursor:pointer;user-select:none}
body.page-industry_tree .tree-main-header:hover {background:#f8fafc}
body.page-industry_tree .tree-main-left {display:flex;align-items:center;gap:8px}
body.page-industry_tree .tree-toggle {font-size:10px;color:#94a3b8;transition:transform .2s}
body.page-industry_tree .tree-toggle.open {transform:rotate(90deg)}
body.page-industry_tree .tree-main-icon {font-size:22px}
body.page-industry_tree .tree-main-name {font-size:17px;font-weight:700;color:#111}
body.page-industry_tree .tree-main-summary {font-size:13px;color:#6b7280;margin-left:4px;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.page-industry_tree .tree-main-right {display:flex;gap:6px;flex-shrink:0}
body.page-industry_tree .tree-badge {font-size:11px;padding:2px 8px;border-radius:10px;background:#f1f5f9;color:#475569}
body.page-industry_tree .tree-badge.cats {background:#ede9fe;color:#6d28d9}
body.page-industry_tree .tree-badge.stocks {background:#f5f5f7;color:#1d1d1f}

body.page-industry_tree .tree-sub-list {padding:0 18px 14px 28px}
body.page-industry_tree .tree-sub-list.collapsed {display:none}
body.page-industry_tree .tree-sub-theme {border:1px solid #f1f5f9;border-radius:8px;margin-bottom:6px;overflow:hidden}
body.page-industry_tree .tree-sub-header {display:flex;align-items:center;gap:6px;padding:10px 12px;cursor:pointer;background:#fafbfc;user-select:none}
body.page-industry_tree .tree-sub-header:hover {background:#f0f4f8}
body.page-industry_tree .tree-toggle-sm {font-size:8px;color:#94a3b8;transition:transform .2s}
body.page-industry_tree .tree-toggle-sm.open {transform:rotate(90deg)}
body.page-industry_tree .tree-dot {width:6px;height:6px;border-radius:50%;background:#3b82f6;flex-shrink:0}
body.page-industry_tree .tree-sub-name {font-size:14px;font-weight:600;color:#1e40af}
body.page-industry_tree .tree-sub-desc {font-size:12px;color:#94a3b8;flex:1;margin-left:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.page-industry_tree .tree-badge-sm {font-size:10px;padding:1px 6px;border-radius:8px;background:#e0e7ff;color:#3730a3;margin-left:auto;flex-shrink:0}

body.page-industry_tree .tree-children-list {padding:4px 12px 8px 20px;display:none}
body.page-industry_tree .tree-children-list.open {display:block}
body.page-industry_tree .tree-child {padding:6px 0;border-bottom:1px solid #f8fafc}
body.page-industry_tree .tree-child:last-child {border-bottom:none}
body.page-industry_tree .tree-child-header {display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:wrap}
body.page-industry_tree .tree-child-dot {width:4px;height:4px;border-radius:50%;background:#a78bfa;flex-shrink:0}
body.page-industry_tree .tree-child-name {font-size:13px;font-weight:600;color:#5b21b6}
body.page-industry_tree .tree-child-concepts {display:flex;flex-wrap:wrap;gap:3px}
body.page-industry_tree .tree-concept-tag {font-size:10px;padding:1px 5px;border-radius:3px;background:#f3e8ff;color:#7c3aed}
body.page-industry_tree .tree-stocks {display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
body.page-industry_tree .tree-stock-pill {font-size:11px;padding:2px 8px;border-radius:12px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;text-decoration:none;transition:all .15s}
body.page-industry_tree .tree-stock-pill:hover {background:#dcfce7;border-color:#86efac;transform:translateY(-1px)}
body.page-industry_tree .meta-chip {font-size:12px;padding:2px 10px;border-radius:10px;background:#f1f5f9;color:#475569;margin-left:4px}

/* ---- learning_rules.html :: migrated <style> block 1; scope: body.page-learning_rules ---- */
body.page-learning_rules .lr-filters {display:flex; gap:8px; margin-bottom:1rem; flex-wrap:wrap; align-items:center;}
  body.page-learning_rules .lr-section-label {font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom:4px; display:inline-block; padding:2px 8px; border-radius:3px;}
  body.page-learning_rules .label-案例 {background:#f5f5f7; color:#1d1d1f;}
  body.page-learning_rules .label-根因 {background:#fef2f2; color:#dc2626;}
  body.page-learning_rules .label-教训 {background:#fefce8; color:#ca8a04;}
  body.page-learning_rules .label-成功要素 {background:#fff1f2; color:#d70015;}
  body.page-learning_rules .label-可复制模式 {background:#f5f5f7; color:#1d1d1f;}
  body.page-learning_rules .label-系统性问题 {background:#fef2f2; color:#dc2626;}
  body.page-learning_rules .label-综合教训 {background:#fefce8; color:#ca8a04;}
  body.page-learning_rules .lr-section-text {font-size:13px; color:#1d1d1f; line-height:1.8; margin-left:4px;}
  body.page-learning_rules .lr-item-list {list-style:none; padding-left:8px; margin:4px 0 0 0;}
  body.page-learning_rules .lr-item-list li {font-size:13px; color:#1d1d1f; line-height:1.8; padding-left:16px; position:relative;}
  body.page-learning_rules .lr-item-list li::before {content:">"; position:absolute; left:0; color:#0071e3; font-weight:700;}
  body.page-learning_rules .lr-plain-text {font-size:13px; color:#86868b; line-height:1.7; margin-top:8px; white-space:pre-wrap; word-break:break-all;}
  body.page-learning_rules .lr-tag {padding:2px 7px; border-radius:3px; background:#f5f5f7; color:#86868b; font-size:10px;}
  body.page-learning_rules .lr-conf-bar {width:40px; height:4px; background:#f0f0f0; border-radius:2px; overflow:hidden;}
  body.page-learning_rules .lr-conf-fill {height:100%; border-radius:2px; background:#0071e3;}

/* ---- macro_theme_detail.html :: migrated <style> block 1; scope: body.page-macro_themes ---- */
body.page-macro_themes .mtd-back {font-size:14px; color:#86868b; margin-bottom:8px;}
body.page-macro_themes .mtd-back a {color:#0071e3;}
body.page-macro_themes .mtd-badge-row {display:flex; align-items:center; gap:10px;}
body.page-macro_themes .mtd-meta {display:flex; gap:12px; flex-wrap:wrap; font-size:13px; color:#86868b; margin-top:8px;}
body.page-macro_themes .timeline-badge-icon {display:inline-block; width:20px; height:20px; border-radius:50%; text-align:center; line-height:20px; font-size:11px; font-weight:600;}
body.page-macro_themes .tbi-status {background:#ff9800; color:#fff;}
body.page-macro_themes .tbi-event {background:#f44336; color:#fff;}
body.page-macro_themes .tbi-periodic {background:#2196f3; color:#fff;}
body.page-macro_themes .tbi-default {background:#86868b; color:#fff;}

/* ---- market_heat.html :: migrated <style> block 1; scope: body.page-market_heat ---- */
body.page-market_heat .mh-page {max-width: 960px;}
body.page-market_heat .mh-header {margin-bottom: 28px;}
body.page-market_heat .mh-title {font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: #1d1d1f; margin-bottom: 4px;}
body.page-market_heat .mh-subtitle {font-size: 15px; color: #86868b; margin: 0;}

body.page-market_heat .mh-dates {display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;}
body.page-market_heat .mh-date-pill {padding: 7px 16px; border-radius: 980px; font-size: 13px; font-weight: 500;
  background: #fff; color: #86868b; border: 1.5px solid #e5e5ea;
  cursor: pointer; transition: all .15s; text-decoration: none;}
body.page-market_heat .mh-date-pill:hover {border-color: #86868b; color: #1d1d1f;}
body.page-market_heat .mh-date-pill.active {background: #1d1d1f; color: #fff; border-color: #1d1d1f;}
body.page-market_heat .mh-date-pill .mh-cnt {opacity: .6; font-size: 11px; margin-left: 4px;}

body.page-market_heat .mh-empty {text-align: center; padding: 60px 20px;}
body.page-market_heat .mh-empty-icon {font-size: 48px; margin-bottom: 12px;}
body.page-market_heat .mh-empty-text {color: #86868b; font-size: 15px; margin-bottom: 16px;}

body.page-market_heat .mh-card {background: #fff; border: 1px solid #f0f0f0; border-radius: 16px;
  padding: 20px 24px; margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;}
body.page-market_heat .mh-card:hover {border-color: #d2d2d7; box-shadow: 0 4px 12px rgba(0,0,0,.04);}

body.page-market_heat .mh-card-top {display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;}
body.page-market_heat .mh-card-name {font-size: 17px; font-weight: 600; color: #1d1d1f;}

body.page-market_heat .mh-heat {padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;}
body.page-market_heat .mh-heat-hot {background: #fef2f2; color: #dc2626;}
body.page-market_heat .mh-heat-medium {background: #fff7ed; color: #ea580c;}
body.page-market_heat .mh-heat-low {background: #ecfdf5; color: #059669;}

body.page-market_heat .mh-stocks {display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;}
body.page-market_heat .mh-stock {padding: 4px 12px; background: #f5f5f7; border-radius: 980px;
  font-size: 13px; font-weight: 500; color: #1d1d1f;}

body.page-market_heat .mh-reason {font-size: 14px; line-height: 1.65; color: #86868b;
  padding: 12px 16px; background: #fafafa; border-radius: 12px;}

body.page-market_heat .mh-footer {margin-top: 24px; padding-top: 16px; border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;}
body.page-market_heat .mh-footer-text {font-size: 13px; color: #c7c7cc;}
body.page-market_heat .mh-btn {display: inline-flex; align-items: center; padding: 10px 20px;
  border-radius: 980px; font-size: 14px; font-weight: 600;
  background: #0071e3; color: #fff; border: none; cursor: pointer;
  transition: background .15s;}
body.page-market_heat .mh-btn:hover {background: #0077ed;}
body.page-market_heat .mh-btn:disabled {opacity: .5; cursor: not-allowed;}
body.page-market_heat .mh-btn-outline {background: #fff; color: #1d1d1f; border: 1.5px solid #d2d2d7;}
body.page-market_heat .mh-btn-outline:hover {border-color: #86868b; background: #fff;}

/* ---- news.html :: migrated <style> block 1; scope: body.page-news ---- */
body.page-news .news-header {display:flex; justify-content:space-between; align-items:center; margin-bottom:1.2rem;}
  body.page-news .news-header h2 {margin:0;}
  body.page-news .news-source-tabs {display:flex; gap:6px; margin-bottom:1rem; flex-wrap:wrap;}
  body.page-news .ns-tab {padding:5px 12px; border-radius:6px; border:1px solid #d1d5db; background:#f9fafb; color:#555; font-size:12px; cursor:pointer; transition:all 0.2s;}
  body.page-news .ns-tab:hover, body.page-news .ns-tab.active {background:#f5f5f7; border-color:#d2d2d7; color:#1d1d1f; font-weight:600;}
  body.page-news .news-cluster {margin-bottom:1.5rem;}
  body.page-news .news-cluster-title {font-size:14px; font-weight:600; color:#1d1d1f; margin-bottom:8px; display:flex; align-items:center; gap:8px;}
  body.page-news .news-cluster-count {font-size:11px; background:#f5f5f7; color:#1d1d1f; padding:2px 6px; border-radius:3px;}
  body.page-news .news-item {background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:12px 16px; margin-bottom:6px; transition:all 0.2s;}
  body.page-news .news-item:hover {border-color:#d2d2d7; background:#f5f5f7;}
  body.page-news .news-item-top {display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
  body.page-news .news-title {font-size:13.5px; font-weight:700; color:#111; line-height:1.5; flex:1;}
  body.page-news .news-source {font-size:10px; color:#444; background:#f3f4f6; padding:2px 6px; border-radius:3px; white-space:nowrap;}
  body.page-news .news-summary {font-size:12.5px; color:#333; line-height:1.7; margin-top:6px;}
  body.page-news .news-meta {display:flex; gap:10px; margin-top:6px; font-size:11px; color:#444;}
  body.page-news .news-tag {padding:1px 5px; border-radius:3px; background:#f5f5f7; color:#1d1d1f; font-size:10px;}
  body.page-news .news-day-divider {font-size:13px; font-weight:600; color:#1d1d1f; border-bottom:1px solid #f0f0f0; padding-bottom:6px; margin:1.5rem 0 0.8rem;}
  body.page-news .news-day-divider:first-child {margin-top:0;}
  body.page-news .news-empty {text-align:center; padding:60px 20px; color:#555;}
  body.page-news .news-refresh {padding:6px 14px; border-radius:980px; border:1px solid #0071e3; background:#f5f5f7; color:#1d1d1f; font-size:12px; cursor:pointer; transition:all 0.2s;}
  body.page-news .news-refresh:hover {background:#d0e2ff;}
  body.page-news .multi-day-badge {font-size:10px; background:#fee2e2; color:#991b1b; padding:2px 6px; border-radius:3px;}

/* ---- notes.html :: migrated <style> block 1; scope: body.page-notes ---- */
body.page-notes .notes-toolbar {display:flex; gap:12px; align-items:center; margin-bottom:16px; flex-wrap:wrap;}
  body.page-notes .notes-search-wrap {position:relative; flex:1; min-width:200px;}
  body.page-notes .notes-search-icon {position:absolute; left:12px; top:50%; transform:translateY(-50%);
    color:#aaa;}
  body.page-notes .notes-tags-bar {display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px;}
  body.page-notes .notes-tag-chip {display:inline-flex; align-items:center; padding:5px 12px;
    border:1.5px solid #d2d2d7; border-radius:980px; background:#fff;
    font-size:12px; color:#1d1d1f; cursor:pointer; transition:all .15s;}
  body.page-notes .notes-tag-chip:hover {background:#f5f5f7;}
  body.page-notes .notes-tag-chip.active {background:#0071e3; color:#fff; border-color:#0071e3;}
  body.page-notes .notes-tag-chip .tag-count {margin-left:4px; font-size:10px; opacity:0.7;}
  body.page-notes .notes-grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:14px;}
  body.page-notes .note-card-top {display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:8px;}
  body.page-notes .note-card-name {font-size:15px; font-weight:700; color:#1d1d1f;}
  body.page-notes .note-card-code {font-size:12px; color:#86868b;}
  body.page-notes .note-card-tags {display:flex; gap:4px; flex-wrap:wrap; margin-bottom:8px;}
  body.page-notes .note-tag {font-size:10px; padding:2px 6px; border-radius:3px; background:#f5f5f7; color:#1d1d1f;}
  body.page-notes .note-industry-tag {font-size:10px; padding:2px 6px; border-radius:3px; background:#e6f9f0; color:#00b894;}
  body.page-notes .note-card-content {font-size:13px; color:#1d1d1f; line-height:1.7; background:#fafafa; border-radius:8px;
    padding:10px 12px; white-space:pre-line; max-height:150px; overflow-y:auto;}
  body.page-notes .note-card-footer {display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:11px; color:#86868b;}
  body.page-notes .note-card-actions {display:flex; gap:6px;}
  body.page-notes .note-btn {padding:4px 10px; border-radius:6px; border:1px solid #d2d2d7; background:#fff;
    font-size:11px; cursor:pointer; color:#86868b; transition:all .15s;}
  body.page-notes .note-btn:hover {background:#f5f5f7;}
  body.page-notes .note-btn-danger {color:#dc2626; border-color:#fca5a5;}
  body.page-notes .note-btn-danger:hover {background:#fef2f2;}
  body.page-notes .note-btn-primary {color:#0071e3; border-color:#93c5fd; background:#f5f5f7;}
  body.page-notes .note-btn-primary:hover {background:#e8e8ed;}

  /* 添加/编辑弹窗 */
  body.page-notes .note-modal-overlay {display:none; position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,.4); z-index:999;}
  body.page-notes .note-modal-panel {position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    background:#fff; border-radius:16px; padding:24px; width:480px; max-width:92vw;
    box-shadow:0 8px 32px rgba(0,0,0,.15);}
  body.page-notes .note-modal-panel h3 {margin:0 0 16px; color:#1d1d1f; font-size:16px;}
  body.page-notes .note-modal-panel label {font-size:12px; color:#86868b; display:block; margin-bottom:4px; margin-top:10px;}
  body.page-notes .note-modal-panel input, body.page-notes .note-modal-panel textarea {width:100%; padding:8px 10px; border:1.5px solid #d2d2d7; border-radius:8px;
    font-size:13px; color:#1d1d1f; line-height:1.6;}
  body.page-notes .note-modal-panel input:focus, body.page-notes .note-modal-panel textarea:focus {border-color:#0071e3; outline:none;}
  body.page-notes .note-modal-panel textarea {resize:vertical;}
  body.page-notes .note-modal-btns {display:flex; gap:10px; justify-content:flex-end; margin-top:20px;}
  body.page-notes .note-modal-btns button {padding:8px 20px; border-radius:980px; font-size:13px; cursor:pointer; font-weight:500;}
  body.page-notes .btn-cancel {border:1.5px solid #d2d2d7; background:#fff; color:#1d1d1f;}
  body.page-notes .btn-cancel:hover {background:#f5f5f7;}
  body.page-notes .btn-save {border:none; background:#0071e3; color:#fff;}
  body.page-notes .btn-save:hover {background:#0077ed;}
  body.page-notes .btn-save:disabled {background:#d2d2d7; cursor:not-allowed;}

  /* 搜索结果隐藏 */
  body.page-notes .note-card.search-hidden {display:none;}

/* ---- overview.html :: migrated <style> block 1; scope: body.page-overview ---- */
/* ── Overview page-specific styles ── */
body.page-overview .ov-item-flex {display:flex; align-items:center;}
body.page-overview .ov-item-title {flex:1; font-size:14px; font-weight:500; color:#1d1d1f;}
body.page-overview .ov-item-code {font-size:12px; color:#86868b; margin-right:12px;}
body.page-overview .ov-item-row {font-size:14px; font-weight:500; color:#1d1d1f; margin-bottom:4px;}
body.page-overview .ov-item-meta {font-size:12px; color:#86868b;}

/* ---- prediction_report.html :: migrated <style> block 1; scope: body.page-predictions ---- */
body.page-predictions .report-grid-3 {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:8px}
  body.page-predictions .report-grid-2 {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:8px}
  body.page-predictions .report-index-card {background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:10px;text-align:center}
  body.page-predictions .ri-name {font-size:12px;color:#86868b;margin-bottom:4px}
  body.page-predictions .ri-close {font-size:18px;font-weight:700;color:#1d1d1f}
  body.page-predictions .ri-chg {font-size:13px;font-weight:600;margin-top:2px}
  body.page-predictions .ri-up .ri-chg {color:var(--market-up)}
  body.page-predictions .ri-down .ri-chg {color:#16a34a}
  body.page-predictions .ri-flat .ri-chg {color:#86868b}
  body.page-predictions .rc-row {display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-bottom:1px solid #f0f0f0;font-size:13px;color:#1d1d1f}
  body.page-predictions .rc-row:last-child {border-bottom:none}
  body.page-predictions .rc-subtitle {font-size:13px;font-weight:600;color:#1d1d1f;margin-bottom:6px}
  body.page-predictions .news-item {display:flex;gap:8px;align-items:baseline;padding:6px 0;border-bottom:1px solid #f0f0f0;font-size:13px}
  body.page-predictions .news-source {font-size:10px;color:#86868b;background:#f5f5f7;padding:2px 6px;border-radius:3px;white-space:nowrap}
  body.page-predictions .news-title {color:#1d1d1f;font-weight:500;flex:1}
  body.page-predictions .news-link {color:#0071e3;font-size:12px;text-decoration:none}
  body.page-predictions .news-link:hover {text-decoration:underline}

/* ---- quicknotes.html :: migrated <style> block 1; scope: body.page-quicknotes ---- */
/* 输入区 */
  body.page-quicknotes .qn-input-wrap {background:#fff; border:1px solid #f0f0f0; border-radius:16px;
    padding:16px 18px; margin-bottom:24px;
    transition: border-color .15s;}
  body.page-quicknotes .qn-input-wrap:focus-within {border-color:#0071e3;}
  body.page-quicknotes .qn-input-row {display:flex; gap:10px; align-items:flex-end;}
  body.page-quicknotes .qn-textarea {flex:1; border:none; outline:none; resize:none; font-size:14px;
    color:#1d1d1f; line-height:1.6; min-height:48px; max-height:200px;
    font-family:inherit; background:transparent;}
  body.page-quicknotes .qn-textarea::placeholder {color:#c7c7cc;}
  body.page-quicknotes .qn-send-btn {width:40px; height:40px; border-radius:10px; border:none;
    background:#0071e3; color:#fff; font-size:16px; cursor:pointer;
    flex-shrink:0; transition: background .15s;}
  body.page-quicknotes .qn-send-btn:hover {background:#0077ed;}
  body.page-quicknotes .qn-send-btn:disabled {background:#d2d2d7; cursor:not-allowed;}
  body.page-quicknotes .qn-input-hint {font-size:11px; color:#c7c7cc; margin-top:8px;
    display:flex; justify-content:space-between; align-items:center;}

  /* 筛选栏 */
  body.page-quicknotes .qn-filter {display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; align-items:center;}
  body.page-quicknotes .qn-filter-label {font-size:12px; color:#86868b; margin-right:4px;}
  body.page-quicknotes .qn-tag-chip {display:inline-flex; align-items:center; padding:6px 12px;
    border:1.5px solid #d2d2d7; border-radius:980px; background:#fff;
    font-size:12px; color:#1d1d1f; cursor:pointer; transition:all .15s;}
  body.page-quicknotes .qn-tag-chip:hover {background:#f5f5f7;}
  body.page-quicknotes .qn-tag-chip.active {background:#0071e3; color:#fff; border-color:#0071e3;}
  body.page-quicknotes .qn-tag-chip .qn-tag-count {margin-left:4px; font-size:10px; opacity:0.7;}

  /* 日期分组 */
  body.page-quicknotes .qn-date-group {margin-bottom:24px;}
  body.page-quicknotes .qn-date-label {font-size:13px; font-weight:600; color:#1d1d1f; margin-bottom:10px;
    padding-bottom:6px; border-bottom:1px solid #f0f0f0;
    display:flex; align-items:center; gap:6px;}
  body.page-quicknotes .qn-date-label .qn-date-dot {width:6px; height:6px; border-radius:50%; background:#1d1d1f; display:inline-block;}

  /* 卡片 */
  body.page-quicknotes .qn-card {background:#fff; border:1px solid #f0f0f0; border-radius:16px;
    padding:16px 18px; transition:all .15s; position:relative; margin-bottom:10px;}
  body.page-quicknotes .qn-card:hover {border-color:#d2d2d7; box-shadow:0 2px 8px rgba(0,0,0,.04);}
  body.page-quicknotes .qn-card.pinned {border-left:3px solid #0071e3;}
  body.page-quicknotes .qn-card-body {font-size:14px; color:#1d1d1f; line-height:1.7; white-space:pre-line;
    word-break:break-word;}
  body.page-quicknotes .qn-card-body .qn-hash-tag {display:inline; padding:1px 6px; border-radius:4px;
    background:#f5f5f7; color:#1d1d1f; font-size:13px;}
  body.page-quicknotes .qn-card-bottom {display:flex; justify-content:space-between; align-items:center;
    margin-top:12px; padding-top:10px; border-top:1px solid #f5f5f7;}
  body.page-quicknotes .qn-card-time {font-size:11px; color:#c7c7cc;}
  body.page-quicknotes .qn-card-actions {display:flex; gap:6px;}
  body.page-quicknotes .qn-btn {padding:4px 10px; border-radius:6px; border:1px solid #d2d2d7;
    background:#fff; font-size:11px; cursor:pointer; color:#86868b;
    transition:all .15s;}
  body.page-quicknotes .qn-btn:hover {background:#f5f5f7;}
  body.page-quicknotes .qn-btn-del {color:#dc2626; border-color:#fca5a5;}
  body.page-quicknotes .qn-btn-del:hover {background:#fef2f2;}
  body.page-quicknotes .qn-btn-confirm {color:#dc2626; background:#fef2f2; border-color:#f87171;
    font-weight:500;}
  body.page-quicknotes .qn-btn-confirm:hover {background:#fecaca;}
  body.page-quicknotes .qn-btn-pin {color:#0071e3; border-color:#d2d2d7;}
  body.page-quicknotes .qn-btn-pin:hover {background:#f5f5f7;}
  body.page-quicknotes .qn-btn-pin.is-pinned {color:#1d1d1f; background:#f5f5f7; border-color:#0071e3;}
  body.page-quicknotes .qn-pin-badge {display:inline-flex; align-items:center; gap:3px; font-size:10px;
    color:#1d1d1f; background:#f5f5f7; padding:2px 8px; border-radius:4px;
    margin-bottom:8px;}

  /* 编辑模式 */
  body.page-quicknotes .qn-card-edit-area {display:none; margin-bottom:8px;}
  body.page-quicknotes .qn-card-edit-area textarea {width:100%; padding:8px 10px; border:1.5px solid #d2d2d7; border-radius:8px;
    font-size:14px; color:#1d1d1f; line-height:1.6; resize:vertical; min-height:60px;
    font-family:inherit;}
  body.page-quicknotes .qn-card-edit-area textarea:focus {border-color:#0071e3; outline:none;}
  body.page-quicknotes .qn-edit-btns {display:flex; gap:6px; justify-content:flex-end; margin-top:6px;}

  /* 搜索框 */
  body.page-quicknotes .qn-search-wrap {position:relative; margin-bottom:16px;}
  body.page-quicknotes .qn-search-icon {position:absolute; left:12px; top:50%; transform:translateY(-50%);
    color:#c7c7cc;}

  @media (max-width:768px) {
body.page-quicknotes .qn-date-group .qn-card {margin-bottom:8px;}
}

/* ---- smart_money.html :: migrated <style> block 1; scope: body.page-smart_money ---- */
body.page-smart_money .sm-wrap {max-width:1200px;margin:0 auto;padding:16px 12px}
body.page-smart_money .sm-hdr {margin-bottom:20px}
body.page-smart_money .sm-hdr h1 {font-size:26px;font-weight:700;letter-spacing:-0.5px;margin:0}
body.page-smart_money .sm-hdr p {color:#86868b;font-size:13px;margin:4px 0 0}

/* Top cards grid */
body.page-smart_money .sm-cards {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:20px}
body.page-smart_money .sm-card {background:#fff;border-radius:16px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.06);cursor:default;transition:transform .15s}
body.page-smart_money .sm-card:active {transform:scale(0.97)}
body.page-smart_money .sm-card .t {font-size:11px;color:#86868b;letter-spacing:.5px;margin-bottom:4px}
body.page-smart_money .sm-card .n {font-size:28px;font-weight:700;line-height:1.1}
body.page-smart_money .sm-card .d {font-size:11px;color:#86868b;margin-top:2px}
body.page-smart_money .sm-card.clickable {cursor:pointer}

/* Expandable panel */
body.page-smart_money .sm-panel {display:none;background:#fff;border-radius:16px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.06);margin-bottom:20px}
body.page-smart_money .sm-panel.open {display:block}
body.page-smart_money .sm-panel h2 {font-size:16px;font-weight:600;margin:0 0 4px}
body.page-smart_money .sm-panel .sub {font-size:11px;color:#86868b;margin-bottom:12px}
body.page-smart_money .sm-close {float:right;font-size:18px;color:#86868b;cursor:pointer;line-height:1;padding:4px 8px}

/* Trader rows */
body.page-smart_money .sm-tr {display:flex;align-items:center;padding:8px 0;border-bottom:1px solid #f5f5f7;cursor:pointer}
body.page-smart_money .sm-tr:last-child {border-bottom:none}
body.page-smart_money .sm-tr:active {background:#f5f5f7}
body.page-smart_money .sm-tr .nm {flex:1;min-width:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.page-smart_money .sm-tr .tag {font-size:9px;font-weight:600;border-radius:980px;padding:2px 6px;margin:0 6px;white-space:nowrap}
body.page-smart_money .sm-tr .val {font-size:13px;font-weight:600;white-space:nowrap}

/* Signal rows */
body.page-smart_money .sm-sig {display:flex;align-items:center;padding:10px 12px;margin-bottom:4px;border-radius:10px}
body.page-smart_money .sm-sig .l {flex:1;min-width:0}
body.page-smart_money .sm-sig .l .name {font-size:14px;font-weight:600;color:#1d1d1f !important}
body.page-smart_money .sm-sig .l .code {font-size:11px;color:#6e6e73 !important;margin-left:6px}
body.page-smart_money .sm-sig .rt {text-align:right;flex-shrink:0;margin-left:10px}
body.page-smart_money .sm-sig .mv {font-size:14px;font-weight:700}
body.page-smart_money .sm-sig .sv {font-size:11px;color:#6e6e73 !important}

/* Watch cards */
body.page-smart_money .sm-wc {border-radius:12px;padding:12px 14px;margin-bottom:8px;border-left:4px solid #86868b}
body.page-smart_money .sm-wc .tr {display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
body.page-smart_money .sm-wc .ir {display:flex;gap:8px;font-size:11px;color:#86868b;flex-wrap:wrap}
body.page-smart_money .sm-wc .ir b {color:#1d1d1f}
body.page-smart_money .sm-wc .adv {font-size:11px;color:#636366;margin-top:4px}

/* AI */
body.page-smart_money .sm-ai {background:#fff;border-radius:16px;padding:18px;margin-bottom:20px;border:1px solid #e5e5ea}
body.page-smart_money .sm-ai h2 {font-size:16px;font-weight:600;margin:0 0 10px}
body.page-smart_money .sm-ai .body {font-size:13px;line-height:1.7;color:#374151;white-space:pre-line}
body.page-smart_money .sm-ai .btn {display:inline-block;margin-top:10px;font-size:12px;color:#fff;background:#0071e3;border-radius:980px;padding:8px 20px;cursor:pointer;border:none}
body.page-smart_money .sm-ai .btn:active {background:#005bb5}

/* Sector */
body.page-smart_money .sm-sr {display:flex;align-items:center;padding:8px 0;border-bottom:1px solid #f5f5f7}
body.page-smart_money .sm-sr:last-child {border-bottom:none}
body.page-smart_money .sm-sr .rk {font-size:11px;color:#86868b;width:20px}
body.page-smart_money .sm-sr .nm {font-size:13px;font-weight:500;color:#1d1d1f;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.page-smart_money .sm-sr .sp {font-size:10px;padding:2px 8px;border-radius:980px;font-weight:600;white-space:nowrap;margin:0 4px}
body.page-smart_money .sm-sr .val {font-size:13px;font-weight:600;white-space:nowrap}
body.page-smart_money .sm-radar-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}
body.page-smart_money .sm-quadrant {background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.045)}
body.page-smart_money .quadrant-start {border-top:4px solid #15803d}
body.page-smart_money .quadrant-hold {border-top:4px solid #0369a1}
body.page-smart_money .quadrant-warning {border-top:4px solid #d97706}
body.page-smart_money .quadrant-avoid {border-top:4px solid #dc2626}
body.page-smart_money .sm-quad-head {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:15px;font-weight:700}
body.page-smart_money .sm-quad-head span {font-size:12px;color:#86868b;font-weight:500}
body.page-smart_money .sm-quad-item {padding:10px 0;border-bottom:1px solid rgba(0,0,0,.05)}
body.page-smart_money .sm-quad-item:last-child {border-bottom:none}
body.page-smart_money .sm-quad-main {display:flex;align-items:center;gap:10px;margin-bottom:6px}
body.page-smart_money .sm-quad-main .nm {font-size:14px;font-weight:600;color:#1d1d1f;flex:1}
body.page-smart_money .sm-quad-main .sp {font-size:11px;padding:3px 10px;border-radius:980px;font-weight:600;white-space:nowrap}
body.page-smart_money .sm-quad-action {font-size:12px;padding:5px 10px;border-radius:10px;margin:6px 0;font-weight:600;display:inline-block}
body.page-smart_money .action-start {background:#dcfce7;color:#15803d}
body.page-smart_money .action-hold {background:#e0f2fe;color:#0369a1}
body.page-smart_money .action-warning {background:#fef3c7;color:#92400e}
body.page-smart_money .action-avoid {background:#fee2e2;color:#dc2626}
body.page-smart_money .sm-quad-meta {font-size:11px;color:#86868b;margin-top:4px}
body.page-smart_money .sm-quad-bars-wrap {display:flex;align-items:center;gap:6px;margin:4px 0}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-label {font-size:10px;color:#86868b;white-space:nowrap}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars {height:36px;display:flex;align-items:flex-end;gap:3px;background:#fafafa;border:1px solid rgba(0,0,0,.045);border-radius:8px;padding:4px 6px;width:fit-content}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars .bar {width:8px;min-height:3px;max-height:26px;border-radius:3px}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars .bar.up {background:#d70015}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars .bar.down {background:#15803d}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars .bar.flat {background:#c7c7cc}
body.page-smart_money .sm-quad-bars-wrap .sm-mini-bars .bar.latest {outline:2px solid #1d1d1f;outline-offset:1px}
body.page-smart_money .sm-core-stocks {display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}
body.page-smart_money .sm-core-stocks a {font-size:11px;padding:3px 8px;background:#f5f5f7;border-radius:8px;color:#1d1d1f;text-decoration:none;white-space:nowrap}
body.page-smart_money .sm-core-stocks a b {font-weight:600;margin-left:3px}
body.page-smart_money .sm-core-stocks a b.is-up {color:#d70015}
body.page-smart_money .sm-core-stocks a b.is-down {color:#15803d}

body.page-smart_money .sp-acc, body.page-smart_money .sp-accumulation {background:#fde8e8;color:#b91c1c}
body.page-smart_money .sp-markup {background:#fef3c7;color:#92400e}
body.page-smart_money .sp-dist, body.page-smart_money .sp-distribution {background:#ede9fe;color:#5b21b6}
body.page-smart_money .sp-down, body.page-smart_money .sp-markdown {background:#dcfce7;color:#15803d}
body.page-smart_money .sp-rotation {background:#e0f2fe;color:#0369a1}
body.page-smart_money .sp-neutral {background:#f5f5f7;color:#6e6e73}

/* Two-col grid */
body.page-smart_money .sm-g2 {display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:20px}

@media (min-width:768px) {
body.page-smart_money .sm-wrap {padding:24px 16px}
  body.page-smart_money .sm-hdr h1 {font-size:32px}
  body.page-smart_money .sm-cards {grid-template-columns:repeat(5,1fr)}
  body.page-smart_money .sm-g2 {grid-template-columns:1fr 1fr}
  body.page-smart_money .sm-wg {display:grid;grid-template-columns:1fr 1fr;gap:10px}
}

/* ---- stocks.html :: migrated <style> block 1; scope: body.page-stock_research ---- */
/* 实时行情条 */
  body.page-stock_research .quote-bar {background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.06); border-radius: 12px;
    padding: 16px; margin: 12px 0;
    backdrop-filter: saturate(180%) blur(20px);}
  body.page-stock_research .quote-price {display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;}
  body.page-stock_research .price-main {font-size: 28px; font-weight: 700;}
  body.page-stock_research .price-change {font-size: 15px; font-weight: 600;}
  body.page-stock_research .quote-stats {display: flex; flex-wrap: wrap; gap: 6px 16px;}
  body.page-stock_research .qs-item {display: flex; gap: 4px; min-width: 80px;}
  body.page-stock_research .qs-label {font-size: 12px; color: #86868b;}
  body.page-stock_research .qs-val {font-size: 12px; color: #1d1d1f; font-weight: 600;}

  /* K线图区域 */
  body.page-stock_research .kline-section {margin: 16px 0; border: 1px solid rgba(0,0,0,.06); border-radius: 12px;
    padding: 12px; background: #fff;}
  body.page-stock_research .kline-header {display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;}
  body.page-stock_research .kline-legend {font-size: 12px; color: #666;}

  /* 题材标签 */
  body.page-stock_research .theme-tag {display: inline-block; padding: 3px 10px; border-radius: 14px;
    font-size: 12px; color: #555; background: #f0f0f0; border: 1px solid #e0e0e0;
    white-space: nowrap;}
  body.page-stock_research .theme-tag.theme-leader {background: #fff3e0; border-color: #ff9800; color: #e65100; font-weight: 600;}
  body.page-stock_research .theme-tag.theme-core {background: #e3f2fd; border-color: #42a5f5; color: #1565c0; font-weight: 500;}

  /* 深度分析区域 */
  body.page-stock_research .deep-analysis-trigger {margin-top: 16px;}
  body.page-stock_research .btn-deep {display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 980px; border: none;
    background: #0071e3; color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;}
  body.page-stock_research .btn-deep:hover {background: #0077ed;}
  body.page-stock_research .btn-deep:disabled {opacity: 0.5; cursor: not-allowed;}
  body.page-stock_research .btn-deep .spinner {display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;}
  body.page-stock_research .btn-fin {display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 980px; border: none;
    background: #34c759; color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;}
  body.page-stock_research .btn-fin:hover {background: #2db84d;}
  body.page-stock_research .btn-fin:disabled {opacity: 0.5; cursor: not-allowed;}
  body.page-stock_research .btn-watch {display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 980px; border: 1.5px solid #d2d2d7;
    background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;}
  body.page-stock_research .btn-watch:hover {background: #f5f5f7; border-color: #86868b;}
  body.page-stock_research .btn-watch.in-list {background: var(--apple-surface-solid); color: #0071e3; border-color: #0071e3;}
  body.page-stock_research .btn-note {display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 980px; border: 1.5px solid #d2d2d7;
    background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;}
  body.page-stock_research .btn-note:hover {background: #f5f5f7; border-color: #86868b;}
  body.page-stock_research .btn-note.has-note {background: var(--apple-surface-solid); color: #0071e3; border-color: #0071e3;}
  @keyframes spin {to { transform: rotate(360deg); }}

  /* 报告展示 */
  body.page-stock_research .deep-report {margin-top: 20px; display: none;}
  body.page-stock_research .deep-report.show {display: block;}
  body.page-stock_research .report-card {background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 24px 28px; line-height: 1.8;
    max-height: 600px; overflow-y: auto;}
  body.page-stock_research .report-card h1 {font-size: 18px; color: #1d1d1f; margin: 0 0 12px;}
  body.page-stock_research .report-card h2 {font-size: 15px; color: #111; margin: 16px 0 8px; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px;}
  body.page-stock_research .report-card h3 {font-size: 13px; color: #333; margin: 12px 0 6px;}
  body.page-stock_research .report-card p, body.page-stock_research .report-card li {font-size: 13px; color: #333;}
  body.page-stock_research .report-card ul {padding-left: 20px;}
  body.page-stock_research .report-card li {margin-bottom: 4px;}
  body.page-stock_research .report-card strong {color: #111;}
  body.page-stock_research .report-card em {color: #0071e3; font-style: normal;}
  body.page-stock_research .report-card hr {border: none; border-top: 1px solid #e5e7eb; margin: 12px 0;}
  body.page-stock_research .report-card code {background: #f3f4f6; padding: 1px 4px; border-radius: 3px; font-size: 12px; color: #333;}

  /* AI 对话框 */
  body.page-stock_research .ai-chat-section {margin-top: 20px; display: none;}
  body.page-stock_research .ai-chat-section.show {display: block;}
  body.page-stock_research .ai-chat-box {background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; overflow: hidden;}
  body.page-stock_research .ai-chat-header {padding: 12px 16px; background: rgba(0,113,227,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 13px; font-weight: 600; color: #0071e3;
    display: flex; align-items: center; gap: 8px;}
  body.page-stock_research .ai-chat-messages {max-height: 600px; overflow-y: auto; padding: 16px;
    background: #fafafa;}
  body.page-stock_research .chat-msg {margin-bottom: 12px; display: flex; gap: 10px;}
  body.page-stock_research .chat-msg.user {flex-direction: row-reverse;}
  body.page-stock_research .chat-avatar {width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;}
  body.page-stock_research .chat-avatar.ai {background: var(--apple-surface-solid);}
  body.page-stock_research .chat-avatar.human {background: var(--apple-surface-solid);}
  body.page-stock_research .chat-bubble {max-width: 85%; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; line-height: 1.8;}
  body.page-stock_research .chat-msg.user .chat-bubble {background: var(--premium-neutral-bg); color: var(--apple-text-secondary);
    border-bottom-right-radius: 2px;}
  body.page-stock_research .chat-msg.assistant .chat-bubble {background: #fff; color: #333;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 2px;}
  /* AI 回复内的 Markdown 排版 */
  body.page-stock_research .chat-bubble h1 {font-size:16px; color:#111; margin:12px 0 6px; font-weight:700;}
  body.page-stock_research .chat-bubble h2 {font-size:14px; color:#111; margin:10px 0 5px; font-weight:700; border-bottom:1px solid #e5e7eb; padding-bottom:3px;}
  body.page-stock_research .chat-bubble h3 {font-size:13px; color:#333; margin:8px 0 4px; font-weight:700;}
  body.page-stock_research .chat-bubble p {margin:4px 0;}
  body.page-stock_research .chat-bubble ul, body.page-stock_research .chat-bubble ol {padding-left:18px; margin:4px 0;}
  body.page-stock_research .chat-bubble li {margin:2px 0;}
  body.page-stock_research .chat-bubble strong {color:#111; font-weight:600;}
  body.page-stock_research .chat-bubble em {color:#0071e3; font-style:normal;}
  body.page-stock_research .chat-bubble hr {border:none; border-top:1px solid #e5e7eb; margin:8px 0;}
  body.page-stock_research .chat-bubble code {background:#f3f4f6; padding:1px 4px; border-radius:3px; font-size:12px; color:#333;}
  body.page-stock_research .chat-bubble blockquote {border-left:3px solid #d1d5db; padding-left:10px; margin:6px 0; color:#555;}
  body.page-stock_research .ai-chat-input {display: flex; gap: 8px; padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;}
  body.page-stock_research .ai-chat-input input {flex: 1; background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; padding: 10px 14px; color: #111; font-size: 13px;
    outline: none; transition: border-color 0.2s;}
  body.page-stock_research .ai-chat-input input:focus {border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.12);}
  body.page-stock_research .ai-chat-input input::placeholder {color: #86868b;}
  body.page-stock_research .ai-chat-input button {padding: 10px 18px; border-radius: 980px; border: none;
    background: #0071e3; color: #fff; font-size: 13px;
    cursor: pointer; transition: all .15s; font-weight: 600;}
  body.page-stock_research .ai-chat-input button:hover {background: #0077ed;}
  body.page-stock_research .ai-chat-input button:disabled {opacity: 0.5; cursor: not-allowed;}

  /* 欢迎提示 */
  body.page-stock_research .ai-welcome {text-align: center; padding: 30px 20px; color: #666;}
  body.page-stock_research .ai-welcome .icon {font-size: 32px; margin-bottom: 8px;}
  body.page-stock_research .ai-welcome .hint {font-size: 12px; margin-top: 6px;}
  body.page-stock_research .quick-questions {display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px;}
  body.page-stock_research .quick-q {padding: 6px 12px; border-radius: 16px; border: 1px solid #d1d5db;
    background: #fff; color: #555; font-size: 12px;
    cursor: pointer; transition: all 0.2s;}
  body.page-stock_research .quick-q:hover {border-color: #0071e3; color: #0071e3; background: rgba(0,113,227,.04);}

/* ---- strategies.html :: migrated <style> block 1; scope: body.page-strategies ---- */
body.page-strategies .strat-card-link {display:block; margin-bottom:8px; text-decoration:none; color:inherit;}
body.page-strategies .strat-card-link:hover {border-color:#d2d2d7; box-shadow:0 4px 12px rgba(0,0,0,.04);}
body.page-strategies .strat-name {font-size:15px; font-weight:600; color:#1d1d1f; margin:8px 0 4px;}
body.page-strategies .strat-meta {font-size:13px; color:#86868b;}
body.page-strategies .strat-desc {font-size:13px; color:#86868b; margin-top:4px;}
body.page-strategies .strat-date {font-size:12px; color:#86868b;}
body.page-strategies .hidden {display: none !important;}
body.page-strategies .strat-create-card {margin-bottom:16px;}
body.page-strategies .strat-create-form {margin-top:16px;}

/* ---- watchlist.html :: migrated <style> block 1; scope: body.page-watchlist ---- */
body.page-watchlist .wl-grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px;}
  body.page-watchlist .wl-card {background:#fff; border:1px solid #f0f0f0; border-radius:16px; padding:18px 20px;
    transition:border-color .15s, box-shadow .15s; position:relative; cursor:pointer;}
  body.page-watchlist .wl-card:hover {border-color:#d2d2d7; box-shadow:0 4px 12px rgba(0,0,0,.04);}
  body.page-watchlist .wl-card-top {display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px;}
  body.page-watchlist .wl-card-name {font-size:16px; font-weight:700; color:#1d1d1f;}
  body.page-watchlist .wl-card-code {font-size:12px; color:#86868b; font-weight:400;}
  body.page-watchlist .wl-card-price {font-size:14px; font-weight:600; text-align:right;}
  body.page-watchlist .wl-card-change {font-size:12px;}
  body.page-watchlist .wl-card-metrics {display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px;}
  body.page-watchlist .wl-metric {font-size:11px; color:#86868b; background:#f5f5f7; padding:4px 8px; border-radius:6px;}
  body.page-watchlist .wl-metric span {color:#1d1d1f; font-weight:600;}
  body.page-watchlist .wl-card-tags {display:flex; gap:4px; flex-wrap:wrap; margin-bottom:10px;}
  body.page-watchlist .wl-tag {font-size:10px; padding:3px 8px; border-radius:6px; background:#f5f5f7; color:#1d1d1f; font-weight:500;}
  body.page-watchlist .wl-card-notes {font-size:12px; color:#1d1d1f; line-height:1.6; background:#f5f5f7; border-radius:10px;
    padding:10px 12px; white-space:pre-line; max-height:120px; overflow-y:auto;}
  /* AI extracted key info */
  body.page-watchlist .wl-card-ai-section {margin-top:10px; padding-top:10px; border-top:1px dashed #f0f0f0;}
  body.page-watchlist .wl-ai-row {display:flex; gap:8px; margin-bottom:6px; font-size:12px; line-height:1.5; align-items:flex-start;}
  body.page-watchlist .wl-ai-label {color:#86868b; min-width:45px; flex-shrink:0; font-weight:500;}
  body.page-watchlist .wl-ai-value {color:#1d1d1f;}
  body.page-watchlist .wl-ai-bull {color:#d70015; background:#fff1f2; padding:1px 6px; border-radius:4px;}
  body.page-watchlist .wl-ai-bear {color:#168a45; background:#eef8f1; padding:1px 6px; border-radius:4px;}
  body.page-watchlist .wl-card-type-badge {display:inline-block; font-size:10px; padding:2px 8px; border-radius:6px;
    font-weight:600; margin-left:6px; vertical-align:middle;}
  body.page-watchlist .badge-note {background:#f5f5f7; color:#1d1d1f;}
  body.page-watchlist .badge-watch {background:#fff1f2; color:#d70015;}
  body.page-watchlist .wl-card-footer {display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:11px; color:#86868b;}
  body.page-watchlist .wl-card-actions {display:flex; gap:6px;}
  body.page-watchlist .wl-btn {padding:6px 12px; border-radius:980px; border:1px solid #f0f0f0; background:#fff;
    font-size:11px; cursor:pointer; color:#1d1d1f; transition:all .15s; font-weight:500;}
  body.page-watchlist .wl-btn:hover {background:#f5f5f7; border-color:#d2d2d7;}
  body.page-watchlist .wl-btn-danger {color:#dc2626; border-color:#fecaca;}
  body.page-watchlist .wl-btn-danger:hover {background:#fef2f2;}
  body.page-watchlist .wl-btn-primary {color:#0071e3; border-color:#0071e3; background:#f5f5f7;}
  body.page-watchlist .wl-btn-primary:hover {background:#d0e2ff;}

  /* AI Chat overlay */
  body.page-watchlist .wl-chat-overlay {display:none; position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.4); z-index:1000;}
  body.page-watchlist .wl-chat-panel {position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    background:#fff; border-radius:16px; width:640px; max-width:95vw; max-height:85vh;
    display:flex; flex-direction:column; box-shadow:0 8px 32px rgba(0,0,0,.15);}
  body.page-watchlist .wl-chat-header {display:flex; justify-content:space-between; align-items:center;
    padding:14px 18px; border-bottom:1px solid #f0f0f0;}
  body.page-watchlist .wl-chat-header h3 {margin:0; font-size:15px; color:#1d1d1f;}
  body.page-watchlist .wl-chat-messages {flex:1; overflow-y:auto; padding:16px 20px; min-height:200px; max-height:60vh;}
  body.page-watchlist .wl-chat-bubble {margin-bottom:14px; display:flex; gap:8px;}
  body.page-watchlist .wl-chat-bubble.user {justify-content:flex-end;}
  body.page-watchlist .wl-chat-bubble .bubble {max-width:90%; padding:14px 16px; border-radius:12px; font-size:13px; line-height:1.9;}
  body.page-watchlist .wl-chat-bubble.ai .bubble {background:#f5f5f7; color:#1d1d1f;}
  body.page-watchlist .wl-chat-bubble.user .bubble {background:#0071e3; color:#fff;}
  /* AI Markdown in bubble */
  body.page-watchlist .wl-chat-bubble.ai .bubble h1 {font-size:15px; color:#1d1d1f; margin:14px 0 8px; font-weight:700;}
  body.page-watchlist .wl-chat-bubble.ai .bubble h2 {font-size:14px; color:#1d1d1f; margin:12px 0 6px; font-weight:700; border-bottom:1px solid #f0f0f0; padding-bottom:4px;}
  body.page-watchlist .wl-chat-bubble.ai .bubble h3 {font-size:13px; color:#1d1d1f; margin:12px 0 6px; font-weight:700;}
  body.page-watchlist .wl-chat-bubble.ai .bubble h1:first-child, body.page-watchlist .wl-chat-bubble.ai .bubble h2:first-child, body.page-watchlist .wl-chat-bubble.ai .bubble h3:first-child {margin-top:0;}
  body.page-watchlist .wl-chat-bubble.ai .bubble p {margin:5px 0;}
  body.page-watchlist .wl-chat-bubble.ai .bubble ul, body.page-watchlist .wl-chat-bubble.ai .bubble ol {padding-left:20px; margin:6px 0;}
  body.page-watchlist .wl-chat-bubble.ai .bubble li {margin:4px 0; line-height:1.7;}
  body.page-watchlist .wl-chat-bubble.ai .bubble strong {color:#1d1d1f; font-weight:600;}
  body.page-watchlist .wl-chat-bubble.ai .bubble em {color:#0071e3; font-style:normal;}
  body.page-watchlist .wl-chat-bubble.ai .bubble hr {border:none; border-top:1px solid #f0f0f0; margin:10px 0;}
  body.page-watchlist .wl-chat-bubble.ai .bubble code {background:#f5f5f7; padding:1px 4px; border-radius:3px; font-size:12px; color:#1d1d1f;}
  body.page-watchlist .wl-chat-bubble.ai .bubble blockquote {border-left:3px solid #d2d2d7; padding-left:10px; margin:8px 0; color:#86868b;}
  body.page-watchlist .wl-chat-input {display:flex; gap:8px; padding:12px 18px; border-top:1px solid #f0f0f0;}
  body.page-watchlist .wl-chat-input input {flex:1; padding:10px 14px; border:1px solid #d2d2d7; border-radius:10px; font-size:13px; color:#1d1d1f;}
  body.page-watchlist .wl-chat-input input:focus {outline:none; border-color:#0071e3; box-shadow:0 0 0 3px rgba(0,113,227,.12);}
  body.page-watchlist .wl-chat-input button {padding:10px 18px; border:none; background:#0071e3; color:#fff; border-radius:980px;
    font-weight:600; cursor:pointer; font-size:13px; transition:background .15s;}
  body.page-watchlist .wl-chat-input button:hover {background:#0077ed;}
  body.page-watchlist .wl-chat-input button:disabled {opacity:0.5; cursor:not-allowed;}

  body.page-watchlist .wl-report-summary {font-size:12px; color:#86868b; line-height:1.5; max-height:80px; overflow:hidden; margin-top:8px;}
  /* Detail modal Markdown */
  body.page-watchlist #detail-content h1 {font-size:15px; color:#1d1d1f; margin:10px 0 5px; font-weight:700;}
  body.page-watchlist #detail-content h2 {font-size:14px; color:#1d1d1f; margin:8px 0 4px; font-weight:700; border-bottom:1px solid #f0f0f0; padding-bottom:3px;}
  body.page-watchlist #detail-content h3 {font-size:13px; color:#1d1d1f; margin:8px 0 4px; font-weight:700;}
  body.page-watchlist #detail-content p {margin:3px 0;}
  body.page-watchlist #detail-content ul, body.page-watchlist #detail-content ol {padding-left:18px; margin:4px 0;}
  body.page-watchlist #detail-content li {margin:2px 0;}
  body.page-watchlist #detail-content strong {color:#1d1d1f; font-weight:600;}
  body.page-watchlist #detail-content em {color:#0071e3; font-style:normal;}
  body.page-watchlist #detail-content hr {border:none; border-top:1px solid #f0f0f0; margin:8px 0;}
  body.page-watchlist #detail-content code {background:#f5f5f7; padding:1px 4px; border-radius:3px; font-size:12px; color:#1d1d1f;}
  body.page-watchlist #detail-content blockquote {border-left:3px solid #d2d2d7; padding-left:10px; margin:6px 0; color:#86868b;}
.ui-chart-card { margin-bottom: 20px; padding: 20px; }
.ui-chart-title { margin: 0; }

/* ── Entry Signal Card (博弈入场信号) ── */
.entry-signal-card { border-radius: 14px; padding: 16px 20px; margin-top: 16px; border: 1.5px solid #eee; }
.entry-tone-great { border-color: rgba(215,0,21,.3); background: linear-gradient(180deg,#fff5f6,#fff); }
.entry-tone-caution { border-color: rgba(217,119,6,.3); background: linear-gradient(180deg,#fffbf2,#fff); }
.entry-tone-danger { border-color: rgba(22,138,69,.3); background: linear-gradient(180deg,#f3fbf6,#fff); }
.entry-tone-neutral { border-color: #ddd; background: #fff; }
.entry-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--apple-text-secondary); letter-spacing: .5px; margin-bottom: 4px; }
.entry-signal-label { font-size: 20px; font-weight: 750; color: var(--apple-text); margin-bottom: 8px; }
.entry-score-bar { display: flex; align-items: center; gap: 8px; }
.entry-score-track { flex: 1; max-width: 200px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.entry-score-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.entry-fill-great { background: var(--apple-red); }
.entry-fill-caution { background: #d97706; }
.entry-fill-danger { background: var(--apple-green); }
.entry-fill-neutral { background: #94a3b8; }
.entry-score-val { font-size: 16px; font-weight: 700; }
.entry-signal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 14px; }
.entry-dim { background: rgba(0,0,0,.03); border-radius: 8px; padding: 10px; }
.entry-dim-label { display: block; font-size: 11px; font-weight: 600; color: var(--apple-text-secondary); margin-bottom: 4px; }
.entry-dim-val { font-size: 15px; font-weight: 700; }
.entry-dim-val.entry-tone-great { color: var(--apple-red); }
.entry-dim-val.entry-tone-good { color: var(--apple-red); }
.entry-dim-val.entry-tone-caution { color: #d97706; }
.entry-dim-val.entry-tone-danger { color: var(--apple-green); }
.entry-dim-val.entry-tone-neutral { color: #64748b; }
.entry-dim-hint { font-size: 11px; color: var(--apple-text-secondary); margin-top: 3px; line-height: 1.4; }
.entry-advice { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; }
.entry-tip { font-size: 12px; color: var(--apple-text); padding: 3px 0; }

/* Action Plan */
.action-plan { margin-top: 12px; padding-top: 12px; border-top: 2px solid #eee; }
.action-plan-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.action-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; }
.action-buy { background: var(--apple-red); }
.action-wait { background: #d97706; }
.action-avoid { background: var(--apple-green); }
.action-current-price { font-size: 14px; color: var(--apple-text-secondary); }
.action-plan-body { display: flex; flex-direction: column; gap: 6px; }
.action-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0,0,0,.03); border-radius: 8px; font-size: 13px; }
.action-label { font-weight: 600; color: var(--apple-text); min-width: 80px; }
.action-price { font-weight: 700; font-size: 15px; }
.action-buy .action-price { color: var(--apple-red); }
.action-stop .action-price { color: var(--apple-green); }
.action-target .action-price { color: #2563eb; }
.action-hint { color: var(--apple-text-secondary); font-size: 12px; }
.action-val { font-weight: 600; }
.action-holding { background: rgba(0,0,0,.05); padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--apple-text); line-height: 1.5; }
.action-holding .action-hint { font-weight: 400; }
.action-price-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 15px; font-weight: 700; background: rgba(215,0,21,.1); color: var(--apple-red); border: 1.5px solid rgba(215,0,21,.25); }
.action-pill-stop { background: rgba(22,138,69,.1) !important; color: var(--apple-green) !important; border-color: rgba(22,138,69,.25) !important; }
.action-pill-target { background: rgba(37,99,235,.1) !important; color: #2563eb !important; border-color: rgba(37,99,235,.25) !important; }
.action-stop .action-price { color: var(--apple-green); }
.action-target .action-price { color: #2563eb; }
@media (max-width: 640px) { .entry-signal-grid { grid-template-columns: 1fr 1fr; } }

/* ── Cost Management Card (成本管理) ── */
.cost-mgmt-card { margin-top: 16px; }
.cost-mgmt-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cost-mgmt-label { display: block; font-size: 16px; font-weight: 700; }
.cost-mgmt-pnl { font-size: 20px; font-weight: 750; }
.cost-mgmt-meta { display: flex; gap: 16px; font-size: 13px; color: var(--apple-text-secondary); }
.cost-mgmt-stop { background: rgba(0,0,0,.03); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 10px; }
.cost-mgmt-stop strong { color: var(--apple-text); }
.cost-mgmt-support { color: var(--apple-text-secondary); margin-left: 8px; }
.cost-mgmt-plan { font-size: 13px; }
.cost-plan-step { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid #f5f5f5; }
.cost-plan-phase { font-weight: 700; min-width: 70px; color: var(--apple-red); }
.cost-plan-action { font-weight: 600; }
.cost-plan-reason { color: var(--apple-text-secondary); }

/* Holding Status Card */
.holding-status-card { border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; border: 1.5px solid #eee; background: #fff; }
.holding-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 10px; }
.status-block { background: rgba(0,0,0,.03); border-radius: 10px; padding: 12px; }
.status-label { font-size: 11px; font-weight: 700; color: var(--apple-text-secondary); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.status-value { font-size: 18px; font-weight: 750; color: var(--apple-text); }
.status-value.status-tone-good, .status-value.status-tone-great { color: var(--apple-red); }
.status-value.status-tone-danger { color: var(--apple-green); }
.status-value.status-tone-caution { color: #d97706; }
.status-value.status-tone-neutral { color: var(--apple-text); }
.status-value.entry-tone-great { color: var(--apple-red); }
.status-value.entry-tone-good { color: var(--apple-red); }
.status-value.entry-tone-danger { color: var(--apple-green); }
.status-value.entry-tone-caution { color: #d97706; }
.status-meta { font-size: 11px; color: var(--apple-text-secondary); margin-top: 4px; }
.status-trend .status-values-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.sv-up { background: rgba(215,0,21,.1); color: var(--apple-red); }
.sv-down { background: rgba(22,138,69,.1); color: var(--apple-green); }
.sv-neutral { background: rgba(0,0,0,.06); color: var(--apple-text-secondary); }
.status-risks .status-risk-item { font-size: 12px; color: var(--apple-green); padding: 2px 0; line-height: 1.4; }
.status-action { background: rgba(0,0,0,.05); }
.status-action-text { font-size: 13px; font-weight: 600; color: var(--apple-text); line-height: 1.5; }
.status-action-level { margin-top: 6px; font-size: 12px; color: var(--apple-text-secondary); }
.action-price-stop { font-weight: 700; color: var(--apple-green); }
.holding-status-advice { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; font-size: 12px; color: var(--apple-text-secondary); line-height: 1.5; }

/* Key Levels Card */
.key-levels-card { border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; border: 1.5px solid #eee; background: #fff; }
.key-levels-card h3 { margin-bottom: 12px; }
.key-levels-body {}
.kl-scale { position: relative; padding: 30px 0 10px; }
.kl-track { position: relative; height: 4px; background: #e5e5e5; border-radius: 2px; }
.kl-mark { position: absolute; top: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.kl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid; background: #fff; margin-bottom: 4px; }
.kl-stop .kl-dot { border-color: var(--apple-green); }
.kl-sys-stop .kl-dot { border-color: #94a3b8; }
.kl-cost .kl-dot { border-color: #8b5cf6; background: #8b5cf6; }
.kl-current .kl-dot { border-color: var(--apple-text); background: var(--apple-text); width: 18px; height: 18px; }
.kl-target .kl-dot { border-color: var(--apple-red); }
.kl-sys-target .kl-dot { border-color: #f59e0b; }
.kl-label { font-size: 11px; font-weight: 600; white-space: nowrap; padding: 2px 6px; border-radius: 4px; margin-top: 2px; }
.kl-stop .kl-label { color: var(--apple-green); }
.kl-sys-stop .kl-label { color: #94a3b8; }
.kl-cost .kl-label { color: #8b5cf6; background: rgba(139,92,246,.08); }
.kl-current .kl-label { color: var(--apple-text); font-weight: 700; background: rgba(0,0,0,.06); }
.kl-target .kl-label { color: var(--apple-red); }
.kl-sys-target .kl-label { color: #f59e0b; }
.kl-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.kl-leg { font-size: 11px; color: var(--apple-text-secondary); display: flex; align-items: center; gap: 4px; }
.kl-leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kl-leg-stop i { background: var(--apple-green); }
.kl-leg-sys-stop i { background: #94a3b8; }
.kl-leg-cost i { background: #8b5cf6; }
.kl-leg-current i { background: var(--apple-text); }
.kl-leg-target i { background: var(--apple-red); }
.kl-leg-sys-target i { background: #f59e0b; }
.kl-distances { display: flex; gap: 16px; margin-top: 10px; padding: 8px 10px; background: rgba(0,0,0,.03); border-radius: 8px; }
.kl-dist { font-size: 13px; color: var(--apple-text-secondary); }
.kl-dist strong { color: var(--apple-text); }
.kl-danger { color: var(--apple-green); }

/* Holdings list card upgrades */
.holding-sm-strip { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(0,0,0,.03); border-radius: 6px; margin-top: 8px; }
.sm-strip-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sm-strip-state { font-size: 13px; font-weight: 700; }
.sm-strip-state.status-tone-good, .sm-strip-state.status-tone-great { color: var(--apple-red); }
.sm-strip-state.status-tone-danger { color: var(--apple-green); }
.sm-strip-state.status-tone-caution { color: #d97706; }
.sm-strip-state.status-tone-neutral { color: var(--apple-text-secondary); }
.sm-strip-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.sm-strip-right { font-size: 12px; color: var(--apple-text-secondary); font-weight: 600; }
.holding-levels-strip { display: flex; align-items: center; gap: 0; margin-top: 6px; font-size: 12px; }
.hls-item { padding: 4px 10px; font-weight: 600; }
.hls-item + .hls-item { border-left: 1px solid #e5e5e5; }
.hls-stop { color: var(--apple-green); }
.hls-current { color: var(--apple-text); background: rgba(0,0,0,.03); }
.hls-target { color: var(--apple-red); }
.holding-risk-strip { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.hrs-item { font-size: 11px; color: var(--apple-green); background: rgba(22,138,69,.08); padding: 2px 8px; border-radius: 4px; }
.holding-advice-strip { margin-top: 6px; font-size: 12px; color: var(--apple-text); padding: 6px 10px; background: rgba(0,0,0,.03); border-radius: 6px; line-height: 1.4; }

/* Risk Alerts Banner */
.risk-alerts-banner { border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; border: 1.5px solid #fecaca; background: #fff5f5; }
.risk-alerts-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.risk-alerts-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--apple-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.risk-alerts-title { font-size: 15px; font-weight: 700; color: var(--apple-text); }
.risk-alert-item { padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.risk-severity-critical { border-left: 3px solid var(--apple-green); }
.risk-severity-warning { border-left: 3px solid #d97706; }
.risk-severity-info { border-left: 3px solid #94a3b8; }
.rai-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rai-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.risk-badge-critical { background: rgba(22,138,69,.12); color: var(--apple-green); }
.risk-badge-warning { background: rgba(217,119,6,.12); color: #d97706; }
.risk-badge-info { background: rgba(0,0,0,.06); color: var(--apple-text-secondary); }
.rai-name { font-weight: 700; font-size: 13px; color: var(--apple-text); text-decoration: none; }
.rai-name:hover { text-decoration: underline; }
.rai-title { font-size: 13px; color: var(--apple-text); font-weight: 500; }
.rai-detail { font-size: 12px; color: var(--apple-text-secondary); margin-top: 3px; padding-left: 0; }
.rai-action { font-size: 12px; font-weight: 600; color: var(--apple-text); margin-top: 2px; }
.risk-alerts-more { text-align: center; font-size: 12px; color: var(--apple-text-secondary); padding-top: 4px; }

/* Portfolio Analysis Card */
.portfolio-analysis-card { border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; border: 1.5px solid #eee; background: #fff; }
.pa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pa-header h3 { margin: 0; }
.pa-score-badge { padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.pa-score-good { background: rgba(215,0,21,.1); color: var(--apple-red); }
.pa-score-ok { background: rgba(0,0,0,.06); color: var(--apple-text); }
.pa-score-caution { background: rgba(217,119,6,.1); color: #d97706; }
.pa-score-danger { background: rgba(22,138,69,.12); color: var(--apple-green); }
.pa-summary { font-size: 13px; color: var(--apple-text-secondary); margin-bottom: 14px; line-height: 1.5; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pa-block { background: rgba(0,0,0,.03); border-radius: 10px; padding: 12px; }
.pa-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pa-block-title { font-size: 13px; font-weight: 700; color: var(--apple-text); }
.pa-block-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.pa-level-ok { background: rgba(215,0,21,.08); color: var(--apple-red); }
.pa-level-caution { background: rgba(217,119,6,.08); color: #d97706; }
.pa-level-warning { background: rgba(217,119,6,.12); color: #d97706; }
.pa-level-danger { background: rgba(22,138,69,.12); color: var(--apple-green); }
.pa-block-desc { font-size: 12px; color: var(--apple-text-secondary); margin-bottom: 8px; }
.pa-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pa-bar-label { font-size: 11px; color: var(--apple-text-secondary); min-width: 48px; text-align: right; }
.pa-bar-track { flex: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden; }
.pa-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.pa-fill-ok { background: var(--apple-red); }
.pa-fill-warn { background: #d97706; }
.pa-fill-danger { background: var(--apple-green); }
.pa-bar-val { font-size: 11px; font-weight: 600; color: var(--apple-text); min-width: 36px; }
.pa-theme-chip { display: inline-block; padding: 3px 10px; background: rgba(0,0,0,.05); border-radius: 12px; font-size: 12px; margin: 2px 2px; }
.pa-theme-chip small { color: var(--apple-text-secondary); }
.pa-no-overlap { font-size: 12px; color: var(--apple-text-secondary); }
.pa-risk-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; color: var(--apple-text-secondary); }
.pa-risk-row strong { color: var(--apple-text); }
.pa-risk-alert strong { color: var(--apple-green); }

/* Collapsible sections */
.collapsible-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding-right: 4px; }
.collapsible-toggle:hover { opacity: .85; }
.collapsible-arrow { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.collapsible-arrow::after { content: ''; position: absolute; top: 5px; left: 4px; width: 8px; height: 8px; border-right: 2px solid var(--apple-text-secondary); border-bottom: 2px solid var(--apple-text-secondary); transform: rotate(-45deg); transition: transform .2s; }
[data-collapsible].open .collapsible-arrow::after { transform: rotate(45deg); }
.collapsible-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
[data-collapsible].open .collapsible-body { max-height: 2000px; }
.collapsible-badge-crit { font-size: 11px; font-weight: 700; background: rgba(22,138,69,.12); color: var(--apple-green); padding: 2px 8px; border-radius: 4px; margin-left: 8px; }

/* Risk alerts card - same card style */
.risk-alerts-card { margin-bottom: 16px; }
.risk-alerts-card .risk-alerts-header { display: flex; align-items: center; gap: 8px; }
.risk-alerts-card .risk-alerts-header h3 { margin: 0; font-size: inherit; }
.risk-alerts-icon-inline { display: none; }

/* Holdings toggle layout */
.holdings-toggle-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
/* Card spacing on holdings page */
.portfolio-analysis-card, .risk-alerts-card { margin-bottom: 16px !important; }
[data-collapsible].card { margin-bottom: 16px; }
.collapsed { display: none !important; }

/* ── Nav footer user avatar ── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--apple-border);
  flex-shrink: 0;
}

/* Premarket trade validation */
.pred-validation-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.035);
}

/* Admin data source audit */
.badge-yellow { background: rgba(245, 158, 11, .12); color: #b45309; }
.admin-audit-table td { vertical-align: top; }
.audit-cat { margin-top: 3px; font-size: 11px; color: var(--apple-text-tertiary); text-transform: uppercase; letter-spacing: .3px; }
.audit-path { margin-top: 4px; max-width: 280px; color: var(--apple-text-tertiary); font-size: 11px; font-family: "SF Mono", Menlo, monospace; word-break: break-all; }
.audit-detail { margin-top: 4px; color: var(--apple-text-tertiary); font-size: 12px; line-height: 1.45; max-width: 360px; }
@media (max-width: 900px) {
  .admin-audit-table { min-width: 980px; }
}

/* Stock research: chip movement / profit-holder trend */
.sm-chip-movement-card {
  position: relative;
  overflow: hidden;
}
.sm-chip-movement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: #64748b;
}
.sm-chip-movement-good::before { background: var(--apple-red); }
.sm-chip-movement-watch::before { background: #d97706; }
.sm-chip-movement-bad::before { background: var(--apple-green); }
.sm-chip-movement-neutral::before { background: #64748b; }
.cm-verdict {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(0,0,0,.028);
}
.cm-verdict span,
.cm-metrics span {
  display: block;
  color: var(--apple-text-tertiary);
  font-size: 11px;
  line-height: 1.3;
}
.cm-verdict strong {
  display: block;
  margin-top: 2px;
  color: var(--apple-text);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.02em;
}
.cm-verdict p {
  margin: 0;
  color: var(--apple-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.cm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.cm-metrics div {
  padding: 8px 9px;
  border: 1px solid rgba(0,0,0,.055);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}
.cm-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--apple-text);
  font-size: 15px;
  font-weight: 760;
}
.cm-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cm-signals span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sm-soft);
  color: var(--apple-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .cm-metrics { grid-template-columns: 1fr; }
}
/* ── 当日热点题材 ── */
body.page-smart_money .sm-hot-themes {display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-top:10px}
body.page-smart_money .sm-hot-theme-item {background:#fafafa;border:1px solid rgba(0,0,0,.045);border-radius:14px;padding:12px 14px}
body.page-smart_money .sm-ht-main {display:flex;align-items:center;gap:8px;margin-bottom:6px}
body.page-smart_money .sm-ht-main .nm {font-size:14px;font-weight:600;color:#1d1d1f;flex:1}
body.page-smart_money .sm-ht-main .meta {font-size:11px;color:#86868b;white-space:nowrap}
body.page-smart_money .sm-ht-stocks {display:flex;gap:6px;flex-wrap:wrap;margin:4px 0}
body.page-smart_money .sm-ht-stocks a {font-size:12px;padding:3px 8px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:8px;color:#1d1d1f;text-decoration:none;white-space:nowrap}
body.page-smart_money .sm-ht-stocks a b {font-weight:600;margin-left:3px}
body.page-smart_money .sm-ht-reason {font-size:11px;color:#86868b;margin-top:6px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* ── 题材资金轮动 ── */
body.page-smart_money .sm-theme-radar {display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:10px}
body.page-smart_money .sm-theme-col {background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
body.page-smart_money .theme-inflow {border-top:4px solid #15803d}
body.page-smart_money .theme-outflow {border-top:4px solid #dc2626}
body.page-smart_money .theme-neutral {border-top:4px solid #d97706}
body.page-smart_money .sm-theme-head {font-size:14px;font-weight:700;margin-bottom:10px;color:#1d1d1f}
body.page-smart_money .sm-theme-item {padding:8px 0;border-bottom:1px solid rgba(0,0,0,.04)}
body.page-smart_money .sm-theme-item:last-child {border-bottom:none}
body.page-smart_money .sm-theme-main {display:flex;align-items:center;gap:8px;margin-bottom:4px}
body.page-smart_money .sm-theme-main .nm {font-size:13px;font-weight:600;color:#1d1d1f;flex:1}
body.page-smart_money .sm-theme-main .sp {font-size:10px;padding:2px 8px;border-radius:980px;font-weight:600;white-space:nowrap}
body.page-smart_money .sm-theme-bars {display:flex;align-items:center;gap:5px;margin:3px 0}
body.page-smart_money .sm-theme-bars .sm-mini-label {font-size:10px;color:#86868b;white-space:nowrap}
body.page-smart_money .sm-theme-bars .sm-mini-bars {height:30px;display:flex;align-items:flex-end;gap:2px;background:#fafafa;border:1px solid rgba(0,0,0,.04);border-radius:6px;padding:3px 5px;width:fit-content}
body.page-smart_money .sm-theme-bars .sm-mini-bars .bar {display:block;width:6px;min-height:2px;max-height:22px;border-radius:2px;background:#c7c7cc}
body.page-smart_money .sm-theme-bars .sm-mini-bars .bar.up {background:#d70015}
body.page-smart_money .sm-theme-bars .sm-mini-bars .bar.down {background:#15803d}
body.page-smart_money .sm-theme-bars .sm-mini-bars .bar.flat {background:#c7c7cc}
body.page-smart_money .sm-theme-bars .sm-mini-bars .bar.latest {outline:2px solid #1d1d1f;outline-offset:1px}
body.page-smart_money .sm-theme-action {font-size:11px;padding:3px 8px;border-radius:8px;margin:4px 0;font-weight:600;display:inline-block}
body.page-smart_money .sm-theme-meta {font-size:10px;color:#86868b;margin-top:3px}
/* ── 东财实时板块资金 ── */
body.page-smart_money .sm-em-flow {display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
body.page-smart_money .sm-em-col {background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
body.page-smart_money .em-inflow {border-top:4px solid #d70015}
body.page-smart_money .em-outflow {border-top:4px solid #15803d}
body.page-smart_money .sm-em-head {font-size:14px;font-weight:700;margin-bottom:10px;color:#1d1d1f}
body.page-smart_money .sm-em-item {padding:8px 0;border-bottom:1px solid rgba(0,0,0,.04)}
body.page-smart_money .sm-em-item:last-child {border-bottom:none}
body.page-smart_money .sm-em-main {display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}
body.page-smart_money .sm-em-main .nm {font-size:13px;font-weight:600;color:#1d1d1f}
body.page-smart_money .sm-em-main .val {font-size:13px;font-weight:700}
body.page-smart_money .sm-em-main .val.is-up {color:#d70015}
body.page-smart_money .sm-em-main .val.is-down {color:#15803d}
body.page-smart_money .sm-em-meta {font-size:10px;color:#86868b}
body.page-smart_money .sm-em-leader {font-size:11px;color:#86868b;margin-top:3px}
body.page-smart_money .sm-em-leader b {font-weight:600;margin-left:3px}
/* ── 折叠section ── */
body.page-smart_money .sm-section-head {display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding-bottom:8px;border-bottom:1px solid rgba(0,0,0,.06)}
body.page-smart_money .sm-section-head:hover {background:rgba(0,0,0,.02);border-radius:8px}
body.page-smart_money .sm-fold-btn {font-size:12px;color:#86868b;background:#f5f5f7;padding:3px 10px;border-radius:980px;font-weight:500}
body.page-smart_money .ui-panel-card.folded .sm-section-head {border-bottom:none;padding-bottom:0}
body.page-smart_money .ui-panel-card.folded {padding-bottom:8px}
/* ── 主力行为信号卡片 ── */
body.page-smart_money .sm-signals-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-top:10px}
body.page-smart_money .sm-signal-card {background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
body.page-smart_money .signal-start {border-left:4px solid #15803d}
body.page-smart_money .signal-accelerate {border-left:4px solid #0369a1}
body.page-smart_money .signal-distribute {border-left:4px solid #dc2626}
body.page-smart_money .signal-diverge {border-left:4px solid #d97706}
body.page-smart_money .signal-accumulate {border-left:4px solid #7c3aed}
body.page-smart_money .signal-fake {border-left:4px solid #ea580c}
body.page-smart_money .signal-outflow {border-left:4px solid #ef4444}
body.page-smart_money .sm-signal-main {display:flex;align-items:center;gap:8px;margin-bottom:4px}
body.page-smart_money .sm-signal-main .nm {font-size:14px;font-weight:600;color:#1d1d1f;flex:1}
body.page-smart_money .sm-signal-main .tag {font-size:10px;padding:2px 8px;border-radius:980px;font-weight:600;white-space:nowrap}
body.page-smart_money .tag-start {background:#dcfce7;color:#15803d}
body.page-smart_money .tag-accelerate {background:#e0f2fe;color:#0369a1}
body.page-smart_money .tag-distribute {background:#fee2e2;color:#dc2626}
body.page-smart_money .tag-diverge {background:#fef3c7;color:#92400e}
body.page-smart_money .tag-accumulate {background:#ede9fe;color:#7c3aed}
body.page-smart_money .tag-fake {background:#ffedd5;color:#ea580c}
body.page-smart_money .tag-outflow {background:#fee2e2;color:#ef4444}
body.page-smart_money .sm-signal-desc {font-size:11px;color:#86868b;margin:4px 0;line-height:1.4}
body.page-smart_money .sm-signal-bars {display:flex;align-items:center;gap:5px;margin:4px 0}
body.page-smart_money .sm-signal-bars .sm-mini-label {font-size:10px;color:#86868b;white-space:nowrap}
body.page-smart_money .sm-signal-bars .sm-mini-bars {height:24px;display:flex;align-items:flex-end;gap:2px;background:#fafafa;border:1px solid rgba(0,0,0,.04);border-radius:6px;padding:2px 4px;width:fit-content}
body.page-smart_money .sm-signal-bars .sm-mini-bars .bar {display:block;width:6px;min-height:2px;max-height:18px;border-radius:2px;background:#c7c7cc}
body.page-smart_money .sm-signal-bars .sm-mini-bars .bar.up {background:#d70015}
body.page-smart_money .sm-signal-bars .sm-mini-bars .bar.down {background:#15803d}
body.page-smart_money .sm-signal-bars .sm-mini-bars .bar.flat {background:#c7c7cc}
body.page-smart_money .sm-signal-bars .sm-mini-bars .bar.latest {outline:2px solid #1d1d1f;outline-offset:1px}
body.page-smart_money .sm-signal-data {display:flex;gap:8px;margin:4px 0;flex-wrap:wrap;font-size:11px;color:#86868b}
body.page-smart_money .sm-signal-data span {white-space:nowrap}
body.page-smart_money .sm-signal-data .is-up {color:#d70015;font-weight:600}
body.page-smart_money .sm-signal-data .is-down {color:#15803d;font-weight:600}
body.page-smart_money .sm-signal-action {font-size:11px;padding:3px 8px;border-radius:8px;margin-top:4px;font-weight:600;display:inline-block}
body.page-smart_money .action-start {background:#dcfce7;color:#15803d}
body.page-smart_money .action-accelerate {background:#e0f2fe;color:#0369a1}
body.page-smart_money .action-distribute {background:#fee2e2;color:#dc2626}
body.page-smart_money .action-diverge {background:#fef3c7;color:#92400e}
body.page-smart_money .action-accumulate {background:#ede9fe;color:#7c3aed}
body.page-smart_money .action-fake {background:#ffedd5;color:#ea580c}
body.page-smart_money .action-outflow {background:#fee2e2;color:#ef4444}
body.page-smart_money .sm-signal-sector {font-size:10px;color:#86868b;margin-top:3px}
/* ── 主力资金雷达重构 ── */
body.page-smart_money .sm-radar-hero {align-items:flex-start;gap:16px;margin-bottom:16px}
body.page-smart_money .sm-hero-sub {font-size:13px;color:#86868b;margin-top:4px}
body.page-smart_money .sm-live-card {border-top:4px solid #1d1d1f}
body.page-smart_money .sm-live-summary {display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
body.page-smart_money .sm-live-summary div {background:#fafafa;border:1px solid rgba(0,0,0,.045);border-radius:12px;padding:10px 12px}
body.page-smart_money .sm-live-summary strong {display:block;font-size:18px;color:#1d1d1f;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-smart_money .sm-live-summary span {font-size:11px;color:#86868b}
body.page-smart_money .sm-em-head {display:flex;justify-content:space-between;align-items:center}
body.page-smart_money .sm-em-head span {font-size:11px;color:#86868b;font-weight:500}
body.page-smart_money .sm-signal-legend {display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
body.page-smart_money .sm-section-head > div {min-width:0}
body.page-smart_money .sm-section-head .ui-source {margin-top:3px}
@media (max-width: 900px){
  body.page-smart_money .sm-live-summary {grid-template-columns:1fr 1fr}
  body.page-smart_money .sm-em-flow {grid-template-columns:1fr}
  body.page-smart_money .sm-radar-grid {grid-template-columns:1fr}
  body.page-smart_money .sm-signals-grid {grid-template-columns:1fr}
}
/* ── 题材钻取明细 ── */
body.page-smart_money .sm-theme-click {cursor:pointer;transition:background .12s ease}
body.page-smart_money .sm-theme-click:hover {background:#fafafa;border-radius:10px}
body.page-smart_money .sm-theme-detail-panel {margin-top:14px;border-top:1px solid rgba(0,0,0,.06);padding-top:14px}
body.page-smart_money .sm-theme-detail-title {display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
body.page-smart_money .sm-theme-detail-title strong {font-size:16px;color:#1d1d1f}
body.page-smart_money .sm-theme-detail-title span {font-size:12px;color:#86868b}
body.page-smart_money .sm-theme-detail-grid {display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
body.page-smart_money .sm-theme-detail-col {background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:12px}
body.page-smart_money .theme-leader {border-top:4px solid #d70015}
body.page-smart_money .theme-acc {border-top:4px solid #15803d}
body.page-smart_money .theme-weak {border-top:4px solid #64748b}
body.page-smart_money .sm-theme-detail-head {font-size:13px;font-weight:700;color:#1d1d1f;margin-bottom:8px}
body.page-smart_money .sm-theme-stock {padding:8px 0;border-bottom:1px solid rgba(0,0,0,.04)}
body.page-smart_money .sm-theme-stock:last-child {border-bottom:none}
body.page-smart_money .sm-theme-stock-main {display:flex;justify-content:space-between;align-items:center;gap:8px}
body.page-smart_money .sm-theme-stock-main .nm {font-size:13px;font-weight:600;color:#1d1d1f}
body.page-smart_money .sm-theme-stock-main .sp {font-size:10px;padding:2px 8px;border-radius:980px;background:#f5f5f7;color:#1d1d1f;white-space:nowrap}
body.page-smart_money .sm-theme-stock-meta {font-size:11px;color:#86868b;margin-top:3px}
body.page-smart_money .sm-theme-stock-bars {display:flex;align-items:center;gap:5px;margin-top:4px;font-size:10px;color:#86868b}
body.page-smart_money .sm-theme-stock-bars .sm-mini-bars {height:24px;display:flex;align-items:flex-end;gap:2px;background:#fafafa;border:1px solid rgba(0,0,0,.04);border-radius:6px;padding:2px 4px;width:fit-content}
body.page-smart_money .sm-theme-stock-bars .bar {display:block;width:6px;min-height:2px;max-height:18px;border-radius:2px;background:#c7c7cc}
body.page-smart_money .sm-theme-stock-bars .bar.up {background:#d70015}
body.page-smart_money .sm-theme-stock-bars .bar.down {background:#15803d}
body.page-smart_money .sm-theme-stock-bars .bar.flat {background:#c7c7cc}
body.page-smart_money .sm-theme-stock-bars .bar.latest {outline:2px solid #1d1d1f;outline-offset:1px}
body.page-smart_money .sm-theme-stock-reason {font-size:10px;color:#86868b;margin-top:3px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width: 1000px){body.page-smart_money .sm-theme-detail-grid{grid-template-columns:1fr}}

/* macro_theme_detail readability fix: avoid dark-card + gray-text contrast failure */
body.page-macro_themes .macro-detail-card,
body.page-macro_themes .timeline-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
body.page-macro_themes .detail-label,
body.page-macro_themes .timeline-date,
body.page-macro_themes .timeline-source {
  color: #6e6e73;
}
body.page-macro_themes .detail-content,
body.page-macro_themes .timeline-content,
body.page-macro_themes .timeline-title {
  color: #1d1d1f;
}
body.page-macro_themes .timeline-title {
  font-weight: 650;
}
body.page-macro_themes .section-title {
  color: #1d1d1f;
  border-bottom-color: #e5e5ea;
}
body.page-macro_themes .confidence-bar,
body.page-macro_themes .confidence-bar-large {
  background: #e5e5ea;
}

/* Directory trends */
.toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.market-brief-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:18px;padding:24px;margin-bottom:16px;background:linear-gradient(135deg,#1d1d1f 0%,#3a1f26 52%,#7a1727 100%);color:#fff;border:0;box-shadow:0 18px 45px rgba(122,23,39,.18)}
.brief-main{display:flex;flex-direction:column;gap:9px}.brief-kicker{font-size:12px;letter-spacing:.08em;color:rgba(255,255,255,.68);font-weight:700}.brief-main h2{margin:0;font-size:32px;line-height:1.12;letter-spacing:-.04em}.brief-main p{margin:0;font-size:16px;line-height:1.55;color:rgba(255,255,255,.92)}.brief-main em{font-style:normal;font-size:13px;color:rgba(255,255,255,.72)}
.brief-points{display:grid;grid-template-columns:1fr;gap:10px}.brief-points div{padding:13px 14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.09);border-radius:16px;backdrop-filter:blur(12px)}.brief-points span{display:block;font-size:12px;color:rgba(255,255,255,.62);margin-bottom:5px}.brief-points strong{display:block;font-size:14px;line-height:1.45;color:#fff;font-weight:700}
.trend-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.trend-stat-card{padding:18px;display:flex;flex-direction:column;gap:6px}
.trend-stat-card span{font-size:12px;color:var(--text-secondary,#666)}
.trend-stat-card strong{font-size:30px;line-height:1;color:var(--text-primary,#111)}
.trend-stat-card em{font-style:normal;font-size:12px;color:var(--text-hint,#999)}
.directory-trend-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.directory-trend-layout.single-column{grid-template-columns:1fr}
.trend-signal-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.trend-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}
.trend-panel{padding:18px;overflow:hidden}
.trend-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.heat-matrix{display:flex;flex-direction:column;gap:6px;overflow-x:auto;padding-bottom:4px}
.heat-row{display:grid;grid-template-columns:minmax(150px,1.4fr) repeat(5,minmax(58px,.55fr)) minmax(78px,.7fr);gap:7px;align-items:center;text-decoration:none;color:inherit;min-width:620px}
.heat-header{font-size:12px;color:var(--text-secondary,#666);font-weight:600;padding-bottom:4px;border-bottom:1px solid var(--border,#eee)}
.heat-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.heat-name strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.heat-name span{font-size:11px;color:var(--text-hint,#999)}
.heat-date,.heat-state{text-align:center;font-size:12px;color:var(--text-secondary,#666)}
.heat-cell{height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;border:1px solid rgba(0,0,0,.04)}
.heat-l0{background:#f2f3f5;color:#b6bcc6}
.heat-l1{background:#f9d7dc;color:#a94650}
.heat-l2{background:#f3aab3;color:#8b2430}
.heat-l3{background:#e66f7d;color:#fff}
.heat-l4{background:#cf3447;color:#fff}
.heat-l5{background:#9f1426;color:#fff}
.life-tag{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;background:#eef0f4;color:#586070;white-space:nowrap}
.life-new_emerging{background:#fff0d8;color:#9a5b00}
.life-persistent_hot{background:#ffe1e5;color:#a0182d}
.life-warming_up{background:#ffecee;color:#c6283a}
.life-cooling_down{background:#e8f3ed;color:#227348}
.life-normal{background:#eef0f4;color:#586070}
.trend-side{display:flex;flex-direction:column;gap:16px}
.trend-rank-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 42px;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--border,#eee);text-decoration:none;color:inherit}
.trend-rank-row:last-child{border-bottom:0}
.trend-rank-row strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-rank-row span{display:block;font-size:11px;color:var(--text-hint,#999);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-rank-row em{font-style:normal;font-size:12px;font-weight:700;color:#d12b3f;text-align:right}
.trend-rank-row.cooling em{color:#268153}
.mini-bars{display:flex;align-items:end;gap:3px;height:24px}
.mini-bars i{display:block;width:10px;border-radius:4px 4px 2px 2px;background:#eef0f4}
.bar-l0{height:5px;background:#eef0f4!important}.bar-l1{height:8px;background:#f9d7dc!important}.bar-l2{height:12px;background:#f3aab3!important}.bar-l3{height:16px;background:#e66f7d!important}.bar-l4{height:20px;background:#cf3447!important}.bar-l5{height:24px;background:#9f1426!important}
.life-distribution{display:flex;flex-direction:column;gap:12px}
.life-dist-row{display:grid;grid-template-columns:90px minmax(0,1fr) 38px;gap:10px;align-items:center;font-size:13px}
.life-dist-track{height:12px;border-radius:999px;background:#f0f2f5;overflow:hidden}
.life-dist-track i{display:block;height:100%;border-radius:999px;background:#aeb6c5}
.life-dist-track .life-new_emerging{background:#e7a33e}.life-dist-track .life-persistent_hot{background:#c91931}.life-dist-track .life-warming_up{background:#ef5362}.life-dist-track .life-cooling_down{background:#37a66b}.life-dist-track .life-normal{background:#aeb6c5}
.leader-switch-card{display:block;text-decoration:none;color:inherit;padding:12px 0;border-bottom:1px solid var(--border,#eee)}
.leader-switch-card:last-child{border-bottom:0}
.leader-switch-card div{display:flex;justify-content:space-between;gap:10px;align-items:center}
.leader-switch-card strong{font-size:14px}.leader-switch-card span{font-size:12px;color:var(--text-secondary,#666)}
.leader-switch-card p{margin:6px 0 0;font-size:12px;color:var(--text-secondary,#666)}
.directory-trend-empty{padding:38px;text-align:center}.empty-title{font-size:18px;font-weight:700;margin-bottom:8px}.empty.compact{padding:18px 0;font-size:13px;color:var(--text-hint,#999)}
@media (max-width: 980px){.trend-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-trend-layout,.trend-bottom-grid{grid-template-columns:1fr}.trend-side{display:grid;grid-template-columns:1fr 1fr}.heat-row{min-width:620px}}
@media (max-width: 640px){.trend-summary-grid,.trend-side{grid-template-columns:1fr}.trend-panel-head{flex-direction:column}.trend-stat-card strong{font-size:26px}}
.theme-life-line{display:flex;align-items:center;gap:8px;margin:8px 0 2px;min-height:24px}
.theme-life-line span:last-child{font-size:11px;color:var(--text-hint,#999);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-alert-panel{padding:18px;margin-bottom:16px}.compact-alert-panel{margin-top:16px}.trend-alert-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.trend-alert-controls label{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid var(--border,#eee);border-radius:14px;background:var(--surface-soft,#fafafa)}.trend-alert-controls span{font-size:12px;color:var(--text-secondary,#666)}.trend-alert-controls input{border:1px solid var(--border,#ddd);border-radius:10px;padding:8px 10px;background:#fff}.trend-alert-controls em{font-style:normal;font-size:11px;color:var(--text-hint,#999)}.trend-alert-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.alert-hit-card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit;border:1px solid var(--border,#eee);border-radius:14px;padding:11px;background:#fff}.alert-hit-card strong{font-size:13px}.alert-hit-card span{font-size:11px;color:var(--text-secondary,#666)}.heat-row.selected{background:rgba(207,52,71,.08);border-radius:12px;box-shadow:inset 3px 0 0 #cf3447}.stock-distribution-panel{margin-top:16px}.stock-distribution-empty{padding:30px;text-align:center;color:var(--text-hint,#999)}.selected-theme-line{margin-top:5px;font-size:13px;color:var(--text-secondary,#666)}.selected-theme-line strong{font-size:17px;color:var(--text-primary,#111);font-weight:800}.dist-meta-chip{background:rgba(207,52,71,.08);color:#9f2335;border:1px solid rgba(207,52,71,.16)}.dist-selected-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;margin-bottom:14px;border-radius:16px;background:linear-gradient(135deg,rgba(207,52,71,.10),rgba(207,52,71,.03));border:1px solid rgba(207,52,71,.14)}.dist-selected-card span{font-size:12px;color:var(--text-secondary,#666)}.dist-selected-card strong{font-size:20px;color:var(--text-primary,#111)}.dist-selected-card em{font-style:normal;font-size:12px;color:#9f2335}.dist-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.dist-summary div{padding:12px;border-radius:14px;background:var(--surface-soft,#fafafa);border:1px solid var(--border,#eee);display:flex;flex-direction:column;gap:4px}.dist-summary strong{font-size:20px}.dist-summary span{font-size:12px;color:var(--text-secondary,#666)}.dist-bars{display:flex;flex-direction:column;gap:9px}.dist-bar-row{display:grid;grid-template-columns:86px minmax(0,1fr) 42px;gap:10px;align-items:center;font-size:12px}.dist-track{height:14px;background:#f0f2f5;border-radius:999px;overflow:hidden}.dist-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f3aab3,#cf3447)}.dist-stock-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.dist-stock-lists>div{border:1px solid var(--border,#eee);border-radius:14px;padding:12px}.dist-stock-lists h4{margin:0 0 8px;font-size:13px}.dist-stock-lists p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-bottom:1px solid var(--border,#f0f0f0);font-size:12px}.dist-stock-lists p:last-child{border-bottom:0}.dist-stock-lists em{font-style:normal;font-weight:700;color:#cf3447}.dist-stock-lists>div:nth-child(2) em{color:#268153}@media (max-width:980px){.market-brief-card,.trend-signal-board{grid-template-columns:1fr}.trend-alert-controls,.trend-alert-results,.dist-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.trend-alert-controls,.trend-alert-results,.dist-summary,.dist-stock-lists{grid-template-columns:1fr}.brief-main h2{font-size:26px}}
.trend-empty-state{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px dashed var(--border,#ddd);border-radius:16px;background:var(--surface-soft,#fafafa);color:var(--text-secondary,#666)}.trend-empty-state strong{font-size:14px;color:var(--text-primary,#111)}.trend-empty-state span{font-size:12px;line-height:1.5}

/* ===== 全局搜索 ===== */
.global-search-wrap{position:relative;display:flex;align-items:center;gap:6px;margin-left:auto;flex:1;max-width:360px}
.global-search-wrap input{width:100%;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:7px 34px 7px 12px;font-size:13px;background:rgba(0,0,0,.03);color:#1d1d1f;outline:none;transition:border-color .2s,background .2s}
.global-search-wrap input:focus{border-color:#0071e3;background:#fff}
.global-search-wrap input::placeholder{color:#86868b}
.global-search-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:none;border-radius:8px;background:transparent;color:#86868b;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.global-search-btn:hover{background:rgba(0,0,0,.06);color:#1d1d1f}
.global-search-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:6px 0;z-index:1000;display:none;max-height:320px;overflow-y:auto}
.gs-item{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:13px;color:#1d1d1f;text-decoration:none;transition:background .15s}
.gs-item:hover{background:rgba(0,113,227,.08)}
.gs-item strong{font-size:13px;font-weight:600;min-width:60px}
.gs-code{color:#86868b;font-size:12px}
.gs-tag{font-size:11px;color:#86868b;background:rgba(0,0,0,.04);padding:2px 6px;border-radius:6px;margin-left:auto;white-space:nowrap}
@media(max-width:768px){.global-search-wrap{max-width:180px}.global-search-wrap input{padding:6px 28px 6px 10px;font-size:12px}.global-search-btn{width:24px;height:24px}}

/* ===== 市场仪表盘 ===== */
.market-dashboard{margin-bottom:20px}
.md-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.md-card{background:var(--card-bg,#fff);border:1px solid var(--border,#eee);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}
.md-label{font-size:12px;color:var(--text-secondary,#86868b);font-weight:500}
.md-value{font-size:26px;font-weight:700;letter-spacing:-.5px;color:#1d1d1f}
.md-change{font-size:13px;font-weight:500}
.md-updown{display:flex;align-items:center;gap:8px;font-size:26px;font-weight:700}
.md-up{color:#d12b3f}.md-down{color:#268153}.md-divider{color:#86868b;font-size:20px;font-weight:400}
.md-value.is-up,.md-change.is-up{color:#d12b3f}.md-value.is-down,.md-change.is-down{color:#268153}.md-value.is-neutral,.md-change.is-neutral{color:#86868b}
@media(max-width:768px){.md-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== 财务数据表格 ===== */
.fin-section{margin-top:16px}.fin-section h4{font-size:14px;font-weight:600;margin:0 0 10px;color:var(--text,#1d1d1f)}.fin-table-wrap{overflow-x:auto}.fin-table{width:100%;border-collapse:collapse;font-size:12px}.fin-table th{text-align:left;padding:8px 10px;background:var(--bg-secondary,#f5f5f5);font-weight:500;color:var(--text-secondary,#666);border-bottom:1px solid var(--border,#eee);white-space:nowrap}.fin-table td{padding:8px 10px;border-bottom:1px solid var(--border,#f0f0f0);white-space:nowrap}.fin-table tr:hover{background:var(--bg-secondary,#f9f9fb)}

/* ===== 全局搜索可见性修正 ===== */
.header .logo{flex-shrink:0;margin-right:18px}
.global-search-wrap{margin-left:0;max-width:520px;min-width:260px}
.global-search-wrap input{height:34px;background:#fff;border-color:rgba(0,0,0,.14);box-shadow:0 1px 2px rgba(0,0,0,.04)}
@media(max-width:768px){.header .logo{display:none}.global-search-wrap{min-width:0;max-width:none;width:100%;margin-left:8px}}

/* Dashboard action layer */
.action-dashboard{display:grid;grid-template-columns:1.1fr .9fr 1.2fr;gap:14px;margin:0 0 18px;align-items:stretch}
.action-hero,.action-count,.action-tasks{background:rgba(255,255,255,.92);border:1px solid rgba(17,24,39,.08);border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
.action-hero{padding:20px;color:#111827;position:relative;overflow:hidden}
.action-hero:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#6b7280}
.action-hero.action-strong:before{background:#ef4444}.action-hero.action-weak:before{background:#10b981}.action-hero.action-neutral:before{background:#f59e0b}
.action-eyebrow{font-size:12px;color:#6b7280;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px;font-weight:700}
.action-title{font-size:26px;font-weight:850;margin-bottom:8px}.action-desc{color:#4b5563;line-height:1.7;font-size:14px}
.action-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.action-count{display:flex;flex-direction:column;justify-content:center;text-decoration:none;padding:14px;min-height:74px;box-shadow:none;color:#111827}
.action-count span{font-size:12px;color:#6b7280;margin-bottom:5px}.action-count strong{font-size:28px}.action-count.danger strong{color:#b91c1c}.action-count.warn strong{color:#b45309}.action-count.ok strong{color:#166534}
.action-tasks{padding:16px}.action-section-title{font-size:13px;color:#6b7280;font-weight:750;margin-bottom:10px}
.action-task{display:block;text-decoration:none;border:1px solid #edf0f3;border-radius:14px;padding:12px;margin-bottom:8px;background:#f9fafb;color:#111827}
.action-task span{display:inline-block;font-size:12px;font-weight:750;color:#6b7280;margin-bottom:4px}.action-task strong{display:block;font-size:15px;margin-bottom:4px}.action-task em{display:block;font-style:normal;color:#4b5563;font-size:13px;line-height:1.5}
.action-task.task-must{background:#fef2f2;border-color:#fecaca}.action-task.task-review{background:#fffbeb;border-color:#fde68a}
.risk-action-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.risk-action-pill{border:1px solid #edf0f3;border-radius:14px;padding:12px;background:#f9fafb}.risk-action-pill span{display:block;color:#6b7280;font-size:12px;margin-bottom:4px}.risk-action-pill strong{font-size:24px;color:#111827}.risk-action-pill.must strong{color:#b91c1c}.risk-action-pill.review strong{color:#b45309}
.risk-action-group{margin-top:14px}.risk-action-group-title{font-size:13px;font-weight:800;color:#111827;margin:0 0 8px;padding-left:4px}
@media(max-width:1100px){.action-dashboard{grid-template-columns:1fr}.action-counts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.action-counts,.risk-action-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.action-title{font-size:22px}}

/* Market rotation logic radar */
.logic-radar-panel{margin-top:16px}
.logic-detail-box{border:1px solid var(--border,#eee);border-radius:18px;background:linear-gradient(135deg,rgba(20,24,32,.03),rgba(207,52,71,.04));padding:16px;margin-bottom:14px}
.logic-detail-main{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.logic-detail-title{display:flex;flex-direction:column;gap:4px}
.logic-detail-title span{font-size:12px;color:var(--text-secondary,#666)}
.logic-detail-title strong{font-size:22px;color:var(--text-primary,#111)}
.logic-detail-title em{font-style:normal;font-size:12px;color:#9f2335;font-weight:700}
.logic-tags{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.logic-tags span,.logic-mini-card div span{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(207,52,71,.08);color:#9f2335;font-size:11px;font-weight:700}
.logic-chain-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.logic-chain-grid>div{padding:12px;border-radius:14px;background:#fff;border:1px solid var(--border,#eee)}
.logic-chain-grid span{display:block;font-size:12px;color:var(--text-secondary,#666);margin-bottom:6px}
.logic-chain-grid p{margin:0;font-size:13px;line-height:1.55;color:var(--text-primary,#111)}
.logic-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.logic-mini-card{appearance:none;border:1px solid var(--border,#eee);background:#fff;border-radius:16px;padding:13px;text-align:left;display:flex;flex-direction:column;gap:7px;cursor:pointer;color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.logic-mini-card:hover{transform:translateY(-1px);border-color:rgba(207,52,71,.25);box-shadow:0 10px 24px rgba(20,24,32,.06)}
.logic-mini-card strong{font-size:14px;color:var(--text-primary,#111)}
.logic-mini-card em{font-style:normal;font-size:11px;color:#9f2335;font-weight:700}
.logic-mini-card p{margin:0;font-size:12px;line-height:1.45;color:var(--text-secondary,#666);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.logic-mini-card div{display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:980px){.logic-chain-grid,.logic-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.logic-detail-main{flex-direction:column}.logic-tags{justify-content:flex-start}.logic-chain-grid,.logic-card-grid{grid-template-columns:1fr}}
