/* 经确认的四页界面：只调整导航和呈现，报告内容与交易信号配色保持原计算结果。 */
html[data-theme="reference"]{--page:#F3F2F8;--accent:#6C59D5;--ink:#292640;--theme-primary:#7866ED;--theme-secondary:#E9E4FF;--theme-soft:#EDE9FC;--theme-edge:#DDD6F7;--rule:#E7E1F3}
html[data-theme] body{padding-left:220px;background:linear-gradient(150deg,var(--theme-edge) -45%,var(--page) 65%);background-attachment:fixed}
.desktop-nav{position:fixed;left:0;top:0;bottom:0;width:220px;background:#ffffffa8;border-right:1px solid white;padding:32px 20px;display:flex;flex-direction:column;gap:10px;z-index:16}.nav-brand{display:flex;align-items:center;gap:11px;font-size:23px;margin-bottom:42px}.nav-brand img{width:44px;height:44px;border-radius:16px}.desktop-nav button{display:flex;align-items:center;gap:16px;border:0;text-align:left;border-radius:20px;padding:16px 20px;color:#8a839b;background:transparent;font-size:14px}.desktop-nav button.active{background:var(--theme-soft);color:var(--accent);font-weight:650}.desktop-nav p{margin:auto 15px 22px;font-size:13px;color:#9d94ac;line-height:2.1}
header{height:90px;max-width:1250px;padding:0 42px;margin:auto}.brand{font-size:17px}.brand-logo{width:35px;height:35px;border-radius:13px}.provider{background:transparent!important;color:#8b829c!important}#navAccount .profile-initial{width:39px;height:39px;font-size:14px}.profile-initial{display:inline-grid;place-items:center;background:#fff;color:var(--accent);font-weight:700;border-radius:50%;width:65px;height:65px;font-size:25px}.layout{display:block;max-width:1250px;padding:0 42px 50px}.layout>aside,.layout>main,.layout>.extra-pane{display:none!important}body[data-pane="watch"] .layout>#watchPane,body[data-pane="analysis"] .layout>#analysisPane,body[data-pane="plan"] .layout>#planPane,body[data-pane="profile"] .layout>#profilePane{display:block!important}html[data-theme] .layout #watchPane{position:static;max-height:none;background:transparent;padding:0;border:0;overflow:visible}.layout #analysisPane{padding:0}.ui-page-head{margin:10px 0 26px}.ui-page-head h1{margin:0;font-size:29px;letter-spacing:-.6px}.ui-page-head p{font-size:12px;color:#8b849b;margin:7px 0 0}.home-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:23px;margin-bottom:28px}.ui-hero{position:relative;min-height:270px;border-radius:32px;overflow:hidden;padding:32px;background:linear-gradient(120deg,var(--theme-edge),var(--theme-soft) 66%,#faecf6)}.hero-copy{position:relative;z-index:1;max-width:61%}.hero-copy small{font-size:11px;color:var(--accent)}.hero-copy h2{font-size:28px;line-height:1.45;margin:14px 0 12px;letter-spacing:-.6px}.hero-copy p{font-size:12px;color:#8b809d;line-height:1.85;margin:0 0 18px}.hero-copy button{border-radius:24px;padding:11px 20px;font-size:12px}.hero-art{position:absolute;right:-3px;bottom:0;width:49%;height:245px}.home-metrics{display:grid;grid-template-columns:1fr;gap:16px}.ui-card{background:white;padding:24px;border-radius:27px;box-shadow:0 10px 30px #49397606}.ui-card small{font-size:11px;color:#92879e}.home-metrics strong{display:block;font-size:29px;font-weight:650;line-height:1.5;margin:8px 0}.ui-card em{font-size:12px;font-style:normal;color:#92879e;font-weight:400}.home-metrics p{font-size:11px;color:#92879e;margin:0}.home-metrics button{padding:0;border:0;background:none;color:var(--accent);font-size:11px;min-height:0}.watch-heading{margin-bottom:16px}.watch-heading h3{font-size:21px}.side-search{max-width:640px;padding:5px;border:0}.side-search #q{padding:12px 15px;font-size:13px}.watch-filters{width:max-content;gap:8px;margin:20px 0}.watch-filters button{min-width:70px}.layout #watchlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.watch-item{border:0;border-radius:25px;padding:23px;background:#fff;box-shadow:0 8px 28px #4c398907}.watch-item.selected{box-shadow:none!important;background:#fff!important;border:1px solid var(--theme-edge)}.watch-name{padding-right:22px}.watch-name strong{font-size:17px}.watch-chg{font-size:15px;background:transparent!important;padding:0}.watch-meta{flex-wrap:wrap;margin:9px 0 12px;gap:8px}.watch-signal{border-radius:9px;padding:4px 9px}.watch-signal-time{font-size:10px}.watch-sig-line{font-size:11px;white-space:normal;line-height:1.9}.watch-budget{border-top:1px solid #f3eff7;padding-top:12px;margin-top:12px;color:var(--accent);width:100%;text-align:left}.watch-remove{top:15px;right:12px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--theme-soft);color:#b4a8bd;font-size:15px;line-height:1}.watch-remove:hover{color:#AB2936;background:#f6e4e6}.back-link{border:0;background:none;color:#9b8ba6;padding:0;margin-bottom:19px;font-size:12px}.quote-panel{border:0!important;background:#fff;border-radius:28px;padding:26px!important}#report .wrap{background:transparent;border:0;overflow:visible}#report .wrap>.card{padding:27px;border-radius:28px;background:white;margin:18px 0;border:0;box-shadow:0 8px 25px #47335906}#report h2{color:var(--ink)!important}#report .svgbox{border-radius:18px}#report .overview-nav{margin-top:12px}.report-overview{border-radius:27px!important;background:var(--theme-soft)}.overview-budget{border-radius:22px!important}.overview-count{border-radius:50%;outline:0;border:7px solid var(--theme-edge);width:104px;height:104px}.report-actions button{border-radius:20px}.overview-nav{border:0!important;background:transparent!important}.overview-nav a{background:white;border-radius:20px;padding:7px 13px}.plans-layout,.profile-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:23px;align-items:start}.plan-item{margin-bottom:18px}.plan-item>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px}.plan-item h2,.ui-card h2{font-size:18px;margin:0 0 15px}.plan-item button{font-size:12px;border:0;background:none;color:var(--accent)}.plan-item>strong{display:block;font-size:32px;margin:12px 0}.plan-progress{height:8px;border-radius:10px;background:var(--theme-soft);overflow:hidden;margin:20px 0 10px}.plan-progress i{display:block;height:100%;background:var(--accent);border-radius:10px}.plan-item p{font-size:12px;color:#8b8198}.plan-note{background:linear-gradient(140deg,var(--theme-soft),#fff5e8)}.plan-note p{color:#918299;font-size:13px;line-height:2}.profile-hero{display:flex;align-items:center;gap:20px;background:linear-gradient(125deg,var(--theme-edge),#f9edf7);margin-bottom:20px}.profile-hero p{font-size:12px;color:#8f839c;margin:0}.settings-rows{display:grid;padding:10px 25px}.settings-rows button{padding:22px 0;border:0;background:none;display:flex;justify-content:space-between;gap:12px;text-align:left;white-space:normal}.settings-rows button+button{border-top:1px solid #f2edf6}.settings-rows span{font-size:11px;color:#9f91a9}.logo-options{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.logo-options button{display:grid;justify-items:center;gap:12px;border:2px solid transparent;background:var(--theme-soft);border-radius:23px;padding:20px}.logo-options img{width:82px;height:82px;border-radius:24px}.logo-options [aria-pressed="true"]{border-color:var(--accent)}dialog{border:0;border-radius:29px;padding:28px}.status{padding:6px 42px 16px}.theme-options>button{border-radius:19px}#gate .box{border:0;padding:36px}#gate .login-brand img{border-radius:17px}.bottom-nav{display:none}button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:1100px) and (min-width:821px){html[data-theme] body{padding-left:180px}.desktop-nav{width:180px;padding:26px 15px}.layout,header{padding-left:26px;padding-right:26px}.home-grid{grid-template-columns:1fr}.home-metrics{grid-template-columns:1fr 1fr}.plans-layout,.profile-layout{grid-template-columns:1fr}.layout #watchlist{grid-template-columns:1fr}}
@media(max-width:820px){html[data-theme] body{padding-left:0}.desktop-nav{display:none}header{height:72px;padding:0 20px}.brand{font-size:14px;gap:8px}.brand-logo{width:29px;height:29px;border-radius:10px}.layout{padding:0 19px 116px}html[data-theme] .layout #watchPane{padding:0}.ui-page-head{margin:9px 0 24px}.ui-page-head h1{font-size:27px}.ui-page-head p{font-size:11px}.home-grid{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.ui-hero{min-height:245px;padding:26px}.hero-copy h2{font-size:25px}.hero-copy p{font-size:10px}.hero-copy small{font-size:10px}.hero-art{height:212px;width:51%}.hero-copy button{font-size:11px;padding:10px 15px}.home-metrics{grid-template-columns:1fr 1fr;gap:12px}.home-metrics .ui-card{padding:18px}.home-metrics strong{font-size:26px;margin:3px 0}.home-metrics p{font-size:9px}.watch-heading h3{font-size:21px}.layout #watchlist{grid-template-columns:1fr;gap:13px}.watch-item{padding:20px;border-radius:25px}.watch-name strong{font-size:16px}.watch-filters{width:100%;background:transparent}.watch-filters button{flex:1;min-width:0;background:transparent}.watch-meta{margin-top:9px}.plans-layout,.profile-layout{grid-template-columns:1fr;gap:15px}.ui-card{padding:23px}.ui-card h2{font-size:17px}.status{padding:6px 19px 14px}.bottom-nav{display:flex;position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:15px;right:15px;border:1px solid white;background:#fffffff0;border-radius:33px;box-shadow:0 6px 25px #4d337713;padding:6px;backdrop-filter:blur(18px);z-index:20}.bottom-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;padding:9px 0;border-radius:26px;font-size:10px;min-height:55px;background:transparent}.bottom-nav button.active{background:var(--theme-soft)!important}.bottom-nav .app-icon{width:21px;height:21px}.bottom-nav .active:after{display:none!important}dialog:not(#chartDialog){margin:auto 0 0;width:100%!important;max-width:100%!important;max-height:88vh;border-radius:30px 30px 0 0!important;padding:27px 23px max(27px,env(safe-area-inset-bottom));}#themeDialog .theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}#report .wrap>.card{padding:21px 15px;border-radius:24px}.quote-panel{padding:23px!important}#chartDialog{width:calc(100vw - 20px);max-height:92vh;padding:14px}.overview-count{min-width:80px;width:80px;height:80px}.overview-headline{font-size:21px}#report .wrap{overflow:visible}}

/* 手机直接下载已签名原生安装包；不进入网页离线资源包。 */
.apk-download{display:flex;justify-content:space-between;gap:12px;padding:22px 0;color:var(--ink);text-decoration:none;border-top:1px solid #f2edf6;font-size:13px}.apk-download span{color:#9f91a9;font-size:11px}

/* ===========================================================================
   导航小红点 / 计划页分区与区间尺 / 宏观页
   主题色统一走 html[data-theme] 注入的 --accent / --theme-soft / --theme-edge；
   涨跌色固定 var(--buy) 红 / var(--sell) 绿，不随主题漂移。
   =========================================================================== */

/* --- 计划栏小红点/小绿点：只表达「现在有标的落在买入区 / 卖出区」，不是未读数 ---
   2026-10-02 用户要求：买入区有符合 → 计划左边一个红点；卖出区有符合 → 计划右边一个绿点。
   买卖色用固定的 var(--buy)/var(--sell)（涨红跌绿），不随主题漂移。 */
.bottom-nav button,.desktop-nav button{position:relative}
.nav-dot{position:absolute;display:block;width:7px;height:7px;border-radius:50%;background:var(--buy,#E5484D);box-shadow:0 0 0 2px #fff}
.nav-dot.dot-sell{background:var(--sell,#0F9D58)}
.bottom-nav .nav-dot.dot-buy{top:4px;left:50%;margin-left:-14px}
.bottom-nav .nav-dot.dot-sell{top:4px;left:50%;margin-left:6px}
.desktop-nav .nav-dot.dot-buy{top:9px;left:37px}
.desktop-nav .nav-dot.dot-sell{top:9px;left:50px}

/* --- 计划页：参考利率条 --- */
.rates-bar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.rates-bar .r{display:flex;flex-direction:column;gap:3px;background:#fff;border-radius:18px;padding:12px 16px;box-shadow:0 8px 28px #4c398907;min-width:132px}
.rates-bar .r small{font-size:10.5px;color:#92879e}
.rates-bar .r b{font-size:17px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.rates-bar .r.note{flex-direction:row;align-items:center;gap:6px;background:var(--theme-soft);color:#7c7192;font-size:11px;min-width:0;flex:1 1 220px}
.rates-bar .r.note b{font-size:11px;color:var(--accent)}

/* --- 计划页：分区标签栏 --- */
.zonetabs{display:flex;gap:6px;margin:0 0 16px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.zonetabs::-webkit-scrollbar{display:none}
.zonetabs.scrollable{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.zonetabs .zt{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#8b849b;font-size:12.5px;padding:8px 12px;border-radius:14px;white-space:nowrap}
.zonetabs .zt em{font-style:normal;font-size:11px;color:#a9a3b2;font-variant-numeric:tabular-nums}
.zonetabs .zt[aria-selected="true"]{background:#fff;color:var(--accent);font-weight:650;box-shadow:0 6px 18px #49397608}
.zonetabs .zt[aria-selected="true"] em{color:var(--accent)}
.zonetabs .zt.buy[aria-selected="true"]{color:#a32a33}
.zonetabs .zt.sell[aria-selected="true"]{color:#0d714c}
/* 三个分区标签上的「符合数量」角标（2026-10-02）：买入红、卖出绿、合理中性 ——
   与卡片里「买入区 up / 卖出区 down」用的是同一套颜色语言，一眼能对上分区。 */
.zonetabs .zt .zbadge{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:9px;font-size:10px;font-weight:700;font-style:normal;color:#fff;background:#a9a3b2;font-variant-numeric:tabular-nums;line-height:1}
.zonetabs .zt.buy .zbadge{background:var(--buy,#BD2630)}
.zonetabs .zt.sell .zbadge{background:var(--sell,#087850)}
.zonetabs .zt[aria-selected="true"] .zbadge{color:#fff!important}

/* --- 计划卡 --- */
.plan-item{padding:22px 24px}
.plan-item .pi-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.plan-item .pi-head h2{font-size:18px;margin:0 0 9px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.plan-item .pi-code{font-size:11px;font-weight:400;color:#a9a3b2;font-variant-numeric:tabular-nums}
.plan-item .pi-q{text-align:right;flex:0 0 auto}
.plan-item .pi-q b{display:block;font-size:22px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.plan-item .pi-q small{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.plan-item .chip{display:inline-block;border-radius:9px;padding:3px 9px;font-size:11.5px;font-weight:600;background:#f1eff7;color:#7c7192}
.plan-item .chip.buy{background:#FBE7E9;color:#AB2936}
.plan-item .chip.sell{background:#E2F1EA;color:#0D714C}
.plan-item .chip.none{background:#f1f1f4;color:#9aa0aa}
.plan-item .up{color:var(--buy)}
.plan-item .down{color:var(--sell)}

/* --- 三个参考数 --- */
.mets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.mets .m{background:#faf9fc;border-radius:16px;padding:13px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.mets .m b{font-size:20px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.25}
.mets .m.wide b{font-size:15px}
.mets .m b.up{color:var(--buy)}
.mets .m b.down{color:var(--sell)}
.mets .m small{font-size:10.5px;color:#92879e}
.mets .m .sub{font-size:10px;color:#b0aab8;line-height:1.5}
.pctline{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.pctline .pl-lab{font-size:11.5px;color:#8b849b}
.pctline .pl-lab b{color:var(--ink);font-variant-numeric:tabular-nums}
.pctline .pct{position:relative;display:block;height:10px;border-radius:6px;background:#EFF0F4}
.pctline .pct i{position:absolute;top:-3px;width:3px;height:16px;border-radius:2px;background:var(--accent)}
.pctline .pct u{position:absolute;top:14px;font-size:9.5px;color:#c3c8cf;text-decoration:none}
.pctline{padding-bottom:14px}
.pctline.no-track{padding-bottom:0}

/* --- 区间尺 --- */
.dv{--dv-pad-x:16px;background:#faf9fc;border-radius:16px;padding:15px var(--dv-pad-x) 13px;margin-bottom:16px}
.dv-empty{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.dv-empty p{margin:0;font-size:12px;color:#8b849b}
.dv-empty button{border:0;background:none;color:var(--accent);font-size:12.5px;padding:0}
.dv-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.dv-head b{font-size:12.5px;color:var(--ink)}
.dv-head button{border:0;background:none;color:var(--accent);font-size:11.5px;padding:0}
/* 横条横向出血到面板两侧：这是「左右各短一截」的**第二个**来源（第一个是数据范围外扩 8%）。
   尺子这条轨道要跟卡内其他元素（标题 / 三格数据 / 按钮）一样宽，所以用负外边距抵掉面板的 16px 内边距。
   实测（390px 视口）：不外扩时轨道两端各欠 16px，出血后正好落在卡内容左右边缘。
   标签层跟着一起出血，首 / 末标签用 .edge-l / .edge-r 贴边对齐，正好压在卡内最左 / 最右，不越界。 */
/* 纵向三段各占各的带，谁也别压谁：气泡 0–15.7 / 轨道 21–29 / 标签 33–56.9，总高 58（与安卓端同节奏）。
   旧版 `.dv-ruler` 只有 26px 高、而 `.dv-scale` 又在正常流里从 0 开始 —— 实测气泡 −1~18.8、
   轨道 9~17、标签 0~16.2 **三段全挤在同一条带里**：刻度文字压在轨道上，现价气泡又盖住
   附近的刻度（56.00 被 53.29 吃掉）。安卓端一直是分开的（58dp 三段），这次把网页端对齐过来。
   行高必须写死：`line-height` 从 body 继承下来是 1.7，光一个 10.5px 的气泡就被撑到 20px 高，
   气泡和轨道又会重新压上 —— 和安卓端 chip 要 `setLineSpacing(0,1f)` 是同一个坑。 */
.dv-ruler{position:relative;height:58px;margin-bottom:8px;margin-left:calc(-1 * var(--dv-pad-x));margin-right:calc(-1 * var(--dv-pad-x))}
.dv-track{position:absolute;top:21px;left:0;right:0;height:8px;border-radius:6px;background:#EFF0F4;overflow:hidden}
.dv-track i{position:absolute;top:0;height:100%}
.dv-track .sg-buy{background:#D99097}
.dv-track .sg-fair{background:#D9D6E2}
.dv-track .sg-sell{background:#77C1A3}
.dv-cur{position:absolute;top:0;transform:translateX(-50%)}
.dv-cur b{display:block;line-height:1.3;font-size:10.5px;color:#fff;background:var(--accent);border-radius:7px;padding:1px 6px;white-space:nowrap;font-variant-numeric:tabular-nums}
/* 标签单独占一条带（绝对定位，top:33）—— 在正常流里会从头开始、压到轨道上。
   高度交出去不管了：`.dv-ruler` 固定 58px，够放一行(33–44.9)或错行两行(45–56.9)。 */
.dv-scale{position:absolute;top:33px;left:0;right:0}
.dv-scale span{position:absolute;transform:translateX(-50%);font-size:9.5px;line-height:1.25;color:#b0aab8;white-space:nowrap;font-variant-numeric:tabular-nums}
/* 轨道铺满整宽（外扩 0）后，最外侧两个刻度正好落在 0% 和 100%，居中会让半个标签跑出容器。
   首标签把左边缘、末标签把右边缘对齐到自己的刻度 —— 只改锚点，刻度位置一点没动。 */
.dv-scale span.edge-l{transform:none}
.dv-scale span.edge-r{transform:translateX(-100%)}
/* 四条界线标签挨太近时错开成上下两行（位置仍按真实刻度，只换行不挪位）——
   「78.33 / 94.00 / 117.50 / 134.29」四个值挤在一行时，中间的会互相压住。
   行高由 `.dv-ruler` 的 56px 兜住：单行 30–42、两行 30–54，都不用再撑容器。 */
.dv-scale.staggered{height:28px}
.dv-scale span.row2{top:12px}
.dv-legend{display:flex;gap:14px;margin:6px 0 10px}
.dv-legend span{display:flex;align-items:center;gap:5px;font-size:10.5px;color:#92879e}
.dv-legend i{width:8px;height:8px;border-radius:3px;display:block}
.dv-legend .lg-buy{background:#D99097}
.dv-legend .lg-fair{background:#D9D6E2}
.dv-legend .lg-sell{background:#77C1A3}
.dv-nums{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:11px;color:#92879e}
.dv-nums b{color:var(--ink);font-variant-numeric:tabular-nums}
.dv-nums b.up{color:var(--buy)}
.dv-nums b.down{color:var(--sell)}
.dv-verdict{margin-top:9px;font-size:11.5px;color:#7c7192}

/* --- 备注：卡片上的入口按钮 + 只读弹窗 --- */
.plan-item .b-note{position:relative}
.plan-item .b-note.has-note::after{content:"";position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.note-read{max-height:min(56vh,440px);overflow:auto;font-size:13px;line-height:1.9;color:var(--ink,#252830);background:var(--theme-soft,#f7f5fb);border-radius:16px;padding:16px 18px;margin:4px 0 18px;word-break:break-word}
.note-read p{margin:0 0 10px}
.note-read p:last-child{margin-bottom:0}
.note-read ul{margin:0 0 10px;padding-left:20px}
.note-read li{margin:0 0 4px}
.note-read b{font-weight:700}
.note-read .note-empty{color:#92879e;font-size:12.5px}

/* --- 计划卡动作 --- */
/* 2.6.12 清掉三条死规则：`.pi-amount` / `.arow`（原「计划金额 + 进度条」整块）、
   `.cap-track`（那条进度条）以及 `.cap-chip`（名称旁的「上限 X 成」徽标）。
   前几条在 2026-10-02 删块时就没人用了，`cap-chip` 是 2.6.12 撤徽标时一起走 ——
   全量 grep 过 `site/app.js` 与 `site/index.html`，零引用。 */
.plan-item .pi-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:16px}
.plan-item .pi-actions button{font-size:12.5px}
.plan-item .pi-actions .b-ghost{border:1px solid var(--theme-edge);background:#fff;color:var(--accent);border-radius:12px;padding:8px 14px}
.plan-item .pi-actions .b-ghost:hover{border-color:var(--accent)}
.plan-item .pi-actions .b-plain{border:0;background:none;color:var(--accent);padding:8px 2px;margin-left:auto}
.pi-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.pi-empty b{font-size:15px}
.pi-empty p{margin:0;font-size:12.5px;color:#8b849b;line-height:1.85}
.pi-empty button{border:0;border-radius:14px;padding:10px 18px;font-size:12.5px;color:#fff;background:var(--accent)}
.plan-error{font-size:12px;color:#AB2936;margin:0 0 12px}

/* --- 分红定价弹层 --- */
.div-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin-bottom:16px}
.div-grid label{display:flex;flex-direction:column;gap:6px;font-size:11.5px;color:#8b849b}
.div-grid input{margin:0}
.div-preview{background:#faf9fc;border-radius:14px;padding:14px 15px;display:flex;flex-direction:column;gap:8px}
.div-preview .cp-row{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;color:#8b849b}
.div-preview .cp-row b{color:var(--ink);font-variant-numeric:tabular-nums}
.div-preview .div-error,.div-preview .div-ok{margin:2px 0 0;font-size:12px}
.div-preview .div-error{color:#AB2936}
.div-preview .div-ok{color:#0D714C}
#divError{color:#AB2936;font-size:12px;min-height:16px;margin:10px 0 0}
#divDialog{width:min(600px,calc(100vw - 28px))}

.pane-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.pane-head>span{font-size:11.5px;color:#92879e}
.pane-actions{display:flex;gap:9px}
.pane-actions button{border:1px solid var(--theme-edge);background:#fff;color:var(--accent);border-radius:13px;padding:9px 15px;font-size:12.5px}
.pane-actions button.primary{border-color:var(--accent);background:var(--accent);color:#fff}

/* --- 指数估值 --- */
[data-pane="valuation"] .layout>#valuationPane{display:block!important}
.valuation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.val-card{display:flex;flex-direction:column;gap:6px;background:#fff;border-radius:20px;padding:18px 20px;box-shadow:0 8px 28px #4c398907;min-width:0}
.val-card .val-name{font-size:12px;color:#92879e;font-weight:500}
.val-card .val-big{font-size:28px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.1}
.val-card .val-sub{font-size:10.5px;color:#92879e;font-variant-numeric:tabular-nums}

@media(max-width:820px){

  .mets{grid-template-columns:1fr 1fr;gap:8px}
  .mets .m{padding:11px 12px;border-radius:14px}
  .mets .m b{font-size:17px}
  .mets .m.wide b{font-size:13.5px}

  .plan-item{padding:18px}
  .plan-item .pi-actions .b-plain{margin-left:0}
  .valuation-list{grid-template-columns:1fr;gap:10px}
  /* 三个参考数在手机上也并排，避免第三张单独占一行显得像出错。 */
  .rates-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .rates-bar .r{min-width:0;padding:10px 12px;border-radius:14px;gap:2px}
  .rates-bar .r small{font-size:9.5px;line-height:1.35}
  .rates-bar .r b{font-size:14px}
  .rates-bar .r.note{grid-column:1 / -1;padding:10px 12px}
  .dv-grid,.div-grid{grid-template-columns:1fr}
  .plan-item .pi-q b{font-size:19px}
}

/* 品牌图标弹层改成自适应网格：66 个候选，两列大卡要滚很久，图标本身就是内容。 */
.logo-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:10px;width:min(86vw,470px);max-height:min(56vh,420px);overflow:auto;padding:2px}
.logo-options button{display:block;border:2px solid transparent;background:var(--theme-soft);border-radius:17px;padding:4px;line-height:0}
.logo-options button img{width:100%;height:auto;aspect-ratio:1;border-radius:13px;display:block}
.logo-options [aria-pressed="true"]{border-color:var(--accent);background:var(--theme-edge)}

/* 分红定价弹窗：投资备注富文本编辑器。
   工具栏 = 单一胶囊容器（segmented pill），按钮透明底、悬停浮起，色点 16px 正圆带细环；
   拒绝「每个按钮一块色底」的松散感。 */
.note-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.note-field .note-label{font-size:11.5px;color:#8b849b}
.note-toolbar{display:inline-flex;align-items:center;gap:1px;width:max-content;background:var(--theme-soft);border-radius:999px;padding:4px}
.note-toolbar .nt-sep{width:1px;height:16px;background:rgba(0,0,0,.09);margin:0 5px;flex:0 0 auto}
.note-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:26px;min-width:0;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;color:#6f6880;cursor:pointer;transition:background .15s,color .15s;box-sizing:border-box}
.note-toolbar button:hover{background:#fff;color:var(--ink)}
.note-toolbar button:active{transform:none}
.note-toolbar .nt-bold{font-weight:800;font-family:Georgia,'Times New Roman',serif;font-size:14.5px}
.note-toolbar .nt-list svg{display:block}
.note-toolbar button.nc{width:17px;height:17px;flex:0 0 17px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.note-toolbar button.nc:hover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 0 0 2px #fff}
.note-toolbar .nc.default{background:#1b334b}
.note-toolbar .nc.red{background:#bd4e45}
.note-toolbar .nc.green{background:#247956}
.note-toolbar .nc.blue{background:#3f6990}
.note-editor{min-height:88px;max-height:180px;overflow:auto;padding:11px 13px;border:1px solid var(--theme-edge);border-radius:14px;background:var(--bg);font-size:13px;line-height:1.65;color:var(--ink)}
.note-editor:empty::before{content:attr(data-placeholder);color:#b7b3c0}
.note-editor p{margin:0 0 6px}
.note-editor ul{margin:0 0 6px;padding-left:20px}
.note-editor li{margin:2px 0}
.note-editor:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}

/* --- 战法笔记（PDF 原文备查） --- */
body[data-pane="strategy"] .layout>#strategyPane{display:block!important}
.strat{max-width:820px}
.strat-hero{padding:22px 24px 19px;border-radius:26px;background:linear-gradient(135deg,var(--theme-soft),var(--paper));border:1px solid var(--theme-edge)}
.strat-hero small{display:inline-block;font-size:11px;letter-spacing:.08em;color:var(--accent)}
.strat-hero h1{margin:10px 0 0;font-size:27px;letter-spacing:-.6px;line-height:1.25}
.strat-sub{margin:7px 0 0;font-size:12.5px;color:var(--muted)}
.strat-params{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 0}
.strat-params span{display:inline-flex;align-items:baseline;gap:7px;padding:7px 13px;border-radius:999px;background:var(--paper);border:1px solid var(--theme-edge);font-size:12.5px;color:var(--ink);font-variant-numeric:tabular-nums}
.strat-params b{font-size:11px;color:var(--accent);font-weight:600}
.strat-lead{margin:20px 0 0;font-size:13px;line-height:1.9;color:var(--ink)}
.strat-toc{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.strat-toc a{padding:7px 13px;border-radius:999px;background:var(--theme-soft);color:var(--accent);font-size:12px;text-decoration:none;border:1px solid transparent}
.strat-toc a:hover{border-color:var(--theme-edge)}
.strat-part{margin:30px 0 0;font-size:12px;letter-spacing:.14em;color:var(--accent);font-weight:600;padding-bottom:9px;border-bottom:1px solid var(--rule)}
.strat-sec{margin:18px 0 0;padding:20px 22px;border-radius:24px;background:var(--paper);border:1px solid var(--rule);box-shadow:0 8px 28px #4c398907}
.strat-sec h2{margin:0 0 12px;font-size:19px;letter-spacing:-.3px;display:flex;align-items:center;gap:10px}
.strat-sec h2 em{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:var(--theme-soft);color:var(--accent);font-size:12.5px;font-style:normal;font-weight:600}
.strat-sec h3{margin:24px 0 0;font-size:14px}
.strat-sec p{margin:0 0 10px;font-size:13px;line-height:1.85;color:var(--ink)}
.strat-note{margin:6px 0 0;font-size:12px;color:var(--muted)}
.strat-fig{margin:16px 0;padding:14px 14px 10px;border-radius:18px;background:var(--theme-soft);border:1px solid var(--theme-edge)}
.strat-fig svg{display:block;width:100%;height:auto}
.strat-fig figcaption{margin:6px 2px 0;font-size:11.5px;line-height:1.7;color:var(--muted)}
.strat-legend{margin:14px 0 16px;padding:0;list-style:none;display:grid;gap:8px}
.strat-legend li{display:flex;gap:10px;font-size:12.5px;line-height:1.75;color:var(--muted)}
.strat-legend b{flex:0 0 auto;min-width:112px;font-weight:600}
.k-buy{color:var(--buy)}
.k-sell{color:var(--sell)}
.k-hold{color:var(--accent)}
.strat-tip{display:flex;gap:11px;margin:14px 0;padding:14px 16px;border-radius:16px;background:var(--theme-soft);border-left:3px solid var(--accent)}
.strat-tip b{flex:0 0 auto;font-size:12px;color:var(--accent)}
.strat-tip span{font-size:12.5px;line-height:1.85;color:var(--ink)}
.strat-loop{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 16px}
.strat-loop span{padding:8px 12px;border-radius:12px;background:var(--theme-soft);font-size:12px;color:var(--ink)}
.strat-loop i{color:var(--muted);font-style:normal;font-size:12px}
.strat-cases{display:grid;gap:10px;margin:12px 0 16px}
.strat-case{padding:14px 16px;border-radius:16px;border:1px solid var(--rule);background:var(--page)}
.strat-case b{display:block;font-size:12.5px;color:var(--accent);margin-bottom:6px}
.strat-case p{margin:0;font-size:12.5px;line-height:1.85;color:var(--muted)}
.strat-table{width:100%;border-collapse:collapse;margin:12px 0 16px;font-size:12.5px}
.strat-table caption{text-align:left;font-size:12px;color:var(--muted);padding-bottom:8px}
.strat-table th,.strat-table td{padding:10px 12px;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top;line-height:1.75}
.strat-table thead th{font-size:11.5px;font-weight:500;color:var(--muted)}
.strat-table tbody th{font-weight:600;color:var(--accent);white-space:nowrap}
.strat-table td{color:var(--muted)}
.strat-disclaimer{margin:26px 0 0;padding:20px 22px;border-radius:20px;border:1px dashed var(--rule)}
.strat-disclaimer b{display:block;font-size:12.5px;color:var(--accent)}
.strat-disclaimer p{margin:8px 0 0;font-size:11.5px;line-height:1.9;color:var(--muted)}
.sf-grid line{stroke:var(--rule);stroke-width:1}
.sf-zone{fill:none;stroke:var(--accent);stroke-width:1;stroke-dasharray:5 4;opacity:.6}
.sf-ma10{fill:none;stroke:var(--muted);stroke-width:1.3;stroke-dasharray:2 4;opacity:.75}
.sf-ma5{fill:none;stroke:var(--accent);stroke-width:1.4;stroke-dasharray:6 4;opacity:.8}
.sf-line{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.sf-dash{stroke:var(--muted);stroke-width:1.4;stroke-dasharray:7 5}
.sf-bracket{stroke:var(--accent);stroke-width:1.2;stroke-dasharray:3 3}
.sf-avg{fill:none;stroke:#E0A93B;stroke-width:1.6}
.sf-pt circle{fill:var(--buy)}
.sf-pt.sf-out circle{fill:var(--sell)}
.sf-pt text{fill:#fff;font-size:13px;font-weight:600}
.sf-cap{fill:var(--muted);font-size:16px}
/* 新增示意图（概念类）里用的图元：比老图元字号大一点，手机上才看得清 */
.sk-sup{stroke:var(--muted);stroke-width:1.6;stroke-dasharray:7 5}
.sk-res{stroke:var(--accent);stroke-width:1.6;stroke-dasharray:7 5}
.sk-cap{fill:var(--muted);font-size:18px}
.sk-cap.acc{fill:var(--accent)}

/* 长段落「排句」：一句一行 + 关键词高亮。换行与 <b> 只加壳，不改一个字符。 */
.st-ln{display:block}
.st-kw{font-weight:600;color:var(--ink)}
.st-kw.st-act{color:var(--accent);background:var(--theme-soft);border-radius:4px;padding:0 3px}

/* 关键词条：每节开头的速览 */
.strat-keys{display:flex;flex-wrap:wrap;gap:7px;margin:-6px 0 14px;padding:0;list-style:none}
.strat-keys li{padding:5px 11px;border-radius:999px;background:var(--theme-soft);border:1px solid var(--theme-edge);font-size:11.5px;color:var(--accent)}

/* 概念图（HTML 版）：流程条 / 步骤 / 对照两列 */
.strat-flow{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;margin:14px 0 16px}
.strat-flow-item{flex:1 1 140px;display:flex;align-items:center;gap:9px;padding:12px 14px;border-radius:14px;background:var(--page);border:1px solid var(--rule)}
.strat-flow-item i{display:grid;place-items:center;flex:0 0 auto;width:22px;height:22px;border-radius:7px;background:var(--theme-soft);color:var(--accent);font-size:11.5px;font-style:normal;font-weight:700}
.strat-flow-item b{font-size:12.5px;font-weight:600;color:var(--ink);line-height:1.5}
.strat-flow>em{display:grid;place-items:center;color:var(--muted);font-style:normal;font-size:13px}
.strat-steps{display:grid;gap:8px;margin:14px 0 16px}
.strat-step{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:14px;background:var(--page);border:1px solid var(--rule)}
.strat-step i{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:8px;background:var(--theme-soft);color:var(--accent);font-size:12px;font-style:normal;font-weight:700}
.strat-step b{flex:0 0 auto;font-size:12.5px;font-weight:600;min-width:150px}
.strat-step span{font-size:12px;color:var(--muted);line-height:1.7}
.strat-step.s-buy b{color:var(--buy)}
.strat-step.s-sell b{color:var(--sell)}
.strat-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 16px}
.strat-col{padding:14px 16px;border-radius:16px;background:var(--page);border:1px solid var(--rule)}
.strat-col>b{display:block;font-size:12.5px;color:var(--accent);margin-bottom:6px}
.strat-col p{margin:0;font-size:12.5px;line-height:1.8;color:var(--muted)}

@media(max-width:820px){
  .strat-hero{padding:20px 18px;border-radius:22px}
  .strat-hero h1{font-size:22px}
  .strat-sec{padding:17px 15px;border-radius:20px}
  .strat-legend li{flex-direction:column;gap:2px}
  .strat-legend b{min-width:0}
  .strat-tip{flex-direction:column;gap:4px}
  .strat-table{font-size:11.5px}
  .strat-table th,.strat-table td{padding:8px 9px}
  .strat-cols{grid-template-columns:1fr}
  .strat-step{flex-wrap:wrap;gap:6px 10px}
  .strat-step b{min-width:0}
  .strat-flow>em{display:none}
}

/* 全局同步入口在手机顶栏保留空间，长进度不挤压账户入口。 */
@media(max-width:640px){header .provider{display:none}#watchSync{padding:7px 9px;font-size:12px}.header-right{gap:6px}}

/* 分组横向滚动；股票操作使用明确文案，避免删除入口藏在角落。 */
.watch-group-bar{display:flex;gap:8px;align-items:center}.watch-group-bar .watch-filters{flex:1;overflow:auto;flex-wrap:nowrap;min-width:0}.watch-group-bar button{flex-shrink:0}.watch-group-actions{display:flex;gap:10px;margin-top:10px}.watch-group-actions button{font-size:12px;min-height:36px}.group-row{display:flex;gap:8px;align-items:center;margin:12px 0}.group-row span{flex:1}#groupName{width:100%;padding:10px;margin:12px 0}#stockGroupChoices label{display:block;padding:12px 0}#stockGroupChoices input{margin-right:10px}#groupError,#stockGroupError{color:var(--sell)}

#addedNotice{display:flex;align-items:center;gap:12px;margin:10px auto;padding:12px 18px;max-width:960px;border-radius:16px;background:var(--theme-soft);color:var(--ink)}#addedNotice span{flex:1}#stockGroupChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:50vh;overflow:auto;margin-bottom:18px}#stockGroupChoices label{padding:12px;border-radius:12px;background:var(--theme-soft);overflow-wrap:anywhere}#stockGroupChoices label:has(input:checked){outline:1px solid var(--accent);color:var(--accent)}

/* 分组独立承载，每个Tab等宽，不因只剩一组而铺满。 */
.watch-group-bar{margin:16px 0 20px;padding:10px 12px;background:#fff;border:1px solid var(--theme-edge);border-radius:22px}
.watch-group-bar #watchGroups{display:flex;gap:8px;flex:1;margin:0;padding:0;background:transparent}
.watch-group-bar #watchGroups>button{flex:0 0 112px;width:112px;min-width:112px;max-width:112px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#heroSyncSlot{display:inline-flex}#heroSyncSlot button{min-width:132px}
.activity-panel{padding:18px 0;margin:14px 0;border-block:1px solid var(--theme-edge)}.activity-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.activity-head h3{margin:0}.activity-panel p{font-size:12px;color:var(--mut,#777)}.activity-account{padding:16px 0;border-bottom:1px solid var(--theme-edge)}.activity-summary{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin:6px 0 10px}.activity-dots{display:grid;grid-template-rows:repeat(7,12px);grid-auto-flow:column;grid-auto-columns:12px;gap:4px;width:max-content}.activity-dots button{width:12px;height:12px;min-height:12px;padding:0;border:0;border-radius:3px;background:var(--theme-soft)}.activity-dots [data-level="1"]{background:color-mix(in srgb,var(--accent) 30%,white)}.activity-dots [data-level="2"]{background:color-mix(in srgb,var(--accent) 55%,white)}.activity-dots [data-level="3"]{background:color-mix(in srgb,var(--accent) 80%,white)}.activity-dots [data-level="4"]{background:var(--accent)}.activity-chart{overflow:auto;padding:4px 0}.activity-detail{min-height:20px;font-size:12px;margin-top:8px}

#watchGroups button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.admin-tabs{display:flex;gap:8px;margin:16px 0}.admin-tabs [aria-pressed="true"]{background:var(--theme-soft);color:var(--accent);border-color:var(--theme-edge)}
.activity-account{display:grid;grid-template-columns:minmax(180px,1fr) 224px;column-gap:20px}.activity-account>strong{grid-column:1}.activity-summary{grid-column:1;align-content:start}.activity-chart{grid-column:2;grid-row:1/span 2}
@media(max-width:600px){.activity-account{display:block}.activity-summary{display:grid;gap:5px}.activity-chart{margin-top:10px}}

.activity-account .activity-detail{grid-column:1/-1}

/* 详情仅两个等宽操作，计划信息独占一行，窄屏仍保持对齐。 */
.overview-budget{flex-wrap:wrap}.overview-budget>span{flex:1 0 100%}
.overview-budget .detail-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.overview-budget .detail-buttons button{min-height:48px;margin:0;border:1px solid #ded7ee;border-radius:14px;background:#f7f4fc;color:#695391;font-size:15px;font-weight:600;white-space:nowrap}
.overview-budget .detail-buttons button:disabled{opacity:.45}
