/* 行情图区域直接沿用原项目的 SDK + SVG 结构；只约束图表容器，不覆盖整站主题。 */
.chart-native-card{background:#fff}
#chartNativeHost{width:100%;min-height:752px;background:#fff}
#chartNativeHost[hidden]{display:none}
.hybrid-quote-move.up{color:#ff6268}.hybrid-quote-move.down{color:#4fd28e}.hybrid-quote-move.flat{color:#b9b9b9}
.hybrid-shell{width:100%;background:#fff}.hybrid-chart-header{height:52px;box-sizing:border-box;background:#070707;color:#fff;position:relative;padding:6px 310px 4px 14px;overflow:hidden}.hybrid-chart-title{color:#00ffff;font-size:18px;font-weight:900;line-height:20px;white-space:nowrap}.hybrid-chart-date{margin-left:10px;color:#b9b9b9;font-size:12px;font-weight:700}.hybrid-chart-sub{color:#b9b9b9;font-size:12px;font-weight:700;line-height:20px;white-space:nowrap}.hybrid-tabs{position:absolute;right:10px;top:11px;display:flex;gap:10px}.hybrid-tabs .chart-tab{width:140px;height:31px;padding:0;border:0;border-radius:17px;background:#303234;color:#fff;font-size:18px;font-weight:900;cursor:pointer}.hybrid-tabs .chart-tab.active{background:#13a8ff}.market-stage{position:relative;width:100%;background:#fff;overflow:hidden}.market-host{position:absolute;inset:0;z-index:1;background:#fff}.market-host div[style*="z-index: 52"]{box-sizing:border-box!important;border:1px solid #8d969f!important;border-radius:4px;background:rgba(255,255,255,.97)!important;color:#252a30!important;box-shadow:0 5px 16px rgba(31,38,45,.24);pointer-events:none}.chart-overlay-layer{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:visible}.daily-stage .market-tech-panel{transform:none;position:relative;z-index:4}.daily-stage .market-date-axis{transform:none;position:relative;z-index:6}.daily-stage .indicator-switcher{bottom:34px}.indicator-switcher{position:absolute;left:54px;right:10px;bottom:34px;z-index:5;height:29px;display:flex;align-items:stretch;box-sizing:border-box;max-width:none;overflow:visible;border:1px solid #c7c7c7;background:rgba(250,250,250,.96);pointer-events:auto;box-shadow:0 1px 2px rgba(0,0,0,.12)}.daily-indicator-controls{display:flex;flex:0 0 auto;min-width:0;height:28px;overflow:visible}.indicator-switcher button{flex:0 0 auto;min-width:70px;height:28px;padding:0 13px;border:0;border-right:1px solid #c7c7c7;background:transparent;color:#858585;font:700 15px/28px Georgia,"PingFang SC",serif;cursor:pointer;white-space:nowrap}.indicator-switcher .indicator-quick-button:last-of-type{border-right:1px solid #c7c7c7}.indicator-switcher button.active{background:#555;color:#fff}.daily-indicator-hover-value{display:none;flex:1 1 auto;min-width:0;align-self:center;margin:0 9px;color:#4f565d;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-indicator-hover-value.visible{display:block}.main-indicator-switcher{position:absolute;left:54px;top:6px;z-index:7;height:28px;display:flex;align-items:stretch;border:1px solid #b9bec3;background:rgba(255,255,255,.96);pointer-events:auto;box-shadow:0 1px 2px rgba(0,0,0,.12)}.main-indicator-switcher button{height:27px;min-width:48px;padding:0 11px;border:0;border-right:1px solid #c7c7c7;background:transparent;color:#666;font-size:13px;font-weight:800;cursor:pointer}.main-indicator-switcher button:last-of-type{border-right:0}.main-indicator-switcher button.active{background:#3f464d;color:#fff}.daily-main-hover-value{display:none;align-self:center;margin:0 8px;color:#4f565d;font-size:12px;font-weight:900;white-space:nowrap}.daily-main-hover-value.visible{display:inline}.bull-main-legend{position:absolute;left:54px;top:38px;z-index:6;display:flex;align-items:center;gap:9px;max-width:calc(100% - 68px);min-height:24px;padding:2px 7px;background:rgba(255,255,255,.90);color:#555;font-size:11px;font-weight:750;pointer-events:none;white-space:nowrap}.bull-main-legend[hidden]{display:none}.bull-main-legend-item{display:inline-flex;align-items:center;gap:4px}.bull-main-badge{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:3px;color:#fff;font-size:11px;font-weight:900}.bull-main-badge.buy{background:#e93446}.bull-main-badge.add{background:#f08b18}.bull-main-badge.cut{background:#178bc4}.bull-main-badge.run{background:#00a06b}.bull-main-line{width:20px;height:0;border-top:2px solid}.bull-main-line.cost{border-color:#ed3858}.bull-main-line.support{border-color:#1684e8;border-top-style:dashed}.bull-main-note{color:#747b82;font-weight:650;overflow:hidden;text-overflow:ellipsis}.minute-diagnostic{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);z-index:5;max-width:calc(100% - 70px);display:none;padding:1px 6px;color:#ffe800;background:rgba(17,17,17,.58);font-size:14px;font-weight:900;line-height:18px;text-align:center;white-space:nowrap;pointer-events:none;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}.minute-diagnostic.visible{display:block}.hybrid-fallback-note{position:absolute;right:8px;top:8px;z-index:5;background:#fff3cd;color:#805d00;padding:5px 8px;border-radius:5px;font-size:12px}.chart-overlay-label{paint-order:stroke;stroke:rgba(255,255,255,.82);stroke-width:2px;stroke-linejoin:round}.power-marker,.native-buy-marker,.native-sell-marker{filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}.strong-start-marker{filter:drop-shadow(0 1px 1px rgba(120,0,0,.42))}.market-stage.minute-stage{height:700px}.minute-stage .market-host{bottom:154px}.minute-ai-panel{position:absolute;left:0;right:0;bottom:0;height:154px;z-index:4;background:#fff;border-top:1px solid #c9cdd1;box-sizing:border-box}.minute-ai-toolbar{position:absolute;left:54px;right:10px;top:3px;height:27px;z-index:6;display:flex;align-items:center;gap:0;color:#5f666d;font-size:12px;font-weight:700;overflow:visible}.minute-ai-controls{display:flex;flex:0 0 auto;min-width:0;height:26px;overflow:visible}.minute-ai-toolbar button{height:26px;min-width:62px;padding:0 11px;border:1px solid #c7c7c7;border-right:0;background:#fafafa;color:#777;font-size:13px;font-weight:800;cursor:pointer}.minute-ai-toolbar .indicator-quick-button:first-child{border-radius:4px 0 0 4px}.minute-ai-toolbar .indicator-quick-button:last-of-type{border-right:1px solid #c7c7c7}.minute-ai-toolbar button.active{background:#555;color:#fff;border-color:#555}.minute-ai-hover-value{display:none;flex:1 1 auto;min-width:0;margin-left:10px;color:#4f565d;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.minute-ai-hover-value.visible{display:block}.minute-ai-hover-value[data-zone="high"]{color:#159a58}.minute-ai-hover-value[data-zone="low"]{color:#e64f4a}.minute-ai-status{flex:0 1 auto;min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.minute-ai-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.minute-ai-label{paint-order:stroke;stroke:#fff;stroke-width:2px;stroke-linejoin:round}.market-stage.daily-stage{height:768px}.daily-stage .market-host{bottom:268px;overflow:visible}.daily-stage.custom-daily-active .market-tech-panel{visibility:hidden}.daily-stage.custom-daily-active .indicator-switcher{bottom:100px}.indicator-switcher button[data-indicator="pf_2q8m4v1p7d"]{min-width:78px}.indicator-switcher button[data-indicator="pf_6r3k9x5c2w"]{min-width:104px}.indicator-switcher button[data-indicator="pf_5m2d9r3v7k"],.indicator-switcher button[data-indicator="pf_8x4p1w6n9c"],.indicator-switcher button[data-indicator="pf_9v1d6f4r7x"]{min-width:112px}
.indicator-more{position:relative;flex:0 0 auto;height:100%;color:#777}.indicator-more>summary{list-style:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:4px;height:100%;min-width:70px;padding:0 11px;background:#f5f5f5;color:#6d7277;cursor:pointer;user-select:none;white-space:nowrap}.indicator-more>summary::-webkit-details-marker{display:none}.indicator-more>summary span{font-size:12px;transition:transform .16s ease}.indicator-more[open]>summary{background:#e9ecef;color:#333}.indicator-more[open]>summary span{transform:rotate(180deg)}.indicator-more-menu{position:absolute;z-index:30;right:0;width:min(320px,calc(100vw - 16px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px;border:1px solid #bfc4c8;border-radius:6px;background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.22);box-sizing:border-box}.indicator-more-menu button{display:block;width:100%;min-width:0!important;height:31px!important;padding:0 9px!important;border:1px solid #d8dcdf!important;border-radius:4px!important;background:#fafbfc!important;color:#555!important;font:750 13px/29px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif!important;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator-more-menu button:hover,.indicator-more-menu button:focus-visible{border-color:#868d94!important;background:#eef1f3!important;color:#222!important;outline:none}.indicator-switcher .indicator-more>summary{border-right:1px solid #c7c7c7;font:700 14px/28px Georgia,"PingFang SC",serif}.indicator-switcher .indicator-more-menu{bottom:calc(100% + 6px)}.minute-ai-toolbar .indicator-more>summary{height:26px;border:1px solid #c7c7c7;border-left:0;border-radius:0 4px 4px 0;background:#fafafa;font-size:13px;font-weight:800}.minute-ai-toolbar .indicator-more-menu{top:calc(100% + 5px)}
.longhu-detail-panel{background:#161719;color:#e9ebee;border-top:3px solid #d89b19;padding:0 12px 12px;box-sizing:border-box}.longhu-detail-titlebar{min-height:43px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #44484d}.longhu-detail-title{color:#f2bd3f;font-size:18px;font-weight:900;white-space:nowrap}.longhu-date-strip{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin}.longhu-date-button{flex:0 0 auto;border:1px solid #4a4e53;border-radius:4px;background:#292c30;color:#c9cdd1;padding:4px 7px;font:750 11px ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}.longhu-date-button:hover,.longhu-date-button:focus-visible{background:#40454b;color:#fff;border-color:#747b83;outline:none}.longhu-date-button.active{background:#8b641b;color:#ffe17a;border-color:#d49b2b}.longhu-detail-reason{margin-left:auto;color:#aeb4bb;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.longhu-detail-source{padding:2px 6px;border-radius:3px;background:#33373b;color:#cdd2d7;font-size:11px;white-space:nowrap}.longhu-detail-source.stale{background:#684d16;color:#ffd87a}.longhu-detail-empty{padding:34px 12px;text-align:center;color:#8f969d;font-size:13px}.longhu-section{margin-top:10px}.longhu-section-title{display:flex;align-items:center;gap:9px;height:27px;font-size:15px;font-weight:900}.longhu-section-title.buy{color:#ff575d}.longhu-section-title.sell{color:#43c886}.longhu-section-title span{color:#9ba1a8;font-size:12px;font-weight:700}.longhu-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#202225;font-size:12px}.longhu-table th{height:27px;background:rgba(0,0,0,.3);color:#aeb4ba;font-weight:800;border-bottom:1px solid #45494e}.longhu-table td{height:31px;border-bottom:1px solid #34383c;color:#e0e3e6;text-align:right;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.longhu-table tr:last-child td{border-bottom:0}.longhu-table th:nth-child(1),.longhu-table td:nth-child(1){width:42px;text-align:center}.longhu-table th:nth-child(2),.longhu-table td:nth-child(2){width:auto;text-align:left}.longhu-table th:nth-child(3),.longhu-table td:nth-child(3),.longhu-table th:nth-child(4),.longhu-table td:nth-child(4){width:105px}.longhu-table th:nth-child(5),.longhu-table td:nth-child(5){width:76px}.longhu-table .empty{color:#6c7278}.longhu-dept-code{margin-left:7px;color:#7e858c;font-size:10px}.longhu-table .longhu-seat{font-weight:850}.longhu-table .longhu-seat-risk{color:#ff5964}.longhu-table .longhu-seat-gold{color:#ffd448}.longhu-table .longhu-seat-northbound{color:#fff59a}.longhu-table .longhu-seat-bond{color:#ff934c}.longhu-table .longhu-seat-quant{color:#55a9ff}.longhu-table .longhu-seat-institution{color:#38c8b8}.longhu-table .longhu-seat-youzi{color:#32d6e8}.longhu-table .longhu-seat-muted{color:#aeb4ba}.longhu-table .longhu-money-muted{color:#686e74}.longhu-table .longhu-money-normal{color:#e5e8eb}.longhu-table .longhu-money-rise{color:#ff6268;font-weight:850}.longhu-table .longhu-money-fall{color:#4fd28e;font-weight:850}.longhu-table .longhu-money-buy-focus{color:#ffe14f;font-weight:950}.longhu-table .longhu-money-sell-focus{color:#ff7a59;font-weight:950}.longhu-table .longhu-ratio-muted{color:#686e74}.longhu-table .longhu-ratio-normal{color:#e5e8eb}.longhu-table .longhu-ratio-rise{color:#ff6268;font-weight:850}.longhu-table .longhu-ratio-gold{color:#ffc83d;font-weight:900}.longhu-table .longhu-ratio-focus{color:#ff5964;font-weight:950}.longhu-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:11px}.longhu-summary span{display:block;background:#23262a;border:1px solid #3f4449;padding:7px 9px;text-align:center;font-size:13px;font-weight:850}.longhu-summary .buy,.longhu-summary .net-buy{color:#ff6268}.longhu-summary .sell,.longhu-summary .net-sell{color:#49cc8d}
@media(max-width:900px){.indicator-switcher{left:4px;right:4px}.indicator-switcher button{min-width:62px;padding:0 8px}.minute-diagnostic{font-size:11px;line-height:15px;max-width:calc(100% - 12px);white-space:normal}}
@media(max-width:760px){#chartNativeHost{min-height:762px}.hybrid-chart-header{padding-right:6px;height:88px}.hybrid-tabs{left:8px;right:8px;top:50px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.hybrid-chart-title{font-size:16px}.hybrid-tabs .chart-tab{min-width:0;width:100%;padding:0 4px;font-size:15px}.main-indicator-switcher{left:4px;right:4px;max-width:calc(100% - 8px);overflow-x:auto}.bull-main-legend{left:4px;max-width:calc(100% - 8px);gap:5px;flex-wrap:wrap;white-space:normal;line-height:17px;max-height:39px;overflow:hidden}.bull-main-note{display:none}.market-stage.minute-stage{height:674px}.minute-stage .market-host{bottom:174px}.minute-ai-panel{height:174px}.minute-ai-toolbar{left:4px;right:4px;height:55px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:27px 25px;align-items:center;overflow:visible}.minute-ai-controls{grid-column:1/-1;grid-row:1;width:100%}.minute-ai-toolbar button{flex:0 0 auto;min-width:56px;padding:0 8px;white-space:nowrap}.minute-ai-hover-value{grid-column:1;grid-row:2;min-width:0;margin:2px 8px 0 2px}.minute-ai-status{grid-column:2;grid-row:2;max-width:128px;margin-top:2px;font-size:11px}.market-stage.daily-stage{height:728px}.daily-stage .market-host{bottom:268px}.longhu-detail-titlebar{align-items:flex-start;flex-wrap:wrap;padding:7px 0}.longhu-date-strip{order:2;width:calc(100% - 72px)}.longhu-detail-reason{order:3;width:100%;margin-left:0;white-space:normal}.longhu-table{font-size:11px}.longhu-table th:nth-child(3),.longhu-table td:nth-child(3),.longhu-table th:nth-child(4),.longhu-table td:nth-child(4){width:68px}.longhu-table th:nth-child(5),.longhu-table td:nth-child(5){width:54px}.longhu-table td{padding:0 4px}.longhu-dept-code{display:none}.longhu-summary{grid-template-columns:1fr}.longhu-summary span{text-align:left}}

/* 股票摘要与分时/日线切换在图表长页滚动时保持可见。 */
.indicator-switcher button[data-indicator="pf_3h7q5k2t8m"]{min-width:112px}
.hybrid-chart-header{position:sticky;top:calc(var(--header-h) + var(--page-nav-h));z-index:28;border-radius:var(--radius) var(--radius) 0 0;box-shadow:0 4px 12px rgba(0,0,0,.24)}
.hybrid-chart-header{padding-right:462px}
.hybrid-tabs{align-items:center}
.hybrid-watch-btn{flex:0 0 auto;width:88px;height:36px;padding:0 10px;border:1px solid #45494d;border-radius:18px;background:#292c2f;color:#c7cbd0;font-size:13px;font-weight:750;cursor:pointer;white-space:nowrap;transition:background-color .14s,border-color .14s,color .14s,transform .08s}
.hybrid-watch-btn:hover:not(:disabled){border-color:#676c71;background:#373b3f;color:#f2f4f5}
.hybrid-watch-btn:focus-visible{outline:2px solid #8b959e;outline-offset:2px}
.hybrid-watch-btn:active{transform:translateY(1px) scale(.985)}
.hybrid-watch-btn.is-on{border-color:#69737d;background:#40464c;color:#f1f3f5}
.hybrid-watch-btn.is-on:hover:not(:disabled){background:#4a5158;color:#fff}

/* 周期与龙虎榜日期：扩大命中区，并在请求期间即时确认点击。 */
.hybrid-tabs .chart-tab {
  position: relative;
  height: 36px;
  width: 108px;
  font-size: 15px;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, box-shadow .14s ease, transform .08s ease;
}
.hybrid-tabs .chart-tab:not(.active):hover { background: #41464b; }
.hybrid-tabs .chart-tab:focus-visible { outline: 2px solid #8bd6ff; outline-offset: 2px; }
.hybrid-tabs .chart-tab:active { transform: translateY(1px) scale(.985); }
.hybrid-tabs .chart-tab.is-pending {
  background: #0b8edb;
  box-shadow: 0 0 0 2px rgba(19,168,255,.34), inset 0 0 0 1px rgba(255,255,255,.16);
}
.hybrid-tabs .chart-tab.is-pending::after,
.longhu-date-button.is-pending::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: chart-control-spin .7s linear infinite;
}
.hybrid-tabs .chart-tab.is-pending::after { right: 14px; }
.longhu-date-strip { gap: 7px; padding: 4px 1px; }
.longhu-date-button {
  position: relative;
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  line-height: 32px;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}
.longhu-date-button:active { transform: translateY(1px) scale(.975); }
.longhu-date-button.active { box-shadow: inset 0 0 0 1px rgba(255,225,122,.16); }
.longhu-date-button.is-pending {
  background: #76551a;
  border-color: #e4ad38;
  box-shadow: 0 0 0 2px rgba(228,173,56,.24), inset 0 0 0 1px rgba(255,225,122,.18);
}
.longhu-date-button.is-pending::after {
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  margin-top: 0;
  border-width: 1.5px;
}
@keyframes chart-control-spin { to { transform: rotate(360deg); } }

/* 主副图后台补数时在当前指标文字旁显示即时反馈，保留旧图直到新载荷绘制完成。 */
[data-main-indicator].is-pending,
[data-indicator].is-pending,
[data-minute-indicator].is-pending { cursor: progress; }
[data-main-indicator].is-pending::after,
[data-indicator].is-pending::after,
[data-minute-indicator].is-pending::after {
  content: '';
  display: inline-block;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin-left: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: chart-control-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hybrid-tabs .chart-tab,
  .longhu-date-button { transition: none; }
  .hybrid-tabs .chart-tab.is-pending::after,
  .longhu-date-button.is-pending::after,
  [data-main-indicator].is-pending::after,
  [data-indicator].is-pending::after,
  [data-minute-indicator].is-pending::after { animation-duration: 1.4s; }
}

/* 未授权指标不生成入口；某个主副图槽无可用功能时连同整行隐藏。 */
.indicator-switcher[hidden],
.main-indicator-switcher[hidden],
.minute-ai-panel[hidden] { display: none; }
.minute-stage.minute-indicator-slot-empty .market-host { bottom: 0; }

/* 日线副图按实际状态占高：无权限时完全释放，选择“关闭”时只保留工具栏。 */
.daily-stage.daily-indicator-slot-hidden { height: 638px; }
.daily-stage.daily-indicator-slot-hidden .market-host { bottom: 138px; }
.daily-stage.daily-indicator-slot-empty { height: 672px; }
.daily-stage.daily-indicator-slot-empty .market-host { bottom: 172px; }
.daily-stage.daily-indicator-slot-empty .indicator-switcher { bottom: 2px; }
.daily-stage.daily-indicator-slot-hidden .market-tech-panel,
.daily-stage.daily-indicator-slot-empty .market-tech-panel { visibility: hidden; }
@media (max-width: 760px) {
  .daily-stage.daily-indicator-slot-hidden { height: 598px; }
  .daily-stage.daily-indicator-slot-hidden .market-host { bottom: 138px; }
  .daily-stage.daily-indicator-slot-empty { height: 632px; }
  .daily-stage.daily-indicator-slot-empty .market-host { bottom: 172px; }
}

/* 龙虎榜日期只直显三项；资金摘要紧跟当前日期，不再占用底部卡片。 */
.longhu-detail-titlebar { min-height: 60px; }
.longhu-date-area {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 3px 0;
}
.longhu-date-strip {
  position: relative;
  overflow: visible;
  padding: 1px;
}
.longhu-date-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 17px;
  padding: 0 2px;
  font-size: 10px;
  font-weight: 750;
  line-height: 16px;
  white-space: nowrap;
}
.longhu-date-summary .buy,
.longhu-date-summary .net-buy { color: #ff6268; }
.longhu-date-summary .sell,
.longhu-date-summary .net-sell { color: #49cc8d; }
.longhu-date-more {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}
.longhu-date-more > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  list-style: none;
  border: 1px solid #4a4e53;
  border-radius: 4px;
  background: #292c30;
  color: #c9cdd1;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.longhu-date-more > summary::-webkit-details-marker { display: none; }
.longhu-date-more > summary:hover,
.longhu-date-more > summary:focus-visible,
.longhu-date-more[open] > summary {
  border-color: #747b83;
  background: #40454b;
  color: #fff;
  outline: none;
}
.longhu-date-more > summary span { transition: transform .16s ease; }
.longhu-date-more[open] > summary span { transform: rotate(180deg); }
.longhu-date-more-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 5px;
  width: max-content;
  max-width: min(330px, calc(100vw - 24px));
  max-height: 230px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #555b62;
  border-radius: 6px;
  background: #202327;
  box-shadow: 0 9px 24px rgba(0,0,0,.48);
}
.longhu-date-more-menu .longhu-date-button {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.longhu-detail-source { margin-left: auto; }

@media(max-width:760px) {
  .hybrid-chart-header { height: 130px; padding-right: 6px; }
  .hybrid-chart-date { margin-left: 6px; font-size: 11px; }
  .hybrid-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hybrid-watch-btn { width: 100%; height: 36px; border-radius: 17px; font-size: 13px; }
  .hybrid-tabs .chart-tab { width: 100%; font-size: 13px; }
  .longhu-detail-titlebar { align-items: flex-start; }
  .longhu-detail-title { order: 1; padding-top: 7px; }
  .longhu-detail-source { order: 1; margin: 8px 0 0 auto; }
  .longhu-date-area { order: 2; width: 100%; padding: 2px 0; }
  .longhu-date-strip { order: initial; width: 100%; gap: 4px; }
  .longhu-date-button { min-height: 32px; padding: 0 5px; font-size: 10px; line-height: 30px; }
  .longhu-date-more > summary { min-height: 32px; padding: 0 7px; font-size: 10px; }
  .longhu-date-summary { flex-wrap: wrap; gap: 1px 10px; white-space: normal; }
  .longhu-detail-reason { order: 3; }
  .longhu-date-more-menu { left: auto; right: 0; grid-template-columns: 1fr; min-width: 122px; }
}

/* 行情 Canvas/SVG 深色适配：交易语义色保持红涨绿跌，仅替换中性色。 */
html[data-theme='dark'] #chartNativeHost,
html[data-theme='dark'] .hybrid-shell,
html[data-theme='dark'] .market-stage,
html[data-theme='dark'] .market-host,
html[data-theme='dark'] .minute-ai-panel {
  background: #11161c;
  color: #dce2e8;
}
html[data-theme='dark'] .minute-ai-panel { border-top-color: #303944; }
html[data-theme='dark'] .indicator-switcher,
html[data-theme='dark'] .main-indicator-switcher {
  border-color: #3a444f;
  background: rgba(27, 33, 40, .97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .38);
}
html[data-theme='dark'] .indicator-switcher button,
html[data-theme='dark'] .main-indicator-switcher button,
html[data-theme='dark'] .minute-ai-toolbar button,
html[data-theme='dark'] .indicator-more > summary {
  border-color: #3a444f;
  background: #1b2128;
  color: #aeb7c0;
}
html[data-theme='dark'] .indicator-switcher button.active,
html[data-theme='dark'] .main-indicator-switcher button.active,
html[data-theme='dark'] .minute-ai-toolbar button.active {
  border-color: #62707e;
  background: #4a5662;
  color: #fff;
}
html[data-theme='dark'] .indicator-more[open] > summary,
html[data-theme='dark'] .indicator-more > summary:hover { background: #303944; color: #fff; }
html[data-theme='dark'] .indicator-more-menu {
  border-color: #46515d;
  background: #171c22;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .55);
}
html[data-theme='dark'] .indicator-more-menu button {
  border-color: #39434d !important;
  background: #222a32 !important;
  color: #c3cbd3 !important;
}
html[data-theme='dark'] .indicator-more-menu button:hover,
html[data-theme='dark'] .indicator-more-menu button:focus-visible {
  border-color: #687583 !important;
  background: #303944 !important;
  color: #fff !important;
}
html[data-theme='dark'] .daily-indicator-hover-value,
html[data-theme='dark'] .daily-main-hover-value,
html[data-theme='dark'] .minute-ai-hover-value,
html[data-theme='dark'] .minute-ai-status,
html[data-theme='dark'] .bull-main-legend,
html[data-theme='dark'] .bull-main-note { color: #aeb7c0; }
html[data-theme='dark'] .bull-main-legend { background: rgba(24, 30, 37, .92); }
html[data-theme='dark'] .market-host div[style*="z-index: 52"] {
  border-color: #56616d !important;
  background: rgba(23, 28, 34, .97) !important;
  color: #e5e9ed !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .48);
}
/* 分时悬浮框提升到资金 SVG 之上，使用独立不透明副本避免底板文字穿透。 */
.market-hover-portal{position:absolute;z-index:6;display:none;box-sizing:border-box;overflow:hidden;padding:2px;pointer-events:none;border:1px solid #8d969f;border-radius:4px;background:rgba(255,255,255,.97);color:#252a30;box-shadow:0 5px 16px rgba(31,38,45,.24);font-size:12px;white-space:nowrap}
html[data-theme='dark'] .market-hover-portal{border-color:#56616d;background:rgba(23,28,34,.97);color:#e5e9ed;box-shadow:0 6px 18px rgba(0,0,0,.48)}
html[data-theme='dark'] .chart-overlay-label,
html[data-theme='dark'] .minute-ai-label {
  stroke: rgba(17, 22, 28, .86);
}

html[data-theme='dark'] .chart-overlay-layer .minute-indicator-panel-bg,
html[data-theme='dark'] .chart-overlay-layer .native-capital-panel-bg,
html[data-theme='dark'] .chart-overlay-layer .native-capital-strength-label-bg,
html[data-theme='dark'] .chart-overlay-layer .daily-ai-panel-bg,
html[data-theme='dark'] .chart-overlay-layer .daily-institution-panel-bg,
html[data-theme='dark'] .chart-overlay-layer .l2-daily-panel-bg {
  fill: #11161c;
}
html[data-theme='dark'] .chart-overlay-layer .minute-permission-mask,
html[data-theme='dark'] .chart-overlay-layer .daily-capital-permission-mask {
  fill: #242c34;
  stroke: #56616d;
}
html[data-theme='dark'] .chart-overlay-layer [fill='#333'],
html[data-theme='dark'] .chart-overlay-layer [fill='#555'],
html[data-theme='dark'] .chart-overlay-layer [fill='#666'],
html[data-theme='dark'] .chart-overlay-layer [fill='#777'],
html[data-theme='dark'] .chart-overlay-layer [fill='#858b91'],
html[data-theme='dark'] .chart-overlay-layer [fill='#92979c'],
html[data-theme='dark'] .chart-overlay-layer [fill='#686e74'],
html[data-theme='dark'] .chart-overlay-layer [fill='#5f666d'],
html[data-theme='dark'] .chart-overlay-layer [fill='#4b4f54'] {
  fill: #aeb7c0;
}
html[data-theme='dark'] .chart-overlay-layer [stroke='#c9cdd1'],
html[data-theme='dark'] .chart-overlay-layer [stroke='#d5d5d5'],
html[data-theme='dark'] .chart-overlay-layer [stroke='#d2d2d2'],
html[data-theme='dark'] .chart-overlay-layer [stroke='#aeb4ba'],
html[data-theme='dark'] .chart-overlay-layer [stroke='#7e848a'] {
  stroke: #3b4651;
}
html[data-theme='dark'] .chart-overlay-layer .native-capital-band,
html[data-theme='dark'] .chart-overlay-layer .daily-institution-segment { stroke: #28313a; }

/* SDK 失败时返回的内联 SVG 也跟随主题，避免缓存回退突然闪回白底。 */
html[data-theme='dark'] #chartNativeHost[data-chart-theme='dark'] > svg,
html[data-theme='dark'] #chartNativeHost[data-chart-theme='dark'] > svg rect:first-of-type {
  background: #11161c;
  fill: #11161c;
}
