:root {
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --green: #34c759;
  --red: #ff3b30;
  --amber: #ff9f0a;
  --violet: #5856d6;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.06);
  /* 矩阵中性色阶（莫兰迪）：用 oklch 描述——明度、彩度、色相三个量分开写，
     莫兰迪的要点正是「高明度 + 极低彩度 + 固定色相」，用 oklch 就是照着说明书填数，
     不必再去猜十六进制。三档共用 --matrix-hue：85≈暖陶土灰，150 会转成灰绿鼠尾草。
     彩度都压在 0.012 以下，所以是带一点体温的灰，不是彩色。
     三档都必须是不透明色：吸顶表头/吸左产品列要靠它挡住滚过去的行。 */
  --matrix-hue: 85;
  /* 格缝底色（最浅一档，兼作吸顶单元格补缝阴影的颜色） */
  --matrix-gap: oklch(98.2% 0.004 var(--matrix-hue));
  /* 表头/产品列标签卡底色（中间一档） */
  --matrix-head: oklch(94.4% 0.011 var(--matrix-hue));
  /* 标签卡上的副文字：比 --muted 暖一点，压住冷灰与暖底打架 */
  --matrix-head-sub: oklch(52% 0.014 var(--matrix-hue));
  /* 矩阵表格（极端周/强势周/相关性）的表头与格缝：中性微冷的两档灰。
     这三张表四周是白面板 + 中性墨色，表头带暖色（试过陶土灰 hue 85）会从冷底里
     跳出来，所以色相跟着 --page 走、彩度压到 0.004 以下，只靠一档明度分层。
     刻意与上面的 --matrix-* 分开：那几个已被登录页当暖中性色使用，不要合并。
     两档都必须是不透明色：吸顶表头/吸左产品列要靠它挡住滚过去的行。 */
  --grid-hue: 264;
  --grid-gap: oklch(98.6% 0.002 var(--grid-hue));
  --grid-head: oklch(95.8% 0.004 var(--grid-hue));
  /* FOF 导轨：三条导轨同宽；--fof-gutter 为导轨探出主模块的总宽（列宽 + 间距） */
  --fof-rail: 240px;
  --fof-rail-gap: 24px;
  --fof-gutter: calc(var(--fof-rail) + var(--fof-rail-gap));
  /* FOF 涨跌语义色（红涨绿跌）：-soft 用于边框/描边，主色用于文字 */
  --fof-up: #b44f45;
  --fof-up-soft: #d46a55;
  --fof-down: #27806c;
  --fof-down-soft: #4d887b;
  --fof-flat: #7c8583;
  /* 与涨跌无关的告警色（如现金/其他为负） */
  --fof-alert: #c9342f;

  /* 字体栈：拉丁与中文分别走各自平台的最佳字面，正文/标题按光学尺寸分开。
     注意 "Segoe UI Variable" 不是可解析的族名，Win11 上真实族名是
     Segoe UI Variable Display / Text / Small——写成前者会静默掉回普通 Segoe UI。 */
  --font-ui:
    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
    "Segoe UI Variable Small", "Segoe UI", "PingFang SC", "MiSans",
    "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  --font-display:
    "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI",
    "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1280px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 245, 247, 0.96) 34%),
    var(--page);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题走 Display 光学尺寸：字腔更开、字重对比更硬朗，大字号下比 Text 干净。 */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}


html.is-fof-contained-scroll,
html.is-fof-contained-scroll body {
  height:100%;
  overflow-y:hidden;
}

html.is-fof-contained-scroll .shell {
  height:100vh;
  box-sizing:border-box;
  padding-bottom:24px;
}

html.is-fof-contained-scroll .app-view:not(.hidden) {
  height:100%;
  min-height:0;
  grid-template-rows:auto minmax(0,1fr);
}

html.is-fof-contained-scroll #workspacePanel,
html.is-fof-contained-scroll #workspacePanel > .dashboard-detail,
html.is-fof-contained-scroll #workspacePanel .fof-surface {
  height:100%;
  min-height:0;
}

html.is-fof-contained-scroll #workspacePanel {
  grid-template-rows:minmax(0,1fr);
  overflow:hidden;
}

html.is-fof-contained-scroll .fof-library-section,
html.is-fof-contained-scroll .fof-redemption-section {
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

html.is-fof-contained-scroll .fof-library-section > .fof-toolbar,
html.is-fof-contained-scroll .fof-redemption-section > .section-heading,
html.is-fof-contained-scroll .fof-library-section > .fof-position-actions,
html.is-fof-contained-scroll .fof-redemption-section > .fof-position-actions,
html.is-fof-contained-scroll .fof-library-section > .message,
html.is-fof-contained-scroll .fof-redemption-section > .message {
  flex:0 0 auto;
}

html.is-fof-contained-scroll .fof-library-section > .table-wrap,
html.is-fof-contained-scroll .fof-redemption-section > .table-wrap {
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
}

html.is-fof-contained-scroll .fof-library-section > .table-wrap .fof-table thead th,
html.is-fof-contained-scroll .fof-redemption-section > .table-wrap .fof-table thead th {
  position:sticky;
  top:0;
  z-index:4;
  background:#f8f9fb;
  box-shadow:0 1px 0 rgba(15,23,42,.08);
}

html.is-fof-contained-scroll .fof-library-section > .table-wrap .fof-table thead th:first-child,
html.is-fof-contained-scroll .fof-redemption-section > .table-wrap .fof-table thead th:first-child {
  z-index:6;
}

html.is-fof-contained-scroll .fof-surface:has(.fof-redemption-section),
html.is-fof-contained-scroll .fof-holdings-body,
html.is-fof-contained-scroll .fof-redemption-content {
  height:100%;
  min-height:0;
  overflow:hidden;
}

html.is-fof-contained-scroll .fof-redemption-content {
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  scrollbar-gutter:stable;
}

html.is-fof-contained-scroll .fof-redemption-content > section {
  flex:0 0 auto;
}

html.is-fof-contained-scroll .fof-redemption-content > .fof-redemption-section {
  display:block;
  height:auto;
  min-height:0;
  overflow:hidden;
}

html.is-fof-contained-scroll .fof-redemption-content > .fof-redemption-section > .table-wrap {
  height:auto;
  max-height:560px;
  overflow:auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 113, 227, 0.08), transparent 38%),
    linear-gradient(260deg, rgba(52, 199, 89, 0.08), transparent 42%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* 登录页是一整块「对开面」：品牌面与表单面共用一个圆角容器、一条发丝分隔线，
   而不是一张玻璃卡片浮在插画上——后者在 1280 宽的桌面终端上永远显得像落地页。
   容器负责圆角/描边/投影，两侧子面一律不再自带这些属性。 */
.auth-view {
  min-height: calc(100vh - 64px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(392px, 34%, 452px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: var(--matrix-gap);
  box-shadow:
    0 28px 72px rgba(41, 42, 38, 0.13),
    0 2px 8px rgba(41, 42, 38, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 底色走 --matrix-* 那套莫兰迪灰：暖陶土（hue 85）过渡到鼠尾草（hue 150），
   与 FOF 表格的表头/格缝同源，登录页因此不再是全站唯一的冷灰。 */
.brand-panel {
  position: relative;
  grid-column: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  /* 整页恒定 1280 宽，用 vw 定尺会跟着视口而不是容器变，这里一律给定值。 */
  padding: 58px;
  background:
    radial-gradient(126% 96% at 6% 2%, rgba(255, 255, 255, 0.96), transparent 56%),
    linear-gradient(
      152deg,
      oklch(97.8% 0.007 85),
      oklch(94.6% 0.013 85) 58%,
      oklch(92.4% 0.017 150)
    );
}

.brand-image {
  display: none;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 曲线重新配色到莫兰迪：鼠尾草 / 陶土 / 灰蓝，并整体压到很低的存在感——
   它是底纹，不是插画，抢了标题就失了体面。 */
.brand-panel::before {
  background-image: url("data:image/svg+xml,%3Csvg width='1400' height='900' viewBox='0 0 1400 900' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M-80 650C180 520 316 266 568 322C802 374 828 574 1072 482C1220 426 1298 280 1480 220' stroke='%233F6F66' stroke-width='4' opacity='0.20'/%3E%3Cpath d='M-96 742C170 576 314 392 540 426C788 464 858 708 1112 604C1254 546 1330 430 1504 378' stroke='%23A9744F' stroke-width='3.5' opacity='0.15'/%3E%3Cpath d='M-72 250C124 196 266 176 426 218C644 276 714 416 930 350C1108 296 1228 148 1488 128' stroke='%235183A4' stroke-width='3.5' opacity='0.13'/%3E%3Cpath d='M520 918C622 770 722 692 846 696C992 700 1092 814 1236 728C1326 674 1392 574 1500 552' stroke='%233F6F66' stroke-width='7' opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

/* 左上压白给文案让底，右下留住一点色；不再需要旧版那层挡插画用的重雾面。 */
.brand-panel::after {
  background:
    linear-gradient(104deg, rgba(252, 252, 251, 0.9), rgba(252, 252, 251, 0.44) 46%, transparent 78%),
    radial-gradient(78% 62% at 96% 100%, rgba(63, 111, 102, 0.07), transparent 62%);
}

.brand-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: start;
  max-width: 620px;
  color: var(--ink);
}

/* 落款压在品牌面左下角，给这块面一个收口，避免大标题以下全是空白。 */
.brand-foot {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--matrix-head-sub) 74%, transparent);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.logo-lockup,
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-logo {
  margin-bottom: 28px;
  align-items: center;
}

.logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.topbar-brand .logo-mark {
  width: 44px;
  height: 44px;
}

.logo-kicker,
.logo-name {
  margin: 0;
  line-height: 1;
}

.logo-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.hero-logo .logo-kicker {
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.logo-name {
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-copy h1,
.topbar h1,
.auth-card h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.04;
}

/* 大字号下字距必须收紧：默认间距是为正文光学尺寸调的，放到 90px+ 会散架。 */
/* 主动断行成两行：Portfolio / Intelligence 左对齐叠放，块面感比一行横排更稳；
   大字号下字距必须收紧，默认间距是为正文光学尺寸调的，放到 70px+ 会散架。 */
.brand-copy h1 {
  max-width: none;
  font-size: 66px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.965;
}

.brand-copy > p {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--matrix-head-sub);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* 三个模块用发丝线分栏排成清单：既交代了这台终端有什么，又给标题以下一段
   有结构的留白，比一句副标题收尾体面得多。 */
.brand-modules {
  width: 100%;
  max-width: 460px;
  display: grid;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid rgba(41, 42, 38, 0.1);
  list-style: none;
}

.brand-modules li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 15px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(41, 42, 38, 0.075);
}

.brand-modules span {
  grid-row: 1 / 3;
  align-self: center;
  color: rgba(63, 111, 102, 0.66);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.brand-modules strong {
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: 0.025em;
}

.brand-modules em {
  grid-column: 2;
  margin-top: 4px;
  color: var(--matrix-head-sub);
  font-size: 11px;
  font-style: normal;
  font-weight: 450;
  letter-spacing: 0.035em;
}

/* 表单面：不再是卡片，而是对开面的右页——只靠一条发丝线和一层更实的白与左页分开。
   强调色统一用 FOF 的鼠尾草绿（--fof-down 同源），把登录页从苹果蓝拉回全站色系。 */
.auth-card {
  grid-column: 2;
  display: grid;
  align-content: center;
  gap: 15px;
  padding: 48px 44px;
  border: 0;
  border-left: 1px solid rgba(41, 42, 38, 0.085);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86));
  box-shadow: -26px 0 52px -34px rgba(41, 42, 38, 0.2);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.auth-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(41, 42, 38, 0.08);
}

.auth-card h2 {
  margin-top: 0;
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -0.022em;
}

.auth-card .eyebrow {
  margin: 0;
  color: rgba(63, 111, 102, 0.72);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.auth-card > label {
  gap: 7px;
  color: var(--matrix-head-sub);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.045em;
}

.auth-card input:not([type="checkbox"]) {
  min-height: 46px;
  border-color: rgba(41, 42, 38, 0.11);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--matrix-gap);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.005em;
  box-shadow: inset 0 1px 2px rgba(41, 42, 38, 0.03);
}

.auth-card input:not([type="checkbox"])::placeholder {
  color: color-mix(in srgb, var(--matrix-head-sub) 52%, transparent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-card input:not([type="checkbox"]):hover {
  border-color: rgba(41, 42, 38, 0.19);
  background: #fff;
}

.auth-card input:not([type="checkbox"]):focus {
  border-color: rgba(63, 111, 102, 0.42);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(63, 111, 102, 0.11),
    0 4px 12px rgba(41, 42, 38, 0.05);
}

.auth-card .check-option {
  color: var(--matrix-head-sub);
  font-size: 11.5px;
  font-weight: 500;
}

.auth-card .check-option input {
  accent-color: #3f6f66;
}

.auth-card .primary-button {
  min-height: 48px;
  margin-top: 6px;
  border-radius: 13px;
  background: linear-gradient(180deg, #497e73, #3f6f66);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  box-shadow:
    0 10px 24px rgba(63, 111, 102, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-card .primary-button:hover {
  background: linear-gradient(180deg, #4f877b, #45766c);
  box-shadow:
    0 14px 30px rgba(63, 111, 102, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-card .text-button {
  justify-self: center;
  min-height: 30px;
  padding: 0;
  color: var(--matrix-head-sub);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.auth-card .text-button:hover {
  color: #3f6f66;
}

.auth-card .message:empty {
  min-height: 0;
}

.auth-card .message {
  font-size: 12px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  background: #fff;
}

/* 对开面拆成上下两页的兜底。断点不能跟随其它模块放在 980：整页恒定 1280 宽
   （body 的 min-width），视口窄只是出横向滚动条，容器仍有 1280 可用——按视口 980
   就拆版会在一个 1280 宽的容器里堆成上下两块，纯属自伤。这里只保留极窄的地板。 */
@media (max-width: 620px) {
  .auth-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .brand-panel {
    grid-column: 1;
  }

  .brand-panel::before {
    background-position: center bottom;
    background-size: auto 100%;
  }

  .brand-modules {
    max-width: none;
  }

  .auth-card {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid rgba(41, 42, 38, 0.085);
    box-shadow: 0 -26px 52px -34px rgba(41, 42, 38, 0.2);
  }
}

/* 入场只做一次极轻的上浮，勾勒层次；prefers-reduced-motion 由全局规则统一压掉。 */
@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand-copy,
.brand-foot,
.auth-card {
  animation: auth-rise 620ms cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.auth-card {
  animation-delay: 90ms;
}

.brand-foot {
  animation-delay: 220ms;
}

.brand-modules li {
  animation: auth-rise 560ms cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.brand-modules li:nth-child(1) {
  animation-delay: 150ms;
}

.brand-modules li:nth-child(2) {
  animation-delay: 220ms;
}

.brand-modules li:nth-child(3) {
  animation-delay: 290ms;
}

.auth-options {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: -4px;
}

.check-option {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

.check-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.tab-button,
.chip-button,
.floating-period-button,
.date-picker-trigger,
.adap-calendar-head button,
.calendar-head button,
.adap-calendar-day,
.calendar-day {
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.tab-button {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 0 16px;
  font-weight: 680;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.tab-button:hover,
.chip-button:hover,
.floating-period-button:hover,
.date-picker-trigger:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.tab-button:active,
.chip-button:active,
.floating-period-button:active {
  transform: scale(0.985);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.danger-button {
  color: var(--red);
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.text-button {
  color: var(--blue);
  background: transparent;
}

.message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.app-view {
  display: grid;
  gap: 24px;
}

.topbar,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar {
  position: sticky;
  /* 吸顶后紧贴视口上沿：留缝会让下方图表从缝里透出来，看着像被顶栏切了一刀 */
  top: 0;
  z-index: 30;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.42);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.topbar.scrolled {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.topbar-brand {
  display: grid;
  gap: 10px;
  align-items: start;
}

.topbar-tabs {
  justify-content: flex-start;
  min-width: 0;
  padding-inline: 0;
}

.topbar-tabs--hidden {
  display: none !important;
}

.topbar h1 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 780;
}

.topbar .eyebrow {
  color: var(--muted);
  margin-bottom: 5px;
}

.top-actions,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tab-button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.tab-button.active {
  color: #fff;
  background: var(--ink);
  border-color: transparent;
}

.panel {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto;
}

.panel-header {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.panel-body {
  min-width: 0;
  width: 100%;
}

#adminPanel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

#adminPanel .section-heading .secondary-button {
  min-width: 86px;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.chart-grid.admin-stat-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-stat-panel {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.admin-metric-grid {
  margin-bottom: 0;
}

.abnormal-panel {
  display: grid;
  align-content: start;
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.device-list span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-empty-state {
  min-height: 280px;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.dashboard-detail {
  margin-top: 0;
}

.tab-surface {
  width: 100%;
  max-width: 100%;
  min-height: 900px;
  overflow: visible;
  border-radius: 8px;
}

.tab-surface--launch {
  display: grid;
  place-items: center;
}

.tab-surface--flow,
.tab-surface--signal {
  display: block;
}

.signal-board {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 48%),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.launch-panel {
  width: 100%;
  display: grid;
  place-content: center;
  gap: 16px;
  min-height: 480px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.launch-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 780;
  text-transform: lowercase;
}

.analysis-board {
  display: grid;
  gap: 16px;
}

.strategy-hero,
.data-panel,
.metric-tile {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 48%),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  min-height: 204px;
  padding: clamp(24px, 4vw, 44px);
}

.strategy-hero h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.strategy-hero p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.chip-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.chip-button.active {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}

.floating-period-selector {
  --floating-period-panel-width: 272px;
  --floating-period-handle-width: 34px;
  position: fixed;
  top: 52%;
  right: 0;
  z-index: 24;
  width: calc(var(--floating-period-panel-width) + var(--floating-period-handle-width));
  display: grid;
  grid-template-columns: var(--floating-period-handle-width) var(--floating-period-panel-width);
  align-items: stretch;
  transform: translateY(-50%) translateX(var(--floating-period-panel-width));
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease,
    box-shadow 200ms ease;
}

.floating-manager-selector {
  --floating-manager-panel-width: 420px;
  --floating-manager-handle-width: 34px;
  position: fixed;
  top: 52%;
  left: 0;
  z-index: 45;
  width: calc(var(--floating-manager-panel-width) + var(--floating-manager-handle-width));
  display: grid;
  grid-template-columns: var(--floating-manager-panel-width) var(--floating-manager-handle-width);
  align-items: stretch;
  transform: translateY(-50%) translateX(calc(-1 * var(--floating-manager-panel-width)));
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease,
    box-shadow 200ms ease;
}

.floating-sharpe-follower { position:absolute; top:18px; bottom:18px; left:-60px; z-index:13; width:48px; pointer-events:none; }
.sharpe-follower-button { position:sticky; top:calc(50vh - 66px); width:48px; min-height:132px; display:grid; align-content:center; justify-items:center; gap:9px; border:1px solid rgba(60,60,67,.11); border-radius:15px; padding:10px 0 11px; color:rgba(71,85,105,.72); background:rgba(250,250,252,.84); box-shadow:0 1px 2px rgba(15,23,42,.025); backdrop-filter:blur(20px) saturate(1.14); -webkit-backdrop-filter:blur(20px) saturate(1.14); font:inherit; cursor:pointer; pointer-events:auto; overflow:hidden; transition:color 160ms ease,background 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease; }
.sharpe-follower-button:hover { color:var(--blue); border-color:rgba(0,113,227,.2); background:rgba(250,250,252,.96); box-shadow:0 8px 22px rgba(15,23,42,.07); }
.sharpe-follower-button:active { transform:scale(.98); }
.sharpe-follower-button:focus-visible { outline:3px solid rgba(0,113,227,.24); outline-offset:2px; }
.sharpe-follower-button:disabled { cursor:not-allowed; opacity:.48; }
.sharpe-follower-logo { width:22px; height:22px; border-radius:7px; padding:4px; color:rgba(0,113,227,.82); background:rgba(0,113,227,.075); fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:color 160ms ease,background 160ms ease,transform 160ms ease; }
.sharpe-follower-label { writing-mode:vertical-rl; text-orientation:upright; color:rgba(30,64,98,.86); font-size:11px; line-height:1; font-weight:660; letter-spacing:1.5px; }
.sharpe-follower-percent { color:rgba(0,113,227,.86); font-size:9px; line-height:1; font-weight:760; letter-spacing:-.1px; }
.sharpe-follower-button::after { content:""; position:absolute; right:0; top:18px; bottom:18px; width:2px; border-radius:2px 0 0 2px; background:transparent; transition:background 160ms ease; }
.floating-sharpe-follower.is-active .sharpe-follower-button { color:rgba(0,87,174,.82); border-color:rgba(0,113,227,.26); background:rgba(238,247,255,.96); box-shadow:0 8px 22px rgba(0,113,227,.11); }
.floating-sharpe-follower.is-active .sharpe-follower-logo { color:#fff; background:#1683ed; transform:translateY(-1px); }
.floating-sharpe-follower.is-active .sharpe-follower-label { color:#0066c7; }
.floating-sharpe-follower.is-active .sharpe-follower-percent { color:#0066c7; }
.floating-sharpe-follower.is-active .sharpe-follower-button::after { background:#1683ed; }
.floating-sharpe-follower.floating-martin-follower.is-active .martin-follower-button { color:rgba(79,60,171,.88); border-color:rgba(111,91,211,.28); background:rgba(245,242,255,.96); box-shadow:0 8px 22px rgba(111,91,211,.12); }
.floating-sharpe-follower.floating-martin-follower .martin-follower-logo { color:#6f5bd3; background:rgba(111,91,211,.09); }
.floating-sharpe-follower.floating-martin-follower.is-active .martin-follower-logo { color:#fff; background:#6f5bd3; }
.floating-sharpe-follower.floating-martin-follower.is-active .sharpe-follower-label,
.floating-sharpe-follower.floating-martin-follower.is-active .sharpe-follower-percent { color:#5d49c2; }
.floating-sharpe-follower.floating-martin-follower.is-active .martin-follower-button::after { background:#6f5bd3; }

.floating-overlay-selector {
  position: absolute;
  top: 18px;
  left: -60px;
  bottom: 18px;
  z-index: 13;
  width: 48px;
  pointer-events: none;
}

.floating-overlay-selector.is-open {
  width: 650px;
}

.floating-period-selector:hover,
.floating-period-selector:focus-within,
.floating-period-selector.is-open {
  transform: translateY(-50%) translateX(0);
}

.floating-manager-selector:hover,
.floating-manager-selector:focus-within,
.floating-manager-selector.is-open {
  transform: translateY(-50%) translateX(0);
}

@media (hover: none) and (pointer: coarse) {
  .floating-period-selector:hover {
    transform: translateY(-50%) translateX(var(--floating-period-panel-width));
  }

  .floating-manager-selector:hover {
    transform: translateY(-50%) translateX(calc(-1 * var(--floating-manager-panel-width)));
  }

  .floating-period-selector:focus-within,
  .floating-period-selector.is-open,
  .floating-manager-selector:focus-within,
  .floating-manager-selector.is-open {
    transform: translateY(-50%) translateX(0);
  }
}

.period-handle,
.floating-period-panel,
.manager-handle,
.floating-manager-panel,
.overlay-handle,
.floating-overlay-panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.overlay-handle,
.floating-overlay-panel {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
}

.period-handle {
  height: 54px;
  align-self: center;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  color: rgba(51, 65, 85, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  font: inherit;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.manager-handle {
  height: 54px;
  align-self: center;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: rgba(51, 65, 85, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  font: inherit;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.period-handle:hover,
.manager-handle:hover,
.floating-period-selector.is-open .period-handle,
.floating-manager-selector.is-open .manager-handle {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.overlay-handle {
  position: sticky;
  top: calc(50vh - 58px);
  width: 48px;
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border-color: rgba(60, 60, 67, 0.12);
  padding: 10px 0;
  border-radius: 14px;
  color: rgba(0, 113, 227, 0.82);
  background: rgba(250, 250, 252, 0.76);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.overlay-handle:hover {
  border-color: rgba(0, 113, 227, 0.2);
  background: rgba(250, 250, 252, 0.94);
  box-shadow: none;
}

.overlay-handle:active {
  transform: scale(0.98);
}

.overlay-handle span,
.overlay-handle strong {
  writing-mode: vertical-rl;
  line-height: 1;
  letter-spacing: 0.5px;
}

.overlay-handle span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.overlay-handle strong {
  color: rgba(0, 113, 227, 0.86);
  font-size: 12px;
  font-weight: 650;
}

.overlay-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overlay-handle em {
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 820;
  box-shadow: none;
}

.period-handle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manager-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.period-handle-dots {
  display: none;
  grid-auto-flow: column;
  gap: 5px;
}

.manager-handle-dots {
  display: none;
  grid-auto-flow: column;
  gap: 5px;
}

.period-handle-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: none;
}

.manager-handle-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: none;
}

.floating-period-panel {
  min-height: 246px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 16px;
  border-radius: 20px 0 0 20px;
  border-color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 113, 227, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.95);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
}

.floating-manager-panel {
  max-height: min(680px, calc(100vh - 72px));
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  border-color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 0 0, rgba(0, 113, 227, 0.055), transparent 38%),
    rgba(255, 255, 255, 0.95);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  overflow: hidden;
}

.floating-overlay-panel {
  position: sticky;
  top: calc(50vh - 150px);
  width: 560px;
  max-height: min(620px, calc(100vh - 96px));
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 10px 0 0 78px;
  padding: 17px 18px 18px;
  border-radius: 20px;
  border-color: rgba(229, 229, 234, 0.82);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  pointer-events: auto;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  contain: layout paint;
}

.floating-period-meta {
  display: grid;
  gap: 5px;
  padding-bottom: 2px;
}

.floating-manager-meta {
  display: grid;
  gap: 3px;
  padding: 1px 2px 0;
}

.floating-period-meta span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.08em;
}

.floating-manager-meta span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.floating-period-meta strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.floating-manager-meta strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 580;
  letter-spacing: -0.01em;
}

.floating-manager-search {
  min-height: 19px;
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 0 5px;
  color: rgba(100, 116, 139, 0.62);
  background: rgba(241, 245, 249, 0.72);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.floating-manager-search:focus-within {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.2);
}

.floating-manager-search svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.floating-manager-search input {
  min-width: 0;
  min-height: 0;
  max-height: 19px;
  height: 19px;
  border: 0;
  outline: 0;
  padding: 0;
  color: rgba(30, 41, 59, 0.86);
  background: transparent;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 500;
  box-shadow: none;
}

.floating-manager-search input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.floating-manager-search input::placeholder {
  color: rgba(100, 116, 139, 0.58);
}

.floating-manager-search input::-webkit-search-cancel-button {
  cursor: pointer;
  opacity: 0.5;
}

.floating-manager-search small {
  color: rgba(100, 116, 139, 0.7);
  font-size: 8px;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

.floating-manager-index {
  display: flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 1px 1px;
  scrollbar-width: none;
}

.floating-manager-index::-webkit-scrollbar {
  display: none;
}

.floating-manager-index-button {
  min-width: 16px;
  height: 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 5px;
  padding: 0 3px;
  color: rgba(71, 85, 105, 0.68);
  background: transparent;
  box-shadow: none;
  font-size: 8px;
  font-weight: 620;
  line-height: 18px;
}

.floating-manager-index-button:first-child {
  min-width: 28px;
}

.floating-manager-index-button:hover {
  color: #075ea8;
  background: rgba(0, 113, 227, 0.07);
}

.floating-manager-index-button.is-active {
  color: #075ea8;
  background: rgba(0, 113, 227, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.1);
}

.floating-manager-index-button:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.34);
  outline-offset: 1px;
}

.floating-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.floating-period-button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  color: rgba(51, 65, 85, 0.78);
  background: rgba(241, 245, 249, 0.68);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.floating-period-button:hover {
  background: rgba(0, 113, 227, 0.08);
}

.floating-period-button.active {
  color: #075ea8;
  background: rgba(0, 113, 227, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.12);
  font-weight: 620;
}

.floating-date-range {
  position: relative;
  display: grid;
  gap: 8px;
}

.floating-date-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.floating-date-inputs > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 460;
}

.floating-date-field {
  position: relative;
  min-width: 0;
  display: block;
}

.floating-date-input {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 0 26px 0 10px;
  color: var(--ink);
  background: rgba(241, 245, 249, 0.7);
  font-size: 11px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  box-shadow: none;
}

.floating-date-input:focus {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

.floating-date-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transform: translateY(-50%);
}

.floating-date-toggle::before,
.floating-date-toggle::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

.floating-date-toggle::before {
  top: 7px;
}

.floating-date-toggle::after {
  top: 12px;
}

.floating-date-toggle:hover {
  background: rgba(0, 113, 227, 0.08);
}

.floating-date-status {
  display: flex;
  min-height: 22px;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.floating-date-status small {
  color: var(--soft);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 460;
  letter-spacing: 0.015em;
}

.floating-custom-chip {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
}

.floating-custom-chip::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translateY(-1px);
}

.adap-date-popover,
.date-picker-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.adap-date-popover {
  z-index: 5;
  width: 318px;
  font-family: var(--font-ui);
}

.date-picker-popover {
  border-color: rgba(229, 229, 234, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.adap-calendar-head,
.calendar-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 8px;
  align-items: center;
}

.adap-calendar-head strong,
.calendar-head strong {
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.adap-calendar-head button,
.calendar-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 760;
}

.adap-calendar-head button {
  font-weight: 500;
}

.calendar-head button {
  border-radius: 10px;
}

.adap-calendar-head button:hover,
.calendar-head button:hover {
  background: rgba(0, 113, 227, 0.08);
}

.adap-calendar-weekdays,
.adap-calendar-grid,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.adap-calendar-weekdays span,
.calendar-weekdays span {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.adap-calendar-weekdays span {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.adap-calendar-day,
.calendar-day {
  position: relative;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  color: rgba(29, 29, 31, 0.28);
  background: transparent;
  font-size: 12px;
  font-weight: 720;
}

.adap-calendar-day {
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

.calendar-day {
  border-radius: 10px;
}

.adap-calendar-day.available,
.calendar-day.available {
  color: var(--ink);
  background: transparent;
}

.calendar-day.available {
  background: rgba(0, 113, 227, 0.06);
}

.adap-calendar-day.available:hover,
.calendar-day.available:hover {
  background: rgba(0, 113, 227, 0.12);
}

.adap-calendar-day.selected,
.calendar-day.selected {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(0, 113, 227, 0.2);
}

.calendar-day.selected {
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.24);
}

.adap-calendar-day.muted,
.calendar-day.muted {
  opacity: 0.45;
}

.adap-calendar-day:disabled,
.calendar-day:disabled {
  cursor: not-allowed;
}

.adap-calendar-day i,
.calendar-day i {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.72;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid--microcap,
.metric-grid--microcap-relative {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-tile {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.metric-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.metric-tile strong {
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 780;
}

.chart-grid,
.data-grid {
  display: grid;
  gap: 16px;
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adap-equity-chart-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.chart-stack,
.data-grid {
  grid-template-columns: 1fr;
}

.microcap-board,
.cta-environment-board {
  display: grid;
  gap: 16px;
}

/* 指数模块统一视觉：紧凑标题带 + 分节标题，三张指数页共用 --------------- */

.index-board > .index-module {
  display: grid;
  gap: 16px;
}

/* 分节标题在 index-module 内由 grid gap 负责间距，去掉自带的下边距 */
.index-board > .index-module > .section-heading.compact {
  margin-bottom: 0;
}

.index-board .section-heading.compact > span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.strategy-hero--index {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 32px);
}

.strategy-hero--index h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.14;
}

.strategy-hero--index p:last-child {
  max-width: 640px;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.index-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.index-hero-meta div {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

/* 用 :where 归零特指度，好让 .cta-state-tone--* 之类的状态底色能覆盖默认底 */
:where(.index-hero-meta div) {
  background: rgba(255, 255, 255, 0.62);
}

.index-hero-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.index-hero-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
}

/* 指数模块字重校准 --------------------------------------------------------
   实测（Chrome / Win11，画布墨量法）本机中文落到 MiSans，真实字面只有
   300 / 400 / 500 / 600 四档：600 之上（620、720、780、800、900…）全部吸附
   到同一个字面，而且比 600 还细。拉丁走 Segoe UI Variable，字轴在 700 封顶。
   指数模块原先普遍用 620–860，在中文下等于全部同重，标签和数值分不出层级，
   汉字还被合成加粗糊成方墩。

   这里沿用顶栏那套「大字号 + 轻字重 + 汉字正字距」的做法（见 .topbar 一节），
   把字重收敛到真实存在的 420–580，层级改由字号、颜色和字距承担。
   负字距只给纯数字的数值位——方块字挤紧只会更局促。 */

.index-board .eyebrow {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 540;
  letter-spacing: 0.18em;
}

.index-board .strategy-hero--index h2 {
  font-weight: 560;
  letter-spacing: 0.02em;
}

.index-board .strategy-hero--index p:last-child {
  color: var(--soft);
  font-size: 14px;
  font-weight: 420;
  line-height: 1.7;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}

.index-board .index-hero-meta dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.index-board .index-hero-meta dd {
  font-weight: 560;
  letter-spacing: 0;
}

/* 分节 / 图表标题：字号降一档、字重收轻，靠字距把汉字撑开。 */
.index-board .section-heading.compact h3,
.index-board .chart-heading h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 560;
  letter-spacing: 0.022em;
}

/* .chart-panel--large 会把图表标题顶到 30px，压过它所属的分节标题。
   在 index-module 里把它压回分节标题下一档，恢复「分节 > 图表」的层级。 */
.index-board .index-module .chart-panel--large .chart-heading h3 {
  font-size: clamp(18px, 1.6vw, 21px);
}

.index-board .section-heading.compact > span,
.index-board .chart-heading span,
.index-board .chart-heading .chart-period-caption {
  font-weight: 450;
  letter-spacing: 0.02em;
}

/* 指标卡：标签走小字号 + 字距，数值靠字号和颜色出挑，不再靠字重硬顶。 */
.index-board .metric-tile span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.index-board .metric-tile strong {
  font-weight: 560;
  letter-spacing: -0.005em;
}

/* CTA 环境：仪表、状态卡、说明块、年度表统一到同一档字重。 */
.index-board :is(.cta-gauge-copy, .cta-status-card, .cta-recent-state-panel) span,
.index-board .cta-yearly-legend,
.index-board .cta-yearly-formula {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.index-board :is(.cta-gauge-copy, .cta-status-card, .cta-recent-state-panel, .cta-index-notes, .cta-state-rule, .cta-yearly-formula) strong {
  font-weight: 580;
  letter-spacing: 0.015em;
}

.index-board .cta-gauge-copy strong {
  letter-spacing: -0.005em;
}

.index-board :is(.cta-gauge-copy, .cta-state-rule) small,
.index-board :is(.cta-index-notes, .cta-status-card) p {
  font-weight: 420;
  line-height: 1.7;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}

/* 年度表里的读数是纯数字，走 560 + 零字距，与指标卡数值同一手法。 */
.index-board :is(.cta-yearly-score, .cta-yearly-stack, .cta-yearly-metrics, .cta-yearly-year) :is(strong, span, small) {
  font-weight: 560;
  letter-spacing: 0;
}

.index-board .cta-yearly-metrics small {
  font-weight: 460;
}

/* 微盘：平滑开关与图注。 */
.index-board .microcap-smoothing-option {
  font-weight: 520;
  letter-spacing: 0.04em;
}

.index-board .microcap-chart-note {
  font-weight: 420;
  line-height: 1.75;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}

.microcap-chart-grid {
  grid-template-columns: 1fr;
}

.cta-environment-chart-grid {
  grid-template-columns: 1fr;
}

.metric-grid--cta-environment {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-environment-summary-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.cta-module {
  display: grid;
  gap: 16px;
}

.cta-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr)) minmax(320px, 1.1fr);
  gap: 14px;
}

.cta-gauge-card,
.cta-status-card,
.cta-recent-state-panel {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.cta-gauge-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 180px;
  padding: 20px 18px;
}

.cta-gauge-chart {
  position: relative;
  width: 150px;
  height: 108px;
  overflow: visible;
}

.cta-gauge-arc {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 92px;
  border-radius: 150px 150px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, #fff 0 43%, transparent 44%),
    conic-gradient(from 250deg at 50% 100%, #dc2626 0deg 66deg, #fca5a5 66deg 88deg, #cbd5e1 88deg 132deg, #93c5fd 132deg 154deg, #2563eb 154deg 220deg, transparent 220deg);
}

.cta-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 3px;
  height: 70px;
  border-radius: 999px;
  background: var(--gauge-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) rotate(var(--gauge-angle));
  transform-origin: 50% 100%;
}

.cta-gauge-center {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--gauge-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, 50%);
}

.cta-gauge-copy {
  display: grid;
  gap: 8px;
}

.cta-gauge-copy span,
.cta-status-card span,
.cta-recent-state-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.cta-gauge-copy strong {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  font-weight: 820;
}

.cta-gauge-copy small {
  color: var(--gauge-color);
  font-size: 13px;
  font-weight: 760;
}

.cta-status-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
}

.cta-status-card strong {
  color: var(--ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  font-weight: 820;
}

.cta-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.cta-state-tone--deep_green {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(255, 255, 255, 0.82));
}

.cta-state-tone--light_green {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.24), rgba(255, 255, 255, 0.82));
}

.cta-state-tone--light_red {
  background: linear-gradient(135deg, rgba(252, 165, 165, 0.22), rgba(255, 255, 255, 0.82));
}

.cta-state-tone--deep_red {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(255, 255, 255, 0.82));
}

.cta-recent-state-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.cta-recent-state-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.cta-state-ribbon {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4px, 1fr);
  gap: 2px;
  min-height: 30px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.045);
}

.cta-state-ribbon-wrap {
  min-width: 0;
}

.cta-state-ribbon span {
  position: relative;
  min-width: 0;
  border-radius: 4px;
  background: var(--state-color);
  opacity: 0.82;
  cursor: default;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.cta-state-ribbon span:hover {
  z-index: 2;
  opacity: 1;
  transform: translateY(-4px) scaleX(1.25);
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(14, 165, 233, 0.34),
    0 10px 20px rgba(15, 23, 42, 0.18);
}

.cta-state-ribbon span:hover::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  transform: translateX(-50%) scaleX(0.8);
  white-space: nowrap;
  pointer-events: none;
}

.cta-state-ribbon span.latest {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(14, 165, 233, 0.34);
  opacity: 1;
}

.cta-state-ribbon-dates {
  position: relative;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cta-state-ribbon-dates span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cta-state-ribbon-dates span:first-child {
  transform: translateX(0);
}

.cta-state-ribbon-dates span:last-child {
  transform: translateX(-100%);
}

.cta-state-ribbon-empty {
  color: var(--muted);
  font-size: 13px;
}

.cta-linked-index-wrap {
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.58));
}

.cta-linked-index-wrap canvas {
  width: 100%;
  min-height: 500px;
}

.cta-index-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cta-index-notes div {
  min-width: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
}

.cta-index-notes strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.cta-index-notes p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.6;
}

.cta-quadrant-wrap canvas {
  width: 100%;
  min-height: 330px;
}

.cta-yearly-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.cta-yearly-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.cta-yearly-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--state-color);
}

.cta-yearly-formula {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0;
}

.cta-yearly-formula span,
.cta-yearly-formula strong {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.cta-yearly-formula strong {
  color: #1d4ed8;
  font-weight: 820;
}

.cta-yearly-score-table {
  display: grid;
  gap: 4px;
}

.cta-yearly-score-row {
  display: grid;
  grid-template-columns: 70px 128px minmax(220px, 1fr) 188px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 6px 8px;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.cta-yearly-score-row:hover {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.045);
}

.cta-yearly-year {
  display: grid;
  gap: 2px;
}

.cta-yearly-year strong,
.cta-yearly-year small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.cta-yearly-year strong {
  color: var(--ink);
  font-size: 13px;
}

.cta-yearly-score {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
}

.cta-yearly-score strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  color: var(--score-text, #334155);
  background: var(--score-bg, rgba(148, 163, 184, 0.15));
  font-size: 18px;
  font-weight: 860;
  line-height: 1;
}

.cta-yearly-score span {
  align-self: end;
  justify-self: start;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--score-text, #64748b);
  background: var(--score-bg, rgba(148, 163, 184, 0.13));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.cta-yearly-score--positive {
  --score-bg: rgba(37, 99, 235, 0.13);
  --score-text: #1d4ed8;
}

.cta-yearly-score--negative {
  --score-bg: rgba(220, 38, 38, 0.12);
  --score-text: #b91c1c;
}

.cta-yearly-score--neutral {
  --score-bg: rgba(148, 163, 184, 0.18);
  --score-text: #64748b;
}

.cta-yearly-score-meter {
  align-self: start;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
}

.cta-yearly-score-meter::before {
  content: "";
  display: block;
  width: calc(var(--score) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--score-color);
}

.cta-yearly-stack {
  display: flex;
  overflow: hidden;
  min-height: 26px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.045);
}

.cta-yearly-stack span {
  flex: 0 0 calc(var(--share) * 1%);
  display: grid;
  place-items: center;
  min-width: 0;
  color: rgba(15, 23, 42, 0.78);
  background: var(--state-color);
  font-size: 11px;
  font-weight: 860;
  line-height: 1;
}

.cta-yearly-stack .cta-yearly-stack-segment--deep_green,
.cta-yearly-stack .cta-yearly-stack-segment--deep_red {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.22);
}

.cta-yearly-stack .cta-yearly-stack-segment--light_green,
.cta-yearly-stack .cta-yearly-stack-segment--light_red {
  color: rgba(15, 23, 42, 0.76);
}

.cta-yearly-stack .cta-yearly-stack-segment--mixed {
  color: rgba(15, 23, 42, 0.68);
}

.cta-yearly-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  text-align: right;
}

.cta-yearly-metrics span,
.cta-yearly-metrics strong {
  display: grid;
  gap: 2px;
  font-weight: 820;
}

.cta-yearly-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.cta-yearly-metrics .positive {
  color: #1d4ed8;
}

.cta-yearly-metrics .negative {
  color: #b91c1c;
}

.cta-state-rule-list {
  display: grid;
  gap: 10px;
}

.cta-state-rule {
  display: grid;
  grid-template-columns: 16px minmax(82px, auto) 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.cta-state-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #cbd5e1;
}

.cta-state-rule strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.cta-state-rule small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
}

.cta-state-rule--deep_green .cta-state-swatch {
  background: #2563eb;
}

.cta-state-rule--light_green .cta-state-swatch {
  background: #93c5fd;
}

.cta-state-rule--mixed .cta-state-swatch {
  background: #cbd5e1;
}

.cta-state-rule--light_red .cta-state-swatch {
  background: #fca5a5;
}

.cta-state-rule--deep_red .cta-state-swatch {
  background: #dc2626;
}

.cta-state-share-table td,
.cta-state-share-table th {
  white-space: nowrap;
}

.microcap-smoothing-control {
  display: inline-grid;
  grid-template-columns: repeat(3, 64px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.microcap-smoothing-option {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.microcap-smoothing-option.active {
  color: #fff;
  background: #0f766e;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.18);
}

.microcap-smoothing-option:not(.active):hover {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.07);
}

.microcap-chart-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.data-panel {
  min-width: 0;
  padding: 18px;
}

.panel-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.chart-heading,
.section-heading.compact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.chart-heading h3,
.section-heading.compact h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 740;
}

.chart-heading span {
  color: var(--muted);
  font-size: 13px;
}

.chart-heading-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  align-items: flex-end;
  min-width: 340px;
}

.chart-heading .chart-period-caption {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  color: rgba(0, 89, 178, 0.78);
  background: rgba(0, 113, 227, 0.055);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.chart-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.chart-heading-actions {
  width: 100%;
}

.chart-canvas-wrap {
  position: relative;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  image-rendering: auto;
}

.chart-panel--large {
  padding: 22px;
}

.chart-panel--large .chart-heading {
  margin-bottom: 18px;
}

.chart-panel--large .chart-heading h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.adap-equity-chart-panel {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 251, 0.94)),
    var(--surface-strong);
}

.adap-robustness-panel {
  position: relative;
  overflow: visible;
}

.robustness-filter-rail {
  position: absolute;
  top: 18px;
  left: -60px;
  bottom: 18px;
  z-index: 12;
  width: 48px;
  pointer-events: none;
}

.robustness-filter-action {
  --robustness-point-color: #5b7cfa;
  position: sticky;
  top: calc(50vh - 58px);
  width: 48px;
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  padding: 10px 4px;
  color: rgba(91, 124, 250, 0.82);
  background: rgba(250, 250, 252, 0.76);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  cursor: pointer;
  pointer-events: auto;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.robustness-filter-action:hover:not(:disabled) {
  color: rgba(91, 124, 250, 0.92);
  border-color: rgba(91, 124, 250, 0.2);
  background: rgba(250, 250, 252, 0.94);
  box-shadow: none;
}

.robustness-filter-action.active {
  color: var(--robustness-point-color);
  border-color: rgba(91, 124, 250, 0.26);
  background: rgba(91, 124, 250, 0.1);
  box-shadow: none;
}

.robustness-filter-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.robustness-filter-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.robustness-filter-action span {
  color: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
}

.adap-equity-chart-panel--hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 61, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(255, 250, 245, 0.98), rgba(255, 255, 255, 0.96) 42%, rgba(250, 247, 244, 0.96)),
    var(--surface-strong);
  box-shadow:
    0 18px 40px rgba(255, 138, 61, 0.10),
    var(--shadow-soft);
}

.adap-equity-chart-panel .chart-heading {
  margin-bottom: 18px;
}

.adap-equity-chart-panel .chart-heading h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.adap-highlight-chip-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: stretch;
  gap: 8px;
  min-width: 0;
}

.floating-manager-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: calc(min(680px, calc(100vh - 72px)) - 143px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 6px;
  padding: 1px 3px 3px 1px;
  scrollbar-width: thin;
}

.floating-manager-grid::-webkit-scrollbar {
  width: 5px;
}

.floating-manager-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.adap-highlight-chip {
  width: 100%;
  min-height: 25px;
  border: 0;
  border-radius: 8px;
  padding: 0 5px;
  color: var(--ink);
  background: rgba(241, 245, 249, 0.66);
  box-shadow: none;
  font-size: 10px;
  font-weight: 490;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.005em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.adap-highlight-chip:hover {
  transform: none;
  border-color: rgba(0, 113, 227, 0.26);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.adap-highlight-chip.active {
  color: var(--manager-highlight-ink);
  background: color-mix(in srgb, var(--manager-highlight) 18%, #ffffff);
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--manager-highlight-strong) 72%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--manager-highlight-strong) 18%, transparent);
  font-weight: 590;
}

.adap-highlight-chip.is-hidden-manager {
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(71, 85, 105, 0.58);
  background: rgba(241, 245, 249, 0.72);
  box-shadow: none;
  opacity: 0.66;
}

.adap-highlight-chip.is-hidden-manager:hover {
  opacity: 0.86;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.adap-highlight-chip.is-overlay-manager {
  border-color: rgba(255, 138, 61, 0.34);
}

.adap-highlight-chip.is-overlay-manager::after {
  content: "临";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 999px;
  color: #9a4b00;
  background: rgba(255, 138, 61, 0.14);
  font-size: 10px;
  font-weight: 780;
}

.adap-overlay-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.adap-overlay-notice span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 138, 61, 0.22);
  border-radius: 999px;
  padding: 0 6px 0 10px;
  color: #8a4500;
  background: rgba(255, 138, 61, 0.09);
  font-size: 12px;
  font-weight: 720;
}

.adap-overlay-pill button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #8a4500;
  background: rgba(255, 138, 61, 0.14);
  font-size: 14px;
  line-height: 1;
  font-weight: 760;
}

.adap-overlay-pill button:hover {
  color: #fff;
  background: rgba(255, 138, 61, 0.72);
}

.adap-overlay-notice .is-warning {
  border-color: rgba(215, 0, 21, 0.18);
  color: #b42318;
  background: rgba(215, 0, 21, 0.06);
}

.adap-overlay-picker {
  display: grid;
  gap: 10px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.floating-overlay-panel .adap-overlay-picker {
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.floating-overlay-panel .adap-overlay-type-list button,
.floating-overlay-panel .adap-overlay-option,
.floating-overlay-panel .adap-overlay-clear-inline {
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    opacity 120ms ease;
}

.adap-overlay-picker.is-collapsed {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.adap-overlay-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.adap-overlay-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.adap-overlay-title strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.adap-overlay-title small {
  overflow: hidden;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adap-overlay-toggle {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 6px 9px 6px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.adap-overlay-toggle span {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.adap-overlay-toggle strong {
  font-size: 13px;
  font-weight: 800;
}

.adap-overlay-toggle small {
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adap-overlay-toggle i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.07);
  font-style: normal;
  font-size: 15px;
  font-weight: 780;
  transition: transform 160ms ease;
}

.adap-overlay-toggle i::before {
  content: "⌄";
  transform: translateY(-1px);
}

.adap-overlay-picker.is-open .adap-overlay-toggle i {
  transform: rotate(180deg);
}

.adap-overlay-toggle:hover {
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.adap-overlay-clear-inline {
  flex: 0 0 auto;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: rgba(71, 85, 105, 0.72);
  background: rgba(148, 163, 184, 0.09);
  font-size: 10px;
  font-weight: 580;
}

.adap-overlay-clear-inline:disabled {
  color: rgba(100, 116, 139, 0.42);
  background: rgba(148, 163, 184, 0.12);
  cursor: not-allowed;
}

.adap-overlay-grid {
  position: relative;
  max-height: 140px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.floating-overlay-panel .adap-overlay-grid {
  max-height: 340px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.floating-overlay-panel .adap-overlay-option {
  box-shadow: none;
}

.floating-overlay-panel .adap-overlay-option:hover {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(240, 253, 250, 0.82);
}

.adap-overlay-type-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: thin;
}

.adap-overlay-type-list button {
  flex: 0 0 auto;
  min-height: 25px;
  border: 0;
  border-radius: 7px;
  padding: 0 7px;
  color: rgba(71, 85, 105, 0.72);
  background: transparent;
  font-size: 10px;
  font-weight: 560;
}

.adap-overlay-type-list button:hover {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.045);
}

.adap-overlay-type-list button.active {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.07);
  font-weight: 650;
}

.adap-overlay-option {
  min-width: 0;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.025);
}

.adap-overlay-option strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.adap-overlay-option.active {
  border-color: rgba(255, 138, 61, 0.42);
  color: #7a3a00;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.14), rgba(255, 255, 255, 0.84));
  box-shadow:
    0 5px 14px rgba(255, 138, 61, 0.08),
    inset 0 0 0 1px rgba(255, 138, 61, 0.12);
}

.adap-overlay-option.active strong {
  font-weight: 650;
}

.adap-highlight-actions {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 24px;
  color: rgba(100, 116, 139, 0.72);
}

.floating-manager-actions {
  justify-self: end;
}

.adap-highlight-action {
  min-height: 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 5px;
  color: inherit;
  background: transparent;
  font-size: 10px;
  font-weight: 480;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.adap-highlight-action + .adap-highlight-action {
  border-left-color: transparent;
}

.adap-highlight-action:hover {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.06);
}

.adap-highlight-action.active {
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.14);
  background: rgba(0, 113, 227, 0.08);
  font-weight: 600;
}

.adap-highlight-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.floating-manager-search-empty {
  grid-column: 1 / -1;
  min-height: 72px;
  place-content: center;
  text-align: center;
  font-size: 11px;
}

.floating-manager-search-empty:not([hidden]) {
  display: grid;
}

.chart-canvas-wrap--axis-badges {
  padding-left: 54px;
  padding-bottom: 48px;
}

.chart-axis-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 轴标题只是图注，不需要药丸底框——去掉描边与白底，压成一行淡标签 */
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--soft);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.chart-axis-badge--y {
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.chart-axis-badge--x {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
}

.scatter-canvas {
  min-height: 480px;
}

.scatter-canvas--uniform {
  min-height: 680px;
}

.scatter-canvas--hero {
  min-height: 580px;
}

.correlation-panel {
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  /* 同 .extreme-heatmap-panel：只有下内边距留在滚动容器里 */
  padding: 6px 12px 0;
}

.correlation-chart-panel {
  position: relative;
}

.overlay-anchor-panel {
  position: relative;
  overflow: visible;
}

.correlation-sort-toggle {
  position: sticky;
  top: calc(50vh - 58px);
  width: 48px;
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  padding: 10px 4px;
  color: rgba(0, 113, 227, 0.82);
  background: rgba(250, 250, 252, 0.76);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.correlation-sort-toggle:hover {
  border-color: rgba(0, 113, 227, 0.2);
  background: rgba(250, 250, 252, 0.94);
  box-shadow: none;
}

.correlation-sort-toggle:active {
  transform: scale(0.98);
}

.correlation-sort-toggle span,
.correlation-sort-toggle strong {
  writing-mode: vertical-rl;
  line-height: 1;
  letter-spacing: 1px;
}

.correlation-sort-toggle span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.correlation-sort-toggle strong {
  color: rgba(0, 113, 227, 0.86);
  font-size: 12px;
  font-weight: 650;
}

.correlation-sort-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 产品分析卡片共用的悬浮操作语言：图标、纵向标题、横向状态。 */
.analysis-rail-button {
  position: sticky;
  top: calc(50vh - 70px);
  width: 48px;
  height: 140px;
  min-height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(60, 60, 67, 0.11);
  border-radius: 15px;
  padding: 10px 0 11px;
  color: rgba(71, 85, 105, 0.7);
  background: rgba(250, 250, 252, 0.84);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  backdrop-filter: blur(20px) saturate(1.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  overflow: hidden;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.analysis-rail-button:hover:not(:disabled) {
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.19);
  background: rgba(252, 253, 255, 0.97);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.065);
}

.analysis-rail-button .analysis-rail-icon {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 7px;
  padding: 4px;
  color: rgba(0, 113, 227, 0.8);
  background: rgba(0, 113, 227, 0.07);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.analysis-rail-button .analysis-rail-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: rgba(30, 64, 98, 0.84);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 1.4px;
}

.analysis-rail-button .analysis-rail-meta {
  writing-mode: horizontal-tb;
  min-width: 25px;
  border-radius: 999px;
  padding: 3px 4px;
  color: rgba(0, 96, 192, 0.82);
  background: rgba(0, 113, 227, 0.07);
  font-size: 8px;
  line-height: 1;
  font-weight: 760;
  font-style: normal;
  letter-spacing: -0.1px;
  text-align: center;
}

.floating-overlay-selector.is-open .analysis-rail-button,
.floating-sharpe-follower.is-active .analysis-rail-button,
.robustness-filter-action.analysis-rail-button.active,
.correlation-mode-toggle.analysis-rail-button.is-active {
  color: rgba(0, 87, 174, 0.82);
  border-color: rgba(0, 113, 227, 0.25);
  background: rgba(238, 247, 255, 0.96);
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.1);
}

.floating-overlay-selector.is-open .analysis-rail-icon,
.floating-sharpe-follower.is-active .analysis-rail-icon,
.robustness-filter-action.analysis-rail-button.active .analysis-rail-icon,
.correlation-mode-toggle.analysis-rail-button.is-active .analysis-rail-icon {
  color: #fff;
  background: #1683ed;
  transform: translateY(-1px);
}

.floating-overlay-selector.is-open .analysis-rail-meta,
.floating-sharpe-follower.is-active .analysis-rail-meta,
.robustness-filter-action.analysis-rail-button.active .analysis-rail-meta,
.correlation-mode-toggle.analysis-rail-button.is-active .analysis-rail-meta {
  color: #0066c7;
  background: rgba(0, 113, 227, 0.1);
}

/* 相关口径切换：从标题右上角移到面板右侧悬浮导轨，和「相关性排序」同列同款。
   两个控件必须共用一条 sticky 导轨——各自 sticky 时，面板顶边一旦低于吸附位，
   两者会同时退回各自容器顶部、叠在同一个位置。 */
.correlation-rail-stack {
  position: absolute;
  top: 18px;
  left: -60px;
  bottom: 18px;
  z-index: 12;
  width: 48px;
  pointer-events: none;
}

.correlation-rail-stack-inner {
  position: sticky;
  /* 两块 140px + 12px 间距，整体在视口中垂直居中 */
  top: calc(50vh - 146px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

/* 导轨里的按钮由外层统一吸附，自身不再各自 sticky */
.correlation-rail-stack .analysis-rail-button,
.correlation-rail-stack .correlation-sort-toggle {
  position: relative;
  top: auto;
}

.correlation-rail-stack .beta-residual-control {
  display: block;
}

.correlation-mode-toggle.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.correlation-mode-toggle.is-disabled:hover {
  color: rgba(71, 85, 105, 0.7);
  border-color: rgba(60, 60, 67, 0.11);
  background: rgba(250, 250, 252, 0.84);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

/* 竖排标签不允许折行，否则 4 个字会断成两列 */
.analysis-rail-button .analysis-rail-label {
  white-space: nowrap;
}

/* 导轨在面板左缘，说明浮层往右开 */
.correlation-rail-stack .beta-residual-tooltip {
  right: auto;
  left: calc(100% + 12px);
  top: 0;
  transform: translateX(-3px);
}

.correlation-rail-stack .beta-residual-control:hover .beta-residual-tooltip,
.correlation-rail-stack .beta-residual-control:focus-within .beta-residual-tooltip {
  transform: translateX(0);
}

/* 口径切换：药丸跟随所属面板的强调色，避免暖色面板上出现冷蓝控件。 */
.adap-return-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--adap-return-accent, #0071e3) 15%, rgba(0, 0, 0, 0.05));
  border-radius: 999px;
  background: color-mix(in srgb, var(--adap-return-accent, #0071e3) 4%, rgba(255, 255, 255, 0.86));
  box-shadow: none;
}

.adap-return-accent-calmar {
  --adap-return-accent: #ff8a3d;
}

.adap-return-accent-sharpe {
  --adap-return-accent: #0071e3;
}

.adap-return-accent-martin {
  --adap-return-accent: #6f5bd3;
}

.adap-return-accent-skew {
  --adap-return-accent: #00a36c;
}

.adap-return-accent-robustness {
  --adap-return-accent: #5b7cfa;
}

.adap-return-accent-drawdown {
  --adap-return-accent: var(--fof-down);
}

.adap-return-accent-rally {
  --adap-return-accent: var(--fof-up);
}

.adap-return-mode-button {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--adap-return-accent, #0071e3) 30%, rgba(60, 66, 78, 0.86));
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 560;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.adap-return-mode-button:hover:not(.is-active):not(.is-disabled) {
  color: color-mix(in srgb, var(--adap-return-accent, #0071e3) 70%, #1d1d1f);
  background: color-mix(in srgb, var(--adap-return-accent, #0071e3) 7%, transparent);
}

/* 选中项抬到白色滑块上，靠阴影而不是色块区分，读感更轻。 */
.adap-return-mode-button.is-active {
  color: color-mix(in srgb, var(--adap-return-accent, #0071e3) 66%, #1d1d1f);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(29, 29, 31, 0.09),
    0 0 0 1px color-mix(in srgb, var(--adap-return-accent, #0071e3) 13%, transparent);
  font-weight: 620;
}

.adap-return-mode-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.adap-equity-chart-panel .chart-heading-side:has(.adap-compact-period-caption) {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.adap-equity-chart-panel .chart-heading:has(.adap-compact-period-caption) {
  align-items: flex-end;
}

/* 统计区间独占标题右侧一行，齐右边界；口径切换已上移到 Hero。
   排版分两层：中文标签走小字号 + 大字距的说明体，日期用等宽数字承载信息，
   两者靠基线对齐，字号差半档形成主次而不靠加粗。 */
.chart-heading .adap-compact-period-caption {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0 1px;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  line-height: 1.25;
  white-space: nowrap;
  cursor: default;
}

.chart-heading .adap-compact-period-label {
  color: rgba(58, 66, 82, 0.44);
  font-size: 9.5px;
  font-weight: 560;
  letter-spacing: 0.16em;
  /* 字距是加在每个字右侧的，末字会多出一份，补回去才不会和分隔点拉开 */
  margin-right: -0.16em;
}

.chart-heading .adap-compact-period-separator {
  color: rgba(58, 66, 82, 0.24);
  font-size: 9.5px;
}

.chart-heading .adap-compact-period-value {
  color: rgba(30, 36, 48, 0.72);
  font-size: 11.5px;
  font-weight: 430;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.015em;
}

/* 破折号压细压淡，让两个日期各自成组 */
.chart-heading .adap-compact-period-value i {
  margin: 0 0.42em;
  color: rgba(58, 66, 82, 0.32);
  font-style: normal;
  font-size: 0.86em;
  vertical-align: 0.06em;
}

.beta-residual-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.beta-residual-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: min(320px, 75vw);
  padding: 10px 12px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 10px;
  color: #fff;
  background: rgba(29, 29, 31, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.beta-residual-control:hover .beta-residual-tooltip,
.beta-residual-control:focus-within .beta-residual-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1460px) {
  .floating-overlay-selector,
  .floating-sharpe-follower,
  .robustness-filter-rail,
  .correlation-rail-stack {
    left: 12px;
  }

  /* 导轨收进面板内侧后会压住标题，给标题让出一条 58px 的左内边距 */
  .correlation-chart-panel .chart-heading,
  .adap-robustness-panel .chart-heading {
    padding-left: 58px;
  }
}

@media (max-width: 780px) {
  .correlation-chart-panel .chart-heading,
  .adap-robustness-panel .chart-heading {
    padding-left: 0;
  }

  .correlation-chart-panel .correlation-sort-toggle {
    position: static;
    width: auto;
    min-height: 36px;
    display: inline-flex;
    padding: 7px 11px;
  }

  .correlation-chart-panel .correlation-sort-toggle span,
  .correlation-chart-panel .correlation-sort-toggle strong {
    writing-mode: horizontal-tb;
  }

  .adap-robustness-panel .robustness-filter-rail {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 12px;
  }

  .analysis-rail-button,
  .correlation-chart-panel .analysis-rail-button,
  .adap-robustness-panel .analysis-rail-button {
    position: relative;
    top: auto;
    width: auto;
    height: auto;
    min-height: 36px;
    display: inline-flex;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
  }

  .analysis-rail-button .analysis-rail-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0;
  }

  .analysis-rail-button .analysis-rail-icon {
    width: 20px;
    height: 20px;
  }

  /* 窄屏没有面板外的空白，导轨落回文档流，两个控件横排在矩阵上方 */
  .correlation-chart-panel .correlation-rail-stack {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 12px;
  }

  .correlation-rail-stack-inner {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .correlation-rail-stack .beta-residual-tooltip {
    right: auto;
    left: 0;
    top: calc(100% + 10px);
    transform: translateY(-3px);
  }

  .correlation-rail-stack .beta-residual-control:hover .beta-residual-tooltip,
  .correlation-rail-stack .beta-residual-control:focus-within .beta-residual-tooltip {
    transform: translateY(0);
  }

}

.extreme-heatmap-panel {
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  /* 三边内边距都挪到滚动容器外：上内边距留在里面会让吸顶表头停在它下方、
     行内容从缝里露出来；右内边距留在里面会让刚好占满宽度的表格多出一条
     12px 的横向滚动条。只有下内边距必须留在滚动容器内。 */
  padding: 6px 12px 0;
}

.extreme-heatmap-wrap {
  max-height: 860px;
  overflow: auto;
  padding: 0 0 12px;
}

.extreme-heatmap {
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 4px;
  background: transparent;
  --matrix-spread: 4px;
  --axis-surface: rgba(250, 250, 252, 0.94);
  --axis-divider: rgba(60, 60, 67, 0.1);
}

/* 密度：行高 44 + 缝 4，同样 860px 视口内从 13 行提到 17 行；
   周列按内容宽度收到 96（表头「2026-W29 / 2026-07-17」实测约 62px 宽） */
.extreme-heatmap th,
.extreme-heatmap td {
  min-width: 96px;
  height: 44px;
  border-radius: 10px;
  text-align: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

/* 两列汇总只有「+0.6%」「5/5」这么短，不必跟周列同宽 */
.extreme-heatmap thead th:nth-child(2),
.extreme-heatmap thead th:nth-child(3),
.extreme-heatmap tbody td:nth-child(2),
.extreme-heatmap tbody td:nth-child(3) {
  min-width: 84px;
}

.extreme-heatmap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* 标签卡底色自己就够把表头从近白的格缝里托出来，不必再加描边；
     外扩阴影用格缝色补满 6px 间隙，与格缝同色所以看不出扩边 */
  border-radius: 0;
  background: var(--axis-surface);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow:
    0 -10px 0 10px var(--axis-surface),
    0 1px 0 var(--axis-divider),
    0 7px 14px -13px rgba(15, 23, 42, 0.42);
}

.extreme-heatmap thead th strong,
.extreme-heatmap thead th span {
  display: block;
  line-height: 1.12;
}

.extreme-heatmap thead th strong {
  font-size: 12px;
  color: var(--ink);
}

.extreme-heatmap thead th span {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}

.extreme-heatmap tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 146px;
  width: 146px;
  padding: 0 12px;
  text-align: left;
  border-radius: 0;
  background: var(--axis-surface);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow:
    -10px 0 0 10px var(--axis-surface),
    1px 0 0 var(--axis-divider),
    8px 0 16px -15px rgba(15, 23, 42, 0.52);
}

.extreme-heatmap tbody th b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  border-radius: 999px;
  color: #fff;
  background: #283446;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  font-size: 10px;
  vertical-align: middle;
}

.extreme-heatmap tbody th div {
  display: inline-block;
  vertical-align: middle;
}

.extreme-heatmap tbody th strong,
.extreme-heatmap tbody th span {
  display: block;
  line-height: 1.1;
}

.extreme-heatmap tbody th strong {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.extreme-heatmap tbody th span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(60, 60, 67, 0.56);
}

.extreme-heatmap td {
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.extreme-heatmap .corner-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  color: rgba(60, 60, 67, 0.66);
  font-weight: 600;
  /* 左上角要同时挡住上方与左侧两个方向的格缝 */
  box-shadow:
    -10px -10px 0 10px var(--axis-surface),
    1px 0 0 var(--axis-divider),
    0 1px 0 var(--axis-divider),
    8px 8px 18px -17px rgba(15, 23, 42, 0.58);
}

.extreme-heatmap .is-selected {
  opacity: 1;
}

.extreme-heatmap .is-dimmed {
  opacity: 0.38;
}

.extreme-heatmap td.is-beating {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.extreme-summary-pill,
.extreme-summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--ink);
}

/* 与 getExtremeHeatTone() 同一套莫兰迪红/鼠尾草绿（--fof-up / --fof-down），
   不再用纯橙/纯绿——这颗汇总丸子挨着格子里的热力色，两边配色语言必须一致。 */
.extreme-summary-pill.positive {
  background: color-mix(in srgb, var(--fof-up) 16%, #fff);
  color: color-mix(in srgb, var(--fof-up) 82%, #1d1d1f);
}

.extreme-summary-pill.soft-negative {
  background: color-mix(in srgb, var(--fof-down) 12%, #fff);
  color: color-mix(in srgb, var(--fof-down) 78%, #1d1d1f);
}

.extreme-summary-pill.negative {
  background: color-mix(in srgb, var(--fof-down) 18%, #fff);
  color: color-mix(in srgb, var(--fof-down) 82%, #1d1d1f);
}

.extreme-summary-count {
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
}

.correlation-matrix-wrap {
  max-height: 860px;
  overflow: auto;
  padding: 0 0 12px;
}

.correlation-matrix {
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 3px;
  background: var(--grid-gap);
  --matrix-spread: 3px;
}

/* 密度：格子 40 + 缝 3。shortFundName() 只取 2 个字，列宽的下限其实由基金代码
   （6 位 9px ≈ 31px）决定，所以 40 已经有余量。1280 的壳里横向从 18 只提到 24 只，
   纵向同一视口从 14 行提到 19 行。数值去掉前导 0（.42 / -.35）读起来才不挤。 */
.correlation-matrix th,
.correlation-matrix td {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 9px;
  text-align: center;
}

/* 数据格用细一号字：40×40 的格子里粗体数字会跟色块的重量抢视觉，24×24 只放眼一看
   只需要辨深浅，字重退到 500 才不跟色块打架；th 上的「产品」标签仍走粗体，
   跟表头基金名的视觉重量对齐。 */
.correlation-matrix th {
  font-size: 11px;
  font-weight: 700;
}

.correlation-matrix td {
  font-size: 10px;
  font-weight: 500;
}

.correlation-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--grid-head);
  box-shadow:
    0 0 0 var(--matrix-spread) var(--grid-gap),
    0 -14px 0 var(--matrix-spread) var(--grid-gap);
}

.correlation-matrix th strong,
.correlation-matrix th span {
  display: block;
  line-height: 1.1;
}

.correlation-matrix thead th strong {
  font-size: 11px;
  color: var(--ink);
}

.correlation-matrix thead th span {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.correlation-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 84px;
  width: 84px;
  padding: 0 8px;
  text-align: left;
  background: var(--grid-head);
  box-shadow:
    0 0 0 var(--matrix-spread) var(--grid-gap),
    -14px 0 0 var(--matrix-spread) var(--grid-gap);
}

.correlation-matrix tbody th strong {
  font-size: 11px;
  color: var(--ink);
}

.correlation-matrix tbody th span {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.correlation-matrix .corner-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 84px;
  width: 84px;
  background: var(--grid-head);
  color: var(--ink);
  /* 左上角要同时挡住上方与左侧两个方向的格缝 */
  box-shadow:
    0 0 0 var(--matrix-spread) var(--grid-gap),
    0 -14px 0 var(--matrix-spread) var(--grid-gap),
    -14px 0 0 var(--matrix-spread) var(--grid-gap);
}

/* 产品相关性矩阵与 FOF 保持同一套轻量坐标轴：纯文字、窄纵轴。 */
.correlation-chart-panel .correlation-matrix thead th,
.correlation-chart-panel .correlation-matrix tbody th,
.correlation-chart-panel .correlation-matrix .corner-cell {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.correlation-chart-panel .correlation-matrix thead th {
  background-color: #fff;
  background-image: linear-gradient(
    to bottom,
    transparent 18%,
    rgba(15, 23, 42, 0.18) 50%,
    transparent 82%
  );
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 1px 70%;
  box-shadow:
    0 0 0 var(--matrix-spread) #fff,
    0 -14px 0 var(--matrix-spread) #fff;
}

.correlation-chart-panel .correlation-matrix tbody th {
  min-width: 56px;
  width: 56px;
  padding-inline: 4px;
  background-color: #fff;
  background-image: linear-gradient(
    to right,
    transparent 8%,
    rgba(15, 23, 42, 0.16) 50%,
    transparent 92%
  );
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: calc(100% - 8px) 1px;
  box-shadow:
    0 0 0 var(--matrix-spread) #fff,
    -14px 0 0 var(--matrix-spread) #fff;
}

.correlation-chart-panel .correlation-matrix .corner-cell {
  min-width: 56px;
  width: 56px;
  background-image: none;
  box-shadow:
    0 0 0 var(--matrix-spread) #fff,
    0 -14px 0 var(--matrix-spread) #fff,
    -14px 0 0 var(--matrix-spread) #fff;
}

.correlation-matrix td {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.correlation-matrix td.is-diagonal {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.correlation-matrix th.is-selected,
.correlation-matrix td.is-selected {
  opacity: 1;
  outline: 2px solid rgba(17, 17, 17, 0.14);
  outline-offset: -2px;
}

.correlation-matrix th.is-dimmed,
.correlation-matrix td.is-dimmed {
  opacity: 0.42;
}

/* Sticky axes must stay opaque while the matrix scrolls underneath them.
   Dim only the axis labels; dimming the whole th also makes its white
   background translucent and lets moving heatmap cells bleed through. */
.correlation-matrix th.is-dimmed {
  opacity: 1;
}

.correlation-matrix th.is-dimmed strong,
.correlation-matrix th.is-dimmed span {
  opacity: 0.42;
}

.cluster-map-canvas {
  min-height: 700px;
}

.cluster-k-control {
  display: grid;
  grid-template-columns: auto minmax(120px, 180px) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  width: min(100%, 330px);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.cluster-k-control span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cluster-k-control output {
  min-width: 1.4em;
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cluster-k-control small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 全局 input 规则给了 48px 高与边框/内边距，滑块要逐条抵消，否则药丸被撑到 50px */
.cluster-k-control input[type="range"] {
  width: 100%;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}

.cluster-analysis-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.overlay-cluster-action {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 138, 61, 0.075);
}

.overlay-cluster-action div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.overlay-cluster-action strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.overlay-cluster-action span,
.overlay-cluster-action small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
}

.overlay-cluster-action small {
  color: #b42318;
}

.overlay-cluster-action button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 138, 61, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: #9a4b00;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.overlay-cluster-action button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.cluster-insight-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

/* 概览数字排成一行：小标签在上、数字在下，中间只用发丝分隔线，不再用一排药丸 */
.cluster-insight-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.cluster-insight-stat {
  display: grid;
  gap: 3px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.cluster-insight-stat:first-child {
  padding-left: 2px;
  border-left: 0;
}

.cluster-insight-stat dt {
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cluster-insight-stat dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 560;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.cluster-insight-stat dd span {
  margin-left: 2px;
  color: var(--soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.cluster-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
}

.cluster-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--cluster-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

/* 顶部色条：让「哪个簇」在扫视时先于文字被认出来 */
.cluster-card-rail {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cluster-fill), transparent 92%);
  opacity: 0.9;
}

.cluster-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cluster-card.is-selected {
  opacity: 1;
  border-color: var(--cluster-halo);
  box-shadow:
    0 0 0 1px var(--cluster-halo),
    var(--shadow-soft);
}

.cluster-card.is-dimmed {
  opacity: 0.4;
}

.cluster-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cluster-card-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.cluster-card-title strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.cluster-card-title strong span {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
}

.cluster-card-title > span {
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--cluster-fill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0;
}

.cluster-card-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--cluster-ink);
  background: var(--cluster-halo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cluster-card-gauge {
  display: grid;
  gap: 6px;
}

.cluster-gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.cluster-gauge-head strong {
  color: var(--cluster-ink);
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.cluster-gauge-track {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.cluster-gauge-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cluster-fill);
  opacity: 0.72;
}

.cluster-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cluster-member-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.cluster-member-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #ffffff;
}

.cluster-member-chip.active {
  color: #ffffff;
  border-color: transparent;
  background: var(--cluster-fill);
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  display: none;
  min-width: 128px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip small,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chart-tooltip small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.chart-tooltip span {
  color: var(--blue);
  font-size: 16px;
  font-weight: 760;
}

.chart-tooltip .chart-tooltip-gap {
  height: 8px;
}

/* 指标行：标签留在左侧且降到次要灰度，数值右对齐用等宽数字，
   这样十几行叠起来时纵向能扫读，也不会所有行同等份量地喊。 */
.chart-tooltip .chart-tooltip-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  min-width: 196px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.85;
}

.chart-tooltip .chart-tooltip-line i {
  color: var(--muted);
  font-style: normal;
  font-weight: 560;
}

.chart-tooltip .chart-tooltip-line b {
  justify-self: end;
  color: var(--ink);
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

/* 第一条指标与标题之间用一条发丝线分栏 */
.chart-tooltip .chart-tooltip-line:first-of-type {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chart-tooltip .chart-tooltip-meta {
  line-height: 1.6;
}

.chart-tooltip .chart-tooltip-row {
  display: grid;
  grid-template-columns: 12px 74px auto;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.chart-tooltip .chart-tooltip-row i {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--row-color);
}

.chart-tooltip .chart-tooltip-row b {
  font-weight: 650;
}

.chart-tooltip .chart-tooltip-row em {
  color: var(--row-color);
  font-style: normal;
  font-weight: 760;
  text-align: right;
}

.chart-tooltip.scatter-product-tooltip {
  width: min(720px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  grid-template-columns: minmax(224px, 0.95fr) minmax(0, 1.55fr);
  gap: 14px;
  align-items: stretch;
  padding: 11px;
}

.chart-tooltip.scatter-product-tooltip[style*="display: block"] {
  display: grid !important;
}

.scatter-tooltip-metrics {
  min-width: 0;
  padding: 2px 3px;
}

.scatter-tooltip-metrics .chart-tooltip-line:first-of-type b {
  white-space: nowrap;
  overflow-wrap: normal;
}

/* 卡中卡是这块最容易犯的错：这里刻意不给背景/描边，
   只用一条发丝线把它和左侧指标栏分开。 */
.scatter-tooltip-nav {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 2px 3px 0 15px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.scatter-tooltip-nav header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 6px;
}

.scatter-tooltip-nav header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.scatter-tooltip-nav header b {
  color: var(--nav-series-color);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.scatter-tooltip-nav svg {
  display: block;
  width: 100%;
  height: 196px;
  overflow: visible;
}

.scatter-tooltip-nav text {
  fill: rgba(71, 85, 105, 0.62);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

/* 极值读数比首尾日期更值得看，给它更实的颜色和字重 */
.scatter-tooltip-nav-axis {
  fill: rgba(71, 85, 105, 0.6);
  font-weight: 540;
}

.scatter-tooltip-nav-y-axis {
  fill: rgba(71, 85, 105, 0.66);
  font-size: 10px;
  font-weight: 560;
}

.scatter-tooltip-nav-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scatter-tooltip-nav-grid {
  stroke: rgba(71, 85, 105, 0.13);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

/* 唯一保留的参考线：成本线 1.000 */
.scatter-tooltip-nav-baseline {
  stroke: rgba(71, 85, 105, 0.36);
  stroke-width: 1.15;
  shape-rendering: crispEdges;
}

.scatter-tooltip-nav.is-empty {
  place-items: center;
  align-content: center;
  min-height: 196px;
  color: var(--muted);
}

.scatter-tooltip-nav.is-empty span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.scatter-tooltip-nav.is-empty p {
  margin: 6px 0 0;
  font-size: 11px;
}

@media (max-width: 780px) {
  .chart-tooltip.scatter-product-tooltip {
    grid-template-columns: 1fr;
    width: min(300px, calc(100% - 16px));
  }

  .scatter-tooltip-nav {
    display: none;
  }
}

.compact-table {
  max-width: 100%;
}

.compact-table table {
  min-width: 980px;
}

.compact-table th,
.compact-table td {
  padding: 10px;
  text-align: right;
}

.compact-table th:first-child,
.compact-table td:first-child {
  position: sticky;
  left: 0;
  text-align: left;
  background: #fff;
}

.positive {
  color: var(--red);
}

.negative {
  color: var(--green);
}

.date-picker-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
}

.date-picker-trigger strong {
  font-size: 14px;
  font-weight: 760;
}

.date-picker-trigger i {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
}

.date-picker-trigger[aria-expanded="true"] {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.date-picker-popover {
  width: 318px;
}

.calendar-head {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
}

.adap-calendar-selectors,
.calendar-selectors {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(82px, 0.8fr);
  gap: 8px;
  min-width: 0;
}

.adap-calendar-selectors select,
.calendar-selectors select {
  min-height: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
}

.calendar-day:disabled {
  cursor: not-allowed;
}

.calendar-note {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 680;
}

.signal-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
}

.signal-copy h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  font-weight: 780;
}

.signal-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.signal-stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: center;
}

.stat-cell {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.stat-cell span {
  color: var(--muted);
  font-size: 13px;
}

.stat-cell strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 760;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.analysis-table {
  min-width: 980px;
}

.analysis-table th:nth-child(1),
.analysis-table td:nth-child(1) {
  min-width: 220px;
}

.empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.empty-state strong {
  font-size: 20px;
  font-weight: 760;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 900px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  background: rgba(250, 250, 252, 0.72);
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(0, 113, 227, 0.04);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td input,
td select {
  min-width: 0;
  height: 44px;
}

#adminPanel table {
  table-layout: fixed;
  min-width: 0;
}

#adminPanel td {
  padding-inline: 14px;
  padding-block: 18px;
}

#adminPanel td input,
#adminPanel td select {
  height: 46px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 148px;
}

.row-actions .secondary-button,
.row-actions .danger-button {
  min-width: 68px;
  padding-inline: 14px;
}

.user-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.user-cell span {
  color: var(--muted);
  font-size: 12px;
}

.user-management-table th:nth-child(1),
.user-management-table td:nth-child(1) {
  width: 25%;
}

.user-management-table th:nth-child(2),
.user-management-table td:nth-child(2) {
  width: 15%;
}

.user-management-table th:nth-child(3),
.user-management-table td:nth-child(3),
.user-management-table th:nth-child(4),
.user-management-table td:nth-child(4) {
  width: 13%;
}

.user-management-table th:nth-child(5),
.user-management-table td:nth-child(5) {
  width: 15%;
}

.user-management-table th:nth-child(6),
.user-management-table td:nth-child(6) {
  width: 21%;
  text-align: right;
}

.cta-holding-admin-table {
  min-width: 1180px;
}

.cta-holding-admin-table th:nth-child(1),
.cta-holding-admin-table td:nth-child(1) {
  width: 24%;
}

.cta-holding-admin-table th:nth-child(2),
.cta-holding-admin-table td:nth-child(2),
.cta-holding-admin-table th:nth-child(3),
.cta-holding-admin-table td:nth-child(3) {
  width: 9%;
}

.cta-holding-admin-table th:nth-child(4),
.cta-holding-admin-table td:nth-child(4) {
  width: 58%;
}

.cta-holding-admin-table td input:not([type="checkbox"]) {
  width: 100%;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-group-list {
  display: grid;
  gap: 8px;
}

.product-group-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.product-group-button.active {
  border-color: rgba(0, 113, 227, 0.38);
  background: rgba(0, 113, 227, 0.08);
}

.product-group-button strong {
  font-size: 14px;
  font-weight: 760;
}

.product-group-button span {
  color: var(--muted);
  font-size: 12px;
}

.product-group-editor {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.product-editor-toolbar h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.product-code-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.product-code-tools textarea {
  min-height: 76px;
  width: 100%;
  resize: vertical;
}

.product-code-tools button {
  min-width: 96px;
}

.product-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.product-chip {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.product-chip:hover,
.product-chip:focus-visible {
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.04);
}

.product-chip.is-selected {
  border-color: rgba(255, 59, 48, 0.34);
  background: rgba(255, 59, 48, 0.06);
}

.product-chip-main {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.product-chip.is-missing .product-chip-main {
  padding-right: 30px;
}

.product-chip strong,
.product-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-chip strong {
  font-size: 15px;
  font-weight: 760;
}

.product-chip span {
  color: var(--muted);
  font-size: 12px;
}

.product-chip-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.product-chip-action {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(0, 113, 227, 0.24);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.06);
  font-size: 12px;
  font-weight: 720;
}

.product-chip-action:hover,
.product-chip-action:focus-visible {
  border-color: rgba(0, 113, 227, 0.42);
  background: rgba(0, 113, 227, 0.1);
}

.product-chip-action--danger {
  border-color: rgba(255, 59, 48, 0.28);
  color: #d70015;
  background: rgba(255, 59, 48, 0.07);
}

.product-chip-action--danger:hover,
.product-chip-action--danger:focus-visible {
  border-color: rgba(255, 59, 48, 0.44);
  background: rgba(255, 59, 48, 0.11);
}

.product-chip.is-missing {
  border-color: rgba(255, 159, 10, 0.48);
  background: rgba(255, 159, 10, 0.12);
}

.product-chip.is-missing strong {
  color: #a35a00;
}

.product-chip-plus {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(163, 90, 0, 0.32);
  border-radius: 50%;
  color: #8a4b00;
  background: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

.product-chip--add {
  place-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.05);
}

.product-chip--add:hover,
.product-chip--add:focus-visible {
  border-color: rgba(0, 113, 227, 0.34);
  background: rgba(0, 113, 227, 0.08);
}

.abnormal-login-table {
  min-width: 760px;
}

.abnormal-login-table th:nth-child(1),
.abnormal-login-table td:nth-child(1) {
  width: 24%;
}

.abnormal-login-table th:nth-child(2),
.abnormal-login-table td:nth-child(2) {
  width: 12%;
}

.abnormal-login-table th:nth-child(3),
.abnormal-login-table td:nth-child(3) {
  width: 16%;
}

.abnormal-login-table th:nth-child(4),
.abnormal-login-table td:nth-child(4) {
  width: 34%;
}

.abnormal-login-table th:nth-child(5),
.abnormal-login-table td:nth-child(5) {
  width: 14%;
}

.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  min-width: 64px;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.pill.off {
  background: var(--red);
}

.pill.wait {
  background: var(--amber);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - 1280px) / 2 + 18px));
  bottom: 32px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  color: #fff;
  background: rgba(29, 29, 31, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(0, 113, 227, 0.24);
  transform: translateY(-1px);
}

.back-to-top:active {
  transform: scale(0.96);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 980px) {

  .signal-board {
    grid-template-columns: 1fr;
    min-height: 440px;
  }

  .strategy-hero,
  .chart-grid,
  .admin-stat-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .strategy-hero--index {
    align-items: start;
  }

  .index-hero-meta {
    justify-content: flex-start;
  }

  .adap-equity-chart-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid--microcap,
  .metric-grid--microcap-relative {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid--cta-environment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-environment-summary-grid {
    grid-template-columns: 1fr;
  }

  .cta-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .cta-index-notes {
    grid-template-columns: 1fr;
  }

  .cta-linked-index-wrap canvas {
    min-height: 460px;
  }

  .cta-gauge-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .cta-gauge-chart {
    width: 130px;
    height: 96px;
  }

  .cta-recent-state-panel {
    grid-template-columns: 1fr;
  }

  .cta-yearly-score-row {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .cta-yearly-score,
  .cta-yearly-stack,
  .cta-yearly-metrics {
    grid-column: 2;
  }

  .cta-yearly-metrics {
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
    text-align: left;
  }

  .topbar,
  .section-heading,
  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    display: flex;
  }

  .topbar-tabs {
    width: 100%;
  }

  .top-actions {
    width: 100%;
  }

  .chart-heading-side {
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }

  .adap-equity-chart-panel .chart-heading-side:has(.adap-compact-period-caption) {
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;
  }

  /* 窄屏 Hero 回到单列，口径切换落到文案下方靠左。 */
  .adap-equity-board > .strategy-hero:has(.strategy-hero-aside) {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategy-hero-aside {
    justify-content: flex-start;
  }

  .adap-equity-chart-panel .chart-heading:has(.adap-compact-period-caption) {
    align-items: flex-start;
  }


  .chart-heading-actions {
    justify-content: flex-start;
  }

  .tab-surface {
    min-height: 760px;
  }

  .scatter-canvas {
    min-height: 440px;
  }

  .scatter-canvas--uniform,
  .scatter-canvas--hero {
    min-height: 520px;
  }

  .cluster-map-canvas {
    min-height: 560px;
  }

  .floating-period-selector {
    --floating-period-panel-width: min(100vw - 32px, 520px);
    --floating-period-handle-width: 0px;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    grid-template-columns: 1fr;
    transform: none;
  }

  .floating-manager-selector {
    --floating-manager-panel-width: min(100vw - 32px, 520px);
    --floating-manager-handle-width: 0px;
    top: auto;
    right: 16px;
    bottom: 132px;
    left: 16px;
    width: auto;
    grid-template-columns: 1fr;
    transform: none;
  }

  .floating-sharpe-follower { top:12px; right:auto; bottom:auto; left:12px; width:auto; transform:none; }
  .sharpe-follower-button { width:auto; min-height:36px; grid-auto-flow:column; gap:7px; border-left:1px solid rgba(255,255,255,.92); border-radius:999px; padding:0 11px; }
  .sharpe-follower-button .sharpe-follower-label { writing-mode:horizontal-tb; text-orientation:mixed; letter-spacing:0; }

  .floating-overlay-selector {
    top: 12px;
    right: auto;
    bottom: auto;
    left: 12px;
    width: auto;
    transform: none;
  }

  .floating-overlay-selector.is-open {
    width: min(92vw, 580px);
  }

  .period-handle {
    display: none;
  }

  .manager-handle {
    display: none;
  }

  .floating-period-panel {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .floating-manager-panel {
    max-height: 190px;
    padding: 14px;
    border-radius: 18px;
  }

  .floating-overlay-panel {
    position: absolute;
    top: 46px;
    left: 0;
    transform: none;
    width: min(88vw, 520px);
    max-height: 240px;
    margin: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .overlay-handle {
    position: relative;
    top: auto;
    width: auto;
    min-height: 36px;
    grid-auto-flow: column;
    gap: 8px;
    padding: 0 11px;
    border-radius: 999px;
  }

  .overlay-handle span,
  .overlay-handle strong {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
  }

  .overlay-handle .analysis-rail-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0;
  }

  .overlay-handle svg {
    width: 18px;
    height: 18px;
  }

  .floating-period-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .floating-period-grid::-webkit-scrollbar {
    display: none;
  }

  .floating-period-button {
    min-width: 86px;
  }

  .adap-date-popover {
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 35;
    width: min(100%, 318px);
    max-height: calc(100vh - 180px);
    overflow: auto;
  }

  .floating-manager-grid {
    display: flex;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .floating-manager-grid::-webkit-scrollbar {
    display: none;
  }

  .floating-overlay-panel .adap-overlay-grid {
    display: flex;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .floating-overlay-panel .adap-overlay-grid::-webkit-scrollbar {
    display: none;
  }

  .adap-highlight-chip {
    min-width: 72px;
    width: auto;
  }
}

.fof-surface { width:100%; min-width:0; min-height:0; box-sizing:border-box; padding:0; display:grid; align-content:start; gap:24px; }
.fof-redemption-products { display:grid; gap:3px; }
.fof-redemption-product { width:100%; min-height:40px; display:flex; align-items:center; gap:9px; border:1px solid transparent; border-radius:10px; padding:0 11px; color:#69717b; background:transparent; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.fof-redemption-product i { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--product-color); box-shadow:0 0 0 2px color-mix(in srgb,var(--product-color) 14%,transparent); }
.fof-redemption-product:hover { background:color-mix(in srgb,var(--product-color) 7%,rgba(255,255,255,.72)); color:#3f4750; }
.fof-redemption-product.is-active { border-color:color-mix(in srgb,var(--product-color) 24%,rgba(15,23,42,.06)); background:rgba(255,255,255,.9); color:#2d343c; box-shadow:0 3px 10px color-mix(in srgb,var(--product-color) 10%,rgba(15,23,42,.035)); font-weight:680; }
table.fof-table.fof-redemption-table { width:100%; min-width:0; table-layout:fixed; }
table.fof-table.fof-redemption-table.is-readonly { width:100%; min-width:1380px; margin-inline:auto; }
.fof-redemption-table th,.fof-redemption-table td { padding:11px 10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.fof-redemption-table th { color:var(--muted); font-size:10px; font-weight:650; }
table.fof-table.fof-redemption-table.is-readonly tbody tr:not(.fof-redemption-total-row) > td { height:30px; padding-top:3px; padding-bottom:3px; }
table.fof-table.fof-redemption-table.is-readonly tbody tr:not(.fof-redemption-total-row) .fof-library-identity > strong { font-weight:400; }
table.fof-table.fof-redemption-table.is-readonly tbody tr:not(.fof-redemption-total-row) .fof-library-strategy > strong,
table.fof-table.fof-redemption-table.is-readonly tbody tr:not(.fof-redemption-total-row) .fof-library-strategy > span { line-height:1.1; }
.fof-redemption-table .is-number { text-align:right; font-variant-numeric:tabular-nums; }
.fof-redemption-table .is-number.has-breakdown { cursor:help; outline:none; }
.fof-redemption-table .is-number.has-breakdown:hover,.fof-redemption-table .is-number.has-breakdown:focus-visible { background:rgba(63,111,102,.055); box-shadow:inset 0 0 0 1px rgba(63,111,102,.12); }
.fof-redemption-table .is-positive { color:var(--fof-up); font-weight:680; }.fof-redemption-table .is-negative { color:var(--fof-down); font-weight:680; }
.fof-redemption-empty { min-height:260px; display:grid; place-content:center; justify-items:center; gap:8px; color:var(--muted); text-align:center; }
.fof-redemption-empty strong { color:#44504d; font-size:15px; }.fof-redemption-empty span { font-size:11px; }
.fof-redemption-empty button { border:0; border-radius:9px; padding:7px 12px; color:#315d55; background:rgba(63,111,102,.09); }
table.fof-redemption-table.is-readonly th:nth-child(1),table.fof-redemption-table.is-readonly td:nth-child(1){width:4%}table.fof-redemption-table.is-readonly th:nth-child(2),table.fof-redemption-table.is-readonly td:nth-child(2){width:24%}table.fof-redemption-table.is-readonly th:nth-child(3),table.fof-redemption-table.is-readonly td:nth-child(3),table.fof-redemption-table.is-readonly th:nth-child(4),table.fof-redemption-table.is-readonly td:nth-child(4),table.fof-redemption-table.is-readonly th:nth-child(5),table.fof-redemption-table.is-readonly td:nth-child(5),table.fof-redemption-table.is-readonly th:nth-child(6),table.fof-redemption-table.is-readonly td:nth-child(6){width:11%}table.fof-redemption-table.is-readonly th:nth-child(7),table.fof-redemption-table.is-readonly td:nth-child(7){width:28%}
table.fof-redemption-table.is-readonly.is-summary th:nth-child(1),table.fof-redemption-table.is-readonly.is-summary td:nth-child(1){width:4%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(2),table.fof-redemption-table.is-readonly.is-summary td:nth-child(2){width:17%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(3),table.fof-redemption-table.is-readonly.is-summary td:nth-child(3){width:18%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(4),table.fof-redemption-table.is-readonly.is-summary td:nth-child(4){width:12%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(5),table.fof-redemption-table.is-readonly.is-summary td:nth-child(5),table.fof-redemption-table.is-readonly.is-summary th:nth-child(6),table.fof-redemption-table.is-readonly.is-summary td:nth-child(6){width:9%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(7),table.fof-redemption-table.is-readonly.is-summary td:nth-child(7),table.fof-redemption-table.is-readonly.is-summary th:nth-child(8),table.fof-redemption-table.is-readonly.is-summary td:nth-child(8){width:10%}table.fof-redemption-table.is-readonly.is-summary th:nth-child(9),table.fof-redemption-table.is-readonly.is-summary td:nth-child(9){width:11%}
.fof-redemption-product-tags { flex-wrap:wrap; row-gap:4px; }
/* 左侧强调条画在首个单元格上：画在 <tr> 上时 Windows 的分数像素取整会让阴影从单元格
   背景边缘漏出，行首出现细黑短线（mac 上不可见）。 */
table.fof-table.fof-redemption-table.is-readonly .fof-redemption-total-row > td:first-child { box-shadow:inset 3px 0 0 rgba(63,111,102,.72); }
table.fof-table.fof-redemption-table.is-readonly .fof-redemption-total-row > td,
table.fof-table.fof-redemption-table.is-readonly .fof-redemption-total-row:hover > td { height:50px; border-bottom-color:rgba(63,111,102,.13); background:#f1f5f4; font-weight:700; }
.fof-redemption-total-row .is-number { color:#294f48; font-size:13px; letter-spacing:.01em; }
.fof-redemption-total-row .is-positive { color:var(--fof-up); }.fof-redemption-total-row .is-negative { color:var(--fof-down); }
.fof-redemption-total-label { display:flex; align-items:center; gap:9px; padding-left:4px; }
.fof-redemption-total-label span { padding:3px 7px; border-radius:999px; color:#fff; background:#557c74; font-size:9px; font-weight:720; letter-spacing:.08em; }
.fof-redemption-total-label strong { color:#274f47; font-size:13px; }
.fof-redemption-total-label em { color:#7b8b87; font-size:10px; font-style:normal; font-weight:560; }
table.fof-table.fof-redemption-table.is-readonly .fof-redemption-total-row > .fof-redemption-total-empty { background:#f1f5f4; }
.fof-redemption-heading-tools { min-width:0; flex:1 1 auto; display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:10px; }
.fof-redemption-heading-divider { flex:0 0 auto; width:1px; align-self:stretch; min-height:22px; background:rgba(28,54,48,.16); }
.fof-redemption-strategy-filters { justify-content:flex-end; flex-wrap:wrap; }
table.fof-table.fof-redemption-table:not(.is-readonly){min-width:1250px}table.fof-redemption-table:not(.is-readonly) th:nth-child(1),table.fof-redemption-table:not(.is-readonly) td:nth-child(1){width:48px}table.fof-redemption-table:not(.is-readonly) th:nth-child(2),table.fof-redemption-table:not(.is-readonly) td:nth-child(2){width:175px}table.fof-redemption-table:not(.is-readonly) th:nth-child(3),table.fof-redemption-table:not(.is-readonly) td:nth-child(3){width:205px}table.fof-redemption-table:not(.is-readonly) th:nth-child(4),table.fof-redemption-table:not(.is-readonly) td:nth-child(4),table.fof-redemption-table:not(.is-readonly) th:nth-child(5),table.fof-redemption-table:not(.is-readonly) td:nth-child(5){width:130px}table.fof-redemption-table:not(.is-readonly) th:nth-child(6),table.fof-redemption-table:not(.is-readonly) td:nth-child(6),table.fof-redemption-table:not(.is-readonly) th:nth-child(7),table.fof-redemption-table:not(.is-readonly) td:nth-child(7){width:140px}table.fof-redemption-table:not(.is-readonly) th:nth-child(8),table.fof-redemption-table:not(.is-readonly) td:nth-child(8){width:210px}table.fof-redemption-table:not(.is-readonly) th:nth-child(9),table.fof-redemption-table:not(.is-readonly) td:nth-child(9){width:62px}
.fof-redemption-strategy-edit { display:grid; gap:5px; }
.fof-redemption-strategy-edit select { width:100%; min-height:30px; height:30px; padding:4px 7px; font-size:11px; }
.fof-toolbar,.fof-toolbar-controls,.fof-actions { display:flex; gap:14px; align-items:end; justify-content:space-between; flex-wrap:wrap; }
.fof-toolbar-controls label,.fof-summary label { display:grid; gap:6px; font-size:12px; color:var(--muted); }
.fof-product-picker { min-width:0; margin:0; padding:0; border:0; }
.fof-product-picker legend { margin-bottom:6px; padding:0; color:var(--muted); font-size:12px; }
.fof-product-cards { display:flex; align-items:center; gap:7px; min-height:38px; padding:4px 6px; border:1px solid rgba(0,0,0,.08); border-radius:12px; background:rgba(255,255,255,.45); }
.fof-toolbar-controls .fof-product-card { position:relative; display:inline-flex; align-items:center; gap:6px; min-height:28px; box-sizing:border-box; padding:5px 10px 5px 8px; border:1px solid transparent; border-radius:999px; background:color-mix(in srgb,var(--product-color) 10%,#fff); color:#636a73; font-size:12px; font-weight:650; line-height:1; white-space:nowrap; cursor:pointer; transition:background 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 150ms ease; }
.fof-product-card input { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.fof-product-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--product-color); box-shadow:0 0 0 2px color-mix(in srgb,var(--product-color) 14%,transparent); }
.fof-product-card:hover { border-color:color-mix(in srgb,var(--product-color) 28%,transparent); color:#343a42; transform:translateY(-1px); }
.fof-product-card:has(input:checked) { border-color:color-mix(in srgb,var(--product-color) 34%,transparent); background:color-mix(in srgb,var(--product-color) 18%,#fff); color:#252a31; box-shadow:0 2px 7px color-mix(in srgb,var(--product-color) 13%,transparent); }
.fof-product-card:has(input:focus-visible) { outline:2px solid color-mix(in srgb,var(--product-color) 62%,#fff); outline-offset:2px; }
.fof-toolbar select,.fof-toolbar input,.fof-summary input,.fof-table input,.fof-table select { min-height:38px; border:1px solid rgba(0,0,0,.12); border-radius:10px; padding:7px 9px; background:var(--surface,#fff); color:inherit; }
.fof-snapshot-actions { display:flex; align-items:center; gap:8px; }
.fof-snapshot-button { height:38px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(19,27,35,.1); border-radius:12px; font:inherit; font-size:12px; font-weight:680; white-space:nowrap; cursor:pointer; box-shadow:0 1px 2px rgba(20,28,36,.03); transition:transform 160ms ease,background 160ms ease,border-color 160ms ease,box-shadow 160ms ease,color 160ms ease; }
.fof-snapshot-button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.fof-snapshot-button.is-copy { width:38px; padding:0; color:#6b737d; background:rgba(255,255,255,.5); border-radius:50%; }
.fof-snapshot-button.is-copy:hover { color:#1e252d; border-color:rgba(19,27,35,.18); background:#fff; }
.fof-snapshot-button.is-delete { width:38px; padding:0; color:#9a7b79; background:rgba(255,255,255,.5); border-radius:50%; }
.fof-snapshot-button.is-delete:hover { color:#b33b35; border-color:rgba(179,59,53,.2); background:#fff7f6; }
.fof-snapshot-button.is-new { padding:0 14px 0 11px; color:#303740; background:rgba(255,255,255,.72); }
.fof-snapshot-button.is-new:hover { color:#11161b; border-color:rgba(19,27,35,.2); background:#fff; box-shadow:0 5px 14px rgba(22,27,33,.08); transform:translateY(-1px); }
.fof-snapshot-button:active { transform:scale(.97); }
.fof-summary { display:grid; grid-template-columns:minmax(180px,1fr) minmax(220px,1.18fr) minmax(180px,1fr) minmax(180px,1fr) auto; gap:24px; align-items:end; padding:18px 20px; border-radius:18px; background:rgba(63,111,102,.07); }
.fof-summary > label,.fof-summary > div { min-width:0; grid-template-rows:16px 42px; align-items:center; gap:5px; }
.fof-summary > label { display:grid; }
.fof-summary div { display:grid; }
.fof-summary input { width:100%; height:42px; box-sizing:border-box; }
.fof-summary span { color:var(--muted); font-size:12px; }
.fof-summary strong { display:flex; align-items:center; height:42px; font-size:20px; line-height:1; font-variant-numeric:tabular-nums; }
.fof-summary > .fof-status { align-self:end; margin-bottom:7px; white-space:nowrap; }
.fof-summary > .fof-status.is-saving { color:#4d6477; background:rgba(65,105,135,.1); }
.fof-summary > .fof-status.is-error { color:#a33b35; background:rgba(179,59,53,.1); }
.fof-summary .is-cash-alert { color:var(--fof-alert); }
.fof-status,.fof-badge { border-radius:999px; padding:5px 9px; background:rgba(63,111,102,.12); color:#315d55; font-size:12px; }
.fof-section { width:100%; min-width:0; box-sizing:border-box; padding:22px; border:1px solid rgba(0,0,0,.08); border-radius:20px; background:rgba(255,255,255,.72); }
/* 与全站 .section-heading h2 一致：h3（以及备选库的 h2）需要显式重置 UA 默认外边距 */
.fof-surface .section-heading:not(.compact) h3,
.fof-surface .fof-section > .fof-toolbar h2 { margin:0; font-size:24px; line-height:1.04; }
/* 标题重置掉 UA 外边距后，原先靠它撑出的“标题—内容”间距就消失了（持仓明细、相关系数
   矩阵曾经贴死在标题下沿）。这里把间距显式交给标题栏，并清掉紧随其后那一块自带的
   margin-top，避免两者叠加，使所有区块共用同一个 20px 节奏。 */
.fof-surface .fof-section > .section-heading,
.fof-surface .fof-section > .fof-toolbar { margin-bottom:20px; }
.fof-surface .fof-section > .section-heading + *,
.fof-surface .fof-section > .fof-toolbar + * { margin-top:0; }
/* display:grid 的区块自带 row-gap，不能再叠加标题栏外边距（特异性需高于上面的通用规则） */
.fof-surface .fof-section.fof-adviser-summary > .section-heading,
.fof-surface .fof-section.fof-nav-section > .section-heading,
.fof-surface .fof-section.fof-overview-actions > .section-heading { margin-bottom:0; }
.fof-holdings-overview { display:grid; align-content:start; gap:20px; }
/* 宽屏在主体两侧显示导轨，常用桌面宽度的页内布局见 fof-workspace.css。 */
.fof-surface:has(> .fof-selection-rail) {
  width:calc(100% + var(--fof-gutter));
  max-width:none;
  margin-left:calc(-1 * var(--fof-gutter));
  grid-template-columns:var(--fof-rail) minmax(0,1fr);
  column-gap:var(--fof-rail-gap);
}
.fof-surface > .fof-selection-rail { grid-column:1; }
.fof-surface:has(> .fof-selection-rail) > .fof-holdings-body { grid-column:2; }
.fof-holdings-body { min-width:0; display:grid; align-content:start; gap:24px; }
.fof-selection-rail { min-width:0; }
.fof-selection-panel { position:sticky; top:var(--fof-sticky-top,128px); box-sizing:border-box; max-height:calc(100vh - var(--fof-sticky-top,128px) - 24px); overflow:auto; scrollbar-width:thin; }
.fof-selection-panel { padding:17px; border:1px solid rgba(255,255,255,.88); border-radius:22px; background:linear-gradient(160deg,rgba(255,255,255,.97),rgba(248,250,252,.91)); box-shadow:0 18px 44px rgba(31,41,55,.11),inset 0 1px 0 rgba(255,255,255,.86); backdrop-filter:blur(24px) saturate(1.18); scrollbar-color:rgba(100,116,139,.28) transparent; }
.fof-side-heading { display:grid; gap:4px; padding-bottom:13px; border-bottom:1px solid rgba(15,23,42,.065); }
.fof-side-heading .eyebrow { margin:0; font-size:10px; }
.fof-side-heading h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.fof-selection-panel .fof-toolbar-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px 10px; }
.fof-selection-panel .fof-toolbar-controls { padding-top:13px; }
.fof-selection-panel .fof-product-picker { grid-column:1/-1; }
.fof-selection-panel .fof-product-cards { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; gap:2px; min-height:0; padding:4px; border-color:rgba(15,23,42,.055); border-radius:13px; background:rgba(15,23,42,.022); }
.fof-selection-panel .fof-product-card { width:100%; min-height:38px; justify-content:flex-start; padding:0 11px; border-radius:10px; background:transparent; color:#69717b; }
.fof-selection-panel .fof-product-card:hover { border-color:transparent; background:color-mix(in srgb,var(--product-color) 7%,rgba(255,255,255,.72)); color:#3f4750; transform:none; }
.fof-selection-panel .fof-product-card:has(input:checked) { border-color:color-mix(in srgb,var(--product-color) 24%,rgba(15,23,42,.06)); background:rgba(255,255,255,.88); color:#2d343c; box-shadow:0 3px 10px color-mix(in srgb,var(--product-color) 10%,rgba(15,23,42,.035)); }
.fof-selection-panel .fof-toolbar-controls > label { display:grid; gap:6px; }
.fof-selection-panel select { width:100%; min-height:40px; box-sizing:border-box; border:1px solid rgba(15,23,42,.09); border-radius:11px; padding:7px 10px; background:rgba(255,255,255,.82); color:inherit; box-shadow:0 1px 2px rgba(15,23,42,.025); }
.fof-selection-panel .fof-snapshot-picker { position:relative; color:#737b85; font-weight:560; }
.fof-selection-panel .fof-snapshot-picker::after { content:""; position:absolute; right:14px; bottom:16px; width:7px; height:7px; border-right:1.7px solid #69727c; border-bottom:1.7px solid #69727c; pointer-events:none; transform:rotate(45deg); transform-origin:center; }
.fof-selection-panel .fof-snapshot-picker select { min-height:44px; appearance:none; padding:9px 38px 9px 13px; border-color:rgba(15,23,42,.075); border-radius:12px; background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,250,252,.78)); color:#4c555f; font-weight:650; box-shadow:0 4px 12px rgba(15,23,42,.045),inset 0 1px 0 rgba(255,255,255,.9); cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.fof-selection-panel .fof-snapshot-picker:hover select { border-color:rgba(63,111,102,.2); background:rgba(255,255,255,.98); box-shadow:0 6px 16px rgba(15,23,42,.065); }
.fof-selection-panel .fof-snapshot-picker:focus-within select { outline:0; border-color:rgba(63,111,102,.34); box-shadow:0 0 0 3px rgba(63,111,102,.1),0 6px 16px rgba(15,23,42,.055); }
.fof-selection-panel .fof-snapshot-picker:focus-within::after { border-color:#3f6f66; }
.fof-selection-panel .fof-snapshot-actions { grid-column:2; justify-content:flex-end; align-items:center; gap:7px; min-height:44px; }
.fof-selection-panel .fof-snapshot-button { width:36px; height:36px; background:rgba(255,255,255,.72); }
.correlation-sharpe-legend { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-height:20px; margin:0 2px 3px; color:#7c8793; font-size:8px; }
.correlation-sharpe-legend span,.correlation-sharpe-legend em { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.correlation-sharpe-legend em { color:#9aa3ad; font-style:normal; }
.correlation-sharpe-legend span { padding:2px 4px; border-radius:5px; cursor:default; outline:none; transition:color 120ms ease,background 120ms ease,box-shadow 120ms ease; }
.correlation-sharpe-legend span:is(:hover,:focus-visible,.is-active) { color:#303943; background:rgba(15,23,42,.055); box-shadow:inset 0 0 0 1px rgba(15,23,42,.055); }
.correlation-sharpe-legend i { width:5px; height:5px; border-radius:50%; background:#98a2ad; }
.correlation-sharpe-legend i.is-quintile-1 { background:#13795b; }
.correlation-sharpe-legend i.is-quintile-2 { background:#4f8b70; }
.correlation-sharpe-legend i.is-quintile-3 { background:#64748b; }
.correlation-sharpe-legend i.is-quintile-4 { background:#a47a35; }
.correlation-sharpe-legend i.is-quintile-5 { background:#b95f50; }
.correlation-matrix .correlation-axis-label strong { color:inherit; }
.correlation-matrix .correlation-axis-label.is-quintile-1 { color:#13795b; }
.correlation-matrix .correlation-axis-label.is-quintile-2 { color:#4f8b70; }
.correlation-matrix .correlation-axis-label.is-quintile-3 { color:#64748b; }
.correlation-matrix .correlation-axis-label.is-quintile-4 { color:#a47a35; }
.correlation-matrix .correlation-axis-label.is-quintile-5 { color:#b95f50; }
.correlation-matrix .correlation-axis-label.is-missing { color:#a1a9b2; }
.correlation-matrix th,.correlation-matrix td { transition:opacity 140ms ease,box-shadow 120ms ease; }
.correlation-matrix th.is-sharpe-filtered,.correlation-matrix td.is-sharpe-filtered { opacity:.2; }
.fof-contribution-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:16px; }
.fof-contribution-card { display:grid; gap:6px; padding:16px; border-radius:16px; background:rgba(63,111,102,.08); }.fof-contribution-card span { font-size:24px; }.fof-contribution-card small { color:var(--muted); }
.fof-risk-composition { display:grid; gap:10px; margin-top:20px; }
.fof-risk-composition { gap:24px; }
.fof-risk-row { display:grid; gap:9px; }
.fof-risk-section { position:relative; overflow:visible; }
.fof-risk-preview-status { display:inline-flex; align-items:center; min-height:26px; padding:4px 10px; border-radius:999px; color:#397064; background:rgba(63,111,102,.08); font-size:10px; font-weight:650; white-space:nowrap; }
.fof-risk-preview-status.is-loading { color:#6f6250; background:rgba(176,139,72,.11); }
.fof-risk-preview-status.is-error { max-width:320px; overflow:hidden; color:#9a5b51; background:rgba(154,91,81,.09); text-overflow:ellipsis; }
.fof-risk-row + .fof-risk-row { padding-top:20px; border-top:1px solid rgba(0,0,0,.07); }
.fof-risk-row-heading { display:flex; align-items:baseline; justify-content:space-between; gap:14px; }
.fof-risk-row-heading strong { font-size:14px; }
.fof-risk-row-heading span { color:var(--muted); font-size:11px; text-align:right; }
.fof-risk-row-side { display:flex; align-items:baseline; justify-content:flex-end; gap:18px; min-width:0; }
.fof-risk-row-metric { display:flex; align-items:baseline; gap:7px; white-space:nowrap; }
.fof-risk-row-metric small { color:var(--muted); font-size:10px; }
.fof-risk-row-metric strong { color:var(--ink); font-size:17px; font-variant-numeric:tabular-nums; }
.fof-risk-strategy-layout { display:grid; gap:12px; }
.fof-surface .fof-section.fof-return-section > .section-heading { margin-bottom:0; }
.fof-return-section { position:relative; z-index:20; display:grid; gap:12px; overflow:visible; }
.fof-return-heading { align-items:flex-start; }
.fof-return-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.fof-return-title h3 { margin:0; }
.fof-return-title span,.fof-return-title em { padding:3px 8px; border-radius:999px; font-size:10px; font-style:normal; font-weight:750; letter-spacing:.04em; }
.fof-return-title span { color:#315e56; background:rgba(82,143,129,.12); }
.fof-return-title em { color:#8a6027; background:#fff3dc; }
.fof-return-method { max-width:760px; margin:7px 0 0; color:var(--muted); font-size:11px; line-height:1.55; }
.fof-return-periods { display:flex; align-items:center; gap:5px; padding:3px; border:1px solid rgba(15,23,42,.07); border-radius:12px; background:rgba(248,250,252,.78); }
.fof-return-periods .period-button { min-height:30px; padding:0 11px; border:0; border-radius:9px; background:transparent; color:#737b85; font-size:11px; cursor:pointer; }
.fof-return-periods .period-button.is-active { background:#fff; color:#25312f; font-weight:750; box-shadow:0 2px 8px rgba(15,23,42,.08); }
.fof-return-controls { display:flex; align-items:center; gap:8px; }
.fof-return-month-shell { position:relative; }
.fof-return-month { display:flex; align-items:center; gap:7px; min-height:36px; padding:0 11px; border:1px solid rgba(15,23,42,.08); border-radius:12px; background:rgba(255,255,255,.9); color:#59636c; font-size:11px; font-weight:700; cursor:pointer; box-shadow:0 2px 8px rgba(15,23,42,.04); }
.fof-return-month:hover { border-color:rgba(0,113,227,.28); color:#1769aa; }
.fof-return-month.is-active { border-color:rgba(63,111,102,.2); background:rgba(63,111,102,.075); color:#315e56; }
.fof-return-month svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.fof-return-month i { width:6px; height:6px; margin:-3px 1px 0 3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.fof-return-month.is-loading { opacity:.58; cursor:wait; }
.fof-return-calendar-mode { padding:6px 9px; border-radius:999px; background:rgba(63,111,102,.08); color:#3f6f66; font-size:10px; font-weight:750; }
.fof-return-month-popover { position:absolute; z-index:120; top:calc(100% + 8px); right:0; width:218px; padding:10px; border:1px solid rgba(15,23,42,.08); border-radius:15px; background:rgba(255,255,255,.98); box-shadow:0 18px 44px rgba(15,23,42,.15); backdrop-filter:blur(16px); }
.fof-return-month-popover header { display:grid; grid-template-columns:30px 1fr 30px; align-items:center; margin-bottom:8px; }.fof-return-month-popover header strong { text-align:center; font-size:12px; }.fof-return-month-popover button { border:0; background:transparent; cursor:pointer; }
.fof-return-month-popover header button { width:28px; height:28px; border-radius:8px; color:#68726f; font-size:18px; }.fof-return-month-popover header button:hover { background:#f3f6f5; }
.fof-return-month-popover > div { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; }.fof-return-month-popover > div button { height:31px; border-radius:8px; color:#59636c; font-size:10px; }.fof-return-month-popover > div button:hover { background:rgba(63,111,102,.08); }.fof-return-month-popover > div button.is-selected { background:#3f6f66; color:#fff; font-weight:750; }.fof-return-month-popover button:disabled { opacity:.28; cursor:not-allowed; }
.fof-return-month-popover footer { margin-top:9px; padding-top:8px; border-top:1px solid rgba(15,23,42,.06); text-align:center; }.fof-return-month-popover footer button { color:#60706c; font-size:10px; font-weight:700; }
.fof-custody-contributions { width:100%; border-collapse:collapse; font-size:11px; font-variant-numeric:tabular-nums; }
.fof-custody-contributions th,.fof-custody-contributions td { padding:9px; border-bottom:1px solid rgba(15,23,42,.07); text-align:right; white-space:nowrap; }
.fof-custody-contributions th:first-child,.fof-custody-contributions td:first-child { text-align:left; }
.fof-custody-contributions .is-up { color:#ba514b; }
.fof-custody-contributions .is-down { color:#3e7a68; }
.fof-transaction-scroll { overflow:auto; max-height:560px; }
.fof-transaction-note { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 12px; margin-top:16px; padding:12px 14px; border-radius:10px; background:rgba(91,124,115,.045); }
.fof-transaction-note-label { flex-shrink:0; font-size:10px; font-weight:600; color:#6f827b; }
.fof-transaction-note p { margin:0; color:#8a9591; font-size:11px; font-weight:400; line-height:1.8; }
.fof-transaction-note p span { padding:0 5px; color:#b0bab5; }
.fof-transaction-records th:first-child,
.fof-transaction-records td:first-child { width:40px; min-width:40px; max-width:40px; padding-inline:6px; text-align:center; }
.fof-transaction-records th:nth-child(2),
.fof-transaction-records td:nth-child(2) { width:72px; text-align:left; }
.fof-transaction-records .fof-redemption-product-tags { flex-wrap:nowrap; }
.fof-transaction-records th { position:sticky; top:0; background:#f7f9fa; z-index:1; }
.fof-transaction-records td:last-child { max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.fof-return-strategy-tooltip { position:absolute; z-index:1000; top:calc(100% + 7px); right:0; width:min(560px,calc(100vw - 56px)); display:none; padding:11px; border:1px solid rgba(15,23,42,.1); border-radius:13px; background:rgba(255,255,255,.98); box-shadow:0 14px 36px rgba(15,23,42,.14); }
.fof-return-strategy-tooltip header { display:flex; justify-content:space-between; gap:10px; padding:1px 3px 7px; border-bottom:1px solid rgba(15,23,42,.07); }.fof-return-strategy-tooltip header span { color:var(--muted); font-size:9px; font-weight:500; }
.fof-return-tooltip-head,.fof-return-strategy-tooltip button { display:grid; grid-template-columns:minmax(180px,1fr) 58px 62px 62px; gap:8px; align-items:center; }
.fof-return-tooltip-head { padding:5px 6px 2px; color:var(--muted); font-size:8px; }.fof-return-tooltip-head span:not(:first-child) { text-align:center; }.fof-return-strategy-tooltip button { padding:5px 6px; border:0; border-radius:7px; background:transparent; text-align:left; cursor:pointer; }.fof-return-strategy-tooltip button:hover { background:rgba(63,111,102,.06); }
.fof-return-strategy-tooltip button span,.fof-return-strategy-tooltip button b { font-size:9px; font-variant-numeric:tabular-nums; text-align:center; }.fof-return-strategy-tooltip button .fof-return-tooltip-fund { overflow:hidden; font-size:10px; font-weight:400; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.fof-return-details { display:grid; gap:2px; padding-top:10px; border-top:1px solid rgba(15,23,42,.065); }
.fof-return-details.is-open { gap:0; padding:10px 0 0; }
.fof-return-details-heading { width:100%; display:flex; justify-content:space-between; gap:12px; margin:0; padding:9px 4px; border:0; background:transparent; text-align:left; cursor:pointer; }.fof-return-details-heading strong { font-size:13px; }.fof-return-details-heading span { color:var(--muted); font-size:10px; }
.fof-return-fund-head,.fof-return-fund-row { display:grid; grid-template-columns:minmax(145px,1.4fr) minmax(90px,1fr) 70px 70px 70px minmax(150px,1.2fr) minmax(100px,1fr); gap:9px; align-items:center; }
.fof-return-fund-head { padding:7px 9px; border:1px solid rgba(15,23,42,.075); border-radius:9px 9px 0 0; background:rgba(248,250,252,.68); color:var(--muted); font-size:9px; }
.fof-return-fund-row { width:100%; padding:7px 9px; border:0; border-right:1px solid rgba(15,23,42,.075); border-bottom:1px solid rgba(15,23,42,.075); border-left:1px solid rgba(15,23,42,.075); border-radius:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.fof-return-fund-row:last-child { border-radius:0 0 9px 9px; }
.fof-return-fund-head > *:not(:last-child),.fof-return-fund-row > *:not(:last-child) { min-width:0; padding-right:9px; border-right:1px solid rgba(15,23,42,.055); }
.fof-return-fund-row > .fof-return-fund-name { overflow:hidden; font-size:10px; font-weight:400; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.fof-return-fund-row .fof-library-strategy { gap:1px; }.fof-return-fund-row .fof-library-strategy-primary { font-size:9px; }.fof-return-fund-row .fof-library-strategy small { color:var(--muted); font-size:8px; }
.fof-return-fund-row:hover { background:rgba(63,111,102,.055); }.fof-return-fund-row span,.fof-return-fund-row b { font-size:10px; font-variant-numeric:tabular-nums; }.fof-return-fund-row small,.fof-return-fund-row em { color:var(--muted); font-size:9px; font-style:normal; }
.fof-return-fund-row em.is-stale,.fof-return-fund-row em.is-price_only,.fof-return-fund-row em.is-insufficient { color:#9a6726; }
.fof-return-unavailable { display:grid; gap:4px; padding:20px; border:1px dashed rgba(15,23,42,.12); border-radius:14px; color:var(--muted); }.fof-return-unavailable strong { color:var(--ink); }
.fof-positions-table tr.is-return-highlight td { animation:fof-return-highlight 2.2s ease; }
@keyframes fof-return-highlight { 0%,35% { background:#fff0c9; } 100% { background:transparent; } }
@media (max-width:900px) {
  .fof-return-heading { display:grid; gap:12px; }
  .fof-return-controls { justify-self:start; }
  .fof-return-fund-head { display:none; }
  .fof-return-fund-row { grid-template-columns:minmax(120px,1fr) auto auto; }
  .fof-return-fund-row small,.fof-return-fund-row em { grid-column:auto/span 1; }
}
@media (max-width:480px) {
  .fof-return-controls { width:100%; align-items:stretch; }.fof-return-periods { flex:1; box-sizing:border-box; }.fof-return-periods .period-button { flex:1; }.fof-return-month span { display:none; }
  .fof-return-strategy-tooltip { position:fixed; right:12px; bottom:12px; top:auto; left:12px; width:auto; max-height:58vh; overflow:auto; }
  .fof-return-fund-row { grid-template-columns:1fr 1fr; gap:5px; }
}
.fof-risk-layout-row { display:grid; gap:0; min-width:0; }
.fof-risk-layer-heading { min-height:30px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 12px; border-top:3px solid; font-size:12px; }
.fof-risk-layer-heading.is-stable { border-color:#4d887b; color:#315d55; background:rgba(77,136,123,.07); }
.fof-risk-layer-heading.is-non-stable { border-color:#5183a4; color:#365f78; background:rgba(81,131,164,.07); }
.fof-risk-layer-heading span { font-size:11px; font-variant-numeric:tabular-nums; }
.fof-risk-strategy-labels { display:flex; width:100%; min-height:38px; }
.fof-risk-strategy-labels > div { min-width:0; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:6px; overflow:hidden; padding:7px 10px; border-top:3px solid; }
.fof-risk-strategy-labels > div { border-color:hsl(var(--strategy-hue),var(--strategy-saturation),46%); color:hsl(var(--strategy-hue),calc(var(--strategy-saturation) + 6%),30%); background:hsl(var(--strategy-hue),var(--strategy-saturation),96%); }
.fof-risk-strategy-labels strong,.fof-risk-strategy-labels span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }.fof-risk-strategy-labels span { font-variant-numeric:tabular-nums; }
.fof-risk-bar { display:flex; width:100%; min-height:82px; overflow:hidden; border-radius:16px; background:rgba(0,0,0,.04); box-shadow:inset 0 0 0 1px rgba(0,0,0,.05); }
.fof-risk-segment { min-width:0; box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; gap:3px; overflow:hidden; padding:9px 7px; border-right:2px solid rgba(255,255,255,.72); color:#17332d; white-space:nowrap; }
.fof-risk-segment:last-child { border-right:0; }
.fof-risk-segment { background:hsl(var(--strategy-hue),var(--strategy-saturation),var(--fund-lightness)); color:hsl(var(--strategy-hue),calc(var(--strategy-saturation) + 8%),24%); }
.fof-risk-segment.is-strategy-end { border-right-width:3px; }
.fof-risk-segment strong,.fof-risk-segment span { overflow:hidden; text-overflow:ellipsis; }
.fof-risk-segment strong { font-size:11px; }.fof-risk-segment span { font-size:14px; font-variant-numeric:tabular-nums; }
.fof-risk-segment.is-narrow { padding-inline:5px; }
.fof-risk-segment.is-narrow strong { font-size:10px; }
.fof-risk-segment.is-narrow span { font-size:12px; }
.fof-risk-segment.is-very-narrow { gap:2px; padding-inline:3px; }
.fof-risk-segment.is-very-narrow strong { font-size:9px; }
.fof-risk-segment.is-very-narrow span { font-size:10px; }
.fof-risk-section .fof-risk-bar { min-height:40px; border-radius:9px; }
.fof-risk-section .fof-risk-segment { gap:2px; padding-block:4px; line-height:1.3; }
.fof-risk-section .fof-risk-segment strong,
.fof-risk-section .fof-risk-segment span,
.fof-risk-section .fof-risk-segment.is-narrow strong,
.fof-risk-section .fof-risk-segment.is-narrow span,
.fof-risk-section .fof-risk-segment.is-very-narrow strong,
.fof-risk-section .fof-risk-segment.is-very-narrow span { font-size:10px; }
.fof-risk-groups { display:flex; width:100%; min-height:38px; }
.fof-risk-groups > div { min-width:0; box-sizing:border-box; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 12px; border-top:3px solid; font-size:12px; }
.fof-risk-groups > .is-stable { border-color:#4d887b; color:#315d55; }.fof-risk-groups > .is-non-stable { border-color:#5183a4; color:#365f78; }
.fof-risk-groups span { white-space:nowrap; font-size:11px; font-variant-numeric:tabular-nums; }
.fof-risk-contribution-value { border-radius:5px; cursor:help; outline:none; transition:background-color .15s ease,color .15s ease,box-shadow .15s ease; }
.fof-risk-contribution-value:focus-visible { background:rgba(255,255,255,.5); box-shadow:0 0 0 3px rgba(255,255,255,.28); }
.fof-risk-contribution-tooltip { position:fixed; z-index:1000; left:0; top:0; display:grid; gap:3px; min-width:142px; padding:9px 11px 10px; border:1px solid rgba(255,255,255,.72); border-radius:10px; background:rgba(255,255,255,.96); box-shadow:0 12px 32px rgba(15,23,42,.14),0 2px 8px rgba(15,23,42,.07); color:#40514c; font-size:11px; font-weight:500; line-height:1.45; letter-spacing:.01em; white-space:nowrap; opacity:0; pointer-events:none; transform:translateY(4px) scale(.98); transition:opacity .14s ease,transform .14s ease; backdrop-filter:blur(14px); }
.fof-risk-contribution-tooltip strong { margin-bottom:3px; padding-bottom:6px; border-bottom:1px solid rgba(15,23,42,.07); color:#263632; font-size:12px; font-weight:700; }
.fof-risk-contribution-tooltip span { color:#66746f; font-variant-numeric:tabular-nums; }
.fof-risk-contribution-tooltip::after { content:""; position:absolute; left:50%; bottom:-4px; width:8px; height:8px; background:rgba(255,255,255,.96); transform:translateX(-50%) rotate(45deg); }
.fof-risk-contribution-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-risk-contribution-tooltip.is-below::after { top:-4px; bottom:auto; }
.fof-section .table-wrap,.fof-section .correlation-matrix-wrap { width:100%; min-width:0; max-width:100%; box-sizing:border-box; overflow:auto; }
.fof-table { width:1580px; min-width:1580px; table-layout:fixed; }
.fof-table th,.fof-table td { box-sizing:border-box; padding:8px 7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.fof-table th { padding-block:7px; font-size:11px; }
.fof-table td { font-size:12px; }
.fof-table [data-fof-holding-row] > td { transition:background-color 180ms ease,box-shadow 180ms ease; }
.fof-table [data-fof-holding-row].fof-holding-risk-toggle > td { cursor:pointer; }
.fof-table [data-fof-holding-row].fof-holding-risk-toggle:focus-visible { outline:2px solid rgba(165,54,89,.45); outline-offset:-2px; }
.fof-table [data-fof-holding-row].is-rebalance-increase > td { background-color:#fff1ef; }
.fof-table [data-fof-holding-row].is-rebalance-decrease > td { background-color:#edf7f4; }
.fof-table [data-fof-holding-row].is-rebalance-increase > td:first-child { box-shadow:inset 3px 0 #d46a55; }
.fof-table [data-fof-holding-row].is-rebalance-decrease > td:first-child { box-shadow:inset 3px 0 #4d887b; }
.fof-table [data-fof-holding-row].is-rebalance-increase input,.fof-table [data-fof-holding-row].is-rebalance-increase select { background-color:rgba(255,247,245,.92); }
.fof-table [data-fof-holding-row].is-rebalance-decrease input,.fof-table [data-fof-holding-row].is-rebalance-decrease select { background-color:rgba(245,251,249,.92); }
.fof-table [data-fof-holding-row].is-rebalance-increase > .fof-fund-name,.fof-table.is-readonly [data-fof-holding-row].is-rebalance-increase > td:nth-child(2) { color:#a94f40; font-weight:680; }
.fof-table [data-fof-holding-row].is-rebalance-decrease > .fof-fund-name,.fof-table.is-readonly [data-fof-holding-row].is-rebalance-decrease > td:nth-child(2) { color:#337566; font-weight:680; }
.fof-table [data-fof-holding-row].is-risk-watch:not(.is-rebalance-increase):not(.is-rebalance-decrease) > td { background-color:#fceef2; }
.fof-table [data-fof-holding-row].is-risk-watch > .fof-fund-name,.fof-table.is-readonly [data-fof-holding-row].is-risk-watch > td:nth-child(2) { color:#a53659; background-color:#fae8ed; font-weight:700; }
.fof-table th:nth-child(1),.fof-table td:nth-child(1) { width:46px; }
.fof-table th:nth-child(2),.fof-table td:nth-child(2) { width:84px; }
.fof-table th:nth-child(3),.fof-table td:nth-child(3) { width:130px; }
.fof-table th:nth-child(4),.fof-table td:nth-child(4) { width:95px; }
.fof-table th:nth-child(5),.fof-table td:nth-child(5) { width:90px; }
.fof-table th:nth-child(6),.fof-table td:nth-child(6) { width:105px; }
.fof-table th:nth-child(7),.fof-table td:nth-child(7) { width:112px; }
.fof-table th:nth-child(8),.fof-table td:nth-child(8) { width:54px; }
.fof-table th:nth-child(9),.fof-table td:nth-child(9) { width:82px; }
.fof-table th:nth-child(10),.fof-table td:nth-child(10) { width:108px; }
.fof-table th:nth-child(11),.fof-table td:nth-child(11) { width:120px; }
.fof-table th:nth-child(12),.fof-table td:nth-child(12) { width:108px; }
.fof-table th:nth-child(13),.fof-table td:nth-child(13) { width:240px; }
.fof-table th:nth-child(14),.fof-table td:nth-child(14) { width:150px; }
.fof-table th:nth-child(15),.fof-table td:nth-child(15) { width:56px; }
.fof-table th:first-child,.fof-table td:first-child { position:sticky; left:0; background:var(--surface,#fff); z-index:2; }
.fof-table th:first-child,.fof-table td:first-child { text-align:center; }
.fof-table th:first-child .fof-adviser-sort { justify-content:center; }
.fof-table td:first-child input { text-align:center; }
.fof-table input,.fof-table select { display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.fof-table input,.fof-table select { min-height:34px; height:34px; padding:5px 7px; border-radius:8px; font-size:12px; }
.fof-positions-section.is-editing .fof-table td { padding-block:3px; }
.fof-positions-section.is-editing .fof-table input,.fof-positions-section.is-editing .fof-table select { min-height:30px; height:30px; padding-block:3px; }
.fof-positions-section.is-editing .fof-lock-cell { padding-block:3px!important; }
.fof-positions-section.is-editing .fof-remove-holding-button { min-height:26px; padding-block:3px; }
.fof-position-order-cell { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:4px; }
.fof-position-order-cell .fof-remove-holding-button { width:28px; min-width:28px; padding:3px; }
.fof-position-order-cell .fof-remove-holding-button span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.fof-table input[data-fof-field="sortOrder"] { padding:4px 1px; text-align:center; font-size:12px; font-variant-numeric:tabular-nums; appearance:textfield; -moz-appearance:textfield; }
.fof-table input[data-fof-field="sortOrder"]::-webkit-inner-spin-button,.fof-table input[data-fof-field="sortOrder"]::-webkit-outer-spin-button { margin:0; appearance:none; -webkit-appearance:none; }
.fof-positions-section.is-editing .fof-table input,.fof-positions-section.is-editing .fof-table select,
.fof-library-section.is-editing .fof-library-table input,.fof-library-section.is-editing .fof-library-table select {
  border:1px solid rgba(15,23,42,.085);
  border-radius:9px;
  color:#334640;
  background-color:#fff;
  background-image:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,250,249,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  font-size:11.5px;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,color .16s ease;
}
.fof-positions-section.is-editing .fof-table input::placeholder,.fof-library-section.is-editing .fof-library-table input::placeholder { color:#aab5b1; font-size:11px; }
.fof-positions-section.is-editing .fof-table input:hover:not(:disabled),.fof-positions-section.is-editing .fof-table select:hover:not(:disabled),
.fof-library-section.is-editing .fof-library-table input:hover:not(:disabled),.fof-library-section.is-editing .fof-library-table select:hover:not(:disabled) {
  border-color:rgba(63,111,102,.24);
  background-image:none;
}
.fof-positions-section.is-editing .fof-table input:focus,.fof-positions-section.is-editing .fof-table select:focus,
.fof-library-section.is-editing .fof-library-table input:focus,.fof-library-section.is-editing .fof-library-table select:focus {
  border-color:rgba(63,111,102,.44);
  background-image:none;
  box-shadow:0 0 0 3px rgba(63,111,102,.1);
  color:#22332f;
}
.fof-positions-section.is-editing .fof-table select,.fof-library-section.is-editing .fof-library-table select {
  padding-right:21px;
  background-image:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,250,249,.9)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2378857f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat,no-repeat;
  background-position:0 0,right 7px center;
  background-size:auto,9px 6px;
  appearance:none;
  -webkit-appearance:none;
  text-overflow:ellipsis;
}
.fof-positions-section.is-editing .fof-table select:hover:not(:disabled),.fof-positions-section.is-editing .fof-table select:focus,
.fof-library-section.is-editing .fof-library-table select:hover:not(:disabled),.fof-library-section.is-editing .fof-library-table select:focus {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233f6f66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 7px center;
  background-size:9px 6px;
}
.fof-positions-section.is-editing .fof-table select:disabled,.fof-library-section.is-editing .fof-library-table select:disabled,
.fof-positions-section.is-editing .fof-table input:disabled,.fof-library-section.is-editing .fof-library-table input:disabled {
  border-color:rgba(15,23,42,.06);
  color:#98a3a0;
  background-image:none;
  background-color:rgba(15,23,42,.022);
  box-shadow:none;
}
.fof-positions-section.is-editing .fof-table input[type="number"],.fof-positions-section.is-editing .fof-table input[inputmode="decimal"],
.fof-library-section.is-editing .fof-library-table input[type="number"],.fof-library-section.is-editing .fof-library-table input[inputmode="decimal"] { font-variant-numeric:tabular-nums; }
.fof-positions-section.is-editing .fof-market-value-cell input { padding-inline:6px; text-align:right; font-weight:600; letter-spacing:0; }
.fof-positions-section.is-editing .fof-table input[type="number"] { padding-inline:6px; appearance:textfield; -moz-appearance:textfield; }
.fof-positions-section.is-editing .fof-table input[type="number"]::-webkit-inner-spin-button,.fof-positions-section.is-editing .fof-table input[type="number"]::-webkit-outer-spin-button { margin:0; appearance:none; -webkit-appearance:none; }
.fof-positions-section.is-editing .fof-vol-cell input { text-align:center; }
.fof-positions-section.is-editing .fof-table input[data-fof-field="fundCode"] { font-weight:620; letter-spacing:.4px; text-transform:uppercase; }
.fof-table .fof-fund-name { padding-left:10px; }
.fof-candidate-picker { position:relative; display:block; }
.fof-positions-section.is-editing .fof-table select.fof-candidate-native { min-height:0; height:1px; border:0; padding:0; background:none; box-shadow:none; }
.fof-candidate-native { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; opacity:0; pointer-events:none; clip-path:inset(50%); }
.fof-candidate-trigger { width:100%; min-height:28px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 9px; border:1px solid rgba(15,23,42,.1); border-radius:9px; background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(247,250,249,.9)); color:#6b7975; font:inherit; font-size:11px; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease; }
.fof-candidate-trigger > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.fof-candidate-trigger > b { flex:0 0 auto; width:7px; height:7px; border-right:1.4px solid currentColor; border-bottom:1.4px solid currentColor; opacity:.5; transform:translateY(-2px) rotate(45deg); transition:transform .18s ease,opacity .18s ease; }
.fof-candidate-trigger:hover { border-color:rgba(63,111,102,.3); background:rgba(63,111,102,.05); color:#3f6f66; }
.fof-candidate-trigger[aria-expanded="true"] { border-color:rgba(63,111,102,.42); color:#315d55; background:rgba(63,111,102,.07); box-shadow:0 0 0 3px rgba(63,111,102,.1); }
.fof-candidate-trigger[aria-expanded="true"] > b { transform:translateY(1px) rotate(225deg); opacity:.75; }
.fof-candidate-trigger:focus-visible { outline:2px solid rgba(63,111,102,.5); outline-offset:1px; }
.fof-candidate-trigger:disabled { color:#a3aeab; background:rgba(15,23,42,.02); cursor:default; }
.fof-candidate-picker.is-selected .fof-candidate-trigger { color:#2f4a44; font-weight:640; }
.fof-candidate-panel { position:fixed; z-index:1200; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(255,255,255,.8); border-radius:14px; background:rgba(255,255,255,.97); box-shadow:0 18px 44px rgba(15,23,42,.17),0 3px 10px rgba(15,23,42,.07); backdrop-filter:blur(18px); animation:fofCandidatePanelIn .15s ease; }
@keyframes fofCandidatePanelIn { from { opacity:0; transform:translateY(-4px) scale(.985); } to { opacity:1; transform:none; } }
.fof-candidate-search { flex:0 0 auto; padding:9px 10px; border-bottom:1px solid rgba(15,23,42,.06); }
.fof-candidate-search input { width:100%; box-sizing:border-box; min-height:28px; padding:4px 10px; border:1px solid rgba(15,23,42,.09); border-radius:8px; background:rgba(247,250,249,.85); color:#3d4b47; font:inherit; font-size:11px; }
.fof-candidate-search input:focus { outline:none; border-color:rgba(63,111,102,.38); background:#fff; box-shadow:0 0 0 3px rgba(63,111,102,.09); }
.fof-candidate-options { flex:1 1 auto; overflow-y:auto; margin:0; padding:6px; list-style:none; scrollbar-width:thin; }
.fof-candidate-group { position:sticky; top:-6px; z-index:1; margin:0 3px 3px; padding:7px 6px 5px; border-bottom:1px solid rgba(15,23,42,.06); color:#7d8986; background:rgba(255,255,255,.96); font-size:9px; font-weight:720; letter-spacing:.08em; }
.fof-candidate-group:not(:first-child) { margin-top:5px; }
.fof-candidate-group[hidden] { display:none; }
.fof-candidate-option { display:grid; gap:3px; padding:7px 9px; border-radius:10px; cursor:pointer; transition:background .14s ease; }
.fof-candidate-option[hidden] { display:none; }
.fof-candidate-option[aria-disabled="true"] { opacity:.6; cursor:not-allowed; }
.fof-candidate-option:hover,.fof-candidate-option:focus-visible { background:rgba(63,111,102,.075); outline:none; }
.fof-candidate-name { color:#2f3d39; font-size:12px; font-weight:660; line-height:1.25; }
.fof-candidate-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.fof-candidate-strategy { display:inline-flex; align-items:center; min-height:18px; padding:1px 7px; border:1px solid hsl(var(--strategy-hue) var(--strategy-saturation) 42% / .22); border-radius:999px; color:hsl(var(--strategy-hue) var(--strategy-saturation) 27%); background:hsl(var(--strategy-hue) var(--strategy-saturation) 92% / .8); font-size:10px; font-weight:620; white-space:nowrap; }
.fof-candidate-product { display:inline-flex; align-items:center; gap:4px; min-height:18px; padding:1px 7px; border-radius:999px; color:#45534f; background:color-mix(in srgb,var(--product-color) 13%,white); font-size:10px; font-weight:620; white-space:nowrap; }
.fof-candidate-product i { width:6px; height:6px; flex:0 0 auto; border-radius:999px; background:var(--product-color); }
.fof-candidate-empty { margin:0; padding:14px 12px 18px; color:#95a09d; font-size:11px; text-align:center; }
.fof-remove-holding-button { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:28px; padding:4px 8px; border:1px solid rgba(179,59,53,.08); border-radius:8px; background:rgba(179,59,53,.035); color:#9d5a55; font:inherit; font-size:10px; cursor:pointer; transition:color 150ms ease,background 150ms ease,border-color 150ms ease,transform 150ms ease; }
.fof-remove-holding-button svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.fof-remove-holding-button:hover { border-color:rgba(179,59,53,.18); background:#fff3f1; color:#b33b35; }
.fof-remove-holding-button:active { transform:scale(.97); }
.fof-position-tools { display:flex; align-items:center; gap:8px; }
.fof-position-tools .fof-position-action { flex:0 0 auto; }
.fof-position-tools > button { min-height:40px; height:40px; justify-content:center; gap:7px; padding:0 14px; border-radius:12px; font-size:12px; font-weight:680; box-sizing:border-box; }
.fof-position-tools > button svg { width:15px; height:15px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.fof-cancel-edit-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:6px 12px; border:1px solid rgba(71,85,105,.1); border-radius:12px; background:rgba(248,250,252,.7); color:#6b7280; font:inherit; font-size:11px; font-weight:620; cursor:pointer; transition:color 150ms ease,background 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease; }.fof-cancel-edit-button svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; }.fof-cancel-edit-button:hover { border-color:rgba(71,85,105,.18); background:#fff; color:#303740; box-shadow:0 4px 12px rgba(15,23,42,.05); transform:translateY(-1px); }.fof-cancel-edit-button:active { transform:scale(.97); }
.fof-position-add-button { display:inline-flex; align-items:center; border:1px solid rgba(15,23,42,.09); background:rgba(255,255,255,.72); color:#343b44; font:inherit; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.025); transition:background 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease; }
.fof-position-add-button:hover { border-color:rgba(37,99,235,.16); background:#fff; box-shadow:0 5px 14px rgba(15,23,42,.06); transform:translateY(-1px); }
.fof-position-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; padding-top:14px; border-top:1px solid rgba(15,23,42,.07); }
.fof-position-actions > span { color:rgba(74,80,88,.58); font-size:10px; }
.fof-position-actions > div { display:flex; align-items:center; gap:9px; }
.fof-position-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:7px 14px; border-radius:11px; font:inherit; font-size:12px; font-weight:680; cursor:pointer; transition:background 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease; }
.fof-position-action svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.fof-position-action.is-save { border:1px solid #272c33; background:#272c33; color:#fff; box-shadow:0 5px 13px rgba(22,28,35,.13); }
.fof-position-action.is-save:hover { border-color:#11161b; background:#11161b; box-shadow:0 7px 17px rgba(22,28,35,.18); transform:translateY(-1px); }
.fof-position-action.is-discard { border:1px solid rgba(71,85,105,.11); background:rgba(248,250,252,.72); color:#66706d; }
.fof-position-action.is-discard:hover { border-color:rgba(71,85,105,.2); background:#fff; color:#303740; transform:translateY(-1px); }
.fof-position-action.is-publish { border:1px solid rgba(15,23,42,.11); background:rgba(255,255,255,.76); color:#343b44; }
.fof-position-action.is-publish:hover { border-color:rgba(37,99,235,.2); background:#f8fbff; color:#1d4ed8; transform:translateY(-1px); }
.fof-position-action:active,.fof-position-add-button:active { transform:scale(.98); }
.fof-library-edit-note { justify-content:flex-start; }
.fof-position-edit-note { justify-content:flex-start; }
.fof-library-section > .fof-toolbar { align-items:center; flex-wrap:nowrap; }
/* 备选库只读表列宽自成一套（选择器需比通用 .fof-table.is-readonly 更具体） */
.fof-table.fof-library-table.is-readonly { width:100%; min-width:1453px; table-layout:fixed; }
.fof-table.fof-library-table.is-readonly th { height:34px; padding-block:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fof-table.fof-library-table.is-readonly td { height:30px; padding-block:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fof-table.fof-library-table.is-readonly .fof-library-identity strong { font-weight:400; }
.fof-table.fof-library-table.is-readonly .fof-library-identity strong,
.fof-table.fof-library-table.is-readonly .fof-library-identity span,
.fof-table.fof-library-table.is-readonly .fof-library-strategy strong,
.fof-table.fof-library-table.is-readonly .fof-library-strategy span { line-height:1.1; }
.fof-table.fof-library-table.is-readonly th:nth-child(1),.fof-table.fof-library-table.is-readonly td:nth-child(1) { width:40px; }
.fof-table.fof-library-table.is-readonly th:nth-child(2),.fof-table.fof-library-table.is-readonly td:nth-child(2) { width:190px; }
.fof-table.fof-library-table.is-readonly th:nth-child(3),.fof-table.fof-library-table.is-readonly td:nth-child(3),
.fof-table.fof-library-table.is-readonly th:nth-child(4),.fof-table.fof-library-table.is-readonly td:nth-child(4) { width:46px; padding-left:4px; padding-right:4px; text-align:center; }
.fof-table.fof-library-table.is-readonly th:nth-child(5),.fof-table.fof-library-table.is-readonly td:nth-child(5) { width:125px; }
.fof-table.fof-library-table.is-readonly th:nth-child(6),.fof-table.fof-library-table.is-readonly td:nth-child(6),
.fof-table.fof-library-table.is-readonly th:nth-child(7),.fof-table.fof-library-table.is-readonly td:nth-child(7),
.fof-table.fof-library-table.is-readonly th:nth-child(8),.fof-table.fof-library-table.is-readonly td:nth-child(8) { width:82px; text-align:center; }
.fof-table.fof-library-table.is-readonly th:nth-child(9),.fof-table.fof-library-table.is-readonly td:nth-child(9) { width:90px; text-align:center; }
.fof-table.fof-library-table.is-readonly th:nth-child(n+6):nth-child(-n+9) .fof-adviser-sort { justify-content:center; }
.fof-table.fof-library-table.is-readonly th:nth-child(10),.fof-table.fof-library-table.is-readonly td:nth-child(10) { width:195px; }
.fof-table.fof-library-table.is-readonly th:nth-child(11),.fof-table.fof-library-table.is-readonly td:nth-child(11) { width:70px; }
.fof-table.fof-library-table.is-readonly th:nth-child(12),.fof-table.fof-library-table.is-readonly td:nth-child(12) { width:285px; }
.fof-table.fof-library-table.is-readonly th:nth-child(13),.fof-table.fof-library-table.is-readonly td:nth-child(13) { width:120px; }
.fof-library-table th,.fof-library-table td { padding-left:8px; padding-right:8px; }
.fof-library-table.is-readonly td { padding-top:5px; padding-bottom:5px; color:#4f575d; line-height:1.35; }
.fof-library-section.is-editing .fof-library-table { width:100%; min-width:1416px; table-layout:fixed; }
.fof-library-section.is-editing .fof-library-table th:nth-child(1) { width:42px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(2) { width:92px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(3) { width:150px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(4) { width:105px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(5),.fof-library-section.is-editing .fof-library-table th:nth-child(6) { width:105px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(7) { width:72px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(8),.fof-library-section.is-editing .fof-library-table th:nth-child(9) { width:70px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(10) { width:76px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(11) { width:130px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(12) { width:56px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(13) { width:150px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(14) { width:115px; }
.fof-library-section.is-editing .fof-library-table th:nth-child(15) { width:78px; }
/* 编辑态只固定「序号 + 代码」两列，名称列随横向滚动 */
.fof-table.fof-library-table:not(.is-readonly) th:nth-child(3),.fof-table.fof-library-table:not(.is-readonly) td:nth-child(3) { position:static; left:auto; box-shadow:none; z-index:auto; }
.fof-table.fof-library-table:not(.is-readonly) th:nth-child(2),.fof-table.fof-library-table:not(.is-readonly) td:nth-child(2) { left:42px; box-shadow:8px 0 12px -12px rgba(15,23,42,.42); }
.fof-library-table tr.is-risk-watch .fof-library-identity strong,.fof-library-table tr.is-risk-watch td:nth-child(3) input { color:#a53659; font-weight:700; }
.fof-library-table.is-readonly .fof-library-risk-toggle { cursor:pointer; }
.fof-library-table.is-readonly .fof-library-risk-toggle:focus-visible { outline:2px solid rgba(197,70,106,.46); outline-offset:-2px; }
.fof-library-table.is-readonly .fof-library-risk-toggle:hover .fof-library-identity strong { color:#a83f61; }
.fof-library-section.is-editing .fof-library-table input,.fof-library-section.is-editing .fof-library-table select { min-height:30px; height:30px; padding:4px 6px; font-size:11px; }
.fof-library-identity,.fof-library-strategy { display:grid; gap:3px; }
.fof-library-identity strong,.fof-library-strategy strong { color:#252b31; font-size:11px; font-weight:680; }
.fof-library-identity span,.fof-library-strategy span { color:rgba(74,80,88,.52); font-size:9px; font-variant-numeric:tabular-nums; }
.fof-library-strategy .fof-library-strategy-primary { color:hsl(var(--strategy-hue) var(--strategy-saturation) 34%); }
.fof-library-tag { display:inline-flex; align-items:center; min-height:24px; padding:2px 8px; border:1px solid hsl(var(--strategy-hue),var(--strategy-saturation),88%); border-radius:999px; color:hsl(var(--strategy-hue),calc(var(--strategy-saturation) + 6%),30%); background:hsl(var(--strategy-hue),var(--strategy-saturation),96%); font-size:10px; font-weight:650; }
.fof-library-volatility strong { color:#315d55; font-size:13px; font-variant-numeric:tabular-nums; }
.fof-library-volatility small { display:block; margin-top:2px; color:rgba(74,80,88,.42); font-size:10px; }
.fof-library-volatility .is-empty { color:rgba(74,80,88,.42); font-size:10px; }
.fof-library-note { color:rgba(74,80,88,.65) !important; }
.fof-library-fee { color:#625a49 !important; font-size:10px; }
.fof-library-vol-input { position:relative; }
.fof-library-vol-input input { padding-right:22px; text-align:right; font-variant-numeric:tabular-nums; }
.fof-library-vol-input span { position:absolute; top:50%; right:7px; color:rgba(74,80,88,.48); font-size:10px; pointer-events:none; transform:translateY(-50%); }
.fof-positions-section { position:relative; overflow:visible; }
.fof-redemption-content { min-width:0; display:grid; gap:12px; }
.fof-pnl-compact .fof-holdings-body { gap:16px; }
.fof-pnl-scope { color:var(--muted); font-size:12px; }
.fof-pnl-overview { display:grid; grid-template-columns:1.35fr 1fr 1fr; padding:0; gap:12px; }
.fof-pnl-metric { display:flex; flex-direction:column; justify-content:center; gap:7px; min-width:0; padding:16px; border-radius:14px; background:rgba(118,118,128,.07); }
.fof-pnl-metric + .fof-pnl-metric { padding-left:16px; }
.fof-pnl-metric > span { font-size:13px; color:#687180; }
.fof-pnl-metric strong { font-size:29px; font-variant-numeric:tabular-nums; line-height:1.5; letter-spacing:-.7px; }
.fof-pnl-metric:first-child strong { font-size:35px; }
.fof-pnl-metric small { font-size:12px; color:var(--muted); font-weight:400; letter-spacing:0; }
.fof-pnl-metric strong small { margin-left:8px; }
.fof-pnl-compact .is-positive { color:var(--fof-up); }
.fof-pnl-compact .is-negative { color:var(--fof-down); }
.fof-pnl-scope { display:flex; gap:20px; align-items:baseline; margin-top:16px; }
.fof-pnl-scope details { max-width:780px; }
.fof-pnl-scope summary { cursor:pointer; color:#62718b; }
.fof-pnl-scope p { line-height:1.8; margin:8px 0 0; }
.fof-pnl-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0; }
.fof-pnl-segment { display:flex; gap:3px; padding:3px; background:#f2f4f8; border-radius:7px; }
.fof-pnl-segment button { border:0; background:transparent; color:#77808e; border-radius:5px; padding:6px 14px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
.fof-pnl-segment button[aria-pressed="true"] { background:#fff; color:#283c6b; box-shadow:0 1px 4px #14223712; font-weight:600; }
.fof-pnl-attribution-body { display:grid; grid-template-columns:1.15fr 1fr; gap:32px; padding:0; }
.fof-pnl-chart-caption { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin-bottom:7px; }
.fof-pnl-bar-row { display:grid; grid-template-columns:85px minmax(50px,1fr) 90px; gap:10px; align-items:center; min-height:33px; font-size:12px; }
.fof-pnl-bar-row b { font-weight:500; text-align:right; font-variant-numeric:tabular-nums; }
.fof-pnl-track { height:17px; position:relative; background:linear-gradient(to right,transparent calc(50% - 1px),#cfd5df calc(50% - 1px),#cfd5df 50%,transparent 50%); }
.fof-pnl-track i { position:absolute; height:11px; top:3px; border-radius:2px; background:var(--fof-up); opacity:.75; }
.fof-pnl-track i.is-negative { background:var(--fof-down); }
.fof-pnl-axis { display:flex; justify-content:space-between; margin:7px 100px 0 95px; color:var(--muted); font-size:10px; }
.fof-pnl-attribution-body > * { min-width:0; }
.fof-pnl-attribution-body > .table-wrap { border:0; border-radius:0; }
.fof-pnl-comparison { width:100%; min-width:0; border-collapse:collapse; font-size:12px; white-space:nowrap; }
.fof-pnl-comparison th,.fof-pnl-comparison td { text-align:right; padding:8px 6px; border-bottom:1px solid #f0f2f6; font-variant-numeric:tabular-nums; }
.fof-pnl-comparison th { font-weight:400; color:var(--muted); }
.fof-pnl-comparison th:first-child,.fof-pnl-comparison td:first-child { text-align:left; }
.fof-pnl-comparison tr:last-child td { border-bottom:0; }
.fof-pnl-detail-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:16px; font-size:12px; }
.fof-pnl-detail-controls .fof-pnl-segment { height:34px; margin-right:6px; padding:3px; }
.fof-pnl-detail-controls .fof-pnl-segment button { padding:0 13px; }
.fof-pnl-detail-controls label { display:flex; align-items:center; gap:7px; height:34px; padding-left:11px; border:1px solid #e5e8ef; border-radius:7px; background:#fafbfc; color:#8a929f; font-size:12px; font-weight:400; }
.fof-pnl-detail-controls select,.fof-pnl-detail-controls input { width:auto; height:32px; min-height:0; margin:0; border:0; border-radius:6px; padding:0 9px; background:transparent; color:#4d586b; font:inherit; box-shadow:none; }
.fof-pnl-detail-controls select { min-width:78px; cursor:pointer; }
.fof-pnl-detail-controls select[data-fof-pnl-strategy] { min-width:108px; }
.fof-pnl-detail-controls input { width:166px; padding-left:11px; }
.fof-pnl-detail-controls input::placeholder { color:#9ba2ad; }
.fof-pnl-detail-controls form { display:flex; align-items:center; gap:0; height:34px; margin:0; border:1px solid #e5e8ef; border-radius:7px; background:#fafbfc; overflow:hidden; }
.fof-pnl-detail-controls > button,.fof-pnl-detail-controls form button { min-height:0; height:32px; border:0; background:none; color:#7d8797; font:inherit; font-weight:400; cursor:pointer; padding:0 10px; }
.fof-pnl-detail-controls form button { height:22px; border-left:1px solid #e5e8ef; border-radius:0; color:#627797; }
.fof-pnl-detail-controls > button:hover,.fof-pnl-detail-controls form button:hover { color:#304e7d; background:#eef2f8; }
.fof-pnl-detail-controls select:focus,.fof-pnl-detail-controls input:focus { background:transparent; box-shadow:none; }
.fof-pnl-detail-controls label:focus-within,.fof-pnl-detail-controls form:focus-within { border-color:#a5b5d1; }
.fof-pnl-compact .fof-pnl-detail-controls select:focus-visible,.fof-pnl-compact .fof-pnl-detail-controls input:focus-visible { outline:2px solid #91a5d8; outline-offset:-2px; }
.fof-pnl-detail-controls :disabled { cursor:default; opacity:.5; }
.fof-pnl-detail-controls small { color:var(--muted); margin-left:auto; }
.fof-pnl-compact .fof-redemption-section > .section-heading { align-items:center; gap:12px; }
.fof-pnl-compact .fof-redemption-table .is-number { font-variant-numeric:tabular-nums; }
.fof-pnl-compact button:focus-visible,.fof-pnl-compact select:focus-visible,.fof-pnl-compact summary:focus-visible { outline:2px solid #91a5d8; outline-offset:3px; }
@media(max-width:900px) { .fof-pnl-attribution-body { grid-template-columns:1fr; gap:18px; }.fof-pnl-overview { gap:12px; }.fof-pnl-metric + .fof-pnl-metric { padding-left:15px; }.fof-pnl-metric strong,.fof-pnl-metric:first-child strong { font-size:25px; }.fof-pnl-scope { flex-wrap:wrap; gap:6px; } }
@media(max-width:540px) { .fof-pnl-overview { grid-template-columns:1fr 1fr; }.fof-pnl-metric:first-child { grid-column:1/-1; }.fof-pnl-metric:nth-child(2) { padding-left:16px; }.fof-pnl-detail-controls small { margin-left:0; } }
.fof-redemptions-surface .fof-redemption-section > .table-wrap { max-height:560px; overflow:auto; scrollbar-width:thin; }
.fof-redemptions-surface .fof-redemption-section > .table-wrap thead th { position:sticky; top:0; z-index:4; background:#f8f9fb; }
.fof-pnl-summary { padding:20px 22px 22px; border:1px solid rgba(109,92,132,.12); border-radius:18px; background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(250,247,252,.88)); box-shadow:0 10px 28px rgba(43,31,66,.045); }
.fof-redemption-content > .fof-pnl-summary,.fof-redemption-content > .fof-redemption-section { box-shadow:0 2px 10px rgba(43,31,66,.022); }
.fof-pnl-summary-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.fof-pnl-summary-heading .eyebrow { margin:0 0 8px; }
.fof-pnl-summary-heading h3 { margin:0; font-size:24px; line-height:1.04; }
.fof-pnl-summary-heading > span { color:var(--muted); font-size:11px; }
.fof-pnl-stat-grid,.fof-product-pnl-grid { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(120px,1fr); gap:8px; overflow-x:auto; padding:3px 3px 8px; }
.fof-pnl-stat { min-width:0; padding:11px 10px 10px; border:1px solid color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 58%) 18%,rgba(15,23,42,.05)); border-radius:13px; background:color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 58%) 5%,white); text-align:left; transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.fof-pnl-stat:hover { border-color:color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 48%) 36%,rgba(15,23,42,.06)); transform:translateY(-1px); }
.fof-pnl-stat.is-selected { border-color:color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 46%) 52%,rgba(15,23,42,.08)); box-shadow:0 0 0 2px color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 52%) 12%,transparent),0 8px 18px rgba(15,23,42,.035); }
.fof-pnl-stat:focus-visible { outline:2px solid color-mix(in srgb,hsl(var(--strategy-hue) var(--strategy-saturation) 46%) 36%,transparent); outline-offset:2px; }
.fof-pnl-stat.is-total { background:linear-gradient(145deg,#f0f5f3,#f8faf9); border-color:rgba(63,111,102,.2); }
.fof-pnl-stat-label,.fof-pnl-stat em { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fof-pnl-stat-label { color:#66706e; font-size:11px; font-weight:650; }
.fof-pnl-stat strong { display:block; margin:7px 0 4px; color:#a34f43; font-size:14px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; white-space:nowrap; }
.fof-pnl-stat.is-negative strong { color:var(--fof-down); }.fof-pnl-stat.is-flat strong { color:var(--fof-flat); }
.fof-pnl-stat.is-total strong { color:var(--fof-up); font-size:16px; }.fof-pnl-stat.is-total.is-negative strong { color:var(--fof-down); }
.fof-pnl-stat em { color:#9a999f; font-size:9px; font-style:normal; }
.fof-redemptions-surface { display:block; }
.fof-redemptions-surface > .fof-holdings-body { grid-column:1; }
.fof-product-pnl-summary { padding-top:18px; padding-bottom:20px; }
.fof-product-pnl-card { position:relative; min-width:0; box-sizing:border-box; display:block; padding:11px 10px 10px; overflow:hidden; border:1px solid color-mix(in srgb,var(--product-color) 18%,rgba(15,23,42,.05)); border-radius:13px; background:color-mix(in srgb,var(--product-color) 5%,white); cursor:pointer; transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.fof-product-pnl-card:hover { border-color:color-mix(in srgb,var(--product-color) 36%,rgba(15,23,42,.06)); transform:translateY(-1px); }
.fof-product-pnl-card.is-selected { border-color:color-mix(in srgb,var(--product-color) 52%,rgba(15,23,42,.08)); box-shadow:0 0 0 2px color-mix(in srgb,var(--product-color) 12%,transparent),0 8px 18px color-mix(in srgb,var(--product-color) 9%,rgba(15,23,42,.03)); }
.fof-product-pnl-card.is-total { background:linear-gradient(145deg,#f0f5f3,#f8faf9); border-color:rgba(63,111,102,.2); }
.fof-product-pnl-card input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.fof-product-pnl-label,.fof-product-pnl-card em { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fof-product-pnl-label { color:#66706e; font-size:11px; font-weight:650; }
.fof-product-pnl-label i { width:7px; height:7px; display:inline-block; margin-right:6px; border-radius:999px; background:var(--product-color); vertical-align:1px; }
.fof-product-pnl-card strong { display:block; margin:7px 0 4px; color:#a34f43; font-size:14px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; white-space:nowrap; }
.fof-product-pnl-card.is-negative strong { color:var(--fof-down); }.fof-product-pnl-card.is-flat strong { color:var(--fof-flat); }
.fof-product-pnl-card.is-total strong { color:var(--fof-up); font-size:16px; }.fof-product-pnl-card.is-total.is-negative strong { color:var(--fof-down); }
.fof-product-pnl-card em { color:#9a999f; font-size:9px; font-style:normal; }
.fof-product-pnl-card:focus-within { outline:2px solid color-mix(in srgb,var(--product-color) 32%,transparent); outline-offset:2px; }
@media (max-width:680px) { .fof-pnl-summary-heading { align-items:start; flex-direction:column; gap:5px; } }
.fof-redemption-section > .section-heading h3 { margin:0; line-height:1.25; }
.fof-redemption-section > .section-heading .fof-section-context { margin-top:4px; }
/* 与备选库同一节奏：标题栏本身已带 20px 下沿，赎回明细多出的说明行不再额外撑高 */
.fof-surface .fof-section.fof-redemption-section > .section-heading { margin-bottom:14px; }
.fof-edit-risk-rail { position:absolute; top:18px; bottom:18px; z-index:12; width:280px; pointer-events:none; }
.fof-edit-risk-rail.is-left { left:-296px; }
.fof-edit-risk-rail.is-right { right:-296px; }
.fof-edit-risk-card { position:sticky; top:96px; box-sizing:border-box; width:280px; max-height:calc(100vh - 118px); overflow-x:hidden; overflow-y:auto; padding:14px; border:1px solid rgba(255,255,255,.86); border-radius:18px; background:rgba(255,255,255,.94); box-shadow:0 12px 34px rgba(25,42,52,.09); backdrop-filter:blur(20px) saturate(1.12); pointer-events:auto; scrollbar-width:thin; }
.fof-edit-risk-card > header { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:4px 10px; padding-bottom:11px; border-bottom:1px solid rgba(15,23,42,.07); }
.fof-edit-risk-eyebrow { color:#287060; font-size:8px; font-weight:760; letter-spacing:.1em; }
.fof-edit-risk-card > header > small { color:rgba(74,80,88,.56); font-size:8px; text-align:right; white-space:nowrap; }
.fof-edit-risk-card > header > p { grid-column:1/-1; margin:1px 0 0; color:var(--muted); font-size:7px; line-height:1.4; }
.fof-edit-risk-card-total { display:grid; justify-items:end; gap:1px; }.fof-edit-risk-card-total small { color:var(--muted); font-size:7px; }.fof-edit-risk-card-total b { color:#1f2933; font-size:17px; font-variant-numeric:tabular-nums; }
.fof-edit-risk-vertical { display:grid; gap:10px; padding-top:12px; }
.fof-edit-risk-strategy { overflow:hidden; border:1px solid hsl(var(--strategy-hue),var(--strategy-saturation),89%); border-radius:12px; background:hsl(var(--strategy-hue),var(--strategy-saturation),98%); }
.fof-edit-risk-strategy > header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:2px 8px; padding:8px 9px; border-top:3px solid hsl(var(--strategy-hue),var(--strategy-saturation),46%); }
.fof-edit-risk-strategy > header strong { overflow:hidden; color:hsl(var(--strategy-hue),calc(var(--strategy-saturation) + 6%),29%); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.fof-edit-risk-strategy > header span { color:hsl(var(--strategy-hue),calc(var(--strategy-saturation) + 6%),29%); font-size:10px; font-weight:700; font-variant-numeric:tabular-nums; }.fof-edit-risk-strategy > header small { grid-column:1/-1; color:rgba(74,80,88,.58); font-size:7px; }
.fof-edit-risk-funds { display:grid; padding:0 9px 7px; background:rgba(255,255,255,.54); }
.fof-edit-risk-fund { display:grid; grid-template-columns:minmax(0,1fr) 66px; align-items:center; gap:3px 8px; padding:7px 0; border-top:1px solid rgba(15,23,42,.055); }
.fof-edit-risk-fund > div:first-child { min-width:0; display:flex; align-items:baseline; justify-content:space-between; gap:6px; }.fof-edit-risk-fund strong { overflow:hidden; color:#46534f; font-size:9px; font-weight:630; text-overflow:ellipsis; white-space:nowrap; }.fof-edit-risk-fund span { flex:0 0 auto; color:#34443f; font-size:8px; font-variant-numeric:tabular-nums; }
.fof-edit-risk-fund-bar { grid-column:1; height:4px; overflow:hidden; border-radius:4px; background:rgba(15,23,42,.055); }.fof-edit-risk-fund-bar i { display:block; height:100%; border-radius:inherit; background:hsl(var(--strategy-hue),var(--strategy-saturation),61%); }
.fof-edit-risk-fund > small { grid-column:2; grid-row:1/3; align-self:center; color:var(--muted); font-size:7px; text-align:right; white-space:nowrap; }
.fof-edit-risk-groups { display:grid; gap:6px; margin-top:12px; padding-top:11px; border-top:1px solid rgba(15,23,42,.07); }.fof-edit-risk-groups > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; padding:8px 9px; border-left:3px solid; border-radius:9px; background:rgba(15,23,42,.025); }.fof-edit-risk-groups > .is-stable { border-color:#4d887b; }.fof-edit-risk-groups > .is-non-stable { border-color:#5183a4; }.fof-edit-risk-groups strong { font-size:9px; }.fof-edit-risk-groups span { font-size:9px; font-weight:700; font-variant-numeric:tabular-nums; }.fof-edit-risk-groups small { grid-column:1/-1; color:var(--muted); font-size:7px; }
.fof-edit-risk-empty { margin:12px 0 0; color:var(--muted); font-size:9px; text-align:center; }
.fof-edit-risk-composition { padding-top:11px; }
.fof-edit-risk-composition .fof-risk-row { min-width:0; gap:7px; }
.fof-edit-risk-composition .fof-risk-row-heading { display:grid; gap:5px; }
.fof-edit-risk-composition .fof-risk-row-heading > strong { font-size:12px; }
.fof-edit-risk-composition .fof-risk-row-side { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:7px; }
.fof-edit-risk-composition .fof-risk-row-side > span { font-size:7px; line-height:1.35; text-align:left; }
.fof-edit-risk-composition .fof-risk-row-metric { display:grid; justify-items:end; gap:1px; }
.fof-edit-risk-composition .fof-risk-row-metric small { font-size:7px; }.fof-edit-risk-composition .fof-risk-row-metric strong { font-size:15px; }
.fof-edit-risk-composition .fof-risk-strategy-labels { min-height:32px; }.fof-edit-risk-composition .fof-risk-strategy-labels > div { gap:3px; padding:5px 4px; }.fof-edit-risk-composition .fof-risk-strategy-labels strong,.fof-edit-risk-composition .fof-risk-strategy-labels span { font-size:8px; }
.fof-edit-risk-composition .fof-risk-bar { min-height:76px; border-radius:12px; }.fof-edit-risk-composition .fof-risk-segment { gap:2px; padding:6px 4px; }.fof-edit-risk-composition .fof-risk-segment strong { font-size:8px; }.fof-edit-risk-composition .fof-risk-segment span { font-size:9px; }
.fof-edit-risk-composition .fof-risk-groups { min-height:32px; }.fof-edit-risk-composition .fof-risk-groups > div { gap:4px; padding:6px; font-size:9px; }.fof-edit-risk-composition .fof-risk-groups span { font-size:8px; }
.fof-edit-risk-card > header > strong { color:#3f4b48; font-size:13px; }
.fof-edit-risk-total { display:flex; align-items:baseline; justify-content:flex-end; gap:6px; font-variant-numeric:tabular-nums; }.fof-edit-risk-total b { color:#1f2933; font-size:18px; }.fof-edit-risk-total em { font-size:9px; font-style:normal; }
.fof-edit-risk-total.is-up em,.fof-edit-risk-row.is-up em { color:#b14f46; }.fof-edit-risk-total.is-down em,.fof-edit-risk-row.is-down em { color:#2d7a65; }.fof-edit-risk-total.is-flat em,.fof-edit-risk-row.is-flat em { color:var(--muted); }
.fof-edit-risk-legend { display:grid; grid-template-columns:1fr 1fr 1fr; gap:5px; margin:10px 0 4px; color:var(--muted); font-size:7px; text-align:center; }.fof-edit-risk-legend span:first-child { text-align:left; }.fof-edit-risk-legend span:last-child { text-align:right; }
.fof-edit-risk-list { display:grid; gap:0; }.fof-edit-risk-list > p { margin:10px 0 2px; color:var(--muted); font-size:9px; text-align:center; }
.fof-edit-risk-row { min-width:0; display:grid; gap:5px; padding:9px 0; border-top:1px solid rgba(15,23,42,.055); }
.fof-edit-risk-row-heading,.fof-edit-risk-values { display:flex; align-items:center; justify-content:space-between; gap:8px; }.fof-edit-risk-row-heading strong { overflow:hidden; color:#394642; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.fof-edit-risk-row-heading em { flex:0 0 auto; font-size:9px; font-style:normal; font-variant-numeric:tabular-nums; }
.fof-edit-risk-bars { display:grid; gap:2px; }.fof-edit-risk-bars i,.fof-edit-risk-bars b { width:var(--risk-width); height:3px; min-width:1px; border-radius:3px; background:rgba(93,108,121,.22); }.fof-edit-risk-bars b { background:#4f897c; }.fof-edit-risk-rail.is-right .fof-edit-risk-bars b { background:#6378ad; }
.fof-edit-risk-values { color:#67726f; font-size:8px; font-variant-numeric:tabular-nums; }.fof-edit-risk-values u { color:#9aa3a0; text-decoration:none; }
.fof-edit-risk-row > small { overflow:hidden; color:rgba(74,80,88,.52); font-size:7px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.fof-edit-risk-rail.is-right .fof-edit-risk-eyebrow { color:#4c65a0; }
.fof-edit-risk-rail.is-loading .fof-edit-risk-card { opacity:.68; }
.fof-edit-risk-rail.is-loading .fof-edit-risk-card { box-shadow:0 12px 34px rgba(25,42,52,.07),inset 0 0 0 1px rgba(63,111,102,.05); }
.fof-edit-risk-rail.is-error .fof-edit-risk-card { color:#9a5b51; }
@media (max-width:1720px) {
  .fof-edit-risk-rail,.fof-edit-risk-card { width:216px; }
  .fof-edit-risk-rail.is-left { left:-226px; }
  .fof-edit-risk-rail.is-right { right:-226px; }
  .fof-edit-risk-card { padding-inline:11px; }
}
@media (max-width:1320px) {
  .fof-edit-risk-rail { display:none; }
}
.fof-completed-group { padding:10px; border:1px solid rgba(57,125,110,.13); border-radius:12px; background:rgba(57,125,110,.035); }
.fof-completed-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0; color:#47786d; font-size:11px; cursor:pointer; list-style:none; }
.fof-completed-heading::-webkit-details-marker { display:none; }
.fof-completed-heading strong::before { content:"▸"; display:inline-block; margin-right:5px; }
.fof-completed-group[open] .fof-completed-heading strong::before { transform:rotate(90deg); }
.fof-completed-group[open] .fof-completed-heading { margin-bottom:8px; }
.fof-completed-heading > span { padding:2px 6px; border-radius:20px; background:rgba(57,125,110,.08); font-size:10px; }
.fof-completed-items { display:grid; gap:8px; }
.fof-completed-item { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:start; gap:7px; padding-top:8px; border-top:1px solid rgba(57,125,110,.1); }
.fof-completed-detail > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fof-completed-value { display:flex; align-items:baseline; justify-content:space-between; gap:6px; font-size:10px; color:var(--muted); }
.fof-completed-value b { color:#4b535d; font-weight:560; text-align:right; font-variant-numeric:tabular-nums; }
.fof-completed-item time { color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }

.fof-rebalance-empty { margin:0; padding:9px 10px; border-radius:10px; background:rgba(15,23,42,.025); color:rgba(74,80,88,.55); font-size:9px; text-align:center; }
.fof-rebalance-item { display:grid; gap:5px; padding:11px 10px; border-left:3px solid; border-radius:11px; background:rgba(0,0,0,.025); }
.fof-rebalance-item.is-increase { border-color:var(--fof-up-soft); }.fof-rebalance-item.is-decrease { border-color:var(--fof-down-soft); }
.fof-rebalance-item > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fof-rebalance-item > strong, .fof-completed-detail > strong { color:var(--ink); font-family:inherit; font-size:12px; font-weight:700; line-height:1.5; }
.fof-rebalance-item > span { display:flex; align-items:baseline; justify-content:space-between; gap:7px; min-width:0; color:var(--muted); font-size:10px; }
.fof-rebalance-item > span em { flex:0 0 auto; font-style:normal; }.fof-rebalance-item > span b { min-width:0; overflow:hidden; color:#4b535d; font-size:10px; font-weight:560; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.fof-rotation-run-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; }.fof-rotation-run-tools > span { color:var(--muted); font-size:11px; }
.fof-rotation-run-tools .fof-snapshot-button { min-height:40px; height:40px; padding:0 14px; border-radius:12px; font-size:12px; font-weight:680; }
.fof-rotation-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.fof-rotation-columns > div { min-width:0; display:grid; align-content:start; gap:10px; }.fof-rotation-columns h4 { margin:0 0 2px; font-size:14px; }.fof-rotation-columns h4 span { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; border-radius:999px; background:rgba(0,0,0,.06); color:var(--muted); font-size:10px; }
.fof-rotation-replacements { display:grid; gap:10px; margin-top:18px; }
.fof-rotation-replacements > h4 { margin:0 0 2px; font-size:14px; }
.fof-rotation-replacements > h4 span { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; border-radius:999px; background:rgba(0,0,0,.06); color:var(--muted); font-size:10px; }
.fof-rotation-replacement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:10px; }
.fof-rotation-replacement-grid > .fof-rotation-empty { grid-column:1/-1; }
.fof-rotation-card { display:grid; gap:9px; padding:14px; border:1px solid rgba(0,0,0,.07); border-radius:15px; background:rgba(255,255,255,.66); }.fof-rotation-card.is-laggard { border-left:3px solid #d68450; }.fof-rotation-card.is-candidate { border-left:3px solid #4d887b; }
.fof-rotation-card.is-beta-residual { border-left-color:#d76c9b; background:linear-gradient(135deg,rgba(255,244,249,.92),rgba(255,255,255,.72)); }
.fof-rotation-card.is-beta-residual .fof-rotation-confidence { background:rgba(215,108,155,.12); color:#9d426b; }
.fof-rotation-card-heading { display:flex; justify-content:space-between; gap:10px; }.fof-rotation-card-heading > div { min-width:0; display:grid; gap:3px; }.fof-rotation-card-heading strong,.fof-rotation-card-heading span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.fof-rotation-card-heading strong { font-size:13px; }.fof-rotation-card-heading > div span { color:var(--muted); font-size:10px; }
.fof-rotation-tags { align-self:start; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; overflow:visible !important; }
.fof-rotation-type,.fof-rotation-confidence { display:inline-flex; align-items:center; padding:4px 7px; border-radius:999px; font-size:9px; white-space:nowrap; }
.fof-rotation-card-heading .fof-rotation-tags > .fof-metric-help { overflow:visible; text-overflow:clip; }
.fof-rotation-type { background:rgba(74,105,160,.1); color:#45618f; }
.fof-rotation-confidence { background:rgba(63,111,102,.1); color:#315d55; }
.fof-rotation-tags .fof-metric-help::after { left:auto; right:0; width:min(430px,calc(100vw - 48px)); font-size:10px; line-height:1.65; white-space:pre-line; transform:translateY(4px); }
.fof-rotation-tags .fof-metric-help::before { left:auto; right:12px; transform:rotate(45deg); }
.fof-rotation-tags .fof-metric-help:hover::after,.fof-rotation-tags .fof-metric-help:focus-visible::after { transform:translateY(0); }
.fof-rotation-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:-2px; }
.fof-rotation-card-footer p { min-width:0; flex:1 1 auto; }
.fof-rotation-card-footer button { padding:4px 8px; border:1px solid transparent; border-radius:8px; background:transparent; color:rgba(74,80,88,.58); font:inherit; font-size:9px; cursor:pointer; transition:background 150ms ease,border-color 150ms ease,color 150ms ease; }
.fof-rotation-card-footer button:hover { border-color:rgba(0,0,0,.07); background:rgba(0,0,0,.035); color:var(--ink); }
.fof-rotation-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }.fof-rotation-evidence span { display:flex; justify-content:space-between; gap:6px; padding:6px 8px; border-radius:8px; background:rgba(0,0,0,.025); color:var(--muted); font-size:9px; }.fof-rotation-evidence b { color:var(--ink); font-variant-numeric:tabular-nums; }
.fof-rotation-card p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }.fof-rotation-empty { padding:20px; border-radius:13px; background:rgba(0,0,0,.025); color:var(--muted); font-size:11px; text-align:center; }
.fof-rebalance-advice { display:grid; gap:10px; margin-top:22px; padding-top:20px; border-top:1px solid rgba(15,23,42,.07); }
.fof-rebalance-advice > h4 { margin:0 0 2px; font-size:14px; }.fof-rebalance-advice > h4 span { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; border-radius:999px; background:rgba(0,0,0,.06); color:var(--muted); font-size:10px; }
.fof-rebalance-advice-card { border-left:3px solid #5475a6; background:linear-gradient(135deg,rgba(247,250,255,.9),rgba(255,255,255,.72)); }
.fof-rebalance-advice-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.fof-rebalance-advice-metrics span { padding:5px 7px; font-size:10px; }
.fof-metric-help { position:relative; cursor:help; outline:none; }
.fof-metric-help::after { content:attr(data-tooltip); position:absolute; z-index:20; left:50%; bottom:calc(100% + 8px); width:240px; padding:9px 11px; border:1px solid rgba(255,255,255,.14); border-radius:9px; background:rgba(20,27,39,.94); box-shadow:0 10px 28px rgba(15,23,42,.18); color:#fff; font-size:9px; font-weight:400; line-height:1.55; text-align:left; white-space:normal; opacity:0; pointer-events:none; transform:translate(-50%,4px); transition:opacity .16s ease,transform .16s ease; }
.fof-metric-help::before { content:""; position:absolute; z-index:21; left:50%; bottom:calc(100% + 3px); width:8px; height:8px; background:rgba(20,27,39,.94); opacity:0; transform:translateX(-50%) rotate(45deg); transition:opacity .16s ease; }
.fof-metric-help:hover::after,.fof-metric-help:focus-visible::after { opacity:1; transform:translate(-50%,0); }.fof-metric-help:hover::before,.fof-metric-help:focus-visible::before { opacity:1; }
.fof-rebalance-advice-changes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.fof-rebalance-advice-group { display:grid; align-content:start; gap:4px; padding:8px 9px; border-radius:11px; background:rgba(15,23,42,.025); }
.fof-rebalance-advice-group > strong { font-size:11px; }.fof-rebalance-advice-group.is-decrease > strong { color:var(--fof-down); }.fof-rebalance-advice-group.is-increase > strong { color:var(--fof-up); }
.fof-rebalance-advice-group > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 10px; padding:6px 0; border-top:1px solid rgba(15,23,42,.055); }
.fof-rebalance-advice-group > div span { min-width:0; display:grid; gap:2px; }.fof-rebalance-advice-group > div b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.fof-rebalance-advice-group > div small { color:var(--muted); font-size:10px; }
.fof-rebalance-advice-group > div em { align-self:center; color:var(--ink); font-size:11px; font-style:normal; font-variant-numeric:tabular-nums; }.fof-rebalance-advice-group > div i { grid-column:2; color:var(--muted); font-size:10px; font-style:normal; text-align:right; font-variant-numeric:tabular-nums; }
.fof-weight-transition { display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; white-space:nowrap; }.fof-weight-transition span { margin-right:2px; color:rgba(71,85,105,.66); font-size:9px; }.fof-weight-transition b { color:var(--ink); font-size:10px!important; font-weight:600; }.fof-weight-transition u { color:#64748b; font-size:12px; font-weight:500; line-height:1; text-decoration:none; }.fof-rebalance-advice-group.is-decrease .fof-weight-transition u { color:var(--fof-down); }.fof-rebalance-advice-group.is-increase .fof-weight-transition u { color:var(--fof-up); }
.fof-rebalance-advice-group > p { padding:8px 0; text-align:center; }
.fof-rotation-principles { margin:20px 0 0; padding-top:12px; border-top:1px solid rgba(15,23,42,.055); color:rgba(71,85,105,.62); font-size:9px; line-height:1.65; }
@media (max-width:900px) { .fof-rotation-columns,.fof-rotation-replacement-grid { grid-template-columns:1fr; } }
@media (max-width:900px) { .fof-rebalance-advice-metrics,.fof-rebalance-advice-changes { grid-template-columns:1fr; } }
.fof-table.is-readonly { width:max-content; min-width:1419px; table-layout:auto; }
.fof-table.is-readonly th,.fof-table.is-readonly td { height:36px; padding:6px 8px; font-size:11px; white-space:nowrap; }
.fof-table.is-readonly th:nth-child(1),.fof-table.is-readonly td:nth-child(1) { width:40px; }
.fof-table.is-readonly th:nth-child(2),.fof-table.is-readonly td:nth-child(2) { width:145px; }
.fof-table.is-readonly th:nth-child(3),.fof-table.is-readonly td:nth-child(3) { width:90px; }
.fof-table.is-readonly th:nth-child(4),.fof-table.is-readonly td:nth-child(4) { width:112px; }
.fof-table.is-readonly th:nth-child(5),.fof-table.is-readonly td:nth-child(5) { width:54px; }
.fof-table.is-readonly th:nth-child(6),.fof-table.is-readonly td:nth-child(6) { width:78px; }
.fof-table.is-readonly th:nth-child(7),.fof-table.is-readonly td:nth-child(7) { width:104px; }
.fof-table.is-readonly th:nth-child(8),.fof-table.is-readonly td:nth-child(8) { width:118px; }
.fof-table.is-readonly th:nth-child(9),.fof-table.is-readonly td:nth-child(9) { width:108px; }
.fof-table.is-readonly th:nth-child(10),.fof-table.is-readonly td:nth-child(10) { width:300px; }
.fof-table.is-readonly th:nth-child(11),.fof-table.is-readonly td:nth-child(11) { width:180px; }
.fof-table:not(.is-readonly) th:nth-child(-n+3),.fof-table:not(.is-readonly) td:nth-child(-n+3),.fof-table.is-readonly th:nth-child(-n+2),.fof-table.is-readonly td:nth-child(-n+2) { position:sticky; background:#fff; background-clip:padding-box; }
.fof-table tbody [data-fof-holding-row].is-rebalance-increase > td { background:#fff1ef; }
.fof-table tbody [data-fof-holding-row].is-rebalance-decrease > td { background:#edf7f4; }
.fof-table:not(.is-readonly) th:nth-child(1),.fof-table:not(.is-readonly) td:nth-child(1),.fof-table.is-readonly th:nth-child(1),.fof-table.is-readonly td:nth-child(1) { left:0; }
.fof-table:not(.is-readonly) th:nth-child(2),.fof-table:not(.is-readonly) td:nth-child(2) { left:46px; }
.fof-table:not(.is-readonly) th:nth-child(3),.fof-table:not(.is-readonly) td:nth-child(3) { left:130px; box-shadow:8px 0 12px -12px rgba(15,23,42,.42); }
.fof-table.is-readonly th:nth-child(2),.fof-table.is-readonly td:nth-child(2) { left:40px; box-shadow:8px 0 12px -12px rgba(15,23,42,.42); }
.fof-table:not(.is-readonly) thead th:nth-child(-n+3),.fof-table.is-readonly thead th:nth-child(-n+2) { z-index:5; }
.fof-table:not(.is-readonly) tbody td:nth-child(-n+3),.fof-table.is-readonly tbody td:nth-child(-n+2) { z-index:3; }
.fof-positions-table { width:100%; min-width:2068px; table-layout:fixed; font-variant-numeric:tabular-nums; }
.fof-positions-table.is-readonly { width:100%; min-width:1490px; table-layout:fixed; }
.fof-positions-table.is-readonly th:nth-child(9),.fof-positions-table.is-readonly td:nth-child(9),
.fof-positions-table:not(.is-readonly) th:nth-child(12),.fof-positions-table:not(.is-readonly) td:nth-child(12) { width:100px; }
.fof-positions-table.is-readonly th:nth-child(1),.fof-positions-table.is-readonly td:nth-child(1) { width:32px; }
.fof-positions-table.is-readonly th:nth-child(2),.fof-positions-table.is-readonly td:nth-child(2) { width:150px; }
.fof-positions-table.is-readonly th:nth-child(3),.fof-positions-table.is-readonly td:nth-child(3) { width:100px; }
.fof-positions-table.is-readonly th:nth-child(4),.fof-positions-table.is-readonly td:nth-child(4) { width:108px; }
.fof-positions-table.is-readonly th:nth-child(5),.fof-positions-table.is-readonly td:nth-child(5) { width:56px; }
.fof-positions-table.is-readonly th:nth-child(6),.fof-positions-table.is-readonly td:nth-child(6) { width:78px; }
.fof-positions-table.is-readonly th:nth-child(7),.fof-positions-table.is-readonly td:nth-child(7),
.fof-positions-table.is-readonly th:nth-child(8),.fof-positions-table.is-readonly td:nth-child(8) { width:68px; }
.fof-positions-table.is-readonly th:nth-child(10),.fof-positions-table.is-readonly td:nth-child(10) { width:76px; }
.fof-positions-table.is-readonly th:nth-child(11),.fof-positions-table.is-readonly td:nth-child(11) { width:92px; }
.fof-positions-table.is-readonly th:nth-child(12),.fof-positions-table.is-readonly td:nth-child(12) { width:100px; }
.fof-positions-table.is-readonly th:nth-child(13),.fof-positions-table.is-readonly td:nth-child(13) { width:116px; }
.fof-positions-table.is-readonly th:nth-child(14),.fof-positions-table.is-readonly td:nth-child(14) { width:140px; }
.fof-positions-table.is-readonly th:nth-child(15),.fof-positions-table.is-readonly td:nth-child(15) { width:170px; }
.fof-positions-table.is-readonly th,.fof-positions-table.is-readonly td { height:32px; padding:3px 5px; }
.fof-positions-table.is-readonly .fof-restriction-button { min-height:24px; height:24px; }
.fof-positions-table.is-readonly th:nth-child(n+5):nth-child(-n+11),
.fof-positions-table.is-readonly td:nth-child(n+5):nth-child(-n+11) { text-align:center; }
.fof-positions-table:not(.is-readonly) th:nth-child(1),.fof-positions-table:not(.is-readonly) td:nth-child(1) { width:86px; }
.fof-positions-table:not(.is-readonly) th:nth-child(2),.fof-positions-table:not(.is-readonly) td:nth-child(2) { width:80px; }
.fof-positions-table:not(.is-readonly) th:nth-child(3),.fof-positions-table:not(.is-readonly) td:nth-child(3) { width:170px; }
.fof-positions-table:not(.is-readonly) th:nth-child(4),.fof-positions-table:not(.is-readonly) td:nth-child(4) { width:92px; }
.fof-positions-table:not(.is-readonly) th:nth-child(5),.fof-positions-table:not(.is-readonly) td:nth-child(5) { width:92px; }
.fof-positions-table:not(.is-readonly) th:nth-child(6),.fof-positions-table:not(.is-readonly) td:nth-child(6) { width:100px; }
.fof-positions-table:not(.is-readonly) th:nth-child(7),.fof-positions-table:not(.is-readonly) td:nth-child(7) { width:112px; }
.fof-positions-table:not(.is-readonly) th:nth-child(8),.fof-positions-table:not(.is-readonly) td:nth-child(8) { width:68px; }
.fof-positions-table:not(.is-readonly) th:nth-child(9),.fof-positions-table:not(.is-readonly) td:nth-child(9) { width:72px; }
.fof-positions-table:not(.is-readonly) th:nth-child(10),.fof-positions-table:not(.is-readonly) td:nth-child(10),
.fof-positions-table:not(.is-readonly) th:nth-child(11),.fof-positions-table:not(.is-readonly) td:nth-child(11) { width:82px; }
.fof-positions-table:not(.is-readonly) th:nth-child(13),.fof-positions-table:not(.is-readonly) td:nth-child(13) { width:74px; }
.fof-positions-table:not(.is-readonly) th:nth-child(14),.fof-positions-table:not(.is-readonly) td:nth-child(14) { width:122px; }
.fof-positions-table:not(.is-readonly) th:nth-child(15),.fof-positions-table:not(.is-readonly) td:nth-child(15) { width:140px; }
.fof-positions-table:not(.is-readonly) th:nth-child(16),.fof-positions-table:not(.is-readonly) td:nth-child(16) { width:58px; }
.fof-positions-table:not(.is-readonly) th:nth-child(17),.fof-positions-table:not(.is-readonly) td:nth-child(17) { width:124px; }
.fof-positions-table:not(.is-readonly) th:nth-child(18),.fof-positions-table:not(.is-readonly) td:nth-child(18) { width:156px; }
.fof-positions-table:not(.is-readonly) th:nth-child(19),.fof-positions-table:not(.is-readonly) td:nth-child(19) { width:262px; }
.fof-positions-table:not(.is-readonly) th:nth-child(2),.fof-positions-table:not(.is-readonly) td:nth-child(2) { left:86px; }
.fof-positions-table:not(.is-readonly) th:nth-child(3),.fof-positions-table:not(.is-readonly) td:nth-child(3) { left:166px; }
.fof-positions-table.is-readonly th:nth-child(2),.fof-positions-table.is-readonly td:nth-child(2) { left:32px; }
.fof-table select.is-auto-strategy,.fof-positions-section.is-editing .fof-table select.is-auto-strategy { color:var(--muted); background-color:rgba(15,23,42,.025); background-image:none; }
.fof-positions-section.is-editing .fof-table select.is-auto-strategy { padding-right:21px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a4aeaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 7px center; background-size:9px 6px; }
.fof-vol-cell { position:relative; }
.fof-table input[data-fof-field="manualVol"].is-manual { border-color:#d78b22; background:#fff3dc; color:#8a4f00; box-shadow:inset 0 0 0 1px rgba(215,139,34,.12); }
.fof-vol-display.is-manual { background:#fff3dc; color:#8a4f00; box-shadow:inset 0 0 0 1px rgba(215,139,34,.12); }
.fof-table input[data-fof-field="manualVol"].is-period-6m:not(.is-manual),.fof-vol-display.is-period-6m { background:#fff4d8; color:#805b0d; }
.fof-table input[data-fof-field="manualVol"].is-period-3m:not(.is-manual),.fof-vol-display.is-period-3m { background:#ffe5df; color:#9a4635; }
.fof-table input[data-fof-field="manualVol"].is-period-1m:not(.is-manual),.fof-vol-display.is-period-1m { background:#fce7f3; color:#9d174d; }
.fof-vol-display.is-period-6m,.fof-vol-display.is-period-3m,.fof-vol-display.is-period-1m { box-shadow:inset 0 0 0 1px rgba(140,94,20,.08); }
.fof-lock-cell { padding:5px!important; overflow:visible!important; }
.fof-lock-period-cell { white-space:nowrap; text-align:center; }
.fof-lock-period-cell input { width:100%; min-width:0; text-align:center; }
.fof-date-cell { padding:5px!important; overflow:visible!important; }
.fof-date-field { position:relative; display:flex; }
.fof-date-field .date-picker-trigger { width:100%; min-height:32px; padding:0 9px; border-radius:9px; }
.fof-date-field .date-picker-trigger strong { font-size:12px; font-weight:680; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fof-date-field .date-picker-trigger i { width:6px; height:6px; }
.fof-date-popover { width:300px; position:fixed; top:auto; right:auto; z-index:100; }
.fof-date-popover .calendar-selectors { grid-template-columns:minmax(84px,1fr) minmax(76px,0.8fr); }
.fof-date-popover .calendar-day { color:rgba(29,29,31,.72); background:transparent; }
.fof-date-popover .calendar-day.muted { color:rgba(29,29,31,.28); }
.fof-date-popover .calendar-day.is-today { color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); font-weight:700; }
.fof-date-popover .calendar-day:not(.muted):not(.selected):hover { background:rgba(0,113,227,.08); }
.fof-date-popover .calendar-day.selected { color:#fff; background:var(--blue); }
.fof-date-popover-footer { display:flex; justify-content:space-between; padding-top:4px; border-top:1px solid rgba(0,0,0,.06); }
.fof-date-popover-footer button { border:0; background:transparent; color:var(--blue); font-size:12px; font-weight:700; padding:4px 6px; border-radius:8px; }
.fof-date-popover-footer button:hover { background:rgba(0,113,227,.08); }
.fof-date-popover-footer button.is-active { background:rgba(0,113,227,.12); color:#0a4d9e; }
/* Keep snapshot actions beside the label so the full date has its own row. */
.fof-selection-panel .fof-snapshot-picker.is-calendar { display:contents; }
.fof-selection-panel .fof-snapshot-label { grid-column:1; grid-row:2; align-self:center; font-size:12px; font-weight:400; line-height:20px; color:var(--muted); }
.fof-selection-panel [data-fof-history-picker] { grid-column:1/-1; grid-row:3; min-width:0; margin-top:-6px; }
.fof-selection-panel .fof-snapshot-actions { grid-row:2; min-height:28px; gap:6px; }
.fof-selection-panel .fof-snapshot-actions .fof-snapshot-button { width:28px; height:28px; flex:0 0 28px; }
.fof-selection-panel .fof-snapshot-picker.is-calendar::after { display:none; }
.fof-snapshot-picker.is-calendar > select[hidden] { display:none; }
.fof-snapshot-picker.is-calendar .date-picker-trigger { min-height:44px; border:1px solid rgba(63,111,102,.16); border-radius:12px; background:linear-gradient(145deg,#fff,#f7f9fa); box-shadow:0 3px 10px rgba(15,23,42,.04); padding:0 13px; }
.fof-snapshot-picker.is-calendar .date-picker-trigger strong { font-size:13px; color:#4c555f; }
.fof-history-calendar { padding:16px; border-radius:18px; box-shadow:0 16px 48px rgba(28,42,62,.16); }
.fof-history-calendar .calendar-day { position:relative; border-radius:10px; }
.fof-history-calendar .calendar-day.has-snapshot::after { content:""; position:absolute; bottom:3px; left:calc(50% - 2px); width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.65; }
.fof-history-calendar .fof-date-popover-footer { margin-top:10px; padding-top:12px; font-size:11px; color:#8a929f; justify-content:center; }
.fof-date-field.is-pending-rebalance .date-picker-trigger { border-color:rgba(0,113,227,.35); background:rgba(0,113,227,.06); }
.fof-restriction-button { width:100%; min-width:0; min-height:26px; height:26px; display:flex; align-items:center; overflow:hidden; border:1px solid transparent; border-radius:8px; padding:3px 8px; color:#59625f; background:rgba(15,23,42,.028); font:inherit; text-align:left; box-shadow:none; transition:background 150ms ease,border-color 150ms ease,transform 150ms ease; }
.fof-restriction-button strong,.fof-restriction-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fof-restriction-button strong { font-size:10px; font-weight:680; }.fof-restriction-button span { display:none; }
.fof-restriction-button .fof-fee-period-label { display:inline-block; flex-shrink:0; margin-left:auto; padding-left:4px; font-size:9px; opacity:.8; }
.fof-restriction-button:hover:not(:disabled),.fof-restriction-button:focus-visible { border-color:rgba(63,111,102,.2); background:#fff; outline:none; }
.fof-restriction-button:active:not(:disabled) { transform:scale(.98); }
.fof-restriction-button.is-fully-locked { border-color:rgba(190,63,52,.12); color:#9d4038; background:#fff0ee; }
.fof-restriction-button.is-partially-locked,.fof-restriction-button.is-pending { border-color:rgba(199,132,28,.13); color:#8b6118; background:#fff7e7; }
.fof-restriction-button.is-unlocked { color:#31685b; background:rgba(63,111,102,.075); }
.fof-restriction-button.is-legacy { color:#6f685b; background:rgba(122,109,83,.065); }
.fof-restriction-button.is-unsaved { color:var(--muted); background:rgba(15,23,42,.02); }
.fof-restriction-button:disabled { cursor:not-allowed; opacity:.62; }

.fof-cashflow-open-button { min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:6px 12px; border:1px solid rgba(63,111,102,.12); border-radius:12px; color:#3f6f66; background:rgba(63,111,102,.065); font:inherit; font-size:11px; font-weight:680; box-shadow:none; transition:background 150ms ease,border-color 150ms ease,transform 150ms ease; }
.fof-cashflow-open-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.fof-cashflow-open-button:hover { border-color:rgba(63,111,102,.22); background:rgba(63,111,102,.11); transform:translateY(-1px); }
/* 持仓与备选库操作共用轻量工具栏，保存以低饱和绿区分，取消退为文字操作。 */
.fof-position-tools:has(> .fof-toolbar-button) { gap:6px; }
.fof-position-tools > .fof-toolbar-button { display:inline-flex; align-items:center; flex:0 0 auto; min-height:32px; height:32px; padding:0 11px; gap:6px; border-radius:9px; font-size:12px; font-weight:500; line-height:1; white-space:nowrap; transition:color 160ms ease,background 160ms ease,border-color 160ms ease; }
.fof-position-tools > .fof-toolbar-button svg { width:14px; height:14px; stroke-width:1.5; opacity:.8; }
.fof-position-tools > .fof-toolbar-button.secondary-button { color:#59635f; background:rgba(255,255,255,.46); border:1px solid rgba(50,65,58,.075); box-shadow:none; }
.fof-position-tools > .fof-toolbar-button.secondary-button:hover { color:#303e37; background:rgba(255,255,255,.9); border-color:rgba(50,65,58,.15); transform:none; }
.fof-position-tools > .fof-toolbar-button.primary-button { color:#356c60; background:#e8f0ec; border:1px solid rgba(63,111,102,.1); font-weight:600; box-shadow:none; }
.fof-position-tools > .fof-toolbar-button.primary-button:hover { background:#dce9e2; border-color:rgba(63,111,102,.2); transform:none; }
.fof-position-tools > .fof-toolbar-button:is([data-fof-cancel-edit],[data-fof-library-cancel]) { color:#8a908d; background:transparent; border-color:transparent; padding:0 9px; }
.fof-position-tools > .fof-toolbar-button:is([data-fof-cancel-edit],[data-fof-library-cancel]):hover { color:#59635f; background:rgba(50,65,58,.045); border-color:transparent; }
.fof-position-tools > .fof-toolbar-button:active { transform:none; opacity:.75; }
.fof-position-tools > .fof-toolbar-button:focus-visible { outline:2px solid #80a598; outline-offset:3px; }
.fof-position-tools > .fof-toolbar-button:disabled { opacity:.48; cursor:not-allowed; transform:none; box-shadow:none; }

.fof-cashflow-drawer-shell { position:fixed; inset:0; z-index:90; }
.fof-cashflow-backdrop { position:absolute; inset:0; width:100%; border:0; border-radius:0; padding:0; background:rgba(18,25,29,.2); backdrop-filter:blur(2px); cursor:default; }
.fof-cashflow-drawer { position:absolute; top:0; right:0; width:min(540px,calc(100vw - 32px)); height:100dvh; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; border-left:1px solid rgba(15,23,42,.08); background:rgba(250,251,250,.98); box-shadow:-22px 0 54px rgba(15,23,42,.13); animation:fofCashflowSlideIn 180ms ease-out; }
@keyframes fofCashflowSlideIn { from { transform:translateX(22px); opacity:.75; } to { transform:none; opacity:1; } }
.fof-cashflow-drawer > header { min-height:78px; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px 14px; border-bottom:1px solid rgba(15,23,42,.07); background:rgba(255,255,255,.82); }
.fof-cashflow-drawer > header h3 { margin:0; font-size:20px; }.fof-cashflow-drawer > header .eyebrow { margin-bottom:5px; }.fof-cashflow-drawer > header span { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.fof-cashflow-drawer > header > button { width:32px; height:32px; flex:0 0 auto; border:1px solid rgba(15,23,42,.08); border-radius:50%; color:#66706d; background:rgba(255,255,255,.72); font-size:20px; line-height:1; }
.fof-cashflow-drawer-body { min-height:0; display:grid; align-content:start; gap:14px; overflow:auto; padding:16px 20px 28px; }
.fof-cashflow-filter { display:grid; grid-template-columns:36px minmax(0,1fr); align-items:start; gap:8px; padding:0 16px; color:var(--muted); font-size:10px; }.fof-cashflow-filter>span { display:flex; align-items:center; min-height:36px; }.fof-cashflow-filter-control { display:grid; gap:7px; }.fof-cashflow-filter select { width:100%; min-height:36px; border:1px solid rgba(15,23,42,.09); border-radius:10px; padding:6px 10px; background:#fff; color:#394641; font-size:11px; }
.fof-cashflow-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; border-radius:14px; background:rgba(63,111,102,.055); }
.fof-cashflow-summary > div { min-width:0; display:grid; gap:4px; padding:3px 5px; }.fof-cashflow-summary span { color:var(--muted); font-size:9px; }.fof-cashflow-summary strong { overflow:hidden; color:#2d3d38; font-size:14px; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; }
.fof-cashflow-summary strong.is-fully-locked { color:#9d4038; }.fof-cashflow-summary strong.is-partially-locked,.fof-cashflow-summary strong.is-pending { color:#8b6118; }.fof-cashflow-summary strong.is-unlocked { color:#31685b; }
.fof-cashflow-restriction-badge { justify-self:start; padding:2px 7px; border-radius:6px; color:#52615d; background:rgba(15,23,42,.05); font-size:10px; font-weight:680; white-space:nowrap; }
.fof-cashflow-restriction-badge.is-fully-locked { color:#9d4038; background:rgba(157,64,56,.1); }.fof-cashflow-restriction-badge.is-partially-locked,.fof-cashflow-restriction-badge.is-pending { color:#8b6118; background:rgba(139,97,24,.1); }.fof-cashflow-restriction-badge.is-unlocked { color:#31685b; background:rgba(49,104,91,.1); }
.fof-cashflow-summary > p { grid-column:1/-1; margin:2px 5px 0; padding-top:8px; border-top:1px solid rgba(15,23,42,.06); color:rgba(74,80,88,.65); font-size:9px; line-height:1.55; white-space:pre-line; }
.fof-cashflow-form,.fof-cashflow-confirm-form { display:grid; gap:12px; padding:14px; border:1px solid rgba(15,23,42,.07); border-radius:14px; background:rgba(255,255,255,.74); }
.fof-cashflow-form-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }.fof-cashflow-form-heading > div { display:grid; gap:3px; }.fof-cashflow-form-heading strong { font-size:12px; }.fof-cashflow-form-heading span { color:var(--muted); font-size:9px; line-height:1.45; }.fof-cashflow-form-heading > button { border:0; padding:2px 4px; color:var(--muted); background:transparent; font-size:9px; }
.fof-cashflow-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.fof-cashflow-form-grid label { min-width:0; display:grid; align-content:start; gap:5px; color:var(--muted); font-size:9px; }.fof-cashflow-form-grid label.is-wide { grid-column:1/-1; }.fof-cashflow-form-grid input,.fof-cashflow-form-grid select { min-width:0; min-height:36px; border:1px solid rgba(15,23,42,.09); border-radius:9px; padding:6px 9px; color:#37443f; background:#fff; font-size:11px; }
.fof-cashflow-open-frequency { display:block; min-height:14px; color:#64756f; font-size:9px; line-height:1.45; }
.fof-cashflow-form-footer { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:12px; }.fof-cashflow-form-footer > span { color:#a0443b; font-size:9px; }.fof-cashflow-form-footer > button { min-height:34px; border:0; border-radius:9px; padding:6px 13px; color:#fff; background:#272c33; font-size:10px; font-weight:680; }.fof-cashflow-form-footer > button:disabled { opacity:.55; }
.fof-cashflow-form-note { margin:10px 0 0; color:#71807c; font-size:10px; line-height:1.55; }
.fof-allocation-panel { border-top:1px solid rgba(15,23,42,.07); padding-top:9px; }.fof-allocation-panel summary { cursor:pointer; color:#52615d; font-size:9px; }.fof-allocation-panel > div { display:grid; gap:6px; margin-top:8px; }
.fof-allocation-row { display:grid; grid-template-columns:minmax(0,1fr) 120px; align-items:center; gap:8px; color:var(--muted); font-size:10px; }.fof-allocation-row input { min-width:0; min-height:31px; border:1px solid rgba(15,23,42,.09); border-radius:8px; padding:5px 8px; background:#fff; font-size:10px; }
.fof-cashflow-form select:disabled { color:#52615d; background:rgba(239,244,242,.82); opacity:1; }
.fof-cashflow-section { display:grid; gap:9px; padding-top:4px; }.fof-cashflow-section + .fof-cashflow-section { padding-top:14px; border-top:1px solid rgba(15,23,42,.07); }
.fof-cashflow-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }.fof-cashflow-section-heading strong { font-size:12px; }.fof-cashflow-section-heading span { color:var(--muted); font-size:9px; }
.fof-cashflow-list,.fof-cashflow-lots { display:grid; gap:7px; }
.fof-cashflow-item { display:grid; gap:7px; padding:10px 11px; border-left:3px solid #4d887b; border-radius:10px; background:rgba(15,23,42,.027); }.fof-cashflow-item.is-redemption { border-left-color:#c86c59; }.fof-cashflow-item.is-cancelled { opacity:.5; }
.fof-cashflow-item > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }.fof-cashflow-item strong { font-size:11px; font-variant-numeric:tabular-nums; }.fof-cashflow-item span { color:var(--muted); font-size:9px; }.fof-cashflow-item p { margin:0; color:rgba(74,80,88,.7); font-size:9px; line-height:1.45; }
.fof-cashflow-item footer { display:flex; justify-content:flex-end; gap:5px; padding-top:3px; }.fof-cashflow-item footer button { min-height:25px; border:0; border-radius:7px; padding:3px 8px; color:#53605c; background:rgba(15,23,42,.045); font-size:10px; }.fof-cashflow-item footer button.is-danger { color:#9d4a42; background:rgba(190,63,52,.06); }
.fof-cashflow-item.is-reversed { opacity:.68; border-left-color:#a8b0ae; }
.fof-cashflow-item footer .is-danger.is-subtle { margin-left:auto; color:#a9685f; background:transparent; border:1px solid rgba(169,104,95,.2); }
.fof-cashflow-reversal { display:block; margin-top:7px; color:#8a9692; font-size:10px; }
.fof-cashflow-lot { display:grid; gap:8px; padding:11px 12px; border-radius:10px; background:#fff4ee; border:1px solid rgba(200,108,89,.16); }
.fof-cashflow-lot.is-unlocked { background:rgba(15,23,42,.027); border-color:rgba(15,23,42,.07); }
.fof-cashflow-lot-head { display:flex; align-items:baseline; gap:8px; }.fof-cashflow-lot-head strong { color:#9d4038; font-size:10px; }.fof-cashflow-lot.is-unlocked .fof-cashflow-lot-head strong { color:#52615d; }.fof-cashflow-lot-countdown { margin-left:auto; color:#a9685f; font-size:10px; font-weight:680; }.fof-cashflow-lot.is-unlocked .fof-cashflow-lot-countdown { color:var(--muted); }
.fof-cashflow-lot-source { padding:1px 6px; border-radius:5px; background:rgba(15,23,42,.05); color:#5c6864; font-size:10px; font-weight:680; }
.fof-cashflow-lot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin:0; }.fof-cashflow-lot-grid > div { min-width:0; display:grid; gap:2px; }.fof-cashflow-lot-grid dt { margin:0; color:var(--muted); font-size:10px; }.fof-cashflow-lot-grid dd { margin:0; overflow:hidden; color:#3e4a46; font-size:10px; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; }
.fof-cashflow-lot-terms { margin:0; padding-top:7px; border-top:1px solid rgba(200,108,89,.14); color:#8a6a5f; font-size:10px; line-height:1.5; }
.fof-cashflow-all-lots { padding-top:4px; }.fof-cashflow-all-lots summary { cursor:pointer; padding:6px 2px; color:#52615d; font-size:10px; font-weight:680; }.fof-cashflow-all-lots > div { display:grid; gap:7px; margin-top:8px; }
.fof-legacy-lot-form { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:7px; padding-top:9px; border-top:1px solid rgba(15,23,42,.07); }
.fof-legacy-lot-form label { min-width:0; display:grid; gap:4px; color:var(--muted); font-size:10px; }
.fof-legacy-lot-form input { min-width:0; min-height:32px; border:1px solid rgba(15,23,42,.09); border-radius:8px; padding:5px 8px; color:#37443f; background:#fff; font-size:10px; }
.fof-legacy-lot-form footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fof-legacy-lot-form footer span { color:#8b6118; font-size:10px; }.fof-legacy-lot-form footer button { min-height:30px; border:0; border-radius:8px; padding:5px 10px; color:#fff; background:#3f6f66; font-size:9px; }
.fof-cashflow-empty,.fof-cashflow-error { min-height:76px; display:grid; place-content:center; justify-items:center; gap:5px; border-radius:11px; color:var(--muted); background:rgba(15,23,42,.025); font-size:10px; text-align:center; }.fof-cashflow-error { color:#92453e; background:#fff3f1; }.fof-cashflow-error button { border:0; border-radius:7px; padding:5px 9px; color:#7f403a; background:rgba(190,63,52,.08); font-size:9px; }
.fof-actions { justify-content:flex-end; margin-top:16px; }.fof-empty { padding:24px; text-align:center; color:var(--muted); background:rgba(0,0,0,.025); border-radius:16px; }

.fof-overview-surface { gap:18px; }
.fof-overview-toolbar { align-items:center; padding:2px 2px 0; }
.fof-overview-toolbar > span { color:var(--muted); font-size:11px; }
.fof-overview-totals { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.fof-overview-totals > div { min-width:0; display:grid; gap:6px; padding:14px 16px; border-radius:14px; background:rgba(63,111,102,.065); }
.fof-overview-totals span { color:var(--muted); font-size:10px; }
.fof-overview-totals strong { overflow:hidden; font-size:19px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.fof-overview-totals strong.is-cash-alert { color:var(--fof-alert); }
.fof-overview-product-name { display:flex; align-items:center; gap:8px; }
.fof-overview-product-name > i { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--series-color,#8aa39d); }
.fof-overview-product-name > span { color:#33413d; font-size:12px; font-weight:500; }
.fof-nav-section { display:grid; gap:14px; }
.fof-nav-heading { align-items:center; gap:20px; padding-bottom:13px; border-bottom:1px solid rgba(15,23,42,.06); }
.fof-nav-heading h3 { margin:0; line-height:1.2; }
.fof-nav-heading .eyebrow { margin-bottom:5px; font-size:10px; }
.fof-section-context { display:block; margin-top:4px; color:var(--muted); font-size:10px; line-height:1.45; }
.fof-nav-controls, .fof-nav-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
.fof-nav-toolbar { position: relative; min-width: 0; }
.fof-nav-period-options { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: #f4f7f5; }
.fof-nav-recent { flex-wrap: wrap; border: 1px solid #e6ece8; }
.fof-nav-period-options button {
  min-height: 27px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--fof-muted);
  font: 550 12px/1.3 var(--font-ui); white-space: nowrap; cursor: pointer;
}
.fof-nav-period-options button:hover { background: #eaf0ec; color: var(--fof-ink); }
.fof-nav-period-options button[aria-pressed="true"] { background: #e1ece5; color: #315c4d; font-weight: 680; }
.fof-nav-range-trigger {
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 35px; padding: 0 10px;
  border: 1px solid var(--fof-line); border-radius: 8px; background: white; color: var(--fof-ink);
  font: 550 12px/1.3 var(--font-ui); font-variant-numeric: tabular-nums; list-style: none; cursor: pointer;
}
.fof-nav-range-trigger::-webkit-details-marker { display: none; }
.fof-nav-range[open] > .fof-nav-range-trigger, .fof-nav-range-trigger:hover { background: var(--fof-wash); }
.fof-nav-range-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fof-nav-range-tag { padding-inline-end: 7px; margin-inline-end: 2px; border-inline-end: 1px solid var(--fof-line); color: var(--fof-accent); font-weight: 650; }
.fof-nav-calendar-icon {
  position: relative; box-sizing: border-box; width: 13px; height: 12px; border: 1px solid currentColor;
  border-radius: 3px; color: var(--fof-muted);
}
.fof-nav-calendar-icon::before { position: absolute; inset: 3px 0 auto; border-top: 1px solid currentColor; content: ""; }
.fof-nav-calendar-icon::after { position: absolute; top: -2px; left: 2px; width: 1px; height: 3px; background: currentColor; box-shadow: 6px 0 currentColor; content: ""; }
.fof-nav-range-chevron { width: 6px; height: 6px; margin: -3px 2px 0; border: solid var(--fof-muted); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.fof-nav-range[open] .fof-nav-range-chevron { margin-top: 3px; transform: rotate(225deg); }
.fof-nav-range-panel {
  position: absolute; z-index: 24; inset-block-start: calc(100% + 7px); inset-inline-end: 0;
  box-sizing: border-box; width: 330px; max-width: min(100%, calc(100vw - 24px)); padding: 13px;
  border: 1px solid var(--fof-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(39, 55, 48, .12);
  color: var(--fof-ink); font-size: 12px;
}
.fof-nav-year-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.fof-nav-year-row > span, #fof-nav-custom-title { font-weight: 650; }
.fof-nav-range-panel form { display: grid; gap: 9px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--fof-line); }
#fof-nav-custom-title { margin: 0; }
.fof-nav-range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fof-nav-range-fields [role="group"] { display: grid; gap: 4px; min-width: 0; color: var(--fof-muted); font-size: 11px; }
.fof-nav-range-fields .date-picker-trigger { min-height: 32px; border-color: var(--fof-line); border-radius: 7px; box-shadow: none; color: var(--fof-ink); }
.fof-nav-range-fields .date-picker-trigger[aria-expanded="true"] { border-color: var(--fof-accent); }
.fof-nav-range-fields .date-picker-trigger:hover { transform: none; background: var(--fof-wash); }
.fof-nav-range-fields .date-picker-trigger strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.fof-nav-range-fields .date-picker-trigger i { flex: none; border-color: var(--fof-muted); border-width: 1px; }
.fof-nav-range-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fof-nav-range-actions [role="alert"] { color: #a14438; font-size: 11px; }
.fof-nav-range-actions button {
  flex: none; min-height: 30px; padding: 0 11px; border: 0; border-radius: 6px;
  background: var(--fof-accent); color: white; font: 620 12px/1.3 var(--font-ui); cursor: pointer;
}
.fof-nav-range-actions button:hover { background: #355a4c; }
.fof-nav-empty { min-height:150px; display:grid; place-content:center; justify-items:center; gap:7px; border-radius:14px; color:var(--muted); background:rgba(15,23,42,.025); font-size:12px; }
.fof-nav-empty strong { color:#394641; font-size:14px; }.fof-nav-empty span { font-size:10px; }.fof-nav-empty button { min-height:30px; border:0; border-radius:9px; padding:0 12px; color:#315d55; background:rgba(63,111,102,.1); box-shadow:none; font-size:10px; }
.fof-nav-metrics { padding-top: 16px; border-top: 1px solid var(--fof-line); }
.fof-nav-metrics-title { margin: 0 0 9px; color: var(--fof-ink); font-size: 14px; font-weight: 620; }
.fof-nav-metrics .fof-nav-heatmap { width: 100%; min-width: 740px; }
.fof-nav-heatmap thead th:first-child { width: 21%; }
.fof-nav-heatmap thead th small { margin-left: 8px; font-size: 10px; font-weight: 450; color: var(--fof-muted); }
.fof-nav-heatmap th .fof-asset-label { font-size: 13px; font-weight: 550; }
.fof-nav-heatmap .fof-asset-label small { color: var(--fof-muted); font-size: 10px; font-weight: 450; }
.fof-nav-heatmap .fof-nav-effective-dates { display: block; margin: 2px 0 0 14px; font-size: 10px; font-weight: 450; color: var(--fof-muted); }
.fof-nav-heatmap td[data-nav-metric="periodReturn"] { font-weight: 650; }
.fof-nav-heatmap td.is-up { color: #aa4b43; }
.fof-nav-heatmap td.is-down { color: #337464; }
.fof-nav-heatmap tbody tr:last-child > * { border-bottom: 0; }
.fof-nav-heatmap tbody tr:hover > * { background: #f6f9f7; }
.fof-nav-methodology { margin-top: 8px; }
.fof-nav-methodology dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px 18px; margin: 4px 0; }
.fof-nav-methodology dl > div { display: flex; gap: 8px; }
.fof-nav-methodology dt { flex: none; color: var(--fof-ink); }
.fof-nav-methodology dd { margin: 0; }
.fof-nav-diagnostics { display:grid; gap:10px; padding-top:3px; }
.fof-nav-subheading { display:flex; align-items:baseline; justify-content:space-between; gap:15px; padding:0 2px; }.fof-nav-subheading strong { font-size:13px; }.fof-nav-subheading span { color:var(--muted); font-size:10px; text-align:right; }
.fof-nav-metrics-heading { margin-bottom:0; }
.fof-nav-diagnostic-advice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fof-nav-diagnostic-advice > div { min-width:0; display:grid; gap:4px; padding:10px 12px; border-radius:11px; background:rgba(15,23,42,.025); }
.fof-nav-diagnostic-advice > div.is-warning { background:rgba(202,126,61,.085); }
.fof-nav-diagnostic-advice > div.is-ok { background:rgba(63,111,102,.065); }
.fof-nav-diagnostic-advice strong { color:#3c4945; font-size:11px; }
.fof-nav-diagnostic-advice span { color:var(--muted); font-size:10px; line-height:1.5; }
.fof-nav-diagnostics .table-wrap { border:1px solid rgba(15,23,42,.06); border-radius:13px; }
.fof-nav-diagnostics table { width:100%; min-width:760px; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.fof-nav-diagnostics th,.fof-nav-diagnostics td { height:32px; padding:4px 10px; border-bottom:1px solid rgba(15,23,42,.045); color:#46524f; font-size:10px; text-align:right; white-space:nowrap; }.fof-nav-diagnostics th { color:var(--muted); background:rgba(15,23,42,.018); font-weight:650; }.fof-nav-diagnostics th:first-child,.fof-nav-diagnostics td:first-child { text-align:left; }.fof-nav-diagnostics tbody tr:last-child td { border-bottom:0; }
.fof-nav-diagnostics tbody tr.is-attention td { background:rgba(202,126,61,.025); }
.fof-nav-diagnostic-tag { display:inline-flex; align-items:center; min-height:22px; padding:0 7px; border-radius:999px; font-size:9px; font-weight:620; }
.fof-nav-diagnostic-tag.is-warning { color:#8a552b; background:rgba(202,126,61,.11); }
.fof-nav-diagnostic-tag.is-ok { color:#35675c; background:rgba(63,111,102,.09); }
.fof-nav-diagnostic-tag.is-muted { color:var(--muted); background:rgba(15,23,42,.035); }
.fof-nav-positioning { display:flex; align-items:center; gap:12px; padding:10px 13px; border-radius:11px; color:#6f5a2d; background:rgba(212,170,76,.095); }.fof-nav-positioning.is-ok { color:#315d55; background:rgba(63,111,102,.075); }.fof-nav-positioning.is-muted { color:var(--muted); background:rgba(15,23,42,.025); }.fof-nav-positioning strong { flex:0 0 auto; font-size:11px; }.fof-nav-positioning span { font-size:10px; }
.fof-nav-body { display: grid; min-width: 0; gap: 20px; }
.fof-nav-history { min-width: 0; }
.fof-nav-history > .fof-asset-heading { align-items: center; margin-bottom: 7px; }
.fof-nav-modes { display: inline-flex; gap: 3px; padding: 2px; border: 1px solid var(--fof-line); border-radius: 7px; }
.fof-nav-modes button { padding: 3px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--fof-muted); font: 500 12px/1.4 var(--font-ui); cursor: pointer; }
.fof-nav-modes button[aria-pressed="true"] { background: var(--fof-wash); color: var(--fof-accent); font-weight: 650; }
.fof-nav-plot-wrap { position: relative; min-width: 0; height: clamp(190px, 16vw, 242px); }
.fof-nav-plot-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.fof-nav-guide { position: absolute; width: 0; border-inline-start: 1px dashed #9daf9f; pointer-events: none; }
.fof-nav-guide i { position: absolute; left: -1px; box-sizing: content-box; width: 5px; height: 5px; border: 2px solid white; border-radius: 50%; transform: translate(-50%, -50%); }
.fof-nav-plot-empty:not([hidden]) { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fof-muted); font-size: 12px; pointer-events: none; }
.fof-nav-readings > .fof-asset-heading { min-height: 27px; align-items: center; }
.fof-nav-account-list { display: grid; margin-top: 6px; }
.fof-nav-account-list button { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: baseline; gap: 10px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--fof-line); background: transparent; color: var(--fof-ink); font: 500 13px/1.4 var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer; }
.fof-nav-account-list .fof-asset-label { white-space: nowrap; }
.fof-nav-account-list button:last-child { border-bottom: 0; }
.fof-nav-account-list button:where(:hover, :focus-visible) { background: var(--fof-wash); }
.fof-nav-account-list button[aria-pressed="false"] { color: var(--fof-muted); font-weight: 450; }
.fof-nav-account-list button[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1px var(--series-color); }
.fof-nav-account-list [data-nav-reading] { font-size: 12px; text-align: right; white-space: nowrap; }
.fof-nav-section :is(button, canvas, summary, .fof-account-matrix-scroll):focus-visible { outline: 2px solid var(--fof-accent); outline-offset: -2px; }
.fof-nav-period-info { color: var(--fof-muted); font-size: 11px; }
.fof-nav-period-info button { color: var(--fof-accent); border: 0; background: none; text-decoration: underline; cursor: pointer; }
.fof-nav-period-info:empty { display: none; }
.fof-overview-risks { display:grid; gap:0; }
/* 带分隔线的标题栏变体：12px 到线 + 14px 到内容，与投顾汇总/调仓摘要一致（本区块 gap:0，
   故间距全部由 margin-bottom 承担；特异性需高于通用的 20px 规则） */
.fof-surface .fof-section.fof-overview-risks > .section-heading { margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid rgba(15,23,42,.065); }
.fof-overview-risk-method { min-width:0; display:grid; gap:0; padding-top:14px; }
.fof-overview-risk-method + .fof-overview-risk-method { margin-top:12px; padding-top:20px; border-top:1px solid rgba(15,23,42,.08); }
.fof-overview-risk-method-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; padding:0 2px 8px; }
.fof-overview-risk-method-heading > div { display:flex; align-items:baseline; gap:9px; }
.fof-overview-risk-method-heading strong { font-size:14px; }
.fof-overview-risk-method-heading span,.fof-overview-risk-method-heading em { color:var(--muted); font-size:10px; font-style:normal; }
.fof-overview-whole-risk { position:relative; width:100%; min-width:0; max-width:100%; box-sizing:border-box; display:grid; gap:13px; overflow:hidden; margin:4px 0 14px; padding:16px; border:1px solid rgba(49,93,85,.25); border-top:4px solid #3f6f66; border-radius:16px; background:linear-gradient(135deg,rgba(63,111,102,.10),rgba(255,255,255,.78) 42%,rgba(65,125,174,.055)); box-shadow:0 8px 22px rgba(38,68,63,.08); }
.fof-overview-whole-risk-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid rgba(49,93,85,.13); }
.fof-overview-whole-risk-heading > div { min-width:0; display:flex; align-items:center; gap:9px; }
.fof-overview-whole-risk-heading strong { color:#244f47; font-size:17px; letter-spacing:.04em; }
.fof-overview-whole-risk-heading small { color:var(--muted); font-size:10px; font-weight:500; }
.fof-overview-whole-risk-badge { padding:4px 8px; border-radius:999px; color:#fff; background:#3f6f66; font-size:9px; font-weight:700; letter-spacing:.04em; }
.fof-overview-whole-risk-heading em { display:flex; align-items:baseline; gap:8px; color:#244f47; font-size:18px; font-style:normal; font-weight:750; font-variant-numeric:tabular-nums; }
.fof-overview-whole-risk-heading em small { font-size:10px; font-weight:500; }
.fof-overview-whole-risk-layers { display:grid; gap:13px; }
.fof-overview-whole-risk-layer { min-width:0; display:grid; gap:7px; padding:11px 12px 12px; border:1px solid rgba(15,23,42,.07); border-radius:13px; background:rgba(255,255,255,.64); }
.fof-overview-whole-risk-layer.is-stable { border-left:4px solid #4d887b; }
.fof-overview-whole-risk-layer.is-non-stable { border-left:4px solid #5183a4; }
.fof-overview-whole-risk-layer-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.fof-overview-whole-risk-layer-heading strong { font-size:13px; }.fof-overview-whole-risk-layer.is-stable .fof-overview-whole-risk-layer-heading strong { color:#315d55; }.fof-overview-whole-risk-layer.is-non-stable .fof-overview-whole-risk-layer-heading strong { color:#365f78; }
.fof-overview-whole-risk-layer-heading span { color:var(--muted); font-size:10px; }
.fof-overview-whole-risk-layer .fof-risk-groups { display:none; }
.fof-overview-risk-card { width:100%; min-width:0; max-width:100%; box-sizing:border-box; display:grid; gap:7px; overflow:hidden; padding:11px 2px 13px; border:0; border-bottom:1px solid rgba(15,23,42,.065); background:transparent; }
.fof-overview-risk-card:last-child { padding-bottom:2px; border-bottom:0; }
.fof-overview-risk-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.fof-overview-risk-heading > div { display:flex; align-items:center; gap:9px; }
.fof-overview-risk-heading h4 { margin:0; padding:4px 9px; border-radius:8px; background:rgba(63,111,102,.085); color:#315d55; font-size:13px; font-weight:680; }
.fof-overview-risk-heading span { color:var(--muted); font-size:10px; }
.fof-overview-risk-heading > .fof-overview-risk-meta { min-width:0; justify-content:flex-end; gap:16px; }
.fof-overview-risk-meta .fof-risk-row-metric { gap:6px; }
.fof-overview-risk-meta .fof-risk-row-metric strong { font-size:15px; }
.fof-overview-risk-composition { width:100%; min-width:0; max-width:100%; box-sizing:border-box; margin-top:0; gap:12px; overflow:hidden; }
.fof-overview-risk-composition .fof-risk-row,.fof-overview-risk-composition .fof-risk-strategy-labels,.fof-overview-risk-composition .fof-risk-bar,.fof-overview-risk-composition .fof-risk-groups { min-width:0; max-width:100%; box-sizing:border-box; }
.fof-overview-risk-composition .fof-risk-row-heading > strong { display:none; }
.fof-overview-risk-composition .fof-risk-row { gap:6px; }
.fof-overview-risk-composition .fof-risk-row + .fof-risk-row { padding-top:11px; }
.fof-overview-risk-composition .fof-risk-row-heading strong { font-size:12px; }
.fof-overview-risk-composition .fof-risk-row-heading span { font-size:10px; }
.fof-overview-risk-composition .fof-risk-row-metric small { font-size:10px; }
.fof-overview-risk-composition .fof-risk-row-metric strong { font-size:15px; }
.fof-overview-risk-composition .fof-risk-bar { min-height:40px; border-radius:9px; }
.fof-overview-risk-composition .fof-risk-segment { gap:2px; padding-block:4px; line-height:1.3; }
.fof-overview-risk-composition .fof-risk-segment strong,.fof-overview-risk-composition .fof-risk-segment span,.fof-overview-risk-composition .fof-risk-segment.is-narrow strong,.fof-overview-risk-composition .fof-risk-segment.is-narrow span,.fof-overview-risk-composition .fof-risk-segment.is-very-narrow strong,.fof-overview-risk-composition .fof-risk-segment.is-very-narrow span { font-size:10px; }
.fof-overview-risk-composition .fof-risk-strategy-labels,.fof-overview-risk-composition .fof-risk-groups { min-height:29px; }
.fof-overview-risk-composition .fof-risk-strategy-labels > div { padding:5px 8px; }
.fof-overview-risk-composition .fof-risk-groups > div { padding:6px 9px; }
.fof-adviser-summary { display:grid; gap:14px; }
.fof-adviser-summary > .section-heading { align-items:flex-start; padding-bottom:12px; border-bottom:1px solid rgba(15,23,42,.065); }
.fof-adviser-summary-title { flex:0 0 auto; }
.fof-adviser-summary-controls { min-width:0; flex:1 1 auto; display:grid; justify-items:end; gap:8px; }
.fof-adviser-product-filters,.fof-adviser-strategy-filters { min-width:0; width:100%; display:flex; align-items:center; justify-content:flex-end; gap:5px; overflow-x:auto; padding:2px 2px 3px; scrollbar-width:thin; }
.fof-adviser-product-filter { min-height:27px; flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; border:1px solid color-mix(in srgb,var(--product-color) 18%,rgba(15,23,42,.06)); border-radius:999px; padding:3px 9px; color:#66736f; background:color-mix(in srgb,var(--product-color) 5%,rgba(255,255,255,.58)); box-shadow:none; font-size:10px; white-space:nowrap; transition:border-color .16s ease,background .16s ease,color .16s ease; }
.fof-adviser-product-filter i { width:7px; height:7px; flex:0 0 auto; border-radius:999px; background:var(--product-color); }
.fof-adviser-product-filter em { min-width:15px; height:15px; display:inline-grid; place-items:center; border-radius:999px; color:#7c8885; background:rgba(15,23,42,.045); font-size:9px; font-style:normal; font-variant-numeric:tabular-nums; }
.fof-adviser-product-filter:hover { color:#3f6f66; background:color-mix(in srgb,var(--product-color) 10%,white); }
.fof-adviser-product-filter.is-active { border-color:color-mix(in srgb,var(--product-color) 34%,transparent); color:#315d55; background:color-mix(in srgb,var(--product-color) 15%,white); font-weight:680; }
.fof-adviser-product-filter.is-active em { color:#315d55; background:color-mix(in srgb,var(--product-color) 14%,rgba(15,23,42,.04)); }
.fof-adviser-product-filter:focus-visible { outline:2px solid color-mix(in srgb,var(--product-color) 65%,transparent); outline-offset:2px; }
.fof-adviser-strategy-filter { --strategy-filter-hue:158; --strategy-filter-saturation:34%; min-height:27px; flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; border:1px solid hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 46% / .12); border-radius:999px; padding:3px 9px; color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 31% / .76); background:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 97% / .5); box-shadow:none; font-size:10px; white-space:nowrap; transition:border-color .16s ease,background .16s ease,color .16s ease; }
.fof-adviser-strategy-filter em { min-width:15px; height:15px; display:inline-grid; place-items:center; border-radius:999px; color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 34% / .68); background:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 46% / .07); font-size:9px; font-style:normal; font-variant-numeric:tabular-nums; }
.fof-adviser-strategy-filter:hover { border-color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 42% / .28); color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 27%); background:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 94% / .8); }
.fof-adviser-strategy-filter.is-active { border-color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 42% / .3); color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 25%); background:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 91% / .78); font-weight:680; }
.fof-adviser-strategy-filter.is-active em { color:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 25%); background:hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 45% / .14); }
.fof-adviser-strategy-filter:focus-visible { outline:2px solid hsl(var(--strategy-filter-hue) var(--strategy-filter-saturation) 44% / .55); outline-offset:2px; }
.fof-adviser-summary > .table-wrap { overflow-x:auto; overflow-y:hidden; }
.fof-table.is-readonly.fof-adviser-summary-table { width:100%; min-width:1342px; table-layout:fixed; }
.fof-table.is-readonly.fof-adviser-summary-table th,.fof-table.is-readonly.fof-adviser-summary-table td { height:32px; padding-block:3px; white-space:nowrap; }
.fof-adviser-summary-table .fof-library-strategy,.fof-positions-table.is-readonly .fof-library-strategy { gap:2px; }
.fof-adviser-summary-table .fof-library-strategy strong,.fof-adviser-summary-table .fof-library-strategy span,
.fof-positions-table.is-readonly .fof-library-strategy strong,.fof-positions-table.is-readonly .fof-library-strategy span { line-height:1.2; }
.fof-adviser-summary-table .fof-adviser-product-tag { min-height:18px; }
.fof-adviser-summary-table .fof-adviser-weight-heat { min-height:20px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(1),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(1) { width:46px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(2),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(2) { width:145px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(3),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(3) { width:300px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(4),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(4) { width:90px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(5),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(5) { width:95px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(6),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(6) { width:72px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(7),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(7),
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(10),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(10) { width:88px; text-align:center; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(8),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(8),
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(9),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(9) { width:72px; text-align:center; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(n+7):nth-child(-n+10) .fof-adviser-sort { justify-content:center; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(11),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(11) { width:105px; }
.fof-table.is-readonly.fof-adviser-summary-table th:nth-child(12),.fof-table.is-readonly.fof-adviser-summary-table td:nth-child(12) { width:169px; }
.fof-adviser-risk-row { cursor:pointer; }
.fof-adviser-risk-row:focus-visible { outline:2px solid rgba(197,70,106,.46); outline-offset:-2px; }
.fof-table.is-readonly.fof-adviser-summary-table tr.is-risk-watch td { background:rgba(222,92,128,.105); }
.fof-table.is-readonly.fof-adviser-summary-table tr.is-risk-watch td:first-child { background:rgba(222,92,128,.14); }
.fof-table.is-readonly.fof-adviser-summary-table tr.is-risk-watch td:nth-child(2) { background:#fceef2; }
.fof-table.is-readonly.fof-adviser-summary-table tr.is-risk-watch td:first-child { background:#fae8ed; }
.fof-table.fof-library-table tr.is-risk-watch > td { background:rgba(222,92,128,.105); background-clip:border-box; }
.fof-table.fof-library-table tr.is-risk-watch > td:first-child { background:rgba(222,92,128,.14); box-shadow:inset 3px 0 #c5466a; }
/* sticky 固定列的背景必须不透明，否则横向滚动时后面的列会透出来（只读锁前 2 列，编辑态锁前 3 列） */
.fof-table.fof-library-table tr.is-risk-watch > td:nth-child(2) { background:#fceef2; }
.fof-table.fof-library-table tr.is-risk-watch > td:first-child { background:#fae8ed; }
.fof-adviser-risk-row:hover td:nth-child(2),.fof-adviser-risk-row:focus-visible td:nth-child(2) { color:#a83f61; }
.fof-adviser-risk-row.is-risk-watch td:nth-child(2) { color:#a53659; font-weight:700; }
.fof-adviser-period-return { font-weight:680; font-variant-numeric:tabular-nums; cursor:help; outline:none; }
.fof-adviser-period-return:focus-visible { box-shadow:inset 0 0 0 2px rgba(63,111,102,.28); }
.fof-adviser-weight-heat { position:relative; isolation:isolate; min-width:52px; min-height:22px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; padding:2px 7px; border:1px solid rgba(49,93,85,.13); border-radius:7px; color:#234f47; background:rgba(63,111,102,.07); box-shadow:inset 0 1px 0 rgba(255,255,255,.34); font-weight:720; font-variant-numeric:tabular-nums; }
.fof-adviser-weight-heat::before { content:""; position:absolute; z-index:-1; inset:0 auto 0 0; width:var(--weight-ratio); border-radius:6px; background:linear-gradient(90deg,rgba(74,132,121,.46),rgba(49,103,93,.68)); }
.fof-adviser-weight-heat > span { position:relative; z-index:1; }
.fof-adviser-period-return.is-up { color:var(--fof-up); }
.fof-adviser-period-return.is-down { color:var(--fof-down); }
.fof-adviser-period-return.is-flat { color:var(--fof-flat); }
.fof-library-table .fof-adviser-period-return.is-up { color:var(--fof-up); }
.fof-library-table .fof-adviser-period-return.is-down { color:var(--fof-down); }
.fof-library-table .fof-adviser-period-return.is-flat { color:var(--fof-flat); }
.fof-sharpe-value { font-weight:680; font-variant-numeric:tabular-nums; }
.fof-table td.fof-sharpe-value.is-up { color:var(--fof-up); }
.fof-table td.fof-sharpe-value.is-down { color:var(--fof-down); }
.fof-table td.fof-sharpe-value.is-flat { color:var(--fof-flat); }
.fof-sharpe-value.is-insufficient { color:#8a9692; cursor:help; outline:none; }
.fof-sharpe-value.is-insufficient:focus-visible { box-shadow:inset 0 0 0 2px rgba(111,126,121,.24); }
.fof-adviser-products { display:flex; align-items:center; flex-wrap:nowrap; gap:4px; white-space:nowrap; }
.fof-adviser-product-tag { display:inline-flex; align-items:center; gap:4px; min-height:20px; flex:0 0 auto; box-sizing:border-box; padding:1px 6px; border-radius:999px; color:#45534f; background:color-mix(in srgb,var(--product-color) 12%,white); font-size:10px; font-weight:620; white-space:nowrap; cursor:default; outline:none; transition:box-shadow .16s ease,transform .16s ease,background .16s ease; }
.fof-adviser-product-tag:hover,.fof-adviser-product-tag:focus-visible { background:color-mix(in srgb,var(--product-color) 18%,white); box-shadow:0 2px 8px color-mix(in srgb,var(--product-color) 20%,transparent); transform:translateY(-1px); }
.fof-adviser-product-tag i { width:7px; height:7px; flex:0 0 auto; border-radius:999px; background:var(--product-color); }
.fof-adviser-product-tooltip { position:fixed; z-index:1000; min-width:154px; box-sizing:border-box; display:grid; gap:8px; padding:11px 12px; border:1px solid rgba(255,255,255,.72); border-radius:11px; color:#34433f; background:rgba(255,255,255,.96); box-shadow:0 12px 32px rgba(15,23,42,.14),0 2px 8px rgba(15,23,42,.07); backdrop-filter:blur(14px); pointer-events:none; opacity:0; transform:translateY(4px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-adviser-product-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-adviser-product-tooltip strong { padding-bottom:7px; border-bottom:1px solid rgba(15,23,42,.07); color:#263632; font-size:12px; line-height:1.2; }
.fof-adviser-product-tooltip span { display:grid; grid-template-columns:38px auto; gap:10px; align-items:baseline; color:#7a8783; font-size:10px; line-height:1.25; }
.fof-adviser-product-tooltip b { color:#40514c; font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
.fof-redemption-breakdown-tooltip { position:fixed; z-index:1000; width:240px; box-sizing:border-box; display:grid; gap:9px; padding:12px 13px; border:1px solid rgba(255,255,255,.76); border-radius:13px; color:#43514d; background:rgba(255,255,255,.97); box-shadow:0 14px 36px rgba(15,23,42,.15),0 3px 9px rgba(15,23,42,.06); backdrop-filter:blur(16px); pointer-events:none; opacity:0; transform:translateY(5px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-redemption-breakdown-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-redemption-breakdown-tooltip header { display:grid; gap:3px; padding-bottom:8px; border-bottom:1px solid rgba(15,23,42,.07); }
.fof-redemption-breakdown-tooltip header span { overflow:hidden; color:#263632; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.fof-redemption-breakdown-tooltip header strong { color:#7a8783; font-size:9px; font-weight:620; }
.fof-redemption-breakdown-tooltip > div { display:grid; gap:5px; }
.fof-redemption-breakdown-tooltip > div span { display:grid; grid-template-columns:7px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:22px; }
.fof-redemption-breakdown-tooltip > div i { width:7px; height:7px; border-radius:999px; background:var(--product-color); }
.fof-redemption-breakdown-tooltip > div em { overflow:hidden; color:#66746f; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.fof-redemption-breakdown-tooltip > div b { color:#40514c; font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
.fof-redemption-breakdown-tooltip > div b.is-loss { color:var(--fof-down); font-weight:720; }.fof-redemption-breakdown-tooltip > div b.is-profit { color:var(--fof-up); font-weight:720; }.fof-redemption-breakdown-tooltip > div b.is-flat { color:var(--fof-flat); }
.fof-redemption-breakdown-tooltip footer { padding:7px 8px; border-radius:8px; color:#63716d; background:rgba(63,111,102,.06); font-size:9px; line-height:1.4; }
.fof-redemption-breakdown-tooltip footer.has-loss { color:#236e5f; background:rgba(39,128,108,.09); font-weight:650; }
.fof-market-value-cell[data-fof-rebalance-hover] { cursor:help; }
.fof-rebalance-hover-tooltip { position:fixed; z-index:1000; width:218px; box-sizing:border-box; display:grid; gap:8px; padding:12px 13px 12px 15px; border:1px solid rgba(255,255,255,.76); border-left:3px solid #4d887b; border-radius:13px; color:#43514d; background:rgba(255,255,255,.97); box-shadow:0 14px 36px rgba(15,23,42,.15),0 3px 9px rgba(15,23,42,.06); backdrop-filter:blur(16px); pointer-events:none; opacity:0; transform:translateY(5px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-rebalance-hover-tooltip.is-increase { border-left-color:var(--fof-up-soft); }
.fof-rebalance-hover-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-rebalance-hover-tooltip > strong { overflow:hidden; padding-bottom:8px; border-bottom:1px solid rgba(15,23,42,.07); color:#27332f; font-size:12px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.fof-rebalance-hover-tooltip > span { display:flex; align-items:baseline; justify-content:space-between; gap:10px; color:#7a8783; font-size:10px; }
.fof-rebalance-hover-tooltip em { font-style:normal; }.fof-rebalance-hover-tooltip b { color:#40514c; font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
.fof-adviser-period-tooltip { position:fixed; z-index:1000; width:218px; box-sizing:border-box; display:grid; gap:9px; padding:12px 13px; border:1px solid rgba(255,255,255,.76); border-radius:13px; color:#43514d; background:rgba(255,255,255,.96); box-shadow:0 14px 36px rgba(15,23,42,.15),0 3px 9px rgba(15,23,42,.06); backdrop-filter:blur(16px); pointer-events:none; opacity:0; transform:translateY(5px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-adviser-period-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-adviser-period-tooltip.is-custody { width:300px; max-width:calc(100vw - 20px); padding:16px; gap:10px; }
.fof-adviser-period-tooltip .custody-metric-line { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.fof-adviser-period-tooltip.is-custody p { line-height:1.7; }
.fof-adviser-period-tooltip header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-bottom:8px; border-bottom:1px solid rgba(15,23,42,.07); }
.fof-adviser-period-tooltip header span { color:#697772; font-size:10px; font-weight:650; letter-spacing:.04em; }
.fof-adviser-period-tooltip header strong { font-size:18px; font-variant-numeric:tabular-nums; }
.fof-adviser-period-tooltip header strong.is-up { color:var(--fof-up); }.fof-adviser-period-tooltip header strong.is-down { color:var(--fof-down); }.fof-adviser-period-tooltip header strong.is-flat { color:var(--fof-flat); }
.fof-adviser-period-tooltip div { display:grid; gap:4px; }.fof-adviser-period-tooltip div small { color:#8a9592; font-size:9px; }.fof-adviser-period-tooltip div b { display:flex; align-items:center; justify-content:space-between; gap:7px; color:#374742; font-size:10px; font-variant-numeric:tabular-nums; }.fof-adviser-period-tooltip div i { color:#9aa4a1; font-style:normal; }
.fof-adviser-period-tooltip p { margin:0; color:#7d6a43; font-size:9px; line-height:1.45; }.fof-adviser-period-tooltip p em { margin-right:5px; padding:2px 5px; border-radius:999px; color:#91602e; background:rgba(202,126,61,.11); font-style:normal; font-weight:680; }.fof-adviser-period-tooltip p.is-complete { color:#71807b; }.fof-adviser-period-tooltip p.is-empty { color:#899491; }
.fof-volatility-tooltip { position:fixed; z-index:1000; width:226px; box-sizing:border-box; display:grid; gap:10px; padding:12px 13px; border:1px solid rgba(255,255,255,.76); border-radius:13px; color:#43514d; background:rgba(255,255,255,.97); box-shadow:0 14px 36px rgba(15,23,42,.15),0 3px 9px rgba(15,23,42,.06); backdrop-filter:blur(16px); pointer-events:none; opacity:0; transform:translateY(5px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-volatility-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-volatility-tooltip header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:3px 10px; padding-bottom:9px; border-bottom:1px solid rgba(15,23,42,.07); }
.fof-volatility-tooltip header span { color:#77837f; font-size:9px; font-weight:650; letter-spacing:.04em; }
.fof-volatility-tooltip header strong { grid-row:1/3; grid-column:2; color:#2f665a; font-size:20px; line-height:1; font-variant-numeric:tabular-nums; }
.fof-volatility-tooltip header em { color:#65736f; font-size:10px; font-style:normal; }
.fof-volatility-tooltip > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.fof-volatility-tooltip > div span { display:grid; gap:3px; padding:7px 8px; border-radius:8px; background:rgba(15,23,42,.03); }
.fof-volatility-tooltip > div small { color:#8b9692; font-size:9px; }.fof-volatility-tooltip > div b { color:#45534f; font-size:11px; font-variant-numeric:tabular-nums; }
.fof-sharpe-insufficient-tooltip { position:fixed; z-index:1000; width:248px; box-sizing:border-box; display:grid; gap:10px; padding:13px 14px; border:1px solid rgba(255,255,255,.78); border-radius:14px; color:#40504b; background:rgba(255,255,255,.97); box-shadow:0 16px 38px rgba(15,23,42,.16),0 3px 9px rgba(15,23,42,.06); backdrop-filter:blur(16px); pointer-events:none; opacity:0; transform:translateY(5px) scale(.98); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-sharpe-insufficient-tooltip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.fof-sharpe-insufficient-tooltip header { display:grid; gap:3px; padding-bottom:9px; border-bottom:1px solid rgba(15,23,42,.07); }.fof-sharpe-insufficient-tooltip header span { color:#87928f; font-size:9px; font-weight:650; letter-spacing:.05em; }.fof-sharpe-insufficient-tooltip header strong { color:#5e6b67; font-size:14px; }
.fof-sharpe-insufficient-tooltip > div { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.fof-sharpe-insufficient-tooltip > div span { display:grid; gap:3px; padding:8px 9px; border-radius:9px; background:rgba(15,23,42,.035); }.fof-sharpe-insufficient-tooltip small { color:#8b9692; font-size:9px; }.fof-sharpe-insufficient-tooltip b { color:#45534f; font-size:11px; font-variant-numeric:tabular-nums; }
.fof-sharpe-insufficient-tooltip p { display:grid; gap:4px; margin:0; padding-top:2px; }.fof-sharpe-insufficient-tooltip p b { display:flex; align-items:center; justify-content:space-between; gap:7px; }.fof-sharpe-insufficient-tooltip p i { color:#a1aaa7; font-style:normal; }.fof-sharpe-insufficient-tooltip > em { padding:8px 9px; border-radius:9px; color:#7a6947; background:rgba(196,145,62,.09); font-size:9px; font-style:normal; line-height:1.5; }
.fof-adviser-fund-performance { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:help; outline:none; }
.fof-adviser-fund-performance:focus-visible { color:#315d55; text-decoration:underline; text-underline-offset:3px; }
.fof-fund-performance-name { cursor:help; outline:none; }
.fof-fund-performance-name:is(i) { font-style:normal; }
.fof-fund-performance-name:focus-visible { color:#315d55; text-decoration:underline; text-underline-offset:3px; }
.fof-rotation-performance-name { cursor:help; outline:none; }
.fof-rotation-performance-name:focus-visible { color:#315d55; text-decoration:underline; text-underline-offset:3px; }
.fof-rotation-card-heading i.fof-rotation-performance-name { font:inherit; }
.fof-fund-performance-tooltip { position:fixed; z-index:1000; width:min(720px,calc(100vw - 20px)); max-width:calc(100vw - 20px); box-sizing:border-box; opacity:0; transform:translateY(5px) scale(.985); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.fof-fund-performance-tooltip.is-visible { display:grid !important; opacity:1; transform:translateY(0) scale(1); }
.adap-percentile-performance-tooltip { position:fixed; z-index:1100; width:min(720px,calc(100vw - 20px)); max-width:calc(100vw - 20px); box-sizing:border-box; opacity:0; transform:translateY(5px) scale(.985); transform-origin:top left; transition:opacity .14s ease,transform .14s ease; }
.adap-percentile-performance-tooltip.is-visible { display:grid !important; opacity:1; transform:translateY(0) scale(1); }
.fof-fund-performance-tooltip .scatter-tooltip-metrics > strong { color:#263632; }
.fof-fund-performance-tooltip .scatter-tooltip-nav { --nav-series-color:#ff8a3d; }
.fof-performance-body { display:grid; grid-template-columns:205px minmax(0,1fr); gap:16px; padding-top:12px; }
.fof-performance-metrics { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.fof-performance-metrics span { min-width:0; display:grid; gap:3px; padding:7px 8px; border-radius:8px; background:rgba(15,23,42,.032); }.fof-performance-metrics span:first-child { grid-column:1/-1; }
.fof-performance-metrics small { color:#8b9692; font-size:8px; }.fof-performance-metrics b { overflow:hidden; color:#45534f; font-size:10px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.fof-performance-chart svg { display:block; width:100%; height:142px; }.fof-performance-chart line { stroke:rgba(71,85,105,.18); stroke-width:1; }.fof-performance-chart path { fill:none; stroke:var(--performance-tone); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }.fof-performance-chart text { fill:#8b9692; font-size:9px; font-family:var(--font-ui); }
.fof-performance-empty { min-height:142px; display:grid; place-items:center; color:#8b9692; font-size:10px; }
.fof-adviser-sort { width:100%; min-height:24px; display:flex; align-items:center; justify-content:inherit; gap:4px; border:0; padding:0; color:inherit; background:transparent; box-shadow:none; font:inherit; text-align:inherit; white-space:nowrap; }
.fof-adviser-sort:hover,.fof-adviser-sort.is-active { color:#315d55; }
.fof-adviser-sort span { color:rgba(71,85,105,.45); font-size:10px; }
.fof-adviser-sort.is-active span { color:#3f6f66; }
.fof-overview-actions { display: grid; gap: 16px; font-variant-numeric: tabular-nums; }
.fof-overview-actions > .section-heading { align-items: flex-end; flex-wrap: wrap; gap: 6px 16px; }
.fof-overview-rebalance-summary { --fof-action-columns: minmax(175px, 1.25fr) repeat(2, minmax(117px, .85fr)) minmax(146px, .9fr) 14px; }
.fof-overview-rotation { --fof-action-columns: minmax(190px, 1.45fr) minmax(96px, .85fr) minmax(68px, .58fr) minmax(82px, .64fr) minmax(74px, .48fr) 14px; }
.fof-action-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; padding-bottom: 2px; color: var(--fof-muted); font-size: 12px; }
.fof-action-meta [data-fof-rebalance-pending] { padding-inline-start: 12px; border-inline-start: 1px solid var(--fof-line); font-weight: 600; }
.fof-action-attention { color: #875729; }
.fof-action-list { min-width: 0; overflow: auto; border: 1px solid var(--fof-line); border-radius: 12px; background: #fff; }
.fof-action-list > * + * { border-top: 1px solid var(--fof-line); }
.fof-action-row { display: grid; grid-template-columns: var(--fof-action-columns); align-items: center; gap: 12px; padding: 9px 14px; min-height: 54px; box-sizing: border-box; color: var(--fof-ink); font-size: 12px; }
.fof-action-head { min-height: 34px; padding-block: 6px; background: #f2f6f3; color: var(--fof-muted); font-size: 11px; font-weight: 600; }
.fof-action-fold > summary { cursor: pointer; list-style: none; }
.fof-action-fold > summary::-webkit-details-marker { display: none; }
.fof-action-fold > summary:hover, .fof-action-fold[open] > summary { background: #f5f8f5; }
.fof-overview-actions :is(summary, button, .fof-inline-table-wrap, .fof-fund-performance-name):focus-visible { outline: 2px solid var(--fof-accent); outline-offset: -2px; }
.fof-action-account, .fof-action-cell { display: grid; gap: 3px; min-width: 0; }
.fof-action-account strong { display: flex; align-items: center; gap: 8px; color: var(--fof-ink); font-size: 13px; font-weight: 650; }
.fof-action-account i { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--account-color); }
.fof-action-account small, .fof-action-cell small, .fof-action-total { color: var(--fof-muted); font-size: 11px; line-height: 1.45; }
.fof-action-cell small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fof-action-cell b, .fof-action-total strong, .fof-action-value { font-weight: 650; font-size: 13px; }
.fof-action-value.is-decrease { color: var(--fof-down); }
.fof-action-value.is-increase { color: var(--fof-up); }
.fof-action-empty { color: var(--fof-muted); font-weight: 400; }
.fof-action-chevron { justify-self: center; width: 6px; height: 6px; border: solid var(--fof-accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.fof-action-fold[open] .fof-action-chevron { transform: translateY(2px) rotate(225deg); }
.fof-action-progress { max-width: 150px; }
.fof-action-progress-line { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 5px; }
.fof-action-progress-line b { font-weight: 600; }
.fof-action-progress-line small { font-size: 10px; font-weight: 550; }
.fof-action-progress progress { display: block; appearance: none; width: 100%; height: 4px; border: 0; border-radius: 4px; background: #e7ede8; overflow: hidden; }
.fof-action-progress progress::-webkit-progress-bar { background: #e7ede8; }
.fof-action-progress progress::-webkit-progress-value { border-radius: 4px; background: #739584; }
.fof-action-progress progress::-moz-progress-bar { border-radius: 4px; background: #739584; }
.fof-action-detail { padding: 9px 14px 12px; border-top: 1px solid var(--fof-line); }
.fof-overview-plan :is(th, td):nth-child(4) { text-align: left; }
.fof-overview-plan .fof-plan-table th:nth-child(2) { width: 32%; }
.fof-overview-plan .fof-plan-table tbody tr:has(button[aria-pressed="false"]) { background: #f7faf7; }
.fof-overview-plan .fof-plan-table td button { min-width: 84px; border-radius: 6px; }
.fof-overview-plan .fof-plan-table td button[aria-pressed="false"] { border: 1px solid #bfd3c7; background: #fff; color: #365f50; }
.fof-overview-plan .fof-plan-table td button[aria-pressed="true"] { border-color: #e2ebe5; background: #f3f7f4; color: #526a5e; }
.fof-overview-plan .fof-plan-table td button:not([aria-busy="true"]):hover { border-color: var(--fof-accent); }
.fof-overview-plan button[aria-busy="true"] { cursor: progress; }
.fof-action-watch b { color: #875729; }
.fof-action-directions { display: flex; gap: 9px; }
.fof-action-directions .fof-action-value { font-size: inherit; font-weight: 550; }
.fof-action-total strong { color: var(--fof-ink); }
.fof-rotation-details { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 12px; padding-block: 12px 14px; background: #fbfcfb; }
.fof-rotation-group { flex: 1 1 min(100%, 235px); min-width: 0; padding-inline: 14px; border-inline-start: 1px solid var(--fof-line); }
.fof-rotation-group:first-child { padding-inline-start: 0; border-inline-start: 0; }
.fof-rotation-group.is-watch { flex: 0 1 min(100%, 260px); }
.fof-rotation-group.is-allocation { flex: 2 1 min(100%, 295px); }
.fof-rotation-group h4 { margin: 0 0 7px; font-size: 12px; font-weight: 650; }
.fof-rotation-group ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.fof-rotation-group :is(li small, p) { color: var(--fof-muted); font-size: 11px; }
.fof-rotation-group p { margin: 5px 0 0; }
.fof-rotation-pair { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 7px; }
.fof-rotation-pair > span[aria-label] { color: var(--fof-muted); }
.fof-rotation-directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr)); gap: 8px 14px; }
.fof-rotation-directions h5 { margin: 0 0 4px; font-size: 11px; }

@media (max-width: 760px) {
  .fof-action-list > * { min-width: 665px; }
}

@media (max-width:900px) {
  .fof-overview-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fof-overview-risk-heading { align-items:flex-start; flex-direction:column; }
  .fof-overview-whole-risk-heading { align-items:flex-start; flex-direction:column; }
  .fof-overview-risk-heading > .fof-overview-risk-meta { width:100%; justify-content:space-between; }
  .fof-nav-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .fof-nav-controls, .fof-nav-toolbar { justify-content: flex-start; }
  .fof-nav-range-panel { inset-inline: 0 auto; }
  .fof-nav-diagnostic-advice { grid-template-columns:1fr; }
  .fof-adviser-summary > .section-heading { align-items:flex-start; flex-wrap:wrap; }
  .fof-adviser-summary-controls { flex-basis:100%; justify-items:start; }
  .fof-adviser-product-filters,.fof-adviser-strategy-filters { justify-content:flex-start; }
}

@media (max-width: 980px) {
  .fof-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fof-summary > .fof-status { justify-self:start; margin-bottom:0; }
}

@media (max-width: 560px) {
  .fof-overview-totals { grid-template-columns:1fr; }
  .fof-nav-positioning,.fof-nav-subheading { align-items:flex-start; flex-direction:column; }
  .fof-toolbar-controls { width:100%; align-items:stretch; }.fof-toolbar-controls > label,.fof-toolbar-controls button { flex:1 1 100%; }.fof-product-picker { width:100%; }.fof-product-cards { overflow-x:auto; }.fof-toolbar-controls .fof-product-card { flex:0 0 auto; }
  .fof-snapshot-actions { width:100%; box-sizing:border-box; }.fof-snapshot-actions .fof-snapshot-button.is-copy,.fof-snapshot-actions .fof-snapshot-button.is-delete { flex:0 0 38px; }.fof-snapshot-actions .fof-snapshot-button.is-new { flex:1 1 auto; }
  .fof-summary { grid-template-columns:1fr; gap:12px; }.fof-summary > .fof-status { justify-self:start; margin-bottom:0; }
  .fof-position-actions { align-items:stretch; flex-direction:column; }.fof-position-actions > div { display:grid; grid-template-columns:1fr; }.fof-position-actions .fof-position-action { width:100%; }
  .shell {
    width: min(100% - 24px, 1280px);
    padding: 12px 0 28px;
  }

  .auth-card,
  #adminPanel {
    padding: 18px;
  }

  .auth-view {
    min-height: calc(100vh - 24px);
  }

  .brand-panel {
    padding: 26px;
  }

  .brand-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .brand-copy > p {
    font-size: 14px;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
  }

  .topbar {
    top: 0;
  }

  .strategy-hero {
    min-height: 260px;
    padding: 24px 20px;
  }

  .strategy-hero h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .strategy-hero--index {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 20px;
  }

  .strategy-hero--index h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .index-hero-meta {
    justify-content: flex-start;
  }

  .tab-surface {
    min-height: 620px;
  }

  .scatter-canvas,
  .scatter-canvas--uniform,
  .scatter-canvas--hero {
    min-height: 420px;
  }

  .launch-panel {
    padding: 28px 14px;
  }

  .top-actions button {
    flex: 1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid--compact {
    grid-template-columns: 1fr;
  }

  .metric-grid--microcap,
  .metric-grid--microcap-relative {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cluster-map-canvas {
    min-height: 460px;
  }

  .cluster-summary-grid {
    grid-template-columns: 1fr;
  }

  /* 窄屏概览换行后靠发丝线分栏会错位，改成等分网格 */
  .cluster-insight-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 12px 0;
  }

  .cluster-insight-stat {
    padding: 0 14px;
  }
}

@media (max-width:760px) {
  .fof-cashflow-drawer { width:100vw; max-width:none; border-left:0; }
  .fof-cashflow-drawer > header { padding-inline:16px; }
  .fof-cashflow-drawer-body { padding:14px 16px 24px; }
  .fof-cashflow-form-grid { grid-template-columns:1fr; }
  .fof-cashflow-form-grid label.is-wide { grid-column:auto; }
  .fof-legacy-lot-form { grid-template-columns:1fr; }
  .fof-position-tools .fof-cashflow-open-button span { display:none; }
  .fof-position-tools .fof-cashflow-open-button { width:38px; padding:0; }
}

/* ── 产品模块细节打磨 ────────────────────────────────────────────────
   只调排版节奏、色阶与描边，不动布局结构与信息层级。 */

/* 小标签：大写拉丁字母补字距、降字重，并统一到该分类的 accent 色系，
   避免蓝色 eyebrow 与暖色图表面板各说各话。 */
.adap-equity-board .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--accent, var(--blue)) 58%, var(--ink));
}

/* Hero：底纹跟随 accent；大字号做光学收紧；正文收窄行长、降一档灰度。 */
.adap-equity-board > .strategy-hero {
  background:
    linear-gradient(148deg, color-mix(in srgb, var(--accent, var(--blue)) 11%, transparent), transparent 46%),
    radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--accent, var(--blue)) 7%, transparent), transparent 58%),
    var(--surface-strong);
}

.adap-equity-board > .strategy-hero h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  letter-spacing: -0.02em;
}

.adap-equity-board > .strategy-hero p:last-child {
  max-width: 620px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

/* 口径切换是整块 Tab 的开关，放在 Hero 右下角只出现一次，
   不再跟着 8 个图表面板重复；强调色取当前 Tab 的 accent。 */
.adap-equity-board > .strategy-hero:has(.strategy-hero-aside) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.strategy-hero-aside {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  --adap-return-accent: var(--accent, #0071e3);
}

/* Hero 尺度更大，药丸相应放一档，免得贴着大标题显得局促。 */
.strategy-hero-aside .adap-return-mode-control {
  padding: 3px;
  background: color-mix(in srgb, var(--adap-return-accent) 5%, rgba(255, 255, 255, 0.9));
}

.strategy-hero-aside .adap-return-mode-button {
  min-height: 30px;
  padding: 0 16px;
  font-size: 12px;
}

/* 图表面板标题区：标题与右侧说明改为顶对齐，让 eyebrow 与统计区间同一水平线。 */
.adap-equity-chart-panel .chart-heading {
  align-items: flex-start;
}

/* 面板标题在一屏里要重复出现 8 次，30px 会和 Hero 抢份量，压到 20px */
.adap-equity-chart-panel .chart-heading h3 {
  font-size: clamp(17px, 1.7vw, 20px);
}

.adap-equity-chart-panel .chart-heading-side {
  gap: 6px;
}

.adap-equity-chart-panel .chart-caption {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

/* 统计区间标签：暖色面板上的蓝色药丸过于跳，收为中性石墨色。 */
.adap-equity-chart-panel .chart-heading .chart-period-caption {
  /* 药丸比 eyebrow 高一圈，上提 4px 让两者视觉中线对齐 */
  margin-top: -4px;
  border-color: rgba(0, 0, 0, 0.07);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 640;
  letter-spacing: 0.02em;
}

/* 画布外框：面板本身已有底色，边框再压淡一档，去掉「图里套一个灰框」的感觉。 */
.adap-equity-chart-panel canvas {
  border-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

/* 面板：悬停时用 accent 轻描边替代硬阴影跳变。 */
.adap-equity-chart-panel {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.adap-equity-chart-panel:hover {
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 24%, rgba(255, 255, 255, 0.82));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.adap-equity-chart-panel--hero {
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--accent, var(--blue)) 9%, transparent),
    var(--shadow-soft);
}

/* 顶栏胶囊：补上 hover 反馈与 active 的轻微浮起。 */
.tab-button {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.tab-button:hover:not(.active) {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.tab-button.active {
  box-shadow: 0 6px 16px rgba(29, 29, 31, 0.16);
}

/* ── 顶栏（banner）精修 ─────────────────────────────────────────────
   目标：把「标题 + 两级导航」的层级拉开。原先主导航与内容页签同为黑底重胶囊，
   两块黑色互相争夺视线；标题字号也偏大。这里统一收成一套轻量胶囊系统：
   主导航（右上）保留实心 ink 作为唯一强锚点，内容页签降级为白底浅描边。 */
.topbar {
  /* 两级导航未选中态共用一个色值：选中与否已由胶囊底色明确表达，
     文字本身不必再靠"变淡"来示弱，所以取到接近正文的深度保证可读。 */
  --topbar-idle: #55555a;
  min-height: 92px;
  padding: 14px 22px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.5);
  gap: 24px;
}

.topbar.scrolled {
  border-color: rgba(255, 255, 255, 0.78);
  /* 吸顶态必须足够实：0.9 时散点图的深色圆点会隔着顶栏透出来 */
  background: rgba(255, 255, 255, 0.985);
  border-top-color: transparent;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.topbar-brand {
  gap: 12px;
}

/* 字重说明：Win 上中文回落到 Microsoft YaHei UI，只有 Light/Regular/Bold 三档，
   600 以上会被整体吸附到 Bold，汉字糊成方墩。所以这里一律走「大字号 + 轻字重」，
   并给汉字正字距——负字距是给拉丁连写用的，方块字被挤紧只会更局促。 */
.topbar .eyebrow {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 540;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* 抵消末字后多出的那格字距，左沿与标题对齐 */
}

.topbar h1 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.1vw, 29px);
  font-weight: 560;
  letter-spacing: 0.035em;
}

/* 两级导航共用的胶囊几何：更矮、全圆角、字重收轻。 */
.topbar .tab-button,
.topbar .secondary-button {
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.045em;
}

/* 选中态补一档字重：既标记选中，也补偿深底浅字的视觉变细。 */
.topbar .tab-button.active {
  font-weight: 560;
}

/* 内容页签 / 后台页签：次级导航，静态无描边，仅靠底色区分。 */
.topbar-tabs .tab-button {
  color: var(--topbar-idle);
  background: transparent;
  border-color: transparent;
}

/* hover 必须往深走，不能往白走：顶栏底色本身已接近 #fafafb，
   再叠半透明白等于没有对比。用 ink 淡染，才能和「透明=未选中」「纯白+投影=选中」
   拉开成三个可辨认的层级。 */
.topbar-tabs .tab-button:hover:not(.active) {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.07);
  border-color: transparent;
}

.topbar-tabs .tab-button.active {
  color: var(--ink);
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* 主导航：整组浮在一个浅色轨道里，形成 segmented control。 */
.top-actions {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  flex-wrap: nowrap;
}

.top-actions .tab-button {
  color: var(--topbar-idle);
  background: transparent;
  border-color: transparent;
}

.top-actions .tab-button:hover:not(.active) {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.07);
  border-color: transparent;
}

.top-actions .tab-button.active {
  color: #fff;
  background: var(--ink);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.2);
}

/* 退出：与导航同轨但分组，用一条细分隔线拉开语义。 */
.top-actions .secondary-button {
  margin-left: 4px;
  padding-left: 15px;
  color: var(--topbar-idle);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 999px 999px 0;
}

.top-actions .secondary-button:hover {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.07);
  transform: none;
}

/* ══ 后台四个页签的统一重构 ══════════════════════════════════════════
   问题：四个视图各自长成一套语言——用户管理是一张「表单堆」（每格都是 46px 高的
   实心控件，18px 行内边距，一屏只放得下四五行）；产品库同时用了蓝（可点）、
   红（已选）、橙（缺失）三种色相，「已选」和「删除」都是红，语义打架；左侧分组
   列表把「数量·缺失·脚本」压成一行 12px 灰字，扫不出层级。
   重构收敛成两条：
   1) 控件安静化——表格里的 input/select 平时无边框无底色，读起来是数据；
      行 hover / focus 才显形为可编辑控件。行高因此能收到接近纯展示表的密度。
   2) 色相收敛——蓝只留给「可操作」，红只留给「删除」，选中态改用中性 ink 描边，
      缺失态保留橙但降饱和。 */

/* ── 共用：安静控件 ───────────────────────────────────────────────── */
#adminPanel td {
  padding-inline: 14px;
  padding-block: 8px;
}

#adminPanel td input:not([type="checkbox"]),
#adminPanel td select {
  height: 36px;
  min-height: 36px;
  padding-inline: 9px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

/* 整行 hover 才把该行控件「点亮」，避免满屏边框；单独 hover 某个控件再加深一档。 */
#adminPanel tbody tr:hover td input:not([type="checkbox"]),
#adminPanel tbody tr:hover td select {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

#adminPanel td input:not([type="checkbox"]):hover,
#adminPanel td select:hover {
  border-color: var(--line-strong);
  background: #fff;
}

#adminPanel td input:not([type="checkbox"]):focus,
#adminPanel td select:focus {
  border-color: rgba(0, 113, 227, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* 表头：原来是 720 字重灰字加浅底，比数据行还抢眼。降成小号字距标签。 */
#adminPanel thead th {
  padding-block: 9px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--soft);
  background: transparent;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.06em;
}

/* 控件安静化之后行分隔线显得过密，收淡；hover 底色同步减弱——
   控件显形本身已经是足够强的「当前行」信号。 */
#adminPanel tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

#adminPanel tbody tr:hover {
  background: rgba(0, 113, 227, 0.028);
}

/* 行内按钮平时压到 42% 不透明度，该行 hover 或组内聚焦才完全显形，
   最右侧那组「保存 / 删除」就不会变成整张表最跳的东西。 */
#adminPanel .row-actions {
  min-width: 140px;
  opacity: 0.42;
  transition: opacity 160ms ease;
}

#adminPanel tbody tr:hover .row-actions,
#adminPanel .row-actions:focus-within {
  opacity: 1;
}

#adminPanel .row-actions .secondary-button,
#adminPanel .row-actions .danger-button {
  min-width: 60px;
  min-height: 30px;
  padding-inline: 12px;
  border-radius: 7px;
  font-size: 12px;
}

/* ── 用户管理 ─────────────────────────────────────────────────────── */
/* 姓名格：名字是输入框，状态是下面一行小字。收紧间距并加色点——
   第 4 列的下拉是「改状态」，这里是「当前状态」，一眼可分。 */
.user-cell {
  gap: 3px;
}

/* 色点只能挂在用户管理表上：.user-cell 另外两处（异常登录表的手机号、
   CTA 持仓表的代码·名称）是纯说明文字，挂个绿点会读成状态灯。 */
.user-management-table .user-cell span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 9px; /* 与上方 input 的内边距对齐 */
  font-size: 11px;
  letter-spacing: 0.02em;
}

.user-management-table .user-cell span::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.user-management-table .user-cell span.wait {
  color: #a35a00;
}

.user-management-table .user-cell span.off {
  color: var(--soft);
  opacity: 0.72;
}

.user-management-table .user-cell span:not(.wait):not(.off) {
  color: #1a7f37;
}

/* 手机号与最近登录是纯数字/日期，等宽数字才扫得动。 */
.user-management-table td:nth-child(2),
.user-management-table td:nth-child(5) {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ── CTA 持仓周期 ─────────────────────────────────────────────────── */
/* 原来强制 1180px 最小宽，其中 58% 给「备注」；实际备注多是短句，撑不满
   还逼出横向滚动条。改成两个天数列定宽，备注吃掉剩余宽度。 */
.cta-holding-admin-table {
  min-width: 720px;
}

.cta-holding-admin-table th:nth-child(2),
.cta-holding-admin-table td:nth-child(2),
.cta-holding-admin-table th:nth-child(3),
.cta-holding-admin-table td:nth-child(3) {
  width: 88px;
}

/* 备注列必须是 auto：table-layout:fixed 下剩余宽度按各列声明宽度等比摊派，
   备注留着 58% 就会把上面两个天数列一起撑宽（88 实测被拉到 108）。
   auto 让富余只流向备注一列。 */
.cta-holding-admin-table th:nth-child(4),
.cta-holding-admin-table td:nth-child(4) {
  width: auto;
}

/* 最短/最长是天数，右对齐 + 等宽数字，两列才能上下比对。 */
.cta-holding-admin-table td:nth-child(2) input,
.cta-holding-admin-table td:nth-child(3) input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-form-actions {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ── 产品库：左侧分组列表 ─────────────────────────────────────────── */
.product-admin-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
}

/* 整列收进一个轨道，与右侧编辑区分开；相邻项之间只留发丝线，不再每项
   一个独立卡片——八个卡片叠起来的边框密度盖过了内容本身。 */
.product-group-list {
  gap: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.product-group-button {
  position: relative;
  gap: 2px;
  padding: 9px 11px 9px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition:
    color 160ms ease,
    background 160ms ease;
}

/* 分隔线用投影画而不是 border-top：选中项盖上底色时相邻的线要一起消失，
   border 做不到「被下一项的背景覆盖」。 */
.product-group-button + .product-group-button {
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.product-group-button:hover {
  background: rgba(29, 29, 31, 0.05);
}

/* 选中：左侧一道 accent 竖条 + 中性底色。原来整块蓝色浅染，一列里连着看
   像「高亮了半张表」；竖条是明确的单点锚。 */
.product-group-button.active,
.product-group-button.active:hover {
  background: rgba(29, 29, 31, 0.06);
  box-shadow: none;
}

.product-group-button.active + .product-group-button {
  box-shadow: none;
}

.product-group-button.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 4px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--blue);
}

/* 760 在 Win 中文回落字体（Microsoft YaHei UI）里只有 Bold 可选，整列会糊成黑块。 */
.product-group-button strong {
  font-size: 13px;
  font-weight: 580;
}

.product-group-button.active strong {
  font-weight: 620;
}

.product-group-button span {
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 产品库：右侧代码格 ───────────────────────────────────────────── */
.product-chip-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 8px;
}

.product-chip {
  align-content: start;
  gap: 3px;
  overflow: hidden; /* 操作条浮层贴到 right:0/bottom:0，直角要被圆角裁掉 */
  min-height: 58px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.product-chip:hover,
.product-chip:focus-within {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* 选中态改中性 ink 描边：红要留给「删除」那一个按钮，否则整块红底再套一个
   红按钮，看不出真正危险的动作在哪。 */
.product-chip.is-selected,
.product-chip.is-selected:hover {
  border-color: rgba(29, 29, 31, 0.42);
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.09);
}

.product-chip strong {
  font-size: 13px;
  font-weight: 580;
}

.product-chip span {
  color: var(--soft);
  font-size: 11px;
}

/* 缺失态：橙色只做提示，不再整块高饱和底色——一屏几十个缺失代码时很刺眼。 */
.product-chip.is-missing {
  border-color: rgba(255, 159, 10, 0.42);
  background: rgba(255, 159, 10, 0.06);
}

.product-chip.is-missing strong {
  color: #8a4b00;
}

.product-chip-plus {
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-color: rgba(163, 90, 0, 0.28);
  font-size: 15px;
  font-weight: 580;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.product-chip-plus:hover,
.product-chip-plus:focus-visible {
  border-color: rgba(163, 90, 0, 0.6);
  background: #fff;
}

/* 操作条必须是浮层，不能占文档流：格子是 auto-fill 网格，选中项一旦长高
   （实测 60 → 105），同一网格行里另外几个没被选中的格子会陪着一起拉长，
   点一下代码半屏往下跳。改成贴右下角的绝对定位浮层，几何完全不变。
   左缘用白色渐变把身下的文字抹掉，代码本身在行首，仍然看得见。 */
.product-chip-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 8px 11px 9px 18px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, #fff 16px, #fff 100%);
}

.product-chip-action {
  padding: 5px 8px;
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 560;
}

.product-chip-action:hover,
.product-chip-action:focus-visible {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--blue);
  background: rgba(0, 113, 227, 0.07);
}

.product-chip-action--danger {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.product-chip-action--danger:hover,
.product-chip-action--danger:focus-visible {
  border-color: rgba(255, 59, 48, 0.42);
  color: #d70015;
  background: rgba(255, 59, 48, 0.08);
}

/* 「添加」格：虚线框平时几乎不出声，hover 才亮起来。 */
.product-chip--add {
  gap: 1px;
  border-color: var(--line-strong);
  color: var(--soft);
  background: transparent;
}

.product-chip--add strong {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.product-chip--add span {
  color: inherit;
  font-size: 11px;
}

.product-chip--add:hover,
.product-chip--add:focus-visible {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--blue);
  background: rgba(0, 113, 227, 0.05);
  box-shadow: none;
}

.product-chip--add:hover strong,
.product-chip--add:focus-visible strong {
  color: inherit;
}

/* ── 统计 ─────────────────────────────────────────────────────────── */
/* 对齐新的卡片语言：圆角 12、边框走 line 而不是半透明白——后者叠在
   #adminPanel 的白底上等于没有边界，卡片浮不出来。 */
.admin-stat-panel {
  border-color: var(--line);
  border-radius: 12px;
}

.chart-grid.admin-stat-grid {
  gap: 14px;
}

.admin-metric-grid .metric-tile {
  border-radius: 12px;
}


/* ══ 后台第二轮：外壳、统计、以及上一轮的漏网 ═══════════════════════════
   上一轮只碰了表格控件与产品库，留下三类问题：(1) 外壳自己没跟上新卡片语言；
   (2) 统计视图几乎没动，还说着业务页方言；(3) 有几处「改了一半」——比如 CTA
   表重写了 2/3/4 列却漏了第 1 列，metric-tile 补了圆角却漏了边框和底色。 */

/* ── 外壳 ─────────────────────────────────────────────────────────── */
/* 同心圆角必须外 ≥ 内：上一轮把 .product-group-list / .admin-stat-panel /
   .metric-tile 全升到 12，外壳还停在 8，四角处内卡片「顶」着外壳。
   半透明白边叠在 0.78 白底上等于没有边界，同上一轮给 .admin-stat-panel 的处理。
   blur(22px) 是为业务页图表背景调的；后台身后只有 body 的静态渐变，没有内容
   可糊，纯 GPU 成本，还会让密集表格的小字边缘发虚。 */
#adminPanel {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* .eyebrow 全局是 12px / 720 / --blue / uppercase，那是给 USAGE、REDEMPTIONS
   这类拉丁 kicker 调的：uppercase 对中文是空操作，720 在 Windows 中文回落到
   Microsoft YaHei UI 后吸附成 Bold（「管理后台」四个 12px 字糊成方墩），
   而蓝按既定约定要留给可操作元素——它旁边就是真正可点的「刷新」。
   必须双重限定：.eyebrow 在 app.js 里有 55 处，全是拉丁大写，不能动全局。 */
#adminPanel .panel-header .eyebrow {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 540;
  letter-spacing: 0.16em;
  text-transform: none;
}

#adminPanel .panel-header h2 {
  font-size: 20px;
  font-weight: 620;
}

/* 视图硬切时文档高度实测最大跳 1108px（产品库 1288 → 用户管理 180）。
   淡入不能消除跳变，但能让切换有一个连续的落点。
   styles.css 里 prefers-reduced-motion 的通配规则会自动把它压到 1ms。 */
#adminPanel .admin-view {
  animation: adminViewIn 200ms ease both;
}

@keyframes adminViewIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 顶栏页签原本没有任何 :focus-visible 规则，靠 Chrome UA 轮廓，
   在 .top-actions .tab-button.active 的 ink 实心底上几乎看不见。 */
.topbar .tab-button:focus-visible,
.topbar .secondary-button:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.6);
  outline-offset: 2px;
}

/* ── 反馈条 ───────────────────────────────────────────────────────── */
/* setMessage 原本写内联 color，这两条是它的去处。放全局是有意的：
   #authMessage 也走 setMessage，它的错误态原本是基类的 #ff3b30，
   统一到 #d70015 是改善。 */
.message.is-ok {
  color: #248a3d;
}

.message.is-error {
  color: #d70015;
}

/* 空消息不占位：.message 的 min-height:22px 无条件生效，四个视图底部
   永远有 22px 空占位；grid 项必须 display:none 才能连同 16px 行间距一起消失。 */
#adminPanel .message:empty {
  display: none;
}

#adminPanel .message {
  font-size: 13px;
}

/* ── 用户管理 ─────────────────────────────────────────────────────── */
/* 表格净宽恒为 1216（viewport 锁 1280 + body min-width 1280）。原分配
   25/15/13/13/15/21 下：手机号 11 位数字 ≈82px 却占 179px，最近登录
   「07/27 09:12」≈78px 也占 179px，操作列 250px 里按钮组只占 128px——
   「最近登录」与「保存」之间空出 108px 死区；而姓名 input 只有 270px，
   20 字中文就贴边。把富余从后四列还给第一列。 */
.user-management-table th:nth-child(1),
.user-management-table td:nth-child(1) {
  width: 32%;
}

.user-management-table th:nth-child(2),
.user-management-table td:nth-child(2) {
  width: 14%;
}

.user-management-table th:nth-child(3),
.user-management-table td:nth-child(3) {
  width: 12%;
}

.user-management-table th:nth-child(4),
.user-management-table td:nth-child(4) {
  width: 13%;
}

.user-management-table th:nth-child(5),
.user-management-table td:nth-child(5) {
  width: 13%;
}

.user-management-table th:nth-child(6),
.user-management-table td:nth-child(6) {
  width: 16%;
}

/* 状态色点搬到第 4 列的下拉左侧。绝对定位，select 的位置与改动前完全一致。 */
.user-management-table .status-cell {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.user-management-table .status-cell::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.user-management-table .status-cell[data-status="active"] {
  color: #1a7f37;
}

.user-management-table .status-cell[data-status="pending"] {
  color: #a35a00;
}

.user-management-table .status-cell[data-status="disabled"] {
  color: var(--soft);
}

/* #86868b 在 11px 下实测 3.6:1，不过 AA（小字要 4.5）。--muted 是 5.1:1，
   在 560 字重 + 0.06em 字距下依然安静。 */
#adminPanel thead th {
  color: var(--muted);
}

/* hover 不是「可操作」，蓝要留给真正的动作。2.8% 的蓝换成 3.5% 的 ink，
   实际可见度更高而更安静。 */
#adminPanel tbody tr:hover {
  background: rgba(29, 29, 31, 0.035);
}

/* 键盘走到行内任一控件时整行一起显形——原来只有被聚焦的那一个控件显形，
   键盘用户永远看不到完整的一行。
   :not(:focus) 是必须的：本规则在 focus 规则之后，不排除掉焦点控件本身
   会把它的蓝色描边覆盖回灰色。 */
#adminPanel tbody tr:focus-within {
  background: rgba(29, 29, 31, 0.035);
}

#adminPanel tbody tr:focus-within td input:not([type="checkbox"]):not(:focus),
#adminPanel tbody tr:focus-within td select:not(:focus) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

/* 禁用 = 不适用，不是「坏掉的危险按钮」。原来是 opacity .42 的红，
   再叠 .row-actions 本身的 .42，实际只剩约 18% 不透明度的红幽灵。 */
#adminPanel .row-actions .danger-button:disabled {
  border-color: var(--line);
  color: var(--soft);
  background: transparent;
  opacity: 1;
}

/* 表格内空态：原本列表为空时只剩一条 36px 的表头横条，像加载失败。 */
#adminPanel .table-empty-row td {
  padding-block: 44px;
  border-bottom: 0;
  color: var(--soft);
  font-size: 13px;
  text-align: center;
  white-space: normal;
}

#adminPanel .table-empty-row:hover {
  background: transparent;
}

/* ── CTA 持仓周期 ─────────────────────────────────────────────────── */
/* 上一轮重写了 2/3/4 列却漏了第 1 列，旧块的 width:24% 还活着（=291.8px）。
   实测「SEF203 · 元盛（上海）投资管理中心-元盛中国多元化一号」这类真实数据
   会溢出 25.9px，压在最短列的输入框上。td 是 nowrap + overflow:visible，
   只能在这一列里自己截断。 */
.cta-holding-admin-table th:nth-child(1),
.cta-holding-admin-table td:nth-child(1) {
  width: 300px;
}

.cta-holding-admin-table .user-cell {
  grid-template-columns: minmax(0, 1fr);
}

.cta-holding-admin-table .user-cell > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* strong 实测 16px/700：16 来自 td 继承的 body 字号，700 是 <strong> 默认。
   同行的可编辑控件是 13px、表头 11px——最重的一档给了只读的产品名，
   最轻的给了表头，正好和信息优先级反着来。 */
.cta-holding-admin-table .user-cell strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cta-holding-admin-table .user-cell span {
  color: var(--soft);
  font-size: 11.5px;
}

/* 表头跟着数值一起右对齐：88px 里 label 靠左、数字靠右会形成两条互不相干的边。
   23px = td 内边距 14 + input 内边距 9，与数字右边缘对齐。 */
.cta-holding-admin-table th:nth-child(2),
.cta-holding-admin-table th:nth-child(3) {
  padding-inline-end: 23px;
  text-align: right;
}

/* number 的原生 spinner 在 hover 时从右侧浮出、占约 15px，而数值是右对齐的，
   60px 的内容宽赔不起——一把鼠标移上去个位数就被遮。FOF 表已有同样处理。 */
.cta-holding-admin-table td input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cta-holding-admin-table td input[type="number"]::-webkit-inner-spin-button,
.cta-holding-admin-table td input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* placeholder 默认透明：39 行常显灰字是噪音。只在控件显形的同一时刻
   （行 hover / focus）一起出现，与安静化的节奏对齐。 */
.cta-holding-admin-table td input::placeholder {
  color: transparent;
}

.cta-holding-admin-table tbody tr:hover td input::placeholder,
.cta-holding-admin-table td input:focus::placeholder {
  color: var(--soft);
  opacity: 0.62;
}

/* 备注列实测 748px、输入框 720px，装 6 个字的短备注时 hover 的边框像一条跑道。 */
.cta-holding-admin-table td:nth-child(4) input {
  max-width: 560px;
}

/* ── 统计 ─────────────────────────────────────────────────────────── */
/* 上一轮给 .metric-tile 补了圆角 12 就收手了，边框和底色留在 963 行的
   .strategy-hero/.data-panel/.metric-tile 共享块里：半透明白边叠在
   #adminPanel 白底上等于没有边界，9% 的蓝渐变又违反「蓝=可操作」。 */
.admin-metric-grid .metric-tile {
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  border-color: var(--line);
  background: var(--surface-strong);
  box-shadow: none;
}

.admin-metric-grid .metric-tile span {
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

/* 780 在 Windows 中文回落字体里被吸附到 Bold，34px 的方墩。 */
.admin-metric-grid .metric-tile strong {
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

/* 「设备阈值」那块被移走后收成三列。断点不必跟：body min-width 1280 +
   viewport width=1280，≤980 的媒体查询在真实浏览器里永不命中。 */
#adminPanel .admin-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 告警态：橙留给「待处理」，且只在计数 > 0 时出现。 */
#adminPanel .metric-tile.is-alert {
  border-color: rgba(255, 159, 10, 0.34);
  background: rgba(255, 159, 10, 0.05);
}

#adminPanel .metric-tile.is-alert strong {
  color: #a35a00;
}

/* 后台里 h3 是「区块标签」不是「版面标题」：与 #adminPanel thead th
   同族，只提一档字号。原本 chart-panel--large 下会到 22-30px / 740 字重。 */
#adminStatsView .chart-heading {
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

#adminStatsView .chart-heading h3 {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: 0;
}

/* 基础规则给了 min-width:340px，在 15px 的标题旁边会把左侧标题挤扁。 */
#adminStatsView .chart-heading-side {
  min-width: 0;
}

#adminStatsView .chart-caption {
  color: var(--soft);
  font-size: 12px;
}

/* 面板内的表格不再自带边框底色：外层 .admin-stat-panel 已经是卡片了，
   原本是「白卡片里再套一个描边盒子」。 */
#adminStatsView .table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* compact-table 的整表右对齐是给数值矩阵用的；这张表只有「设备数」是数值，
   而会换行的「设备明细」被右对齐成左缘参差的中文段落。 */
.abnormal-login-table th,
.abnormal-login-table td {
  text-align: left;
}

.abnormal-login-table th:nth-child(2),
.abnormal-login-table td:nth-child(2) {
  text-align: center;
}

/* 「提醒」列（每行同一句硬编码文案）已移入 caption，四列重排。 */
.abnormal-login-table th:nth-child(1),
.abnormal-login-table td:nth-child(1) {
  width: 26%;
}

.abnormal-login-table th:nth-child(2),
.abnormal-login-table td:nth-child(2) {
  width: 92px;
}

.abnormal-login-table th:nth-child(3),
.abnormal-login-table td:nth-child(3) {
  width: 132px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.abnormal-login-table th:nth-child(4),
.abnormal-login-table td:nth-child(4) {
  width: auto;
}

/* 这张表不会横向滚动（#adminPanel table 的 min-width 被压成 0），
   sticky 首列只剩一个副作用：不透明白底挡住整行 hover 的底色。 */
.abnormal-login-table td:first-child,
.abnormal-login-table th:first-child {
  position: static;
  background: transparent;
}

/* 白字压 #ff9f0a 实测约 2.1:1，而它承载的恰是需要读准的设备数；
   min-width:64px 又让一个个位数占 64px 的实心橙块，是全表最跳的元素。 */
.abnormal-login-table .pill.wait {
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 159, 10, 0.36);
  border-radius: 7px;
  color: #a35a00;
  background: rgba(255, 159, 10, 0.1);
  font-size: 12px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

/* 设备明细实测把行高撑到 221px（9 台）。现在只渲染前 3 台，
   并把「设备名 · 时间」拆成两栏——原本糊成一条 12px 灰泥，
   而且父级 white-space:normal 让 span 上的 ellipsis 永不触发（死代码）。 */
.device-list {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.device-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  overflow: visible;
}

.device-list b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.device-list i {
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.device-list-more {
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
}

/* 卡片里不用再画一个虚线盒子：面板边框已经是容器了。 */
#adminStatsView .admin-empty-state {
  min-height: 160px;
  border: 0;
  background: transparent;
}

#adminStatsView .admin-empty-state strong {
  font-size: 15px;
  font-weight: 620;
}

#adminStatsView .admin-empty-state p {
  color: var(--soft);
  font-size: 13px;
}

#adminStatsView .admin-empty-state--chart {
  min-height: 280px;
}

/* canvas 自带的边框与外层卡片重复，只留底色区分绘图区。 */
#adminUsageChart {
  border-color: transparent;
  border-radius: 10px;
  background: #fcfcfe;
}

/* ── 产品库 ───────────────────────────────────────────────────────── */
/* 9 个分组的 aside 实测高 488px，右侧网格 1146px——滚到底部时左栏整体滚出
   视口，选中态竖条不可见，完全失去「我在哪个分组」的锚点。 */
#adminPanel .product-group-list {
  position: sticky;
  top: 12px;
}

/* 「80个 · 缺0 · update_1000.py」把三种性质的信息压成一行：缺 0 是恒显噪音
   （9 个分组里 4 个是 0），脚本名在 232px 宽的按钮里必然被 ellipsis 掐掉，
   既占位又读不全（已移入 title）。缺失计数升级为可扫的徽章。 */
#adminPanel .product-group-button span {
  display: flex;
  gap: 6px;
  align-items: center;
}

#adminPanel .product-group-button span b {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

#adminPanel .product-group-button span em {
  padding: 0 5px;
  border-radius: 999px;
  color: #8a4b00;
  background: rgba(255, 159, 10, 0.14);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

/* 复用死代码 .product-editor-toolbar：右侧 966px 宽的编辑区原本第一个像素
   就是 chip，选了哪个分组全靠记忆（面板头的 h2 写的是全库总数，与当前分组无关）。
   基础规则里 h3 是 22px，会跟面板头的 h2 打架。 */
#adminPanel .product-editor-toolbar {
  align-items: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

#adminPanel .product-editor-toolbar h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

#adminPanel .product-editor-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* 代码升为主标识后定宽 6 字符，格子可以收窄：966px 下从 5 列变 6 列，
   80 项从 17 行降到 14 行。 */
#adminPanel .product-chip-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#adminPanel .product-chip strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* --soft 在 11px 下实测 3.62:1，不过 AA。 */
#adminPanel .product-chip span,
#adminPanel .product-group-button span {
  color: var(--muted);
}

/* 缺失格的 padding-right:30px 让文本可用宽从 163px 掉到 133px——最需要
   看清的那批 chip 被截得最狠。圆钮收到 20px，让出 8px。 */
.product-chip-plus {
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.product-chip.is-missing .product-chip-main {
  padding-right: 24px;
}

/* 焦点必须比 hover 更响：原本两者是同一套视觉（1px --line-strong），
   键盘 Tab 过 80 个按钮时几乎看不出焦点在哪。
   必须写在 .product-chip:hover,:focus-within 之后才赢得过源序。 */
#adminPanel .product-chip:focus-within {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

#adminPanel .product-chip-main:focus-visible,
#adminPanel .product-chip-action:focus-visible {
  outline: none;
}

/* 网格里的空态（无分组 / 该分组无代码）。原本无分组时右侧是一片纯空白，
   用户无法区分「加载中」「接口挂了」「确实没配」。 */
#adminPanel .product-chip-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

/* 后台产品库：第三行展示净值日期，滞后状态限定在当前产品卡片。 */
#adminPanel .product-nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
}

#adminPanel .product-chip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

#adminPanel .product-chip-heading em {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

#adminPanel .product-chip-nav-date {
  font-variant-numeric: tabular-nums;
}

#adminPanel .product-chip.is-nav-lagging {
  border-color: #dfbb80;
  background: #fff7e9;
}

#adminPanel .product-chip.is-nav-stale {
  border-color: #e0a3a3;
  background: #fff0f0;
}

#adminPanel .product-chip.is-nav-missing:not(.is-missing) {
  border-style: dashed;
  background: #f3f3f5;
}

#adminPanel .product-chip.is-nav-lagging .product-chip-nav-date,
#adminPanel .product-chip.is-nav-lagging .product-chip-heading em,
#adminPanel .product-nav-legend-lagging {
  color: #8a4b00;
}

#adminPanel .product-chip.is-nav-stale .product-chip-nav-date,
#adminPanel .product-chip.is-nav-stale .product-chip-heading em,
#adminPanel .product-nav-legend-stale {
  color: #ae3030;
}

/* 沿用选中后的浮动操作条，为第三行日期留出空间。 */
#adminPanel .product-chip-actions {
  bottom: 24px;
  padding-block: 5px;
}

#adminPanel .product-chip.is-selected {
  border-color: rgba(29, 29, 31, 0.6);
}


/* ══ CTA 持仓周期：从「一张干净的表」到「一张能读的区间图」 ══════════════
   前几轮都在解决「39 行输入框怎么排得好看」。真正的问题是这份数据本来就是
   区间——前台 formatCtaHoldingPeriodLabel 输出的就是「10天-45天」，谱系图画
   的就是一条带，只有后台把它拆成两个孤立字段。这一轮：
   1) 最短/最长合并成一个居中的区间对，读成一个单位；
   2) 新增只读的周期条列，借前台谱系图的同一把尺；
   3) 12 行未配置归到表尾分组（后端 anchorDays=None 使它们恒排最后且连续），
      一条分隔行说一次「前台不显示」，而不是 12 个重复徽章。 */

/* ── 列宽 ─────────────────────────────────────────────────────────
   实测原分配 300/88/88/740 下，每行墨迹只落在左侧 448px，右侧约 51%
   在几乎每一行上都是空的。新增的周期条列把那片空白变成有信息的区域，
   同时首列加宽到 396（全名不再截断）。 */
.cta-holding-admin-table th:nth-child(1),
.cta-holding-admin-table td:nth-child(1) {
  width: 396px;
}

.cta-holding-admin-table th:nth-child(2),
.cta-holding-admin-table td:nth-child(2) {
  width: 168px;
  padding-inline: 14px; /* 撤掉上一轮为右对齐加的 padding-inline-end:23px */
  text-align: center;
}

.cta-holding-admin-table th:nth-child(3),
.cta-holding-admin-table td:nth-child(3) {
  width: 230px;
  padding-inline: 14px;
  text-align: left;
}

.cta-holding-admin-table th:nth-child(4),
.cta-holding-admin-table td:nth-child(4) {
  width: auto;
}

/* ── 区间对 ───────────────────────────────────────────────────────
   两个数字原本相隔 88px，中间是一条不可见的列界。定宽 + 居中之后它读成
   一个单位，而每行最短数字的右边缘仍落在同一条 x 上——对齐没有丢。 */
.range-pair {
  display: flex;
  gap: 0;
  align-items: baseline;
  justify-content: center;
}

.range-pair input {
  width: 62px;
  font-variant-numeric: tabular-nums;
}

/* 必须带表名提权：上一轮的 `td:nth-child(2) input { text-align:right }`
   特异性 (0,2,2) 会压过裸的 .range-pair input:last-child (0,2,1)，
   最长框仍右对齐，两个数字就不会向连字符靠拢。 */
.cta-holding-admin-table .range-pair input:first-child {
  text-align: right;
}

.cta-holding-admin-table .range-pair input:last-child {
  text-align: left;
}

.range-pair i {
  flex: none;
  width: 14px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

/* 空值时连字符降到几乎无声：一行两个空框中间挂一个实的破折号会读成「有值」。 */
.cta-holding-admin-table tr.is-unset .range-pair i {
  opacity: 0.35;
}

.cta-holding-admin-table th.range-head {
  padding-inline: 14px;
  text-align: center;
}

/* ── 周期条：借前台谱系图的尺 ─────────────────────────────────────
   刻度标签只在 thead 画一次，行里只留自己的区间条；列宽由 table-layout:fixed
   保证，两者天然对齐。百分比来自 ctaHoldingAxisPercent（分段线性，7 段等距），
   所以后台看到的位置就是前台图上的位置。 */
.cta-holding-admin-table th.cta-holding-span-head {
  padding-block-end: 6px;
  vertical-align: bottom;
}

.cta-holding-axis {
  position: relative;
  display: block;
  height: 12px;
}

.cta-holding-axis i {
  position: absolute;
  left: var(--at);
  color: var(--soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 520;
  letter-spacing: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* 首尾两个标签贴着列边缘，向内收以免被裁 */
.cta-holding-axis i:first-child {
  transform: none;
}

.cta-holding-axis i:last-child {
  transform: translateX(-100%);
}

.cta-holding-span-track {
  position: relative;
  height: 18px;
}

/* 基线与刻度：与表头标签同一组 --at，肉眼可验证对齐 */
.cta-holding-span-track::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
}

.cta-holding-span-track i {
  position: absolute;
  top: 4px;
  left: var(--at);
  width: 1px;
  height: 9px;
  background: rgba(15, 23, 42, 0.08);
}

/* 软底 + 实心，与前台 stroke-width 7 / 2.6 同比例。
   min==max 的 5 行区间宽度为 0，用 max() 保底成一个可见的点。 */
.cta-holding-span-track b,
.cta-holding-span-track u {
  position: absolute;
  left: var(--from);
  width: max(calc(var(--to) - var(--from)), 4px);
  border-radius: 999px;
}

.cta-holding-span-track b {
  top: 5.5px;
  height: 7px;
  background: rgba(92, 156, 134, 0.18);
}

.cta-holding-span-track u {
  top: 7.2px;
  height: 2.6px;
  background: #5c9c86;
}

/* 锚点 = 后端重算的 (min+max)/2，前台按它排序，后台的行序也是它。
   显示出来，这一列的行序才不再显得莫名其妙。 */
.cta-holding-span-track s {
  position: absolute;
  top: 8.5px;
  left: var(--anchor);
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #5c9c86;
  box-shadow: 0 0 0 1.5px #fff;
}

.cta-holding-span em {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.cta-holding-span-empty {
  color: var(--soft);
  opacity: 0.7;
}

/* ── 首列：代码提到与简称同一基线 ─────────────────────────────────
   shortFundName 是 Array.from(text).slice(0,2)，永远只有两个汉字，
   而 CTA 组里同一管理人往往有多条产品——最大最重的那个元素在很多行上
   无法区分该行。真正唯一的是代码，把它提上来并排。 */
.cta-holding-admin-table .user-cell strong {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.cta-holding-admin-table .user-cell strong em {
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── 未配置：分组而非徽章 ─────────────────────────────────────────
   visible = minDays 与 maxDays 都非空（app.py:984），不满足的行前台 CTA 页
   完全不显示，而这张表此前对此毫无表达。
   12/39 行是常态不是错误，所以只「熄灯」不上橙——12 行橙会变成一堵警告墙，
   让 amber 彻底贬值，之后半配置的真警报就没人看了。 */
.cta-holding-admin-table tbody tr.is-unset .user-cell strong {
  color: var(--muted);
  font-weight: 400;
}

.cta-holding-admin-table tbody tr.is-unset .user-cell span {
  opacity: 0.62;
}

.cta-holding-admin-table .cta-section-row td {
  padding-block: 18px 8px;
  border-bottom: 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.04em;
  white-space: normal;
}

.cta-holding-admin-table .cta-section-row td::before {
  content: "";
  display: block;
  margin-bottom: 12px;
  border-top: 1px solid var(--line-strong);
}

.cta-holding-admin-table .cta-section-row:hover {
  background: transparent;
}

/* 半配置：只填了一个值，用户以为配好了、保存还给绿字，前台却照样隐藏。
   这才值一条橙竖条。它稀少（当前数据 0 行），所以一点不吵。
   tr/td 都是 static，::before 绝对定位不可用，走 inset box-shadow——
   与 .fof-table 既有语汇一致。 */
.cta-holding-admin-table tbody tr.is-halfset > td:first-child {
  box-shadow: inset 3px 0 rgba(255, 159, 10, 0.85);
}

/* ── 非法输入 ─────────────────────────────────────────────────────
   只标记「后端会出问题」的两类：badInput（框里是 abc 但 .value 为空）和负数。
   刻意不用 :invalid——step="0.25" 会让 2.6 命中 stepMismatch 而后端接受它，
   库里的 1.2 正是如此，红一个能存的值比不报还糟。 */
.cta-holding-admin-table td input.is-invalid,
.cta-holding-admin-table tbody tr:hover td input.is-invalid {
  border-color: rgba(215, 0, 21, 0.5);
  background: rgba(215, 0, 21, 0.045);
}

.cta-holding-admin-table td input.is-invalid:focus {
  border-color: rgba(215, 0, 21, 0.72);
  box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.12);
}

#adminPanel .section-heading .secondary-button {
  min-height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

/* ── 刷新：幂等的次要动作，收成幽灵按钮 ─────────────────────────────
   它在面板头部、离表格很远，本来就不该有实体感。白底 + 描边会让它读成
   「和保存并列的另一个动作」，而它其实只是重新拉一次数据。 */
#adminPanel .section-heading .secondary-button {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

#adminPanel .section-heading .secondary-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(29, 29, 31, 0.05);
  transform: none; /* 头部按钮不浮起：它没有「被按下去」的语境 */
}

#adminPanel .section-heading .secondary-button:active {
  background: rgba(29, 29, 31, 0.09);
}

#adminPanel .section-heading .secondary-button:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.6);
  outline-offset: 2px;
}
.calmar-percentile-rail {
  position: absolute;
  top: 20px;
  right: -252px;
  bottom: 20px;
  z-index: 14;
  width: 232px;
  pointer-events: none;
}

.calmar-percentile-card {
  position: sticky;
  top: max(92px, calc(50vh - 195px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.13), transparent 38%),
    rgba(255, 252, 249, 0.88);
  box-shadow: 0 16px 38px rgba(73, 45, 23, 0.12);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  pointer-events: auto;
}

.calmar-percentile-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.calmar-percentile-card > header .eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.calmar-percentile-card > header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
}

.calmar-percentile-card > header > span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 138, 61, 0.16);
  border-radius: 999px;
  color: #9a5b31;
  background: rgba(255, 138, 61, 0.08);
  font-size: 10px;
  font-weight: 700;
}

.calmar-percentile-list {
  position: relative;
  display: grid;
  gap: 7px;
}

.calmar-percentile-item {
  position: static;
  box-sizing: border-box;
  overflow: visible;
  padding: 10px;
  border: 1px solid rgba(95, 73, 56, 0.09);
  border-left: 3px solid #edb28c;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.calmar-percentile-item::before {
  display: none;
}

.has-percentile-roster {
  cursor: default;
  outline: none;
}

.has-percentile-roster::after {
  position: absolute;
  top: 16px;
  right: 8px;
  color: var(--soft);
  font-size: 10px;
  content: "›";
  transition: transform 160ms ease;
}

.has-percentile-roster:hover::after,
.has-percentile-roster:focus-visible::after,
.has-percentile-roster:focus-within::after {
  transform: translateX(2px);
}

.has-percentile-roster:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.2);
}

.has-percentile-roster::after {
  display: none;
}

.has-percentile-roster .calmar-percentile-identity {
  position: relative;
}

.has-percentile-roster .calmar-percentile-identity::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--soft);
  font-size: 10px;
  content: "›";
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.has-percentile-roster:hover .calmar-percentile-identity::after,
.has-percentile-roster:focus-visible .calmar-percentile-identity::after,
.has-percentile-roster:focus-within .calmar-percentile-identity::after {
  transform: translate(2px, -50%);
}

.percentile-roster-popover {
  position: absolute;
  top: -12px;
  left: calc(100% + 10px);
  z-index: 30;
  width: 286px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 18px 44px rgba(41, 28, 18, 0.18);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.calmar-percentile-item.percentile-60 .percentile-roster-popover,
.calmar-percentile-item.percentile-80 .percentile-roster-popover {
  top: auto;
  bottom: -12px;
}

.percentile-roster-popover::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 12px;
  content: "";
}

.has-percentile-roster:hover .percentile-roster-popover,
.has-percentile-roster:focus-visible .percentile-roster-popover,
.has-percentile-roster:focus-within .percentile-roster-popover,
.has-percentile-roster.is-pinned .percentile-roster-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* A pinned/focused range may stay open after a roster interaction. While the
   pointer is over another range, give that hovered range exclusive display so
   two roster panels cannot stack on top of each other. */
.calmar-percentile-list:has(.has-percentile-roster:hover)
  > .has-percentile-roster:not(:hover)
  .percentile-roster-popover {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  pointer-events: none;
}

.percentile-roster-popover > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.percentile-roster-popover > header .eyebrow {
  margin-bottom: 1px;
  font-size: 8px;
}

.percentile-roster-popover > header strong {
  color: var(--ink);
  font-size: 13px;
}

.percentile-roster-popover > header > span {
  color: var(--soft);
  font-size: 10px;
}

.percentile-roster-table-wrap {
  height: auto;
  max-height: none;
  overflow-x: visible;
  overflow-y: visible;
}

.percentile-roster-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.percentile-roster-table th,
.percentile-roster-table td {
  padding: 6px 3px;
  border-bottom: 1px solid rgba(95, 73, 56, 0.08);
  text-align: right;
  white-space: nowrap;
}

.percentile-roster-table th {
  color: var(--soft);
  font-size: 7px;
  font-weight: 650;
}

.percentile-roster-table th:first-child,
.percentile-roster-table td:first-child {
  width: 20%;
  text-align: left;
}

.percentile-roster-table td {
  color: var(--ink);
  font-size: 8px;
  font-weight: 680;
}

.percentile-roster-table td:first-child {
  position: relative;
  min-width: 0;
}

.percentile-roster-table td:first-child b {
  display: inline-block;
  width: 15px;
  color: var(--soft);
  font-size: 8px;
  vertical-align: middle;
}

.percentile-roster-table td:first-child span {
  display: inline-block;
  max-width: calc(100% - 19px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.percentile-roster-product-name {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 5px;
  cursor: pointer;
}

.percentile-roster-product-name:hover,
.percentile-roster-product-name:focus-visible {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  outline: none;
}

.percentile-roster-product-name.active {
  color: #0067d1;
  background: rgba(0, 113, 227, 0.14);
  font-weight: 750;
}

.percentile-roster-table tr.is-highlighted td {
  background: rgba(0, 113, 227, 0.055);
}

.percentile-roster-product-tooltip {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 15px;
  z-index: 50;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: 230px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #fff;
  background: rgba(29, 29, 31, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  font-style: normal;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
}

.percentile-roster-product-tooltip::after {
  position: absolute;
  top: 100%;
  left: 14px;
  width: 7px;
  height: 7px;
  background: rgba(29, 29, 31, 0.92);
  content: "";
  transform: translateY(-4px) rotate(45deg);
}

.percentile-roster-product-tooltip strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.percentile-roster-product-tooltip small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  font-weight: 560;
  letter-spacing: 0.04em;
}

.percentile-roster-product-name:hover + .percentile-roster-product-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.percentile-roster-table td.positive {
  color: #cf4f22;
}

.percentile-roster-table td.negative {
  color: #17785d;
}

.sharpe-percentile-card .percentile-roster-popover {
  background: rgba(249, 252, 255, 0.97);
  box-shadow: 0 18px 44px rgba(24, 65, 105, 0.18);
}

.calmar-percentile-item.percentile-40::before {
  background: #ee9a65;
}

.calmar-percentile-item.percentile-40 {
  border-left-color: #ee9a65;
}

.calmar-percentile-item.percentile-60::before {
  background: #ef8140;
}

.calmar-percentile-item.percentile-60 {
  border-left-color: #ef8140;
}

.calmar-percentile-item.percentile-80::before {
  background: #dc651f;
}

.calmar-percentile-item.percentile-80 {
  border-left-color: #dc651f;
}

.calmar-percentile-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.calmar-percentile-identity > b {
  color: #bd6c39;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.percentile-60 .calmar-percentile-identity > b,
.percentile-80 .calmar-percentile-identity > b {
  color: #c55215;
}

.calmar-percentile-identity > span {
  display: grid;
  min-width: 0;
}

.calmar-percentile-identity strong,
.calmar-percentile-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calmar-percentile-identity strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.calmar-percentile-identity small {
  margin-top: 1px;
  color: var(--soft);
  font-size: 9px;
}

.calmar-percentile-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px solid rgba(95, 73, 56, 0.08);
}

.calmar-percentile-item dl > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.calmar-percentile-item dt {
  color: var(--soft);
  font-size: 8px;
  white-space: nowrap;
}

.calmar-percentile-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calmar-percentile-item dd.positive {
  color: #cf4f22;
}

.calmar-percentile-item dd.negative {
  color: #17785d;
}

.sharpe-percentile-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 113, 227, 0.12), transparent 38%),
    rgba(249, 252, 255, 0.9);
  box-shadow: 0 16px 38px rgba(24, 65, 105, 0.12);
}

.sharpe-percentile-card > header > span {
  border-color: rgba(0, 113, 227, 0.16);
  color: #356b9d;
  background: rgba(0, 113, 227, 0.07);
}

.sharpe-percentile-card .calmar-percentile-item::before {
  background: #9bc5ee;
}

.sharpe-percentile-card .calmar-percentile-item {
  border-left-color: #9bc5ee;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-40::before {
  background: #72ace4;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-40 {
  border-left-color: #72ace4;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-60::before {
  background: #438fd8;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-60 {
  border-left-color: #438fd8;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-80::before {
  background: #1672c8;
}

.sharpe-percentile-card .calmar-percentile-item.percentile-80 {
  border-left-color: #1672c8;
}

.sharpe-percentile-card .calmar-percentile-identity > b {
  color: #2c74b7;
}

.martin-percentile-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 91, 211, 0.13), transparent 38%),
    rgba(251, 250, 255, 0.92);
  box-shadow: 0 16px 38px rgba(65, 50, 130, 0.12);
}

.martin-percentile-card > header > span {
  border-color: rgba(111, 91, 211, 0.17);
  color: #6250b8;
  background: rgba(111, 91, 211, 0.08);
}

.martin-percentile-card .calmar-percentile-item { border-left-color: #a99ce7; }
.martin-percentile-card .calmar-percentile-item::before { background: #a99ce7; }
.martin-percentile-card .calmar-percentile-item.percentile-40 { border-left-color: #8e7bdc; }
.martin-percentile-card .calmar-percentile-item.percentile-40::before { background: #8e7bdc; }
.martin-percentile-card .calmar-percentile-item.percentile-60 { border-left-color: #715bcf; }
.martin-percentile-card .calmar-percentile-item.percentile-60::before { background: #715bcf; }
.martin-percentile-card .calmar-percentile-item.percentile-80 { border-left-color: #5740b8; }
.martin-percentile-card .calmar-percentile-item.percentile-80::before { background: #5740b8; }
.martin-percentile-card .calmar-percentile-identity > b { color: #6652be; }
/* FOF 备选库：后台产品库名称/代码联想 */
.fof-library-suggestion-panel{position:fixed;z-index:1200;max-height:320px;overflow:auto;padding:6px;background:#fff;border:1px solid rgba(33,40,52,.12);border-radius:12px;box-shadow:0 14px 40px rgba(33,40,52,.16)}
.fof-library-suggestion-panel button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:9px 10px;border:0;border-radius:8px;background:transparent;text-align:left;color:#252a34;cursor:pointer}
.fof-library-suggestion-panel button:hover,.fof-library-suggestion-panel button:focus{background:#f3f6fb;outline:none}
.fof-library-suggestion-panel strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.fof-library-suggestion-panel span{flex:none;color:#7b8492;font-size:11px}
.etf-index-funds-board{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.etf-index-funds-board>*{min-width:0}.etf-funds-stale{padding:10px 14px;border:1px solid #f2c66d;border-radius:12px;background:#fff8e8;color:#8a5600}.etf-funds-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:rgba(255,255,255,.76)}.etf-funds-toolbar>div:first-child{display:grid;gap:3px}.etf-funds-toolbar span,.etf-funds-chart-panel small{color:var(--muted,#6b7280)}.etf-funds-periods,.etf-funds-area-modes{display:flex;flex-wrap:wrap;gap:6px}.etf-funds-periods input{width:128px;border:1px solid #d8dde5;border-radius:9px;padding:6px;background:#fff}.etf-funds-periods button,.etf-funds-area-modes button,.etf-funds-legend button{border:1px solid #d8dde5;border-radius:999px;background:#fff;color:#364152;padding:7px 11px;cursor:pointer}.etf-funds-periods button[aria-pressed="true"],.etf-funds-area-modes button[aria-pressed="true"]{border-color:#b45309;background:#fff3e5;color:#93400d}.etf-funds-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.etf-funds-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:16px;align-items:start}.etf-funds-main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}.etf-funds-canvas-wrap{position:relative}.etf-funds-chart-panel canvas{display:block;width:100%;height:340px;touch-action:none}.etf-funds-tooltip{position:absolute;z-index:4;top:8px;width:206px;padding:10px;border:1px solid #d8dde5;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(20,30,45,.15);font-size:11px;pointer-events:none}.etf-funds-tooltip strong,.etf-funds-tooltip span{display:block;margin:2px 0}.etf-funds-tooltip i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.etf-funds-legend{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 4px}.etf-funds-legend button{display:inline-flex;align-items:center;gap:7px;font-size:12px}.etf-funds-legend button[aria-pressed="true"]{box-shadow:0 0 0 2px color-mix(in srgb,var(--series-color) 45%,transparent)}.etf-funds-legend i,.etf-funds-side th i,.etf-funds-universes summary i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--series-color);margin-right:6px}.etf-funds-side{position:sticky;top:16px;min-width:0}.etf-funds-side table,.etf-funds-universes table,.etf-funds-chart-panel table{width:100%;border-collapse:collapse;font-size:12px}.etf-funds-side th,.etf-funds-side td,.etf-funds-universes th,.etf-funds-universes td,.etf-funds-chart-panel th,.etf-funds-chart-panel td{padding:9px 8px;border-bottom:1px solid #edf0f4;text-align:right;white-space:nowrap}.etf-funds-side th:first-child,.etf-funds-universes th:nth-child(2),.etf-funds-universes td:nth-child(2){text-align:left}.etf-funds-universes>details{border-top:1px solid #e6e9ee;padding:12px 0}.etf-funds-universes summary{cursor:pointer;font-weight:700}.etf-funds-disclaimer{margin:0;padding:14px 16px;border-radius:14px;background:#f7f5f1;color:#5f6268;line-height:1.65}.etf-index-funds-board details>summary{cursor:pointer}.etf-index-funds-board button:focus-visible,.etf-index-funds-board summary:focus-visible{outline:2px solid #0071e3;outline-offset:2px}.table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:980px){.etf-funds-layout{grid-template-columns:1fr}.etf-funds-side{position:static}.etf-funds-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.etf-funds-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:980px){html.etf-index-funds-active,body.etf-index-funds-active{min-width:0}.etf-index-funds-active .shell,.etf-index-funds-active .app-view,.etf-index-funds-active .panel,.etf-index-funds-active .dashboard-detail{width:100%;min-width:0;max-width:100%}}
@media(max-width:520px){.etf-funds-summary{grid-template-columns:1fr}.etf-funds-chart-panel canvas{height:280px}.etf-funds-toolbar,.etf-index-funds-board .data-panel{max-width:100%;overflow:hidden}.etf-funds-periods button{padding:6px 9px}}

/* 神秘资金页：图表通栏，分类名单仅作为页尾折叠备注。 */
.etf-index-funds-board .etf-funds-main{width:100%}
.etf-funds-universe-note{padding:4px 2px;color:var(--muted,#6b7280)}
.etf-funds-universe-note>summary{display:inline-flex;align-items:center;gap:6px;padding:8px 0;color:#4b5563;font-size:13px;font-weight:650;cursor:pointer}
.etf-funds-universe-note>summary::marker{color:#9ca3af}
.etf-funds-universe-tables{display:grid;gap:24px;margin-top:10px;padding:18px;border:1px solid #e6e9ee;border-radius:14px;background:rgba(255,255,255,.68);color:#374151}
.etf-funds-universe-tables section{min-width:0}
.etf-funds-universe-tables h4{display:flex;align-items:center;margin:0 0 8px;font-size:15px}
.etf-funds-universe-tables h4 i{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%}
.etf-funds-universe-tables table{width:100%;border-collapse:collapse;font-size:12px}
.etf-funds-universe-tables th,.etf-funds-universe-tables td{padding:9px 8px;border-bottom:1px solid #edf0f4;text-align:left;white-space:nowrap}

/* 神秘资金页：轻量状态、连续指标带和统一分段控件。 */
.etf-index-funds-board .strategy-hero--index{align-items:center}
.etf-index-funds-board .index-hero-meta{display:flex;align-items:center;gap:0;padding:0;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:rgba(255,255,255,.42);box-shadow:none;overflow:hidden}
.etf-index-funds-board .index-hero-meta>div{min-width:116px;padding:10px 14px;border:0;border-left:1px solid rgba(148,163,184,.18);background:transparent;text-align:left}
.etf-index-funds-board .index-hero-meta>div:first-child{border-left:0}
.etf-index-funds-board .index-hero-meta dt{margin-bottom:3px;color:#8a929f;font-size:10px;font-weight:650;letter-spacing:.04em}
.etf-index-funds-board .index-hero-meta dd{margin:0;color:#303744;font-size:13px;font-weight:650}
.etf-funds-summary{gap:0;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:rgba(255,255,255,.66);box-shadow:0 8px 28px rgba(42,54,74,.04);overflow:hidden}
.etf-funds-summary .metric-tile{min-height:96px;padding:20px 22px;border:0;border-left:1px solid rgba(148,163,184,.16);border-radius:0;background:transparent;box-shadow:none}
.etf-funds-summary .metric-tile:first-child{border-left:0}
.etf-funds-summary .metric-tile span{color:#737b88;font-size:11px;font-weight:650}
.etf-funds-summary .metric-tile strong{margin-top:8px;font-size:clamp(25px,2vw,34px);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.etf-funds-toolbar{padding:10px 12px 10px 16px;border-color:rgba(148,163,184,.2);border-radius:14px;background:rgba(255,255,255,.58);box-shadow:0 6px 24px rgba(42,54,74,.035)}
.etf-funds-toolbar>div:first-child{gap:2px}
.etf-funds-toolbar>div:first-child strong{font-size:13px;font-variant-numeric:tabular-nums}
.etf-funds-toolbar>div:first-child span{font-size:11px}
.etf-funds-period-control{display:flex;align-items:center;gap:10px}
.etf-funds-periods,.etf-funds-area-modes{gap:2px;padding:3px;border:1px solid rgba(148,163,184,.22);border-radius:11px;background:rgba(241,245,249,.72)}
.etf-funds-periods button,.etf-funds-area-modes button{min-height:31px;padding:5px 12px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#66707f;font-size:12px;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.etf-funds-periods button:hover,.etf-funds-area-modes button:hover{color:#252c36}
.etf-funds-periods button[aria-pressed="true"],.etf-funds-area-modes button[aria-pressed="true"]{border:0;background:#fff;color:#a64b12;box-shadow:0 2px 8px rgba(43,54,72,.1)}
.etf-funds-custom-range{display:flex;align-items:center;gap:6px;padding-left:4px;color:#8a929f;font-size:11px}
.etf-funds-custom-range .date-picker-trigger{width:126px;padding:6px 8px;border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#fff;color:#4b5563;font-size:11px}
.etf-funds-custom-range > button{padding:7px 11px;border:0;border-radius:8px;background:#26313f;color:#fff;font-size:11px;cursor:pointer}
.etf-funds-area-modes{flex-wrap:nowrap}
.etf-funds-research-note{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:16px 18px;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:rgba(248,250,252,.62);color:#66707f}
.etf-funds-note-icon{display:grid;place-items:center;width:24px;height:24px;border:1px solid rgba(100,116,139,.28);border-radius:50%;color:#64748b;font:700 12px/1 Georgia,serif}
.etf-funds-research-note strong{color:#475569;font-size:12px}
.etf-funds-research-note p{margin:4px 0 3px;line-height:1.65;font-size:12px}
.etf-funds-research-note .etf-funds-universe-note{padding:0}
.etf-funds-research-note .etf-funds-universe-note>summary{padding:5px 0 0;color:#9a4b1d;font-size:12px}
@media(max-width:980px){.etf-index-funds-board .index-hero-meta{width:100%}.etf-index-funds-board .index-hero-meta>div{flex:1}.etf-funds-summary .metric-tile:nth-child(3){border-left:0;border-top:1px solid rgba(148,163,184,.16)}.etf-funds-summary .metric-tile:nth-child(4){border-top:1px solid rgba(148,163,184,.16)}.etf-funds-period-control{width:100%;align-items:flex-start;flex-direction:column}.etf-funds-custom-range{padding-left:0}}
@media(max-width:520px){.etf-index-funds-board .index-hero-meta{display:grid;grid-template-columns:1fr 1fr}.etf-funds-summary .metric-tile{min-height:82px;border-left:0;border-top:1px solid rgba(148,163,184,.16)}.etf-funds-summary .metric-tile:first-child{border-top:0}.etf-funds-periods{width:100%;overflow-x:auto;flex-wrap:nowrap}.etf-funds-custom-range{width:100%;flex-wrap:wrap}.etf-funds-research-note{padding:14px}.etf-funds-area-modes button{white-space:nowrap}}

/* 两张核心时序图采用一致的分析卡片层级。 */
.etf-funds-chart-panel{padding:24px 26px 18px!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(247,250,255,.88),rgba(255,255,255,.78) 46%,rgba(250,248,247,.76))!important;box-shadow:0 14px 40px rgba(43,54,72,.055)!important;overflow:hidden}
.etf-funds-chart-panel .section-heading{align-items:flex-start;margin-bottom:12px}
.etf-funds-chart-panel .section-heading .eyebrow{margin-bottom:7px;color:#2674c8;font-size:10px;letter-spacing:.08em}
.etf-funds-chart-panel .section-heading h3{margin:0;color:#202733;font-size:clamp(23px,2vw,30px);letter-spacing:-.035em}
.etf-funds-chart-panel .section-heading small{display:block;margin-top:7px;color:#8a94a3;font-size:11px;font-variant-numeric:tabular-nums}
.etf-funds-chart-panel .etf-funds-legend{display:inline-flex;width:auto;max-width:100%;margin:0 0 10px;padding:5px 7px;border:1px solid rgba(148,163,184,.16);border-radius:11px;background:rgba(255,255,255,.55);overflow-x:auto;flex-wrap:nowrap}
.etf-funds-chart-panel .etf-funds-legend button{flex:0 0 auto;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:#596474;font-size:11px}
.etf-funds-chart-panel .etf-funds-legend button:hover{background:rgba(241,245,249,.9);color:#252c36}
.etf-funds-chart-panel .etf-funds-legend button[aria-pressed="true"]{background:#fff;box-shadow:0 2px 8px rgba(43,54,72,.09)}
.etf-funds-chart-panel .etf-funds-canvas-wrap{margin-top:2px;border-top:1px solid rgba(148,163,184,.11);background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(248,250,252,.08))}
.etf-funds-chart-panel canvas{height:390px}
.etf-funds-chart-panel .etf-funds-area-modes{margin-top:2px}
@media(max-width:520px){.etf-funds-chart-panel{padding:18px 14px 12px!important}.etf-funds-chart-panel canvas{height:300px}.etf-funds-chart-panel .section-heading{gap:12px}.etf-funds-chart-panel .section-heading h3{font-size:22px}.etf-funds-chart-panel .etf-funds-area-modes{max-width:100%;overflow-x:auto}}
.self-research-onboarding { margin-bottom: 18px; padding: 22px 24px; border: 1px solid #e8e9f0; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8faff 100%); }
.self-research-kicker { color: #3478f6; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.self-research-dropzone { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 88px; margin-top: 16px; padding: 16px; border: 1.5px dashed #cbd4e5; border-radius: 14px; background: rgba(255,255,255,.78); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.self-research-dropzone:hover, .self-research-dropzone.is-dragging { border-color: #3478f6; background: #f1f6ff; transform: translateY(-1px); }
.self-research-dropzone.is-ready { border-style: solid; border-color: #65b58c; background: #f2fbf6; }
.self-research-dropzone.is-loading { opacity: .65; pointer-events: none; }
.self-research-dropzone div { display: grid; gap: 5px; }
.self-research-dropzone strong { color: #393d49; font-size: 15px; }
.self-research-dropzone small { color: #8b8f9c; }
.self-research-drop-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: #e7f0ff; color: #3478f6; font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.self-research-form { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; align-items: end; margin-top: 18px; }
.self-research-form label { display: grid; gap: 8px; color: #555968; font-size: 13px; font-weight: 650; }
.self-research-form input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dfe2eb; border-radius: 10px; background: #fff; }
.self-research-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 9px 0 12px; border: 1px solid #222630; border-radius: 10px; background: #222630; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px rgba(32,36,46,.13); cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.self-research-submit svg { width: 17px; height: 17px; padding: 2px; border-radius: 6px; background: rgba(255,255,255,.11); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.self-research-submit:hover { background: #171a21; transform: translateY(-1px); box-shadow: 0 11px 24px rgba(32,36,46,.2); }
.self-research-flow { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: #717583; font-size: 12px; }
.self-research-flow span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.self-research-flow b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #e9f1ff; color: #3478f6; font-size: 11px; }
.self-research-flow i { width: 28px; height: 1px; background: #dfe3ec; }
.self-research-title-line { display: flex; align-items: center; gap: 9px; }
.self-research-title-line > span { display: inline-grid; min-width: 23px; height: 23px; padding: 0 7px; place-items: center; border-radius: 999px; background: #edf3ff; color: #3478f6; font-size: 11px; font-weight: 750; }
.text-danger-button { padding: 8px 12px; border: 0; background: transparent; color: #ba4651; cursor: pointer; }
.self-research-empty { display: grid; min-height: 150px; place-content: center; gap: 7px; border: 1px dashed #d9dce5; border-radius: 15px; color: #8b8e9a; text-align: center; }
.self-research-empty b { color: #4d505c; }

.self-research-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.self-research-intro h3 { margin: 0 0 6px; font-size: 17px; }
.self-research-intro p { max-width: 720px; margin: 0; color: #6f7280; font-size: 13px; }
.self-research-close { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: #f1f3f7; color: #777b88; font-size: 18px; cursor: pointer; }
.self-research-close:hover { background: #e7eaf0; color: #3e4655; }
.self-research-drop-file strong { overflow-wrap: anywhere; }
.self-research-drop-file small { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.self-research-dropzone.is-ready { justify-content: flex-start; }
.self-research-dropzone.is-ready .self-research-drop-icon { background: #dff3e8; color: #238258; }
.self-research-drop-change { margin-left: auto; padding: 5px 10px; border: 1px solid #cfe6d9; border-radius: 8px; background: #fff; color: #3d7a5a; font-size: 12px; font-weight: 650; }

.self-research-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 2px; }
.self-research-count { color: #8b8f9c; font-size: 13px; }
.self-research-list-heading h3 { margin: 0; font-size: 19px; }
.self-research-heading-side { display: flex; align-items: center; gap: 14px; }
.self-research-schedule { color: #9699a5; font-size: 12px; }
.self-research-refresh-all { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 1px solid #dfe2e9; border-radius: 10px; background: #fff; color: #485161; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 2px rgba(31,41,55,.04); cursor: pointer; transition: border-color .16s, background .16s, color .16s, box-shadow .16s, transform .16s; }
.self-research-refresh-all svg { width: 15px; height: 15px; flex: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.self-research-refresh-all:hover:not(:disabled) { border-color: #bfc8d6; background: #f8fafc; color: #202733; box-shadow: 0 3px 9px rgba(31,41,55,.08); transform: translateY(-1px); }
.self-research-refresh-all:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 2px rgba(31,41,55,.04); }
.self-research-refresh-all:focus-visible { outline: 2px solid #3478f6; outline-offset: 2px; }
.self-research-refresh-all:disabled { color: #8b95a4; background: #f5f7fa; box-shadow: none; cursor: not-allowed; }
.self-research-refresh-all:disabled svg { animation: self-research-refresh-spin 1.5s linear infinite; }
@keyframes self-research-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .self-research-refresh-all:disabled svg { animation: none; } }
.self-research-batch-status { margin: 0 2px 8px; color: #626b7c; font-size: 12px; }
.self-research-add-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border: 1px solid #222630; border-radius: 10px; background: #222630; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.self-research-add-toggle span { font-size: 16px; line-height: 1; }
.self-research-add-toggle:hover { background: #171a21; }

#adminSelfResearchView > * { min-width: 0; }
#adminPanel #adminSelfResearchView table.self-research-table { min-width: 1220px; table-layout: fixed; }
#adminPanel #adminSelfResearchView table.self-research-runs { min-width: 0; table-layout: auto; }
.self-research-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e7e8ee; border-radius: 14px; background: #fff; }
.self-research-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: auto; font-size: 13px; }
.self-research-table th { padding: 10px 9px; border-bottom: 1px solid #eceef3; background: #fafbfd; color: #9699a5; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
.self-research-table td { padding: 12px 9px; border-bottom: 1px solid #f0f1f5; color: #3a3d48; vertical-align: middle; }
.self-research-table tbody tr:last-child td { border-bottom: 0; }
.self-research-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.self-research-table .strong { color: #1f2230; font-size: 14px; font-weight: 700; }
.self-research-table .is-up { color: #c2413b; }
.self-research-table .is-down { color: #238258; }
.self-research-row { cursor: pointer; transition: background .14s; }
.self-research-row:hover, .self-research-row.is-expanded { background: #f8faff; }
.self-research-name { display: flex; align-items: center; gap: 6px; min-width: 160px; }
.self-research-name > div { flex: 1; min-width: 0; }
.self-research-name strong { display: block; color: #1f2230; font-size: 14px; white-space: nowrap; }
.self-research-caret { display: grid; flex: none; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #9aa0ad; font-size: 16px; cursor: pointer; transition: transform .16s; }
.self-research-row.is-expanded .self-research-caret { transform: rotate(90deg); color: #3478f6; }
.self-research-flag { display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 5px; background: #fff3e5; color: #a46012; font-size: 10px; font-style: normal; font-weight: 650; }
.self-research-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.self-research-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.self-research-status--success { background: #e9f8f0; color: #21845a; }
.self-research-status--pending { background: #edf4ff; color: #3478f6; }
.self-research-status--pending::before { animation: self-research-pulse 1.2s ease-in-out infinite; }
.self-research-status--warning { background: #fff3e5; color: #a46012; }
.self-research-status--danger { background: #fff0f1; color: #b44751; }
.self-research-status--muted { background: #f1f2f5; color: #7b7f8b; }
@keyframes self-research-pulse { 50% { opacity: .3; } }
.self-research-spark { display: block; width: 80px; height: 28px; overflow: visible; }
.self-research-spark polyline { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.self-research-spark--up polyline { stroke: #3478f6; }
.self-research-spark--down polyline { stroke: #b44751; }
.self-research-spark-empty { color: #b5b8c2; }
.self-research-lastrun { display: grid; gap: 2px; white-space: nowrap; }
.self-research-lastrun span { color: #666a76; font-size: 12px; }
.self-research-run-state { font-size: 11px; font-weight: 650; }
.self-research-run-state--succeeded { color: #21845a; }
.self-research-run-state--failed, .self-research-run-state--timed_out { color: #b44751; }
.self-research-run-state--queued, .self-research-run-state--running { color: #3478f6; }
.self-research-run-state--skipped { color: #8b8f9c; }
.self-research-error-line { max-width: 150px; margin: 4px 0 0; overflow: hidden; color: #b44751; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.self-research-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.self-research-priority { width: 43px; height: 30px; padding: 0 3px; border: 1px solid #dce1ea; border-radius: 8px; text-align: center; font-size: 12px; }
.self-research-run-button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #dce1ea; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .16s, background .16s; }
.self-research-run-button:hover:not(:disabled) { border-color: #b8c9e8; background: #f1f6ff; }
.self-research-run-button:disabled { opacity: .4; cursor: not-allowed; }
.self-research-run-button svg { width: 14px; height: 14px; fill: none; stroke: #3478f6; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.self-research-more { position: relative; }
.self-research-more summary { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #7b7f8b; font-size: 16px; list-style: none; cursor: pointer; }
.self-research-more summary::-webkit-details-marker { display: none; }
.self-research-more summary:hover, .self-research-more[open] summary { background: #f1f3f7; }
.self-research-more > div { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; min-width: 120px; padding: 5px; border: 1px solid #e7e8ee; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(31,37,57,.14); }
.self-research-delete-button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #dce1ea; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .16s, background .16s; }
.self-research-delete-button svg { width: 14px; height: 14px; fill: none; stroke: #9a9ea9; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: stroke .16s; }
.self-research-delete-button:hover:not(:disabled) { border-color: #efcfd3; background: #fff5f5; }
.self-research-delete-button:hover:not(:disabled) svg { stroke: #b34b55; }
.self-research-delete-button:disabled { opacity: .4; cursor: not-allowed; }
.self-research-detail > td { padding: 4px 18px 18px 44px; background: #f8faff; cursor: default; }
.self-research-detail dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 4px 0 12px; }
.self-research-detail dl .wide { grid-column: 1 / -1; }
.self-research-detail dt { color: #9699a5; font-size: 11px; }
.self-research-detail dd { margin: 3px 0 0; overflow: hidden; color: #3a3d48; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.self-research-detail .wide dd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.self-research-detail .self-research-progress-error { margin: 0 0 12px; }
.self-research-detail h5 { margin: 14px 0 8px; color: #3a3d48; font-size: 13px; }
.self-research-detail h5 small { margin-left: 6px; color: #9699a5; font-weight: 400; }
.self-research-runs { width: 100%; min-width: 0; border-collapse: collapse; table-layout: auto; background: #fff; font-size: 12px; }
.self-research-runs th { padding: 7px 10px; border-bottom: 1px solid #eceef3; color: #9699a5; font-size: 11px; font-weight: 600; text-align: left; }
.self-research-runs td, .self-research-runs th { width: 1%; height: auto; padding: 7px 14px 7px 10px; border-bottom: 1px solid #f3f4f7; vertical-align: top; white-space: nowrap; }
.self-research-runs th:last-child { width: auto; }
.self-research-runs td:last-child { width: auto; white-space: normal; }
.self-research-runs-note { margin: 0; color: #9699a5; font-size: 12px; }
.self-research-log summary { max-width: 420px; overflow: hidden; color: #666a76; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.self-research-log.is-error summary { color: #b44751; }
.self-research-log pre { max-height: 220px; margin: 6px 0 0; overflow: auto; padding: 10px; border-radius: 8px; background: #f6f7fa; color: #3a3d48; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }

@media (max-width: 620px) { .self-research-onboarding { padding: 18px; } .self-research-form { grid-template-columns: 1fr; } .self-research-flow i { display: none; } .self-research-flow { flex-wrap: wrap; } .self-research-schedule { display: none; } .self-research-detail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .self-research-detail > td { padding-left: 14px; } }


/* —— 策略行：名称+副信息 | 走势 | 六个等宽指标 | 操作 —— */
.self-research-table col.c-trend { width: 150px; }
.self-research-table col.c-metric { width: 100px; }
.self-research-table col.c-action { width: 144px; }
#adminPanel #adminSelfResearchView .self-research-table tr.self-research-row > td { padding: 18px 14px; border-bottom: 1px solid #f0f1f5; }
#adminPanel #adminSelfResearchView .self-research-table tr.self-research-detail > td { padding: 4px 22px 20px 50px; border-bottom: 1px solid #f0f1f5; }
#adminPanel #adminSelfResearchView .self-research-table tr.self-research-row:last-child td, #adminPanel #adminSelfResearchView .self-research-table tr.self-research-detail:last-child td { border-bottom: 0; }
.self-research-table-wrap { border-radius: 16px; box-shadow: 0 1px 2px rgba(31,37,57,.04); }
.self-research-name { align-items: flex-start; min-width: 0; }
.self-research-name .self-research-caret { margin-top: 1px; }
.self-research-name-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.self-research-name-line > * { flex: none; }
.self-research-name-line > .self-research-name-button, .self-research-name-line > .self-research-name-input { flex: 0 1 auto; min-width: 0; }
.self-research-name-line strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.self-research-name-line .self-research-flag { margin-top: 0; }
.self-research-sub { display: flex; align-items: center; min-width: 0; overflow: hidden; margin: 4px 0 0; color: #9a9da8; font-size: 12px; white-space: nowrap; }
.self-research-sub i { width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: #c9ccd4; }
.self-research-sub .self-research-run-state { font-size: 12px; font-weight: 500; }
.self-research-sub .self-research-run-state--succeeded { color: #9a9da8; }
.self-research-sub .self-research-error-line { min-width: 0; max-width: none; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.self-research-name-line + .self-research-sub { margin-top: 7px; }
.self-research-trend { padding-block: 10px !important; }
.self-research-spark { width: 100%; height: 40px; }
.self-research-spark polyline { stroke-width: 1.6; }
.self-research-spark polygon { stroke: none; }
.self-research-spark--up polygon { fill: rgba(52,120,246,.08); }
.self-research-spark--down polygon { fill: rgba(180,71,81,.07); }
.self-research-spark-empty { color: #b5b8c2; font-size: 12px; }
.self-research-metric { text-align: right; white-space: nowrap; }
.self-research-metric span { display: block; margin-bottom: 5px; color: #a0a3ad; font-size: 11px; letter-spacing: 0; }
.self-research-metric b { display: block; color: #1f2230; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.self-research-metric.is-up b { color: #c2413b; }
.self-research-metric.is-down b { color: #238258; }
.self-research-metric + .self-research-metric { border-left: 0; }
.self-research-action-cell { padding-left: 4px !important; }

.self-research-name-button { max-width: 100%; margin: -2px -6px; padding: 2px 6px; overflow: hidden; border: 0; border-radius: 6px; background: transparent; color: #1f2230; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: text; transition: background .14s; }
.self-research-name-button:hover { background: #eef2f8; }
.self-research-name-input { width: auto; min-width: 120px !important; flex: 1 1 auto !important; height: 30px; margin: -3px 0; padding: 0 8px; border: 1px solid #3478f6; border-radius: 7px; background: #fff; color: #1f2230; font: inherit; font-size: 15px; font-weight: 700; outline: none; box-shadow: 0 0 0 3px rgba(52,120,246,.12); }
.self-research-note-button { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; transition: background .14s; }
.self-research-note-button svg { width: 15px; height: 15px; fill: none; stroke: #b0b4bf; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.self-research-note-button:hover { background: #eef2f8; }
.self-research-note-button:hover svg { stroke: #3478f6; }
.self-research-note-button.has-note svg { fill: #fff3d6; stroke: #c28a17; }
.self-research-note-text { max-width: 100%; margin: 7px 0 0; padding: 4px 8px; overflow: hidden; border-left: 2px solid #f0d58f; border-radius: 0 6px 6px 0; background: #fffaf0; color: #7c6536; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.self-research-note-editor { margin-top: 8px; }
.self-research-note-editor textarea { box-sizing: border-box; width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid #3478f6; border-radius: 8px; background: #fff; color: #333642; font: inherit; font-size: 12px; line-height: 1.5; resize: vertical; outline: none; box-shadow: 0 0 0 3px rgba(52,120,246,.12); }
.self-research-note-editor > div { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.self-research-note-editor > div { justify-content: flex-end; }
.self-research-note-editor button { height: 26px; padding: 0 10px; border: 1px solid #dce1ea; border-radius: 7px; background: #fff; color: #555968; font-size: 12px; cursor: pointer; }
.self-research-note-editor button.is-primary { border-color: #222630; background: #222630; color: #fff; }

.self-research-modal { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: 0 30px 90px rgba(31,37,57,.24); }
.self-research-modal::backdrop { background: rgba(29,34,50,.32); backdrop-filter: blur(4px); }
.self-research-modal-shell { padding: 25px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: #fff; }
.self-research-modal-shell > header { display: flex; align-items: flex-start; justify-content: space-between; }
.self-research-modal-shell h3 { margin: 5px 0 0; font-size: 20px; }
.self-research-modal-shell > header > button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: #f4f5f8; color: #777b88; font-size: 20px; cursor: pointer; }
.self-research-progress-visual { display: flex; align-items: center; gap: 15px; margin: 24px 0; padding: 17px; border-radius: 14px; background: #f6f9ff; }
.self-research-progress-visual div { display: grid; gap: 4px; }
.self-research-progress-visual strong { color: #303440; font-size: 15px; }
.self-research-progress-visual small { color: #8e929e; }
.self-research-progress-spinner { width: 30px; height: 30px; border: 3px solid #dce8ff; border-top-color: #3478f6; border-radius: 50%; animation: self-research-spin 2.4s linear infinite; }
.self-research-progress-spinner.is-finished { display: grid; place-items: center; border-color: #5eb68a; animation: none; }
.self-research-progress-spinner.is-finished::after { content: "✓"; color: #238258; font-size: 14px; font-weight: 800; }
.self-research-progress-spinner.is-error { border-color: #d97881; }
.self-research-progress-spinner.is-error::after { content: "!"; color: #b44751; }
@keyframes self-research-spin { to { transform: rotate(360deg); } }
.self-research-progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.self-research-progress-steps li { position: relative; display: grid; justify-items: center; gap: 7px; color: #a0a3ad; font-size: 11px; text-align: center; }
.self-research-progress-steps li:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 17px); width: calc(100% - 34px); height: 1px; background: #e1e4eb; }
.self-research-progress-steps i { z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #f0f2f6; font-style: normal; }
.self-research-progress-steps .is-active { color: #3478f6; font-weight: 700; }
.self-research-progress-steps .is-active i { background: #3478f6; color: #fff; box-shadow: 0 0 0 5px #edf3ff; }
.self-research-progress-steps .is-complete i { background: #e7f7ef; color: #24835a; }
.self-research-progress-steps .is-error i { background: #fff0f1; color: #b44751; }
.self-research-progress-error { max-height: 130px; overflow: auto; margin: 20px 0 0; padding: 12px; border-radius: 10px; background: #fff5f5; color: #a3434b; font: 11px/1.55 monospace; white-space: pre-wrap; }
.self-research-modal-shell > footer { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; padding-top: 16px; border-top: 1px solid #eff0f4; color: #9a9da8; font-size: 11px; }
.self-research-modal-button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 10px; background: #f0f3f8; color: #525663; font-weight: 650; cursor: pointer; }
.fof-positions-table .fof-actual-return { min-width:100px; text-align:center; cursor:help; }

.fof-side-summary > .fof-funding-notice { gap:6px; padding:10px; border:1px solid rgba(193,139,52,.2); border-radius:10px; background:rgba(255,245,224,.75); line-height:1.5; }
.fof-side-summary > .fof-funding-notice[hidden] { display:none; }
.fof-side-summary .fof-funding-notice-label { color:#9b6b25; font-size:10px; font-weight:650; }
.fof-funding-notice b { color:#8b6023; font-size:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.fof-funding-notice small { color:var(--muted); font-size:9px; }

.fof-source-tooltip { position:fixed; z-index:1100; width:320px; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow:hidden; box-sizing:border-box; padding:12px 14px 9px; border:1px solid #e1e8e3; border-radius:12px; background:rgba(255,255,255,.98); box-shadow:0 16px 48px #243d2f20,0 2px 6px #243d2f08; color:#35483f; pointer-events:none; font-size:11px; font-variant-numeric:tabular-nums; text-align:left; }
.fof-source-context { display:flex; justify-content:space-between; gap:8px; color:#839087; font-size:10px; }
.fof-source-context span { font-size:9px; }
.fof-source-tooltip header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0 10px; border-bottom:1px solid #e9eeea; }
.fof-source-tooltip header strong { font-family:var(--font-ui); font-size:13px; font-weight:600; line-height:1.4; letter-spacing:0; color:#35483f; }
.fof-source-tooltip header b { font-size:18px; font-weight:600; letter-spacing:-.5px; }
.fof-source-columns,.fof-source-row { display:grid; grid-template-columns:minmax(0,1fr) 88px 62px; align-items:baseline; gap:8px; }
.fof-source-columns { padding:8px 0 3px; color:#929d96; font-size:10px; }
.fof-source-row { padding:6px 0; border-bottom:1px solid #f0f3f0; line-height:1.4; }
.fof-source-row>:first-child { overflow-wrap:anywhere; font-weight:500; }
.fof-source-columns>:not(:first-child),.fof-source-row>:not(:first-child) { text-align:right; white-space:nowrap; }
.fof-source-row b { font-weight:600; }
.fof-source-tooltip .is-up { color:#a05252; }
.fof-source-tooltip .is-down { color:#397861; }
.fof-source-tooltip footer { padding-top:7px; color:#98a29c; font-size:10px; }

/* Holdings redemption status: an anchored, compact detail card. */
.fof-restriction-tooltip { position:fixed; z-index:1000; box-sizing:border-box; width:272px; max-width:calc(100vw - 24px); padding:15px 16px 11px; border:1px solid rgba(63,81,74,.1); border-radius:14px; background:rgba(255,255,255,.97); box-shadow:0 12px 36px rgba(29,44,38,.12),0 2px 6px rgba(29,44,38,.04); backdrop-filter:blur(16px); color:#46534e; pointer-events:none; opacity:0; transform:translateY(3px); transition:opacity .14s ease,transform .14s ease; }
.fof-restriction-tooltip.is-visible { opacity:1; transform:translateY(0); }
.fof-restriction-tooltip header { display:grid; gap:7px; margin-bottom:10px; }
.fof-restriction-tooltip header > span { color:#8a938f; font-size:10px; letter-spacing:.08em; }
.fof-restriction-tooltip strong { display:flex; align-items:center; gap:7px; color:#31685b; font-size:14px; font-weight:650; line-height:1.4; }
.fof-restriction-tooltip strong::before { content:""; width:6px; height:6px; flex:none; border-radius:50%; background:currentColor; opacity:.75; }
.fof-restriction-tooltip.is-fully-locked strong { color:#9d4038; }
.fof-restriction-tooltip.is-partially-locked strong,.fof-restriction-tooltip.is-pending strong { color:#8b6118; }
.fof-restriction-tooltip.is-legacy strong,.fof-restriction-tooltip.is-unsaved strong { color:#746f64; }
.fof-restriction-tooltip p { margin:4px 0; font-size:11px; line-height:1.8; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.fof-restriction-tooltip footer { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:9px; border-top:1px solid rgba(63,81,74,.08); color:#8a938f; font-size:10px; }
@media (prefers-reduced-motion:reduce) { .fof-restriction-tooltip { transition:none; transform:none; } }

/* Shared initial loading state across workspace and admin pages. */
.page-loading-surface { width:100%; min-width:0; min-height:0; box-sizing:border-box; padding:0; }
.page-loading-panel { width:100%; min-width:0; box-sizing:border-box; padding:32px; overflow:hidden; border:1px solid rgba(0,0,0,.08); border-radius:20px; background:rgba(255,255,255,.72); }
.admin-view.is-page-loading > :not(.page-loading-surface) { display:none; }
.page-loading-heading { display:flex; align-items:center; gap:18px; }
.page-loading-caption { margin:0; font-size:13px; color:#87918e; }
.page-loading-indicator { flex:0 0 30px; width:30px; height:30px; border:2px solid rgba(63,111,102,.12); border-top-color:#6c9188; border-radius:50%; animation:page-loading-turn 1.2s linear infinite; }
.page-loading-preview { margin-top:30px; animation:page-loading-breathe 2s ease-in-out infinite; }
.page-loading-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.page-loading-metrics > div { padding:20px; border:1px solid rgba(63,111,102,.07); border-radius:14px; background:rgba(63,111,102,.025); }
.page-loading-preview i,.page-loading-preview b { display:block; height:8px; border-radius:6px; background:rgba(63,111,102,.08); }
.page-loading-metrics i { width:38%; }
.page-loading-metrics b { width:65%; height:18px; margin-top:16px; }
.page-loading-rows { margin-top:24px; }
.page-loading-rows > div { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12%; padding:19px 8px; border-bottom:1px solid rgba(63,111,102,.06); }
.page-loading-rows > div:last-child { border-bottom:0; }
.page-loading-rows i:first-child { width:70%; }
@keyframes page-loading-turn { to { transform:rotate(360deg); } }
@keyframes page-loading-breathe { 50% { opacity:.5; } }
@media (max-width:640px) {
  .page-loading-panel { padding:24px 18px; }
  .page-loading-metrics { gap:8px; }
  .page-loading-metrics > div { padding:14px 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .page-loading-indicator,.page-loading-preview { animation:none; }
}

/* Keep overview controls legible, with the shared floating calendar. */
.fof-overview-returns .fof-return-controls { flex-wrap:wrap; justify-content:flex-end; gap:12px; }
.fof-overview-returns .fof-return-periods { flex-shrink:0; }
.fof-return-date { flex:0 0 auto; }
.fof-return-date .date-picker-trigger { min-width:158px; min-height:36px; padding:0 14px; gap:16px; border-radius:12px; white-space:nowrap; }
.fof-return-date .date-picker-trigger strong { font-size:11px; }
.fof-date-popover .calendar-day:disabled { opacity:.3; pointer-events:none; }
@media (max-width:600px) {
  .fof-overview-returns .fof-return-controls { justify-content:flex-start; }
  .fof-return-date .date-picker-trigger { min-width:144px; }
}

.fof-completed-detail { display:grid; gap:5px; min-width:0; }
.fof-completed-read { padding:4px 2px; border:1px solid rgba(57,125,110,.18); border-radius:6px; background:rgba(57,125,110,.06); color:#47786d; font-size:10px; cursor:pointer; }
.fof-completed-read:hover { background:rgba(57,125,110,.14); }

.page-error-panel .page-loading-caption { overflow-wrap:anywhere; }
.page-error-indicator { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; box-sizing:content-box; border:2px solid rgba(63,111,102,.12); border-radius:50%; color:#6c9188; font-size:16px; font-weight:600; }
.page-error-panel { position:relative; }
.page-error-panel .page-loading-heading { animation:page-error-appear .32s ease-out both; }
.page-error-panel .page-loading-preview { opacity:0; animation:page-error-settle .45s ease-out both; }
.page-error-actions { position:absolute; top:96px; left:32px; right:32px; animation:page-error-appear .32s .15s ease-out both; }
@keyframes page-error-appear { from { opacity:0; } to { opacity:1; } }
@keyframes page-error-settle { from { opacity:.5; } to { opacity:0; } }
@media (max-width:640px) {
  .page-error-actions { top:88px; left:18px; right:18px; }
}
@media (prefers-reduced-motion:reduce) {
  .page-error-panel .page-loading-heading,.page-error-panel .page-loading-preview,.page-error-actions { animation:none; }
}

/* Compact metadata controls only in the holdings editor. */
.fof-positions-section.is-editing .fof-positions-table { min-width:1940px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(2) { width:68px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(3) { left:154px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):is(:nth-child(4),:nth-child(5)) { width:80px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(6) { width:88px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(7) { width:104px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):is(:nth-child(10),:nth-child(11)) { width:58px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(12) { width:88px; min-width:0; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):nth-child(13) { width:62px; }
.fof-positions-section.is-editing .fof-positions-table :is(th,td):is(:nth-child(2),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(10),:nth-child(11),:nth-child(12),:nth-child(13)) { padding-inline:4px; }
.fof-positions-section.is-editing .fof-positions-table input[data-fof-field="fundCode"] { padding-inline:5px; letter-spacing:0; }
.fof-positions-section.is-editing .fof-positions-table :is(td:nth-child(4),td:nth-child(5),td:nth-child(6)) select { padding-left:5px; padding-right:17px; background-position:0 0,right 5px center; }
.fof-positions-section.is-editing .fof-positions-table :is(td:nth-child(4),td:nth-child(5),td:nth-child(6)) select.is-auto-strategy { background-position:right 5px center; }

.fof-history-calendar .calendar-day.has-snapshot:not(.selected) { background:transparent; color:var(--blue); font-weight:650; }
.fof-history-calendar .calendar-day.has-snapshot::after { width:3px; height:3px; left:calc(50% - 1.5px); bottom:4px; opacity:.55; }
.fof-history-calendar .calendar-day.has-snapshot:not(.selected):hover { background:rgba(0,113,227,.07); }
.fof-history-calendar .calendar-day.has-pending-snapshot { border-radius:12px; }
.fof-history-calendar .calendar-day.has-pending-snapshot:not(.selected) { color:#7862b3; background:rgba(124,102,184,.1); box-shadow:none; }
.fof-history-calendar .calendar-day.has-pending-snapshot:not(.selected):hover { background:rgba(124,102,184,.17); }
.fof-history-calendar .calendar-day.has-pending-snapshot::after { content:""; position:absolute; top:5px; right:5px; bottom:auto; left:auto; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.75; }
.fof-history-calendar .calendar-day.has-pending-snapshot.selected { color:#fff; background:#8470b8; box-shadow:0 4px 10px rgba(124,102,184,.18); }
.fof-date-popover-footer .fof-rebalance-toggle { display:inline-flex; align-items:center; gap:12px; min-height:36px; padding:7px 13px; border:1px solid rgba(99,114,130,.12); border-radius:999px; background:rgba(99,114,130,.04); font-weight:550; color:#737b85; cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.fof-date-popover-footer .fof-rebalance-toggle:hover { background:rgba(99,114,130,.08); }
.fof-date-popover-footer .fof-rebalance-toggle.is-active { background:rgba(0,113,227,.06); border-color:rgba(0,113,227,.16); color:var(--blue); }
.fof-date-popover-footer .fof-rebalance-toggle.is-active:hover { background:rgba(0,113,227,.1); }
.fof-date-popover-footer .fof-rebalance-toggle:focus-visible { outline:2px solid rgba(0,113,227,.5); outline-offset:3px; }
.fof-rebalance-toggle-mark { position:relative; width:26px; height:16px; border-radius:999px; background:#cbd0d6; transition:background .18s ease; }
.fof-rebalance-toggle-mark::after { content:""; position:absolute; top:3px; left:3px; width:10px; height:10px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.15); transition:transform .18s ease; }
.fof-rebalance-toggle.is-active .fof-rebalance-toggle-mark { background:var(--blue); }
.fof-rebalance-toggle.is-active .fof-rebalance-toggle-mark::after { transform:translateX(10px); }
@media (prefers-reduced-motion:reduce) { .fof-date-popover-footer .fof-rebalance-toggle,.fof-rebalance-toggle-mark,.fof-rebalance-toggle-mark::after { transition:none; } }

.fof-rebalance-item-heading { display:flex; align-items:center; gap:6px; min-width:0; }
.fof-rebalance-item-heading > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-size:12px; line-height:1.5; }
.fof-rebalance-executed { flex:0 0 auto; padding:2px 4px; border:1px solid #d8dedb; border-radius:4px; background:transparent; color:var(--muted); font:inherit; font-size:9px; line-height:1.4; cursor:pointer; }
.fof-rebalance-executed.is-completed { color:#367f70; border-color:#a6ccc1; background:#e7f2ed; }
.fof-rebalance-item.is-increase .fof-rebalance-executed.is-completed { color:var(--fof-up); border-color:var(--fof-up-soft); background:#fff0e9; }
.fof-rebalance-item.is-increase .fof-rebalance-executed:focus-visible { outline-color:var(--fof-up-soft); }
.fof-rebalance-executed:focus-visible { outline:2px solid #367f70; outline-offset:2px; }
.fof-rebalance-executed:disabled { opacity:.45; cursor:default; }
.fof-holding-name-content { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.fof-holding-executed { flex:0 0 auto; margin-left:auto; padding:2px 4px; border:1px solid #d8dedb; border-radius:4px; background:transparent; color:var(--muted); font-size:9px; font-weight:400; line-height:1.4; white-space:nowrap; }
.fof-holding-executed[hidden] { display:none; }

/* Carry: FOF-style research panels, scoped for gradual index-tab redesign. */
.carry-board { --carry-accent:#3f6f66; display:grid; gap:20px; min-width:0; padding:8px 0 24px; color:#2d3936; }
.carry-board h2,.carry-board h3,.carry-board h4,.carry-board p { margin:0; }
.carry-eyebrow { display:block; color:#78857f; font-size:10px; letter-spacing:.12em; margin-bottom:8px; }
.carry-hero { min-height:204px; display:grid; grid-template-columns:minmax(300px,1fr) minmax(480px,.95fr); gap:36px; align-items:center; padding:28px 36px; border:1px solid rgba(63,111,102,.09); border-radius:22px; background:linear-gradient(115deg,rgba(63,111,102,.075),rgba(255,255,255,.72) 52%,rgba(63,111,102,.045)),#fafcfb; box-shadow:0 5px 20px rgba(31,52,45,.025); }
.carry-hero-copy h2 { margin:12px 0 9px; color:#304b40; font-size:40px; font-weight:680; line-height:1.1; letter-spacing:-.035em; }
.carry-hero-copy p { color:#77877e; font-size:13px; }
.carry-hero-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; color:#8b9891; font-size:10px; font-variant-numeric:tabular-nums; }
.carry-hero-meta span+span { padding-left:10px; border-left:1px solid #d8e0db; }
.carry-hero-aside { display:grid; gap:23px; }
.carry-asof { display:flex; justify-content:flex-end; align-items:center; gap:9px; font-variant-numeric:tabular-nums; }
.carry-asof span { font-size:10px; color:#8b9891; }
.carry-asof strong { color:#64786c; font-size:11px; font-weight:500; }
.carry-hero-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.carry-hero-metrics > div { display:grid; gap:9px; padding:0 24px; border-left:1px solid rgba(63,111,102,.11); }
.carry-hero-metrics span { color:#788b7f; font-size:11px; }
.carry-hero-metrics strong { color:#354f41; font-size:30px; font-weight:580; line-height:1.1; font-variant-numeric:tabular-nums; }
.carry-board small { font-size:11px; color:#89938e; font-weight:400; }
.carry-hero-metrics strong small { margin-left:6px; font-size:12px; }
.carry-hero-metrics em { color:#a0aaa3; font-size:10px; font-style:normal; }
.carry-detail-metrics span { font-size:11px; color:#78857f; }
@media(max-width:1350px) { .carry-hero { padding:26px 28px; gap:20px; grid-template-columns:minmax(270px,1fr) minmax(430px,1fr); }.carry-hero-metrics > div { padding:0 17px; } }
.carry-panel { min-width:0; padding:20px 22px; border:1px solid rgba(15,23,42,.065); border-radius:18px; background:rgba(255,255,255,.92); box-shadow:0 5px 18px rgba(31,52,45,.025); }
.carry-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.carry-section-head .carry-section-kicker { margin:0 0 8px; color:#0071e3; }
.carry-section-head h3 { margin:0; font-size:24px; line-height:1.04; font-weight:650; letter-spacing:-.02em; }
.carry-section-head h3 small { margin-left:8px; }
.carry-column-filter { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.carry-column-filter input,.carry-column-filter select { min-height:27px; height:27px; border:1px solid rgba(63,111,102,.12); border-radius:6px; padding:3px 7px; background:rgba(255,255,255,.8); color:#44544d; font:inherit; font-size:10px; width:115px; }
.carry-column-filter input::placeholder { color:#a3ada7; }
.carry-column-status { align-items:flex-end; }
.carry-column-status select { width:75px; }
.carry-column-filter input:focus,.carry-column-filter select:focus { outline:2px solid rgba(63,111,102,.2); outline-offset:1px; }
.carry-table .carry-column-sort { color:inherit; font:inherit; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.carry-column-sort span { color:#a2afa7; font-size:12px; }
.carry-table th[aria-sort="ascending"] .carry-column-sort,.carry-table th[aria-sort="descending"] .carry-column-sort { color:#315d55; }
.carry-table .carry-column-sort:focus-visible { outline:2px solid rgba(63,111,102,.3); outline-offset:4px; }
.carry-scroll { overflow:auto; }
.carry-ranking { max-height:410px; border:1px solid rgba(15,23,42,.06); border-radius:11px; }
.carry-table { width:100%; border-collapse:separate; border-spacing:0; font-size:11.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.carry-table th,.carry-table td { padding:9px 10px; text-align:right; border-bottom:1px solid rgba(15,23,42,.05); }
.carry-table th { font-size:10.5px; font-weight:550; color:#78857f; }
.carry-table thead th { position:sticky; top:0; background:#f2f5f3; z-index:1; }
.carry-table th:first-child,.carry-table td:first-child { text-align:left; }
.carry-table tbody tr:last-child td,.carry-table tbody tr:last-child th { border-bottom:0; }
.carry-table button { border:0; padding:0; background:none; font:inherit; color:#344b41; cursor:pointer; }
.carry-table button small { margin-left:5px; font-size:10px; }
.carry-table tbody tr:hover td { background-color:rgba(63,111,102,.025); }
.carry-table tr.selected td { background-color:#edf4f1; }
.carry-table tr.selected td:first-child { box-shadow:inset 3px 0 #4d887b; }
.carry-status { display:inline-block; border-radius:5px; padding:3px 7px; color:#929a96; background:#f3f4f3; font-size:10px; font-weight:450; }
.carry-status.is-pass { color:#337566; background:#e9f3ef; }
.carry-positive { color:var(--fof-up); }.carry-negative { color:var(--fof-down); }
.carry-detail-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:16px 18px; border-radius:12px; background:#f6f8f7; }
.carry-detail-metrics > div { display:grid; gap:7px; }
.carry-detail-metrics strong { font-size:19px; font-weight:580; font-variant-numeric:tabular-nums; }
.carry-chart-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:23px 0 12px; }
.carry-chart-title h4 { font-size:13px; font-weight:600; }
.carry-chart-title span { color:#89938e; font-size:10px; }
.carry-detail svg { display:block; width:100%; height:auto; max-height:270px; }
.carry-detail svg text { fill:#89938e; font:10px var(--font-ui); }
.carry-heat { border-spacing:3px; }
.carry-heat td,.carry-heat th { border:0; border-radius:5px; padding:10px 7px; }
.carry-heat sup { margin-left:2px; cursor:help; }
.carry-board .carry-footnote { margin-top:12px; color:#939c97; font-size:10px; line-height:1.6; }
.carry-notes { color:#7d8983; font-size:11px; line-height:1.8; background:rgba(255,255,255,.6); box-shadow:none; }
.carry-notes summary { cursor:pointer; color:#55685e; font-size:12px; }
.carry-notes p { margin-top:10px; }
.carry-empty { padding:48px; text-align:center; color:#89938e; font-size:12px; }
@media(max-width:1350px) { .carry-panel { padding:18px 16px; }.carry-table th,.carry-table td { padding:9px 7px; }.carry-section-head { align-items:flex-start; }.carry-table { font-size:11px; } }
.carry-chart-legend { display:flex; align-items:center; gap:18px; margin:0 0 10px; color:#78857f; font-size:10px; }
.carry-chart-legend > span { display:flex; align-items:center; gap:6px; }
.carry-chart-legend i { width:16px; height:2px; background:#27806c; }
.carry-chart-legend i.is-ma { background:#b48b52; }
.carry-chart-legend small { margin-left:auto; font-size:10px; }
.carry-chart-wrap { position:relative; }
.carry-chart-wrap svg { height:240px; cursor:crosshair; }
.carry-chart-tooltip { position:absolute; top:8px; z-index:3; min-width:170px; padding:11px 13px; border:1px solid rgba(63,111,102,.14); border-radius:10px; background:rgba(255,255,255,.97); box-shadow:0 5px 18px rgba(31,52,45,.1); pointer-events:none; font-size:11px; font-variant-numeric:tabular-nums; }
.carry-chart-tooltip strong { display:block; margin-bottom:8px; color:#44544d; font-weight:600; }
.carry-chart-tooltip > span { display:flex; justify-content:space-between; gap:20px; margin-top:5px; color:#78857f; }
.carry-chart-tooltip b { color:#315d55; font-weight:550; }
.carry-chart-tooltip small { display:block; margin-top:6px; font-size:10px; }

.carry-chart-wrap svg:focus { outline: none; }
.carry-chart-wrap svg:focus-visible { outline: 1px solid #8a9b91; outline-offset: 3px; }

.carry-filter-menu { position:relative; display:inline-block; }
.carry-filter-menu summary { display:flex; align-items:center; gap:6px; cursor:pointer; list-style:none; }
.carry-filter-menu summary::-webkit-details-marker { display:none; }
.carry-filter-menu summary.is-active,.carry-filter-menu[open] summary { color:#27806c; }
.carry-ranking thead th:has(.carry-filter-menu[open]) { z-index:3; }
.carry-filter-popover { position:absolute; top:calc(100% + 12px); left:0; width:224px; padding:7px; border:1px solid #e7ece9; border-radius:12px; background:#fff; box-shadow:0 8px 28px #263b2412; text-align:left; }
.carry-ranking th:last-child .carry-filter-popover { left:auto; right:0; }
.carry-filter-category { width:132px; }
.carry-filter-options { display:grid; gap:3px; }
.carry-filter-sector .carry-filter-options { grid-template-columns:1fr 1fr; }
.carry-table .carry-filter-option { display:flex; align-items:center; gap:7px; padding:8px 9px; margin:0; border-radius:7px; color:#75827b; font-size:11px; line-height:16px; text-align:left; box-shadow:none; outline:none; }
.carry-table .carry-filter-option:hover { background:#f5f7f5; }
.carry-table .carry-filter-option.is-selected { color:#315d55; background:#edf4f0; }
.carry-filter-option i { width:6px; height:6px; border-radius:2px; flex-shrink:0; opacity:.8; }
.carry-choice-check { margin-left:auto; width:10px; color:#658e81; }
.carry-table .carry-filter-option:focus-visible { outline:1px solid #8eafa2; outline-offset:-1px; }
.carry-search-box { display:flex; align-items:center; gap:7px; padding:0 8px; border-radius:8px; background:#f5f7f5; }
.carry-search-box > svg { flex-shrink:0; fill:none; stroke:#8a9b91; stroke-width:1.4; }
.carry-filter-popover .carry-search-box input { width:100%; min-width:0; height:32px; min-height:32px; padding:0; border:0; border-radius:0; background:transparent; color:#44544d; font:inherit; font-size:11px; outline:none; box-shadow:none; }
.carry-filter-popover .carry-search-box input:focus { outline:none; box-shadow:none; }
.carry-search-box:focus-within { box-shadow:inset 0 0 0 1px #b5c9be; }
.carry-search-box input::placeholder { color:#a1aaa5; }
.carry-table .carry-search-box button { margin:0; padding:2px; font-size:16px; color:#849189; box-shadow:none; }
.carry-search-box button:disabled { visibility:hidden; }
.carry-table .carry-sector { color:#849189; font-size:10.5px; }

.carry-ranking:has(.carry-filter-menu[open]) { min-height:180px; }
.carry-ranking:has([data-filter="sector"][open]) { min-height:235px; }

.carry-periods { display:flex; gap:3px; padding:3px; border-radius:9px; background:#f1f4f2; }
.carry-periods button { border:0; background:transparent; color:#849189; border-radius:7px; padding:7px 13px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
.carry-periods button.is-active { background:#fff; color:#315d55; box-shadow:0 1px 5px #263b2410; }
.carry-periods button:focus-visible { outline:2px solid #8a9b91; outline-offset:1px; }

.carry-sector-tag { display:inline-block; padding:3px 7px; border-radius:5px; color:var(--sector-color); background:var(--sector-bg); line-height:1.4; font-size:10.5px; font-weight:500; white-space:nowrap; }

.carry-ranking-actions { display:flex; align-items:center; justify-content:flex-end; gap:20px; flex-wrap:wrap; }
.carry-selection { display:flex; align-items:center; gap:2px; padding:3px; border:1px solid #e2e9e5; border-radius:10px; background:#fafcfb; }
.carry-selection button { border:0; border-radius:7px; padding:7px 12px; background:transparent; color:#849189; font:inherit; font-size:12px; white-space:nowrap; cursor:pointer; transition:background .15s,color .15s; }
.carry-selection button:hover { color:#315d55; background:#f0f5f2; }
.carry-selection button.is-active { color:#315d55; background:#e5efea; font-weight:550; }
.carry-selection button:focus-visible { outline:2px solid #8a9b91; outline-offset:1px; }
@media(max-width:640px) { .carry-ranking-actions { gap:10px; justify-content:flex-start; } .carry-selection button { padding:7px 9px; } }

.carry-methodology-details { margin-top:10px; padding-top:8px; border-top:1px solid rgba(148,163,184,.18); }
.carry-methodology .carry-methodology-details p { margin:6px 0; }

/* Fund flow uses the carry research page's visual rhythm. */
.etf-index-funds-board { gap:20px; padding:8px 0 24px; color:#2d3936; }
.etf-funds-hero .carry-hero-copy p { max-width:460px; line-height:1.7; }
.etf-funds-hero .etf-funds-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.etf-funds-hero .etf-funds-summary .metric-tile { min-height:0; padding:0 20px; border-left:1px solid rgba(63,111,102,.11); }
.etf-funds-hero .etf-funds-summary .metric-tile span { color:#788b7f; font-size:11px; font-weight:400; }
.etf-funds-hero .etf-funds-summary .metric-tile strong { margin-top:8px; color:#354f41; font-size:26px; line-height:1.1; font-weight:580; letter-spacing:-.025em; white-space:nowrap; }
.etf-index-funds-board .etf-funds-toolbar { padding:14px 22px; border:1px solid rgba(15,23,42,.065); border-radius:18px; background:rgba(255,255,255,.92); box-shadow:0 5px 18px rgba(31,52,45,.025); }
.etf-funds-toolbar > div:first-child strong { color:#44544d; font-size:12px; font-weight:500; }
.etf-funds-toolbar > div:first-child span { color:#89938e; font-size:11px; }
.etf-index-funds-board .etf-funds-periods,.etf-index-funds-board .etf-funds-area-modes { gap:3px; padding:3px; border:0; border-radius:9px; background:#f1f4f2; }
.etf-index-funds-board .etf-funds-periods button,.etf-index-funds-board .etf-funds-area-modes button { border-radius:7px; padding:7px 13px; color:#849189; font-size:12px; }
.etf-index-funds-board .etf-funds-periods button[aria-pressed="true"],.etf-index-funds-board .etf-funds-area-modes button[aria-pressed="true"] { background:#fff; color:#315d55; box-shadow:0 1px 5px #263b2410; }
.etf-index-funds-board .etf-funds-main { gap:20px; }
.etf-index-funds-board .etf-funds-chart-panel { padding:20px 22px!important; border:1px solid rgba(15,23,42,.065)!important; border-radius:18px!important; background:rgba(255,255,255,.92)!important; box-shadow:0 5px 18px rgba(31,52,45,.025)!important; }
.etf-index-funds-board .etf-funds-chart-panel .section-heading { margin-bottom:20px; gap:14px; }
.etf-index-funds-board .etf-funds-chart-panel .section-heading .eyebrow { margin:0 0 8px; color:var(--blue); font-size:12px; font-weight:720; letter-spacing:0; }
.etf-index-funds-board .etf-funds-chart-panel .section-heading h3 { color:#2d3936; font-size:24px; line-height:1.04; font-weight:650; letter-spacing:-.02em; }
.etf-index-funds-board .etf-funds-chart-panel .section-heading small { margin-top:9px; color:#89938e; }
@media(max-width:1000px) {
 .etf-funds-hero { grid-template-columns:1fr; gap:22px; }
 .etf-funds-hero .carry-asof { justify-content:flex-start; }
 .etf-funds-hero .etf-funds-summary .metric-tile:nth-child(odd) { border-left:0; padding-left:0; }
 .etf-funds-period-control { flex-wrap:wrap; max-width:100%; }
}
@media(max-width:520px) {
 .etf-funds-hero { padding:22px 18px; }
 .etf-funds-hero .etf-funds-summary .metric-tile { padding:0 10px; }
 .etf-funds-hero .etf-funds-summary .metric-tile strong { font-size:21px; }
 .etf-funds-custom-range { flex-wrap:wrap; }
 .etf-index-funds-board .etf-funds-chart-panel { padding:18px 16px!important; }
}

/* Microcap valuation: full-page carry-style research layout. */
.microcap-board.index-board { gap:20px; padding:8px 0 24px; color:#2d3936; }
.microcap-hero .carry-hero-copy p { max-width:480px; line-height:1.7; }
.microcap-hero .carry-hero-metrics strong { font-size:26px; white-space:nowrap; }
.microcap-board.index-board > .index-module { gap:20px; padding:20px 22px; border:1px solid rgba(15,23,42,.065); border-radius:18px; background:rgba(255,255,255,.92); box-shadow:0 5px 18px rgba(31,52,45,.025); }
.microcap-board.index-board .section-heading.compact { align-items:center; flex-wrap:wrap; gap:12px; }
.microcap-board.index-board .section-heading.compact .eyebrow { margin:0 0 8px; color:var(--blue); font-size:12px; font-weight:720; letter-spacing:0; }
.microcap-board.index-board .section-heading.compact h3 { margin:0; font-size:24px; line-height:1.04; font-weight:650; letter-spacing:-.02em; }
.microcap-board.index-board .section-heading.compact > span { font-size:11px; color:#89938e; }
.microcap-board .metric-grid { gap:0; grid-template-columns:repeat(6,minmax(0,1fr)); padding:16px 4px; border-radius:12px; background:#f6f8f7; }
.microcap-board .metric-grid .metric-tile { min-height:0; padding:0 16px; border:0; border-left:1px solid #e5ebe7; border-radius:0; background:transparent; box-shadow:none; }
.microcap-board .metric-grid .metric-tile:first-child { border-left:0; }
.microcap-board.index-board .metric-tile span { color:#78857f; font-size:11px; font-weight:400; letter-spacing:0; }
.microcap-board.index-board .metric-tile strong { margin-top:9px; color:#354f41; font-size:23px; font-weight:580; letter-spacing:-.02em; }
.microcap-board .chart-grid { margin:0; }
.microcap-board .index-module .chart-panel { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.microcap-board .chart-heading { gap:16px; margin-bottom:16px; }
.microcap-board .chart-heading .eyebrow { display:none; }
.microcap-board.index-board .index-module .chart-panel--large .chart-heading h3 { color:#44544d; font-size:15px; font-weight:600; letter-spacing:0; }
.microcap-board .chart-heading .chart-caption { color:#89938e; font-size:11px; }
.microcap-board .microcap-smoothing-control { gap:3px; padding:3px; border:0; border-radius:9px; background:#f1f4f2; box-shadow:none; }
.microcap-board .microcap-smoothing-option { border:0; border-radius:7px; padding:7px 13px; background:transparent; color:#849189; font-size:12px; letter-spacing:0; }
.microcap-board .microcap-smoothing-option.active { background:#fff; color:#315d55; box-shadow:0 1px 5px #263b2410; }
.microcap-board.index-board .microcap-chart-note { margin:18px 0 0; padding:14px 16px; border:1px solid #e5ebe7; border-radius:12px; background:#f8faf9; color:#78857f; font-size:11px; line-height:1.75; }
.microcap-period-bar { display:flex; align-items:center; gap:24px; padding:16px 22px; border:1px solid rgba(15,23,42,.065); border-radius:18px; background:rgba(255,255,255,.92); }
.microcap-period-copy { flex-shrink:0; display:grid; gap:5px; }
.microcap-period-copy strong { color:#44544d; font-size:12px; font-weight:500; }
.microcap-period-copy span { color:#89938e; font-size:11px; }
.microcap-board .floating-period-selector { position:static; inset:auto; transform:none; width:auto; max-width:none; flex:1; display:block; z-index:auto; opacity:1; }
.microcap-board .floating-period-selector .period-handle { display:none; }
.microcap-board .floating-period-panel { min-height:0; backdrop-filter:none; -webkit-backdrop-filter:none; position:static; width:auto; max-width:none; min-width:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.microcap-board .floating-period-meta { padding:0; border:0; }
.microcap-board .floating-period-meta > span { display:none; }
.microcap-board .floating-period-grid { display:flex; flex-wrap:wrap; gap:3px; margin:0; padding:3px; border-radius:9px; background:#f1f4f2; }
.microcap-board .floating-period-button { min-height:30px; padding:6px 10px; border:0; border-radius:7px; background:transparent; color:#849189; font-size:12px; box-shadow:none; }
.microcap-board .floating-period-button.active { background:#fff; color:#315d55; box-shadow:0 1px 5px #263b2410; }
@media(max-width:1100px) {
 .microcap-hero { grid-template-columns:1fr; gap:22px; }
 .microcap-board .metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:22px; }
 .microcap-board .metric-grid .metric-tile:nth-child(4) { border-left:0; }
 .microcap-period-bar { align-items:flex-start; flex-direction:column; gap:14px; }
 .microcap-board .floating-period-panel { justify-content:flex-start; }
}
@media(max-width:640px) {
 .microcap-hero { padding:22px 18px; }
 .microcap-hero .carry-hero-metrics > div { padding:0 10px; }
 .microcap-hero .carry-hero-metrics strong { font-size:21px; }
 .microcap-board.index-board > .index-module { padding:18px 16px; }
 .microcap-board .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .microcap-board .metric-grid .metric-tile { padding:0 12px; }
 .microcap-board .metric-grid .metric-tile:nth-child(odd) { border-left:0; }
 .microcap-board .metric-grid .metric-tile:nth-child(4) { border-left:1px solid #e5ebe7; }
 .microcap-board .chart-heading { align-items:flex-start; flex-direction:column; }
}

/* Keep the selected instrument inside its screening card. */
.carry-panel > .carry-detail { margin-top:22px; padding-top:22px; border-top:1px solid #e5ebe7; }
.carry-panel > .carry-detail > .carry-section-head { margin-bottom:16px; }
.carry-panel > .carry-detail > .carry-section-head h3 { font-size:20px; line-height:1.25; }

.carry-count-input { display:flex; align-items:center; gap:9px; color:#78857f; font-size:12px; font-weight:400; }
.carry-count-input input[type="number"] { box-sizing:border-box; width:46px; min-width:0; height:30px; min-height:0; padding:4px 6px; border:1px solid #e2e9e5; border-radius:7px; background:#fafcfb; color:#315d55; text-align:center; font:500 13px/1 var(--font-ui); font-variant-numeric:tabular-nums; box-shadow:none; appearance:textfield; -moz-appearance:textfield; }
.carry-count-input input::-webkit-inner-spin-button,.carry-count-input input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.carry-count-input input:focus-visible { outline:2px solid #8a9b91; outline-offset:2px; }
.carry-correlation-summary { display:flex; align-items:center; gap:24px; margin:18px 0; color:#78857f; font-size:12px; }
.carry-correlation-summary strong { margin-left:8px; font-size:24px; color:#354f41; font-weight:580; }
.carry-correlation-picks { display:flex; flex-wrap:wrap; gap:10px 18px; margin-bottom:18px; font-size:12px; }
.carry-correlation-table th,.carry-correlation-table td { min-width:65px; text-align:center; }
.carry-correlation-table th:first-child { min-width:130px; text-align:left; }

.carry-portfolio-nav { margin-top:24px; padding-top:4px; border-top:1px solid #e5ebe7; }
.carry-portfolio-nav .carry-chart-wrap { margin-top:16px; }
.carry-portfolio-nav svg { width:100%; height:300px; }

.carry-selection[aria-label="品种显示方式"] { flex-wrap:wrap; max-width:100%; }

/* Instrument details shared by portfolio names and correlation matrix axes. */
.carry-instrument-trigger { border:0; padding:3px 0; background:none; color:inherit; font:inherit; text-align:inherit; cursor:pointer; border-radius:4px; text-decoration:underline dotted rgba(79,115,102,.3); text-underline-offset:5px; }
.carry-instrument-trigger:hover { color:#237b69; text-decoration-color:currentColor; }
.carry-instrument-trigger:focus-visible { outline:2px solid #7ca99a; outline-offset:4px; }
.carry-instrument-preview { position:fixed; inset:auto; margin:0; box-sizing:border-box; width:min(580px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:22px; border:1px solid #dfe7e3; border-radius:20px; background:rgba(255,255,255,.99); color:#35483f; box-shadow:0 16px 60px #253f3729,0 3px 12px #253f3710; z-index:1000; font-size:12px; font-variant-numeric:tabular-nums; }
.carry-instrument-preview[hidden] { display:none; }
.carry-instrument-preview::backdrop { background:transparent; pointer-events:none; }
.carry-preview-head { display:flex; align-items:center; gap:12px; }
.carry-preview-head > div { flex:1; }
.carry-preview-eyebrow { color:#007aff; font-size:10px; font-weight:650; letter-spacing:.06em; }
.carry-preview-head h4 { margin:6px 0 0; font-size:21px; font-weight:650; }
.carry-preview-head h4 small { margin-left:6px; color:#8a9690; font-size:12px; font-weight:400; }
.carry-preview-head > button { width:26px; height:26px; border:0; border-radius:50%; background:#f2f5f3; color:#78867f; cursor:pointer; font-size:18px; }
.carry-preview-period,.carry-preview-note { color:#87948d; font-size:10px; line-height:1.7; margin:10px 0 0; }
.carry-preview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:15px 12px; margin:16px 0 18px; border-radius:12px; background:#f4f7f5; }
.carry-preview-metrics > div { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.carry-preview-metrics span { font-size:10px; color:#7f8d85; }
.carry-preview-metrics strong { font-size:17px; font-weight:550; }
.carry-preview-metrics .carry-status { font-size:11px; }
.carry-preview-title { display:flex; justify-content:space-between; gap:10px; margin:14px 0 10px; font-weight:600; }
.carry-preview-title small { color:#8a9690; font-size:10px; font-weight:400; }
.carry-instrument-preview .carry-chart-wrap svg { display:block; width:100%; height:170px; overflow:visible; }
.carry-instrument-preview svg text { fill:#8a9690; font-size:17px; }
.carry-instrument-preview .carry-chart-legend { font-size:10px; gap:12px; }
.carry-instrument-preview .carry-chart-legend small { display:none; }
.carry-instrument-preview .carry-table { width:100%; }
.carry-instrument-preview .carry-preview-years { min-width:0; table-layout:auto; border-spacing:3px; }
.carry-instrument-preview .carry-preview-years th,.carry-instrument-preview .carry-preview-years td { padding:9px 10px; min-width:62px; text-align:center; font-size:11px; }
@media(max-width:480px) { .carry-instrument-preview { padding:16px; } .carry-preview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.carry-portfolio-nav .carry-nav-axis { fill:#8c9891; font:10px var(--font-ui); font-weight:400; }
.carry-portfolio-nav .carry-nav-grid { stroke:#e7ece9; stroke-width:1; vector-effect:non-scaling-stroke; }
.carry-portfolio-nav .carry-nav-tick { stroke:#d7dfda; stroke-width:1; vector-effect:non-scaling-stroke; }
@media(max-width:600px) { .carry-nav-date-1,.carry-nav-date-2,.carry-nav-date-4 { display:none; } }
.etf-funds-chart-panel .etf-funds-period-control { margin-left:auto; flex-direction:column; align-items:flex-end; gap:10px; }
.etf-funds-chart-panel .etf-funds-custom-range { padding-left:0; }
@media(max-width:980px) { .etf-funds-chart-panel .section-heading { flex-wrap:wrap; } .etf-funds-chart-panel .etf-funds-period-control { margin-left:0; align-items:flex-start; } }
.microcap-valuation-heading small { display:block; margin-top:9px; color:#89938e; font-size:11px; font-weight:400; }
.microcap-period-options { display:flex; gap:3px; padding:3px; border-radius:9px; background:#f1f4f2; flex-shrink:0; }
.microcap-period-options button { padding:7px 13px; border:0; border-radius:7px; background:transparent; color:#849189; font-size:12px; cursor:pointer; white-space:nowrap; }
.microcap-period-options button[aria-pressed="true"] { background:#fff; color:#315d55; box-shadow:0 1px 5px #263b2410; }
@media(max-width:650px) { .microcap-valuation-heading { flex-wrap:wrap; gap:16px; } }
/* Quiet chart surfaces matching the microcap research cards. */
.microcap-board .chart-canvas-wrap { border:0; border-radius:0; background:transparent; box-shadow:none; padding:0; }
.microcap-board .chart-canvas-wrap canvas { display:block; width:100%; height:320px; border:0; border-radius:0; background:transparent; }
.microcap-board .chart-heading { margin-top:4px; }
.microcap-board .chart-heading h3::before { content:""; display:inline-block; width:16px; height:3px; margin-right:8px; border-radius:3px; background:#357f70; vertical-align:middle; }
.microcap-board .index-module:last-child .chart-heading h3::before { background:#63859b; }
.microcap-board .chart-tooltip { padding:12px 15px; min-width:146px; border:1px solid #e1e9e4; border-radius:12px; background:rgba(255,255,255,.98); box-shadow:0 8px 28px #2c483b16; color:#35483f; }
.microcap-board .chart-tooltip strong { color:#839087; font-size:11px; font-weight:500; }
.microcap-board .chart-tooltip small { color:#8a9890; font-size:10px; }
.microcap-board .chart-tooltip span { color:#354f41; font-size:19px; font-weight:550; }
.microcap-board.index-board .microcap-chart-note { border:0; border-top:1px solid #eaf0ec; border-radius:0; background:transparent; padding:14px 0 0; margin-top:12px; }
@media(max-width:600px) { .microcap-board .chart-canvas-wrap canvas { height:260px; } }
.microcap-heading-controls { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; }
@media(max-width:650px) { .microcap-heading-controls { justify-content:flex-start; gap:10px; } }
/* CTA environment adopts the shared index research surface. */
.cta-environment-board.index-board { gap:20px; padding:8px 0 24px; color:#2d3936; }
.cta-environment-board .cta-module { padding:24px; border:1px solid rgba(15,23,42,.065); border-radius:20px; background:rgba(255,255,255,.92); box-shadow:0 5px 18px #1f342d06; }
.cta-environment-board .section-heading,.cta-environment-board .chart-heading { gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.cta-environment-board .section-heading .eyebrow,.cta-environment-board .chart-heading .eyebrow { margin:0 0 8px; color:var(--blue); font-size:12px; font-weight:650; letter-spacing:0; }
.cta-environment-board .section-heading h3,.cta-environment-board .chart-heading h3 { margin:0; font-size:24px; font-weight:650; letter-spacing:-.02em; color:#2d3936; }
.cta-environment-board .section-heading > span,.cta-environment-board .chart-caption { color:#89938e; font-size:11px; }
.cta-research-hero .carry-hero-metrics .cta-hero-state { font-size:20px; }
.cta-environment-board .cta-dashboard-grid { gap:14px; }
.cta-environment-board .cta-gauge-card { display:block; padding:22px; background:#f5f8f6; border:0; border-radius:14px; box-shadow:none; }
.cta-environment-board .cta-gauge-copy { position:static; text-align:left; display:grid; gap:8px; }
.cta-environment-board .cta-gauge-copy span { color:#7b8981; font-size:12px; }
.cta-environment-board .cta-gauge-copy strong { color:#354f41; font-size:36px; font-weight:550; line-height:1.2; }
.cta-environment-board .cta-gauge-copy small { color:#74877b; font-size:11px; }
.cta-score-track { height:5px; margin-top:20px; border-radius:5px; background:#e4ebe6; overflow:hidden; }
.cta-score-track > span { display:block; height:100%; background:var(--gauge-color); border-radius:inherit; }
.cta-score-scale { display:flex; justify-content:space-between; margin-top:7px; color:#9ba69f; font-size:10px; }
.cta-environment-board .cta-status-card { padding:22px; border:0; border-radius:14px; box-shadow:none; }
.cta-environment-board .cta-status-card strong { font-size:24px; font-weight:550; }
.cta-environment-board .cta-status-card p { color:#78857f; font-size:12px; }
.cta-environment-board .cta-recent-state-panel { padding:18px 0 0; border:0; border-top:1px solid #e8eeea; border-radius:0; background:transparent; }
.cta-environment-board .cta-period-controls { margin-bottom:20px; }
.cta-environment-board .floating-period-selector { position:static; inset:auto; transform:none; width:100%; max-width:none; opacity:1; z-index:auto; }
.cta-environment-board .period-handle { display:none; }
.cta-environment-board .floating-period-panel { position:static; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; width:auto; min-width:0; max-width:none; padding:14px 16px; border:0; border-radius:12px; background:#f6f8f7; box-shadow:none; opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.cta-environment-board .floating-period-meta { padding:0; border:0; }
.cta-environment-board .floating-period-meta > span { display:none; }
.cta-environment-board .floating-period-grid { display:flex; flex-wrap:wrap; gap:3px; padding:3px; margin:0; background:#edf2ee; border-radius:9px; }
.cta-environment-board .floating-period-button { min-height:30px; padding:6px 10px; border:0; border-radius:7px; background:transparent; color:#849189; box-shadow:none; font-size:12px; }
.cta-environment-board .floating-period-button.active { background:white; color:#315d55; box-shadow:0 1px 5px #263b2410; }
.cta-environment-board .chart-canvas-wrap { border:0; background:transparent; box-shadow:none; }
.cta-environment-board .cta-index-notes { gap:20px; padding-top:18px; border-top:1px solid #e8eeea; }
.cta-environment-board .cta-index-notes > div { border:0; border-radius:0; background:transparent; padding:0; }
.cta-environment-board .cta-index-notes strong { font-size:12px; color:#53695c; }
.cta-environment-board .cta-index-notes p { color:#89938e; font-size:11px; }
.cta-environment-board .cta-yearly-score-row { border:0; border-bottom:1px solid #edf1ee; border-radius:0; background:transparent; box-shadow:none; padding:15px 8px; }
.cta-environment-board .cta-yearly-score-row:hover { background:#f7faf8; }
.cta-environment-board .cta-yearly-formula { background:#f5f8f6; border:0; color:#7d8b82; }
.cta-environment-board .cta-yearly-legend { color:#829086; font-size:11px; gap:16px; }
.cta-environment-board .chart-tooltip { border:1px solid #e1e9e4; border-radius:12px; background:rgba(255,255,255,.98); color:#35483f; box-shadow:0 8px 28px #2c483b16; }
@media(max-width:700px) { .cta-environment-board .cta-module { padding:18px 14px; } .cta-environment-board .cta-dashboard-grid { grid-template-columns:1fr; } .cta-environment-board .floating-period-panel { padding:12px; } .cta-environment-board .cta-index-notes { grid-template-columns:1fr; } }
/* Distinguish the visible date range from curve smoothing. */
.microcap-heading-controls { align-items:flex-end; gap:22px; }
.microcap-control-group { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.microcap-board .microcap-control-label { font-size:10px; font-weight:500; color:#8b9891; letter-spacing:.04em; padding-left:3px; line-height:1.3; }
.microcap-board .microcap-smoothing-control { border:1px solid #e4eae6; background:transparent; padding:3px; min-height:36px; }
.microcap-board .microcap-smoothing-option { min-width:52px; min-height:28px; padding:5px 10px; font-size:11px; }
.microcap-board .microcap-smoothing-option.active { color:#357364; background:#eaf3ee; box-shadow:none; }
.microcap-board .microcap-smoothing-option:not(.active):hover { background:#f4f7f5; color:#536e60; }
.microcap-period-options button:focus-visible,.microcap-smoothing-option:focus-visible { outline:2px solid #80a598; outline-offset:2px; }
@media(max-width:650px) { .microcap-heading-controls { gap:16px; } }

/* CTA inline controls deliberately avoid the floating selector layout. */
.cta-inline-period { display:flex; align-items:center; gap:24px; flex-wrap:wrap; padding:16px 18px; border-radius:12px; background:#f6f8f7; }
.cta-inline-dates { flex:0 0 310px; min-width:0; }
.cta-inline-dates .floating-date-inputs { display:flex; align-items:center; gap:10px; }
.cta-inline-dates .floating-date-field { flex:1; min-width:0; width:auto; }
.cta-inline-dates .floating-date-input { width:100%; min-width:0; }
.cta-inline-presets { flex:1 1 480px; display:flex; flex-wrap:wrap; gap:4px; }
.cta-inline-presets button { border:0; background:transparent; color:#7b8983; padding:8px 12px; border-radius:8px; font-size:12px; white-space:nowrap; cursor:pointer; }
.cta-inline-presets button:hover { background:#eaf0ed; }
.cta-inline-presets button.active { color:#356c60; background:white; box-shadow:0 1px 5px #233c3010; }
.cta-inline-presets button:focus-visible { outline:2px solid #91b6a9; outline-offset:2px; }
.cta-annual-scroll { overflow-x:auto; }
.cta-environment-board .cta-yearly-score-table { min-width:720px; gap:0; }
.cta-annual-columns, .cta-environment-board .cta-yearly-score-row { display:grid; grid-template-columns:100px 130px minmax(220px,1fr) 64px 64px 64px; align-items:center; gap:16px; }
.cta-annual-columns { padding:12px 8px; background:#f6f8f7; border-radius:8px; color:#8a9690; font-size:11px; }
.cta-annual-columns span:nth-last-child(-n+3) { text-align:right; }
.cta-environment-board .cta-yearly-score-row { padding:14px 8px; min-height:64px; }
.cta-environment-board .cta-yearly-year { display:flex; align-items:baseline; gap:10px; }
.cta-environment-board .cta-yearly-year small { font-size:11px; color:#95a099; }
.cta-environment-board .cta-yearly-score { display:flex; align-items:center; gap:10px; }
.cta-environment-board .cta-yearly-score strong { background:none; min-height:0; padding:0; font-size:19px; font-weight:600; color:var(--annual-tone); }
.cta-environment-board .cta-yearly-score span { background:none; padding:0; font-size:11px; font-weight:400; color:var(--annual-tone); }
.cta-environment-board .cta-yearly-score--positive { --annual-tone:#568b7e; }
.cta-environment-board .cta-yearly-score--negative { --annual-tone:#b47c70; }
.cta-environment-board .cta-yearly-score--neutral { --annual-tone:#87958e; }
.cta-environment-board .cta-yearly-stack { min-height:20px; border-radius:5px; }
.cta-environment-board .cta-yearly-stack span { font-size:10px; font-weight:400; }
.cta-environment-board .cta-yearly-metrics { display:contents; }
.cta-environment-board .cta-yearly-metrics > * { text-align:right; font-size:12px; font-weight:400; }
.cta-environment-board .cta-yearly-metrics .positive { color:#568b7e; }
.cta-environment-board .cta-yearly-metrics .negative { color:#b47c70; }
@media(max-width:600px) { .cta-inline-dates { flex-basis:100%; } .cta-inline-presets { flex-basis:100%; } }

/* Shared research presentation: CTA, microcap, ETF flow and carry. */
:is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board,.correlation-chart-panel) {
  --research-muted:#89938e;
  --research-ink:#2d3936;
}
.cta-environment-board .cta-module,
.microcap-board.index-board > .index-module,
.etf-index-funds-board .etf-funds-chart-panel,
.carry-board > .carry-panel {
  padding:20px 22px!important; border-radius:18px!important;
  border:1px solid rgba(15,23,42,.065)!important;
  box-shadow:0 5px 18px rgba(31,52,45,.025)!important;
}
:is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board,.correlation-chart-panel) :is(.section-heading,.chart-heading,.carry-section-head) .eyebrow {
  margin:0 0 8px; color:#0071e3; font-size:12px; font-weight:720; letter-spacing:0; line-height:1.4;
}
.cta-environment-board :is(.section-heading,.chart-heading) h3,
.microcap-board.index-board .section-heading.compact h3,
.etf-index-funds-board .etf-funds-chart-panel .section-heading h3,
.carry-section-head h3 { line-height:1.2; }
:is(.cta-environment-board,.microcap-board,.carry-board) .carry-hero-metrics strong { font-size:26px; }
.cta-research-hero .carry-hero-metrics .cta-hero-state { font-size:20px; }
.research-period-group { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0; }
.research-control-label { font-size:10px; font-weight:500; color:#8b9891; letter-spacing:.04em; padding-left:3px; line-height:1.3; }
.cta-inline-period > .research-period-group { flex:1 1 480px; }
.cta-inline-presets { flex:initial; background:#f1f4f2; padding:3px; border-radius:9px; gap:3px; }
:is(.cta-inline-presets,.microcap-period-options,.etf-funds-periods,.carry-periods) button { min-height:30px; padding:7px 13px; border:0; border-radius:7px; font-size:12px; line-height:16px; font-weight:400; }
:is(.cta-inline-presets,.microcap-period-options,.etf-funds-periods,.carry-periods) button:focus-visible { outline:2px solid #80a598; outline-offset:2px; }
.carry-ranking-actions { align-items:flex-end; }
:is(.cta-environment-board,.microcap-board) .chart-tooltip,
.etf-index-funds-board .etf-funds-tooltip,
.carry-board .carry-chart-tooltip {
  padding:12px 15px; border:1px solid #e1e9e4; border-radius:12px;
  background:rgba(255,255,255,.98); box-shadow:0 8px 28px #2c483b16;
  color:#35483f; font-size:11px; font-variant-numeric:tabular-nums;
}
.etf-funds-research-note { border:0; border-top:1px solid #eaf0ec; border-radius:0; background:transparent; padding:14px 0 0; color:#78857f; }
.etf-funds-research-note p,.cta-environment-board .cta-index-notes p,.carry-notes,.microcap-board.index-board .microcap-chart-note { font-size:11px; line-height:1.75; color:#78857f; }
.etf-funds-research-note .etf-funds-universe-note>summary,.etf-funds-research-note strong,.carry-notes summary { color:#55685e; font-size:12px; }
@media(max-width:1000px) {
 :is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board) .carry-hero { grid-template-columns:1fr; gap:22px; }
 :is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board) .carry-asof { justify-content:flex-start; }
}
@media(max-width:650px) {
 .cta-environment-board .cta-module,.microcap-board.index-board > .index-module,.etf-index-funds-board .etf-funds-chart-panel,.carry-board > .carry-panel { padding:18px 16px!important; }
 .research-period-group { max-width:100%; }
 :is(.carry-periods,.microcap-period-options) { flex-wrap:wrap; }
 .cta-inline-period > .research-period-group { flex-basis:100%; }
 :is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board) .carry-hero { padding:22px 18px; }
 :is(.cta-environment-board,.microcap-board,.carry-board) .carry-hero-metrics strong { font-size:21px; }
}

.cta-environment-board .cta-index-heading-side { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cta-heading-period { display:flex; flex-direction:column; align-items:flex-end; gap:12px; max-width:100%; }
.cta-heading-period .cta-inline-dates { flex:initial; width:310px; max-width:100%; }
.cta-heading-period .research-period-group { flex:initial; }
.cta-heading-period .cta-inline-presets { flex-wrap:nowrap; }
@media(max-width:650px) { .cta-environment-board .cta-index-heading-side,.cta-heading-period { align-items:flex-start; max-width:100%; } }

/* Quiet dashboard readings, with a single shared baseline. */
.cta-environment-board .cta-dashboard-module .cta-dashboard-grid { grid-template-columns:1fr 1fr 1.15fr; gap:0; margin:8px 0 22px; }
.cta-environment-board .cta-dashboard-module :is(.cta-gauge-card,.cta-status-card) { padding:12px 28px; border-radius:0; background:transparent; box-shadow:none; min-width:0; }
.cta-environment-board .cta-dashboard-module .cta-gauge-card:first-child { padding-left:0; }
.cta-environment-board .cta-dashboard-module :is(.cta-gauge-card,.cta-status-card)+div { border-left:1px solid #e8eeea; }
.cta-environment-board .cta-dashboard-module .cta-gauge-copy { gap:14px; }
.cta-gauge-reading { display:flex; align-items:baseline; gap:12px; }
.cta-environment-board .cta-dashboard-module .cta-gauge-reading strong { font-size:36px; font-weight:550; letter-spacing:-.035em; }
.cta-environment-board .cta-dashboard-module .cta-gauge-reading small { font-size:11px; color:#8b9891; }
.cta-environment-board .cta-dashboard-module .cta-score-track { height:4px; margin-top:24px; }
.cta-environment-board .cta-dashboard-module .cta-score-scale { margin-top:8px; }
.cta-environment-board .cta-dashboard-module .cta-status-card { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:14px; padding-right:0; }
.cta-environment-board .cta-dashboard-module .cta-status-card > span { color:#7b8981; font-size:12px; }
.cta-environment-board .cta-dashboard-module .cta-status-card strong { margin:0; color:#445c50; font-size:28px; line-height:1.4; font-weight:550; }
.cta-environment-board .cta-dashboard-module .cta-status-card p { margin:0; font-size:11px; line-height:1.8; color:#89958e; max-width:390px; }
.cta-environment-board .cta-dashboard-module .cta-recent-state-panel { grid-template-columns:135px minmax(0,1fr); gap:24px; padding-top:20px; }
.cta-environment-board .cta-dashboard-module .cta-recent-state-panel > div:first-child { display:grid; gap:6px; }
.cta-environment-board .cta-dashboard-module .cta-recent-state-panel strong { font-size:12px; font-weight:550; color:#53695c; }
.cta-environment-board .cta-dashboard-module .cta-recent-state-panel > div:first-child span { font-size:10px; color:#8b9891; }
.cta-dashboard-module .cta-state-ribbon { padding:0; background:transparent; gap:3px; }
.cta-dashboard-module .cta-state-ribbon span { height:20px; border-radius:3px; }
.cta-dashboard-module .cta-state-ribbon span.latest { outline:1px solid #8ba69a; outline-offset:2px; box-shadow:none; }
.cta-environment-board .cta-dashboard-module .cta-state-ribbon-dates span { font-size:10px; color:#96a098; letter-spacing:0; }
@media(max-width:700px) {
 .cta-environment-board .cta-dashboard-module .cta-dashboard-grid { grid-template-columns:1fr 1fr; }
 .cta-environment-board .cta-dashboard-module .cta-gauge-card { padding:8px 16px; }
 .cta-environment-board .cta-dashboard-module .cta-status-card { grid-column:1/-1; border-left:0!important; border-top:1px solid #e8eeea; padding:18px 0 0; margin-top:18px; gap:8px; }
 .cta-environment-board .cta-dashboard-module .cta-recent-state-panel { grid-template-columns:1fr; gap:12px; }
 .cta-environment-board .cta-dashboard-module .cta-recent-state-panel > div:first-child { display:flex; align-items:baseline; gap:10px; }
}

/* Keep ETF's four headline metrics on one row, matching the shared hero height. */
@media(min-width:1001px) {
 :is(.cta-environment-board,.microcap-board,.etf-index-funds-board,.carry-board) .carry-hero, .fof-page-hero { min-height:224px; }
 .etf-index-funds-board .etf-funds-hero { grid-template-columns:minmax(270px,.8fr) minmax(560px,1.2fr); }
 .etf-funds-hero .etf-funds-summary { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; align-items:start; }
 .etf-funds-hero .etf-funds-summary .metric-tile { padding:0 14px; border-top:0; }
 .etf-funds-hero .etf-funds-summary .metric-tile span { min-height:30px; line-height:1.4; }
 .etf-funds-hero .etf-funds-summary .metric-tile strong { font-size:22px; }
}
@media(min-width:1001px) and (max-width:1200px) {
 .etf-index-funds-board .etf-funds-hero { grid-template-columns:minmax(240px,.75fr) minmax(490px,1.25fr); }
 .etf-funds-hero .etf-funds-summary .metric-tile { padding:0 10px; }
 .etf-funds-hero .etf-funds-summary .metric-tile strong { font-size:19px; }
}

.cta-environment-board .chart-tooltip.cta-reading-tooltip { width:216px; min-width:0; padding:12px 14px; border-radius:10px; box-shadow:0 4px 16px #2c483b12; pointer-events:none; }
.cta-reading-tooltip .cta-tip-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:10px; margin-bottom:9px; border-bottom:1px solid #edf1ee; }
.cta-reading-tooltip time { color:#687b70; font-size:11px; font-weight:500; }
.cta-environment-board .cta-reading-tooltip .cta-tip-state { display:inline-flex; align-items:center; gap:5px; color:#8a968f; font-size:10px; font-weight:400; margin:0; }
.cta-reading-tooltip i { display:inline-block; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.cta-reading-tooltip .cta-tip-row { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-top:7px; }
.cta-environment-board .cta-reading-tooltip .cta-tip-row span { display:flex; align-items:center; gap:7px; color:#7c8b82; font-size:11px; font-weight:400; margin:0; }
.cta-reading-tooltip .cta-tip-row b { color:#354f41; font-size:14px; font-weight:550; font-variant-numeric:tabular-nums; }
.cta-tip-trend { background:#568b7e; }
.cta-tip-pressure { background:#b5836c; }

/* Compact yearly comparison with methodology kept below the data. */
.cta-environment-board .cta-yearly-module .section-heading { margin-bottom:16px; }
.cta-environment-board .cta-yearly-module .cta-yearly-legend { margin:0 0 12px; gap:16px; }
.cta-environment-board .cta-yearly-module .cta-annual-columns { padding:9px 8px; }
.cta-environment-board .cta-yearly-module .cta-yearly-score-row { min-height:44px; padding:8px; }
.cta-environment-board .cta-yearly-module .cta-yearly-score strong { font-size:16px; line-height:1.25; }
.cta-environment-board .cta-yearly-module .cta-yearly-stack { min-height:16px; height:16px; border-radius:4px; }
.cta-environment-board .cta-yearly-module .cta-yearly-stack span { line-height:16px; }
.cta-annual-note { display:flex; flex-wrap:wrap; gap:8px 22px; margin:12px 0 0; color:#96a098; font-size:10px; font-weight:400; line-height:1.6; }

/* Remove the old gauge minimum height and tighten dashboard rhythm. */
.cta-environment-board .cta-dashboard-module .section-heading { margin-bottom:16px; }
.cta-environment-board .cta-dashboard-module .cta-dashboard-grid { margin:0 0 16px; }
.cta-environment-board .cta-dashboard-module :is(.cta-gauge-card,.cta-status-card) { min-height:0; padding-top:4px; padding-bottom:4px; }
.cta-environment-board .cta-dashboard-module .cta-gauge-copy { gap:8px; }
.cta-environment-board .cta-dashboard-module .cta-gauge-reading strong { font-size:32px; }
.cta-environment-board .cta-dashboard-module .cta-score-track { margin-top:14px; }
.cta-environment-board .cta-dashboard-module .cta-score-scale { margin-top:6px; }
.cta-environment-board .cta-dashboard-module .cta-status-card { gap:8px; }
.cta-environment-board .cta-dashboard-module .cta-status-card strong { font-size:26px; line-height:1.3; }
.cta-environment-board .cta-dashboard-module .cta-recent-state-panel { padding-top:16px; }
@media(max-width:700px) { .cta-environment-board .cta-dashboard-module .cta-status-card { padding-top:14px; } }

/* Carry hero headline metrics follow the ETF fund-flow hero typography. */
.carry-board .carry-hero .carry-hero-metrics strong { font-size:26px; font-weight:580; line-height:1.1; letter-spacing:-.025em; }
.carry-board .carry-hero .carry-hero-metrics span { font-size:11px; font-weight:400; }
.carry-board .carry-hero-copy p { line-height:1.7; }
@media(min-width:1001px) { .carry-board .carry-hero .carry-hero-metrics strong { font-size:22px; } }
@media(min-width:1001px) and (max-width:1200px) { .carry-board .carry-hero .carry-hero-metrics strong { font-size:19px; } }
@media(max-width:520px) { .carry-board .carry-hero .carry-hero-metrics strong { font-size:21px; } }
/* Portfolio controls share one center line, independent of screening controls. */
.carry-correlation > .carry-section-head { align-items:center; }
.carry-correlation .carry-ranking-actions { align-items:center; gap:16px; }
.carry-correlation .carry-count-input { margin:0; align-self:center; }
.carry-custom-toggle { height:36px; padding:0 13px; border:1px solid #e2e9e5; border-radius:9px; background:#fafcfb; color:#78857f; font:500 12px var(--font-ui); cursor:pointer; }
.carry-custom-toggle.is-active { background:#e5efea; color:#315d55; }
.carry-custom-toggle:focus-visible,.carry-custom-picker input:focus-visible { outline:2px solid #8a9b91; outline-offset:2px; }
.carry-custom-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:10px; margin:16px 0 20px; }
.carry-custom-picker label { display:flex; align-items:center; gap:8px; margin:0; padding:10px; border:1px solid #e2e9e5; border-radius:9px; font-size:12px; }
.carry-custom-picker label > span:nth-child(3) { flex:1; }
.carry-custom-picker small { color:#849189; }
.carry-custom-picker input[type="checkbox"] { appearance:auto; width:16px; height:16px; min-height:0; flex:0 0 16px; margin:0; accent-color:#315d55; cursor:pointer; }
.carry-custom-direction { white-space:nowrap; }
@media(max-width:640px) { .carry-correlation .carry-ranking-actions { justify-content:flex-start; gap:10px; } .carry-custom-picker { grid-template-columns:1fr; } }
/* IV uses carry-board/panel/head/period/table primitives; only chart geometry is local. */
.iv-dashboard .carry-hero-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.iv-panel > .carry-section-head { align-items:center; }
.iv-sectors { width:fit-content; max-width:100%; flex-wrap:wrap; margin:0 0 20px; }
.iv-chart-wrap { position:relative; }
.iv-chart-wrap svg { display:block; width:100%; height:320px; overflow:visible; }
.iv-chart-wrap text { fill:#89938e; font:10px var(--font-ui); }
.iv-tooltip { position:absolute; top:20px; width:286px; max-width:100%; pointer-events:none; z-index:3; }
.iv-tooltip strong,.iv-tooltip small,.iv-tooltip span { display:block; margin:5px 0; }
.iv-tooltip span>b { float:right; }
.iv-tooltip small { color:#89938e; font-size:10px; }
.iv-tip-sources { border-top:1px solid #eaf0ec; margin-top:10px; padding-top:10px; }
.iv-method { padding:0 8px; font-size:11px; line-height:1.75; color:#78857f; }
.iv-method p { margin:7px 0; }
.iv-method summary { cursor:pointer; color:#55685e; font-size:12px; }
.iv-heat-key { display:flex; align-items:center; gap:9px; color:#89938e; font-size:10px; margin:0 0 12px; flex-wrap:wrap; }
.iv-heat-key i { width:100px; height:8px; border-radius:4px; background:linear-gradient(90deg,rgba(39,128,108,.42),rgba(39,128,108,.04),rgba(180,79,69,.42)); }
.iv-heat-key small { margin-left:auto; }
.iv-heat-scroll { max-width:100%; }
.iv-heat { table-layout:fixed; border-spacing:2px; }
.iv-heat td,.iv-heat th { min-width:0; height:38px; padding:0; text-align:center; border-radius:3px; }
.iv-heat thead th { background:transparent; color:#8b9690; font-size:10px; font-weight:450; height:32px; }
.iv-heat th:first-child { position:sticky; left:0; background:#fff; text-align:left; z-index:2; padding-left:8px; }
.iv-heat tbody th { font-weight:500; }
.iv-heat .iv-group-start > * { border-top:8px solid #fff; height:46px; }
.iv-heat tbody tr:hover th { color:#315d55; }
.iv-panel .iv-heat-scroll + .iv-note { margin-top:18px; padding-top:12px; border-top:1px solid #eef1ef; }

.iv-heat button.is-active { color:#315d55; font-weight:550; }
@media(max-width:700px) { .iv-chart-wrap svg {height:270px;} .iv-heat-key small {margin-left:0;} }

.iv-trend-controls { display:flex; align-items:flex-end; flex-wrap:wrap; gap:16px; max-width:100%; }

.self-research-trend[data-self-nav-preview] { cursor: zoom-in; }
.self-research-trend[data-self-nav-preview]:focus-visible { outline: 2px solid #4b7cff; outline-offset: -3px; }
.chart-tooltip.self-research-nav-tooltip { position: fixed; z-index: 1200; width: min(720px, calc(100vw - 20px)); max-width: calc(100vw - 20px); }
.chart-tooltip.self-research-nav-tooltip.is-visible { display: grid; }
/* Dividend modules reuse the microcap heading, controls and metric strip. */
.dividend-board .microcap-valuation-heading { align-items:center; gap:24px; }
.dividend-board .microcap-heading-controls { margin-left:auto; }
.dividend-board .microcap-smoothing-control { grid-template-columns:repeat(4,minmax(0,1fr)); }
.dividend-return-window { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin:-4px 0 18px; }
.dividend-board .dividend-relative-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:1100px) { .dividend-board .microcap-valuation-heading { flex-wrap:wrap; } .dividend-board .microcap-heading-controls { margin-left:0; justify-content:flex-start; } .dividend-return-window { justify-content:flex-start; } }
@media(max-width:650px) { .dividend-board .microcap-period-options { flex-wrap:wrap; } .dividend-board .dividend-relative-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.dividend-legend { display:flex; flex-wrap:wrap; gap:20px; padding:12px 8px; font-size:12px; color:var(--muted,#748078); }
.dividend-legend span { display:flex; align-items:center; gap:7px; }
.dividend-legend i { width:18px; height:3px; border-radius:2px; }
.dividend-chart-wrap { position:relative; }
.dividend-chart-wrap svg { display:block; width:100%; height:350px; overflow:visible; }
.dividend-chart-wrap svg text { font:11px var(--font-ui,sans-serif); fill:var(--muted,#748078); }
.dividend-tooltip { top:35px; pointer-events:none; min-width:220px; z-index:3; }
.dividend-tooltip span { display:flex; justify-content:space-between; gap:18px; }
.dividend-dates { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; }
.dividend-dates input,.dividend-dates button { font:inherit; border:1px solid var(--line,#dce4df); border-radius:7px; padding:7px 10px; background:var(--surface,#fff); color:inherit; }
.dividend-empty { padding:70px 20px; text-align:center; color:var(--muted,#748078); }
@media(max-width:600px) { .dividend-chart-wrap svg { height:280px; } .dividend-legend { gap:10px; } }
