/* =====================================================================
   CURRENT LAYOUT SYSTEM — fund page
   ===================================================================== */

#fundPage .fund-ma-card,
#fundPage .fund-signal,
#fundPage .annual-signal-card,
#fundPage .strategy-rules-details{
  padding:16px!important;
  background:#fff!important;
  border:1px solid var(--layout-line)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.04)!important;
}
#fundPage .fund-market-section-title{margin-bottom:10px!important}
#fundPage .fund-market-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#fundPage .fund-market-field{min-height:82px!important;padding:11px 12px!important;border-radius:12px!important}
#fundPage .fund-market-field:first-child,#fundPage .fund-market-field:last-child{padding:11px 12px!important}
#fundPage .fund-market-field>label{margin-bottom:5px!important}
#fundPage .fund-indicator-sub{margin-top:3px!important}
#fundPage .fund-refresh-row{display:flex!important;justify-content:flex-end!important;align-items:center!important;margin:10px 0 0!important;padding:0!important}
#fundPage #fundDataStatus{margin:8px 0 0!important;padding:9px 11px!important;min-height:0!important;line-height:1.45!important}
#fundPage .price-help{margin:7px 0 0!important;padding:0!important;line-height:1.45!important}

/* Current status — same geometry as swing page. */
#fundPage .fund-signal{position:relative!important;overflow:hidden!important}
#fundPage .detail-status-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 10px!important;padding:0 2px!important}
#fundPage .detail-status-head .fund-signal-kicker{margin:0!important;font-size:16px!important;line-height:1.25!important;font-weight:700!important}
#fundPage .detail-state-badge{flex:0 0 auto!important;min-height:26px!important;padding:4px 9px!important;border-radius:999px!important;font-size:11px!important;line-height:18px!important;font-weight:700!important}
#fundPage .simple-status-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#fundPage .simple-status-metrics .strategy-status-metric{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  min-width:0!important;min-height:96px!important;padding:11px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;text-align:left!important;overflow:hidden!important;
}
#fundPage .simple-status-metrics .strategy-status-metric>label,
#fundPage .simple-status-metrics .next-trigger>small{
  display:block!important;width:100%!important;min-height:15px!important;margin:0 0 8px!important;padding:0!important;font-size:11.5px!important;line-height:15px!important;font-weight:650!important;text-align:left!important;
}
#fundPage .simple-status-metrics .next-trigger>label{display:none!important}
#fundPage .simple-status-metrics .strategy-status-metric:first-child>strong{display:block!important;width:100%!important;margin:0!important;padding:0!important;font-size:26px!important;line-height:1.08!important;font-weight:700!important;text-align:left!important}
#fundPage #fundAdviceAllocation,
#fundPage .simple-status-metrics .next-trigger>strong{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:9px!important;box-shadow:none!important;box-sizing:border-box!important;font-size:24px!important;line-height:1!important;font-weight:700!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;
}
#fundPage #fundAdviceAllocation>span{display:inline!important;margin:0!important;padding:0!important;background:transparent!important;color:inherit!important;font:inherit!important;line-height:1!important;text-align:left!important}
#fundPage #fundAdviceAllocation>span+span{margin-left:6px!important}
#fundPage .strategy-trigger-detail,#fundPage .fund-stage-forecast{margin-top:10px!important;padding-top:10px!important}
#fundPage .fund-stage-forecast-note{margin-top:7px!important}

/* Annual signals and rules */
#fundPage .annual-signal-title{margin:0 0 10px!important}
#fundPage .swing-chart-shell,#fundPage .swing-recent-list{margin-top:0!important}
#fundPage .strategy-rules-static-head{margin-bottom:10px!important;padding-bottom:9px!important}
#fundPage .swing-rule-flow{gap:8px!important}
#fundPage .swing-rule{padding:10px 12px!important}

@media(max-width:700px){
  #fundPage .fund-ma-card,#fundPage .fund-signal,#fundPage .annual-signal-card,#fundPage .strategy-rules-details{padding:14px!important}
  #fundPage .fund-market-row{grid-template-columns:1fr!important}
  #fundPage .fund-market-field{min-height:0!important}
  #fundPage .fund-refresh-row{justify-content:stretch!important}
  #fundPage .simple-status-metrics{grid-template-columns:1fr!important;gap:8px!important}
  #fundPage .simple-status-metrics .strategy-status-metric{min-height:0!important;padding:12px!important}
  #fundPage #fundAdviceAllocation,#fundPage .simple-status-metrics .next-trigger>strong{height:46px!important;min-height:46px!important;max-height:46px!important;font-size:23px!important}
}
