.strategy-detail-main #period-detail-chart {height:275px}
.strategy-detail-main #backtest-chart {height:240px}
#curve-frame .backtest-chart-wrap {border-radius:8px; padding:4px; background:#fbfcfc}
#curve-frame #period-detail-wrap {padding:0 0 12px; margin:0 0 14px}
#curve-frame .period-detail-heading {margin:0 0 6px}
#curve-frame .period-detail-heading h3 {font-size:18px}
#curve-frame .backtest-legend {gap:4px 12px; padding:6px 0 0}
#mobile-intro,#model-info-toggle,#selection-expand {display:none}
@media(max-width:760px),(hover:none) and (pointer:coarse) and (max-width:980px) {
  body.strategy-detail-site .strategy-detail-main {padding:4px 10px 18px}
  .strategy-detail-main .eyebrow {display:none}
  body.strategy-detail-site .strategy-detail-main .backtest-hero {display:block; padding:4px 0 0; margin:0; min-height:0; border:none}
  .backtest-hero-copy {position:relative}
  .strategy-detail-main .backtest-hero-copy h1 {font:650 clamp(17px,4.6vw,22px)/1.25 system-ui,sans-serif; margin:0 56px 3px 0; overflow-wrap:anywhere}
  #mobile-intro:not(:empty) {display:block; margin:0; font:12px/1.4 system-ui,sans-serif; color:#4c6272}
  #model-info-toggle,#selection-expand {padding:3px 5px; min-height:26px; border:none; background:transparent; color:#315d78; font:600 12px/1.2 system-ui,sans-serif; cursor:pointer}
  #model-info-toggle {display:block; position:absolute; right:0; top:0}
  body.guest-view #model-info-toggle {display:none}
  .backtest-hero-copy:not(.expanded) :is(#detail-tagline,#detail-summary,.version-rail) {display:none}
  .backtest-hero-copy.expanded #mobile-intro {display:none}
  .strategy-detail-main #detail-metrics:not([hidden]):not(:empty) {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:6px 0 0; border:1px solid #cfdae0; background:#eef3f5; border-radius:7px; overflow:hidden}
  .strategy-detail-main #detail-metrics:not([hidden]):not(:empty):has(.metric-period) {grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto auto; height:auto}
  #detail-metrics.auction-metrics > div:has(.metric-period) {flex-direction:row; grid-column:1/-1; display:flex; align-items:baseline; justify-content:center; gap:6px}
  body.strategy-detail-site #detail-metrics > div {min-height:0; padding:4px; text-align:center; border:0!important}
  #detail-metrics span {display:none}
  body.strategy-detail-site #detail-metrics strong {display:block; font:650 clamp(12px,3.5vw,15px)/1.25 system-ui,sans-serif; margin:1px 0 0; letter-spacing:0}
  body.strategy-detail-site #detail-metrics small,body.strategy-detail-site #detail-metrics .metric-period {font:500 11px/1.3 system-ui,sans-serif}
  .strategy-detail-main .backtest-frame {margin:7px 0 0; padding:8px 9px; border-radius:8px; box-shadow:none}
  .strategy-detail-main .frame-heading {display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:4px; margin:0 0 4px; padding:0; min-height:0}
  .strategy-detail-main .frame-heading h2 {margin:0; font:650 16px/1.3 system-ui,sans-serif}
  #selection-frame:not(.expanded) .selection-heading h2 {font-size:0}
  #selection-frame:not(.expanded) .selection-heading h2::after {content:"每日模型结果"; font:650 16px/1.3 system-ui,sans-serif}
  .plan-reading #selection-frame:not(.expanded) .selection-heading h2::after {content:"次日操作计划"}
  #selection-frame .selection-date-control {display:flex; width:auto; min-width:0; margin:0; align-items:center}
  #selection-frame.has-notice:not(:has(#selection-date option)) .selection-date-control {display:none}
  #selection-frame .selection-date-control span {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
  #selection-frame .selection-date-control select {width:auto; min-width:0; max-width:130px; min-height:28px; margin:0; padding:2px 5px; font-size:12px}
  #selection-frame .selection-context {gap:3px; margin:2px 0 4px; padding:0; min-height:0}
  #selection-frame .selection-context .status-badge {font-size:11px; padding:2px 5px}
  #selection-frame:not(.expanded) :is(#selection-summary,#selection-position,.section-foot) {display:none}
  #selection-frame .selection-context p:empty {display:none}
  #selection-frame #selection-notice {margin:4px 0; padding:5px 8px; font-size:13px}
  #selection-frame:not(.has-notice) #selection-expand {display:block; margin-left:auto}
  #selection-frame:not([hidden]):not(.has-notice) {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center}
  #selection-frame > .selection-heading,#selection-frame > .table-scroll,#selection-frame > .section-foot {grid-column:1/-1}
  #selection-frame:not(.has-notice) .selection-context {grid-column:1; grid-row:2}
  #selection-expand {grid-column:2; grid-row:2}
  #selection-frame:not(.expanded) table:has(tbody tr:only-child td:only-child) {width:100%}
  #selection-frame:not(.expanded) table:has(tbody tr:only-child td:only-child) thead {display:none}
  #selection-frame:not(.expanded) .table-scroll {max-height:66px}
  #selection-frame .table-scroll {overflow:auto; margin:0; padding:0; overscroll-behavior:contain}
  #selection-frame table.strategy-selection-table {display:table; width:max-content; min-width:100%; table-layout:auto}
  #selection-frame table.strategy-selection-table thead {display:table-header-group; position:static; width:auto; height:auto; clip-path:none; overflow:visible}
  #selection-frame table.strategy-selection-table tbody {display:table-row-group}
  #selection-frame table.strategy-selection-table tr {display:table-row}
  #selection-frame table.strategy-selection-table :is(td,th) {display:table-cell; width:auto; padding:4px 6px; font-size:11px; line-height:1.3; white-space:nowrap; text-align:left; vertical-align:middle}
  #selection-frame table.strategy-selection-table td::before {content:none}
  #selection-frame table.strategy-selection-table th {position:sticky; top:0; background:#edf2f5; z-index:1}
  #selection-frame table.strategy-selection-table .table-empty {padding:7px 5px!important; text-align:left!important; white-space:normal}
  #selection-frame .selection-status-stack {align-items:flex-start}
  #curve-frame .frame-heading p,#period-detail-note {display:none}
  #curve-frame .period-detail-heading h3 {margin:0; font:500 12px/1.4 system-ui,sans-serif; color:#516678}
  #curve-frame #period-detail-wrap {margin:0 0 6px; padding:0 0 6px}
  #curve-frame .backtest-chart-wrap {padding:1px}
  #curve-frame #period-detail-chart {height:clamp(116px,21svh,185px)}
  #curve-frame #backtest-chart {height:clamp(115px,17svh,155px)}
  #curve-frame .backtest-legend {font:10px/1.35 system-ui,sans-serif; padding:3px 0 0; gap:1px 8px}
}


