/* STRELEC_TRADER_COMPACT_V2: desktop terminal at browser zoom 100% */
@media (min-width:1280px) and (min-height:720px) {
  html, body.cockpit-body { height:100dvh !important; min-height:0 !important; overflow:hidden !important; }
  body.cockpit-body { padding:0 !important; font-size:13px !important; }
  .hf25-top { height:56px !important; min-height:56px !important; padding:0 14px !important; gap:10px !important; position:relative !important; }
  .hf25-brand { min-width:185px !important; gap:8px !important; }
  .hf25-logo { width:32px !important; height:32px !important; }
  .hf25-brand strong { font-size:16px !important; }
  .hf25-brand small { font-size:9px !important; }
  .hf25-statuses,.hf25-actions { gap:5px !important; flex-wrap:nowrap !important; }
  .hf25-pill { padding:6px 8px !important; font-size:10px !important; }
  .hf25-actions .btn { min-height:30px !important; padding:5px 8px !important; font-size:10px !important; }

  .network-switcher { max-width:2200px; height:72px; margin:6px auto 0 !important; padding:6px 10px !important; box-sizing:border-box; }
  .network-switcher-head { float:left; width:255px; height:58px; margin:0 8px 0 0 !important; align-items:center !important; }
  .network-switcher-head span { font-size:8px !important; }
  .network-switcher-head strong { font-size:12px !important; }
  .selected-network-kpi { display:none !important; }
  .network-switcher-grid { height:58px; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:6px !important; }
  .network-card { min-height:58px !important; height:58px !important; padding:6px 9px !important; grid-template-columns:32px minmax(0,1fr) auto !important; gap:7px !important; overflow:hidden !important; }
  .network-logo { width:28px !important; height:28px !important; }
  .network-copy b { font-size:11px !important; }
  .network-copy small { font-size:8px !important; }
  .network-money { min-width:115px !important; }
  .network-money strong { font-size:11px !important; }
  .network-money em { display:none !important; }
  .network-money .network-usdt-balance { display:block !important; margin-top:2px !important; font-size:8px !important; white-space:nowrap !important; }
  .network-money small { display:none !important; }
  .multi-market-board { display:none !important; }

  .hf25-shell { max-width:2200px !important; height:calc(100dvh - 140px) !important; margin:6px auto 0 !important; padding:0 10px 8px !important; box-sizing:border-box; overflow:hidden !important; }
  .hf25-grid { height:100% !important; margin:0 !important; grid-template-columns:300px minmax(620px,1fr) 360px !important; gap:8px !important; align-items:stretch !important; }
  .hf25-column { min-height:0 !important; gap:8px !important; overflow:hidden !important; }
  .hf25-card { padding:10px !important; border-radius:9px !important; box-shadow:none !important; }
  .hf25-card-head { margin-bottom:7px !important; gap:7px !important; }
  .hf25-card-head h2 { font-size:13px !important; }
  .hf25-eyebrow { font-size:8px !important; }
  .status-chip { font-size:8px !important; padding:3px 6px !important; }
  .hf25-card p,.hf25-card li,.hf25-card small { font-size:10px !important; }

  .hf25-column:first-child > .hf25-card:nth-child(1) { flex:0 0 158px; }
  .hf25-column:first-child > .hf25-card:nth-child(2) { flex:0 0 184px; }
  .hf25-column:first-child > .hf25-card:nth-child(3) { flex:0 0 128px; }
  .hf25-main-status { grid-template-columns:44px 1fr !important; gap:9px !important; padding:5px 0 !important; }
  .hf25-pulse { width:40px !important; height:40px !important; font-size:18px !important; }
  .hf25-main-status strong { font-size:16px !important; }
  .hf25-main-status p { font-size:10px !important; line-height:1.25 !important; }
  .hf25-small-grid { gap:5px !important; }
  .hf25-metric { padding:7px !important; }
  .hf25-metric span { font-size:8px !important; }
  .hf25-metric strong { margin-top:3px !important; font-size:11px !important; }
  .market-regime-block strong { font-size:16px !important; }
  .market-regime-block p { font-size:10px !important; line-height:1.3 !important; }
  .hf25-market-bars { gap:6px !important; }
  .hf25-market-row { grid-template-columns:92px 1fr 40px !important; gap:5px !important; }
  .hf25-market-row span { font-size:9px !important; }
  .hf25-controls { gap:6px !important; }
  .hf25-controls .btn { min-height:32px !important; font-size:10px !important; }
  .session-line,.action-result { font-size:9px !important; }

  .hf25-column:nth-child(2) > .hf25-ai { flex:0 0 340px; min-height:0 !important; overflow:hidden !important; }
  .hf25-column:nth-child(2) > .hf25-position { flex:1 1 auto; min-height:0 !important; overflow:hidden !important; }
  .hf25-ai-layout { grid-template-columns:108px 1fr !important; gap:10px !important; }
  .hf25-avatar.hf28-astra-photo { height:168px !important; }
  .hf25-ai-speech { padding:10px !important; }
  .hf25-ai-speech h1 { font-size:20px !important; margin-bottom:5px !important; }
  .hf25-ai-speech p { font-size:11px !important; line-height:1.35 !important; margin-bottom:7px !important; }
  .hf25-evidence { gap:6px !important; margin-top:6px !important; }
  .hf25-evidence > div { padding:7px !important; max-height:78px !important; overflow:hidden !important; }
  .hf25-evidence b { font-size:8px !important; }
  .hf25-evidence ul { margin:4px 0 0 !important; padding-left:14px !important; line-height:1.25 !important; }
  .hf29-answer { min-height:0 !important; height:28px !important; margin-top:6px !important; padding:6px 8px !important; overflow:hidden !important; white-space:nowrap; text-overflow:ellipsis; font-size:9px !important; }
  .hf29-quick { display:none !important; }
  .hf29-ask { margin-top:6px !important; grid-template-columns:1fr 90px !important; gap:5px !important; }
  .hf29-ask input,.hf29-ask button { height:30px !important; font-size:9px !important; }
  .agent-meta { display:none !important; }
  .hf25-position #openPositionsBoard { min-height:0 !important; height:calc(100% - 35px) !important; overflow:hidden !important; }
  .position-empty { min-height:0 !important; height:100% !important; }
  .sell-command-card { padding:9px !important; }
  .sell-result-hero > strong { font-size:34px !important; }
  .sell-command-grid,.sell-snapshot-grid { gap:6px !important; margin-top:6px !important; }
  .sell-result-hero,.sell-ai-verdict,.sell-snapshot-grid>div { padding:8px 9px !important; }
  .position-explanation,.position-actions { margin-top:6px !important; padding:6px 8px !important; }
  .manual-sell-button { min-height:38px !important; font-size:13px !important; }

  .hf25-column:last-child > .hf25-feed { flex:0 0 330px; min-height:0 !important; overflow:hidden !important; }
  .hf25-column:last-child > .hf25-capital { flex:1 1 auto; min-height:0 !important; overflow:hidden !important; }
  .hf25-feed #candidateFeed { max-height:none !important; overflow:hidden !important; gap:4px !important; }
  .candidate-row { min-height:34px !important; grid-template-columns:82px 74px minmax(0,1fr) 38px !important; gap:5px !important; padding:5px 6px !important; }
  .candidate-row .chip { font-size:8px !important; }
  .candidate-row strong { font-size:9px !important; white-space:nowrap !important; overflow:hidden; text-overflow:ellipsis; }
  .candidate-row time,.candidate-mint { font-size:8px !important; }
  .runtime-mini-grid { gap:4px !important; margin-bottom:5px !important; }
  .runtime-mini-grid > * { padding:5px !important; }
  #marketActivityCard { flex:0 0 auto !important; padding:0 !important; overflow:hidden !important; }
  #marketActivityCard > summary { padding:8px 10px !important; cursor:pointer; color:#91a8b6; font-size:9px; }
  #marketActivityCard:not([open]) #marketActivityFeed { display:none !important; }
  #marketActivityFeed { max-height:180px !important; overflow:auto !important; padding:0 8px 8px; }
  .market-activity-row { grid-template-columns:48px 62px 74px minmax(0,1fr) 44px !important; gap:5px !important; padding:5px !important; font-size:8px !important; }
  .risk-score-row { margin:4px 0 !important; }
  .risk-score-row strong { font-size:20px !important; }
  .risk-facts { gap:4px !important; }
  .risk-facts > div { padding:5px 6px !important; }
  .risk-facts dt,.risk-facts dd { font-size:8px !important; }
  .pnl-equivalents { gap:4px !important; }
  .pnl-equivalents b { padding:4px 5px !important; font-size:8px !important; }
  .mini-trades { max-height:125px !important; overflow:hidden !important; }
  .hf25-tech,.hf25-footer { display:none !important; }
}

@media (min-width:1280px) and (max-height:820px) {
  .hf25-column:nth-child(2) > .hf25-ai { flex-basis:300px; }
  .hf25-avatar.hf28-astra-photo { height:145px !important; }
  .hf25-column:last-child > .hf25-feed { flex-basis:285px; }
  .hf25-column:first-child > .hf25-card:nth-child(1) { flex-basis:145px; }
  .hf25-column:first-child > .hf25-card:nth-child(2) { flex-basis:160px; }
  .hf25-column:first-child > .hf25-card:nth-child(3) { flex-basis:115px; }
}

  /* Keep the operator SELL control inside the visible top of the position panel. */
  .hf25-position .position-actions-primary { margin:6px 0 0 !important; padding:0 !important; }
  .hf25-position .position-actions-primary .position-sell-status { font-size:9px !important; line-height:1.2 !important; }
  .hf25-position .position-actions-primary .manual-sell-button { min-height:40px !important; flex:0 0 auto !important; }
  .hf25-position .position-empty { grid-template-rows:auto auto auto !important; align-content:center !important; justify-items:center !important; }
  .hf25-position .position-empty-sell { width:min(420px,92%) !important; margin-top:10px !important; opacity:.55 !important; cursor:not-allowed !important; }
