/* Homepage layout with shared portfolio HUD surfaces and quant control styling. */
#tab-dashboard .decision-home-summary { display: flex; flex-direction: column; gap: 16px; font-family: var(--font-cn-sans); }
#tab-dashboard .decision-home-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
#tab-dashboard .decision-home-result { font-size: 12px; color: var(--overview-muted); }
#tab-dashboard .decision-home-result.is-danger { color: var(--neon-red); }
#tab-dashboard .decision-home-context { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--overview-muted); font-size: 13px; overflow-wrap: anywhere; }
#tab-dashboard .decision-home-context strong { color: var(--text-main); font-weight: 500; }
#tab-dashboard .decision-home-excerpt { margin: 0; color: var(--overview-muted); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#tab-dashboard .decision-home-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--overview-line); padding-top: 14px; color: var(--overview-muted); font-size: 12px; }
#tab-dashboard .decision-home-footer button { flex-shrink: 0; }
#tab-dashboard {
  --overview-muted: #93aab8;
  --overview-line: rgba(159, 194, 215, .16);
  min-width: 0;
  font-family: var(--font-cn-sans);
  color: var(--text-main);
}
#tab-dashboard .overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
#tab-dashboard .overview-heading p { margin-top: 6px; }
#tab-dashboard .overview-summary { margin-bottom: 20px; }
#tab-dashboard .overview-heading p, #tab-dashboard .overview-caption { color: var(--overview-muted); font-size: 12px; }
#tab-dashboard .overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 0 0; gap: 20px; }
#tab-dashboard .overview-metric { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 20px; border-right: 1px solid var(--overview-line); }
#tab-dashboard .overview-metric:first-child { padding-left: 0; }
#tab-dashboard .overview-metric:last-child { border-right: 0; }
#tab-dashboard .overview-label { font-size: 13px; color: var(--overview-muted); }
#tab-dashboard .overview-metric > :nth-child(2) { font-family: var(--font-mono); font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1.3; margin: 0; overflow-wrap: anywhere; text-shadow: none; }
#tab-dashboard #account-value { color: var(--neon-cyan); text-align: left; }
#tab-dashboard .overview-grid { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); align-items: start; gap: 20px; }
#tab-dashboard .dashboard-left-column, #tab-dashboard .dashboard-right-column { gap: 20px; }
#tab-dashboard .hud-panel { min-width: 0; }
#tab-dashboard .panel-header { gap: 12px; flex-wrap: wrap; }
#tab-dashboard .panel-title { margin: 0; font-size: 16px; font-weight: 500; }
#tab-dashboard .tag { font-family: inherit; box-shadow: none; text-shadow: none; }
#tab-dashboard .text-cyan, #tab-dashboard .text-green, #tab-dashboard .text-red { text-shadow: none; }
#tab-dashboard .asset-performance-layout { display: block; min-height: 0; }
#tab-dashboard .asset-chart-pane { min-height: 0; }
#tab-dashboard .chart-container { height: 300px; min-height: 0; flex: none; }
#tab-dashboard #equityChart { height: 100%; }
#tab-dashboard .overview-details { border-top: 1px solid var(--overview-line); margin-top: 18px; padding-top: 4px; }
#tab-dashboard summary { cursor: pointer; min-height: 44px; padding: 13px 0; color: var(--overview-muted); font-size: 13px; line-height: 1.5; }
#tab-dashboard summary:hover { color: var(--neon-cyan); }
#tab-dashboard :is(button, select, input) { min-height: 38px; }
#tab-dashboard :is(button, summary, select, input):focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
#tab-dashboard .cyber-btn { box-shadow: none; text-shadow: none; font-family: inherit; font-size: 12px; padding: 8px 14px; line-height: 1.5; letter-spacing: 0; white-space: normal; transition: background .15s, border-color .15s, color .15s; }
#tab-dashboard .cyber-btn:hover:not(:disabled) { background: rgba(0, 243, 255, .09); color: var(--neon-cyan); }
#tab-dashboard .ops-btn-warning { border-color: var(--neon-yellow); color: var(--neon-yellow); }
#tab-dashboard .ops-btn-warning:hover:not(:disabled) { background: rgba(252, 238, 10, .1); color: var(--neon-yellow); }
#tab-dashboard .btn-danger { border-color: var(--neon-red); color: var(--neon-red); }
#tab-dashboard .btn-danger:hover:not(:disabled) { background: rgba(255, 42, 42, .1); color: var(--neon-red); }
#tab-dashboard .cyber-input { font-family: inherit; font-size: 13px; background: #0b1520; color: var(--text-main); border-color: rgba(159, 194, 215, .3); }
#tab-dashboard .cyber-input:focus { border-color: var(--neon-cyan); }
#tab-dashboard .text-dim { color: var(--overview-muted); }
#tab-dashboard .overview-account-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 12px; }
#tab-dashboard .asset-summary-pane { border: 0; padding: 0; background: transparent; min-width: 0; }
#tab-dashboard .performance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; align-content: start; }
#tab-dashboard .metric-tile { background: transparent; border: 0; border-bottom: 1px solid var(--overview-line); border-radius: 0; padding: 12px 0; }
#tab-dashboard .risk-core-grid { gap: 8px; }
#tab-dashboard .risk-core-item { background: transparent; border: 0; border-bottom: 1px solid var(--overview-line); padding: 8px 0; min-width: 0; }
#tab-dashboard .ops-value, #tab-dashboard .ops-gate-val { overflow-wrap: anywhere; }
#tab-dashboard .asset-risk-boundary { margin-top: 16px; }
#tab-dashboard .overview-quick-action { margin-top: 16px; }
#tab-dashboard .overview-quick-action button { width: 100%; }
#tab-dashboard .system-health-grid { margin-top: 16px; gap: 8px; }
#tab-dashboard .system-health-grid .ops-status-item { background: transparent; border: 0; padding: 6px 0; }
#tab-dashboard .ops-emergency-details { margin-top: 0; }
#tab-dashboard .positions-summary-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
#tab-dashboard .positions-summary-grid .metric-tile { flex: 1; min-width: 90px; }
#tab-dashboard .dashboard-position-list { max-height: none; overflow: visible; }
#tab-dashboard .decision-section { min-height: 0; }
#tab-dashboard #decision-content { max-height: none; overflow: visible; padding: 0; }
#tab-dashboard .decision-latest-mainline, #tab-dashboard .decision-home-content-grid { display: flex; flex-direction: column; gap: 12px; }
#tab-dashboard .decision-latest-card, #tab-dashboard .decision-home-text-panel { padding: 0; background: transparent; border: 0; box-shadow: none; }
#tab-dashboard .decision-verdict { font-size: 21px; }
#tab-dashboard .decision-chip { background: transparent; border: 0; padding: 2px 0; white-space: normal; }
#tab-dashboard .decision-chip-row { gap: 8px 14px; }
#tab-dashboard .decision-latest-pricebar { flex-wrap: wrap; }
#tab-dashboard .decision-latest-context, #tab-dashboard .decision-home-text-panel { min-width: 0; width: 100%; }
#tab-dashboard .decision-excerpt { font-size: 13px; line-height: 1.85; color: var(--overview-muted); }
#tab-dashboard .decision-markdown { overflow-wrap: anywhere; }
#tab-dashboard .decision-markdown pre { max-width: 100%; overflow-x: auto; }
#tab-dashboard .decision-home-content-grid > details { width: 100%; min-width: 0; }
@media (max-width: 1100px) {
  #tab-dashboard .overview-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "risk" "positions" "asset" "decision"; }
  #tab-dashboard .dashboard-left-column, #tab-dashboard .dashboard-right-column { display: contents; }
  #tab-dashboard .risk-core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tab-dashboard .risk-core-wide { grid-column: auto; }
}
@media (max-width: 600px) {
  #tab-dashboard .overview-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  #tab-dashboard :is(button, select, input) { min-height: 44px; }
  #tab-dashboard .overview-summary { margin-bottom: 16px; }
  #tab-dashboard .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 0; }
  #tab-dashboard .overview-metric { padding: 0 10px; }
  #tab-dashboard .overview-metric:nth-child(odd) { padding-left: 0; }
  #tab-dashboard .overview-metric:nth-child(even) { border: 0; }
  #tab-dashboard .overview-grid { gap: 16px; }
  #tab-dashboard .hud-panel { padding: 16px; }
  #tab-dashboard .risk-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-dashboard .risk-core-wide { grid-column: 1 / -1; }
  #tab-dashboard .overview-account-details { grid-template-columns: minmax(0, 1fr); }
  #tab-dashboard .chart-container { height: 230px; }
  #tab-dashboard .asset-chart-toolbar { flex-wrap: wrap; gap: 10px; }
  #tab-dashboard .segmented-control { max-width: 100%; }
  #tab-dashboard .segmented-control button { padding-inline: 10px; }
  #tab-dashboard .ops-action-grid, #tab-dashboard .ops-drill-row { display: flex; flex-direction: column; }
  #tab-dashboard .ops-drill-row select { width: 100%; min-width: 0; }
  #tab-dashboard .dashboard-position-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  #tab-dashboard .dashboard-position-symbol { grid-column: 1 / -1; }
  #tab-dashboard .asset-risk-labels { flex-wrap: wrap; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #tab-dashboard *, #tab-dashboard *::before, #tab-dashboard *::after { animation: none !important; transition: none !important; }
}
