.report-main { width: min(1680px,calc(100% - 34px)); gap: 14px; }
.report-hero { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #fff; background: linear-gradient(120deg,#10284e,#1d477e); border-radius: 19px; }
.report-hero h1,.report-hero p { margin: 0; }
.report-hero h1 { font-size: clamp(30px,4vw,43px); }
.report-hero p:not(.eyebrow) { margin-top: 7px; color: #cbd9ec; }
.report-hero button { padding: 11px 19px; color: #163d77; background: #fff; border: 0; border-radius: 10px; font-weight: 850; }
.history-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.history-totals article { padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.history-totals small,.history-totals b { display: block; }
.history-totals small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.history-totals b { margin-top: 4px; font-size: 23px; }
.history-panel { overflow: hidden; }
.history-head,.history-day-row { display: grid; grid-template-columns: 1.3fr .7fr repeat(3,1fr) .55fr; align-items: center; gap: 15px; }
.history-head { padding: 13px 18px; color: var(--muted); background: #f1f4f9; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.history-day { border-top: 1px solid var(--line); }
.history-day:first-child { border-top: 0; }
.history-day-row { width: 100%; padding: 17px 18px; text-align: left; color: var(--ink); background: #fff; border: 0; }
.history-day-row:hover,.history-day.expanded .history-day-row { background: #f7f9fd; }
.history-day-row span b,.history-day-row span small,.history-strategy-row span b,.history-strategy-row span small { display: block; }
.history-day-row small,.history-strategy-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.history-day-row strong,.history-strategy-row strong { font-size: 15px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: var(--ink) !important; }
.cost { color: var(--amber) !important; }
.archive-status { width: fit-content; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.archive-status.final { color: #446079; background: #eaf0f5; }
.archive-status.live { color: #1d794f; background: #e6f5ed; }
.history-strategies { padding: 0 18px 14px; background: #f7f9fd; }
.history-strategy-head,.history-strategy-row { display: grid; grid-template-columns: 1.3fr 1.1fr .55fr repeat(3,.8fr) .8fr; align-items: center; gap: 12px; }
.history-strategy-head { padding: 10px 13px; color: #748197; background: #eaf0f7; border-radius: 10px 10px 0 0; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.history-strategy-row { padding: 13px; background: #fff; border: 1px solid #e3e8f0; border-top: 0; }
.history-strategy-row:last-child { border-radius: 0 0 10px 10px; }
.report-empty { padding: 28px; color: var(--muted); text-align: center; }
.report-message { padding: 13px 16px; color: #a52f2f; background: #fff0f0; border: 1px solid #efc2c2; border-radius: 11px; }

.market-watch-body { min-height: 100vh; overflow-x: hidden; background: #eef3fa; }
.market-watch-main { width: min(1600px,calc(100% - 28px)); margin: 16px auto 28px; gap: 13px; }
.watch-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 8px 3px; }
.watch-title h1,.watch-title p { margin: 0; }
.watch-title h1 { font-size: clamp(30px,5vw,46px); }
.watch-title p:not(.eyebrow),.watch-title time { color: var(--muted); font-size: 12px; }
.watch-grid { min-height: calc(100vh - 190px); display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.8fr); grid-template-rows: auto 1fr; gap: 13px; }
.watch-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 28px #18345b0b; }
.watch-card > header { min-height: 78px; padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.watch-card > header > div { display: flex; align-items: center; gap: 12px; }
.watch-card > header span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #4169d8; border-radius: 12px; font-size: 18px; font-weight: 900; }
.watch-card header small,.watch-card header h2 { display: block; margin: 0; }
.watch-card header small { color: #70809a; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.watch-card header h2 { margin-top: 2px; font-size: 19px; }
.watch-card header > b { color: #3e60ad; font-size: 10px; letter-spacing: .06em; }
.instruments-card { grid-row: 1 / span 2; }
.watch-instruments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.watch-instrument { min-height: 78px; padding: 13px 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 12px; border-right: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.watch-instrument span b,.watch-instrument span small { display: block; }
.watch-instrument span b { font-size: 14px; }
.watch-instrument span small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.watch-instrument strong { font-size: 20px; }
.watch-instrument time { grid-column: 2; color: #8590a1; font-size: 8px; font-weight: 800; }
.watch-instrument.live strong { color: #246c52; }
.watch-instrument.unavailable { opacity: .65; }
.watch-pnl { padding: 15px 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.watch-pnl > div { padding: 13px; background: #f6f8fc; border-radius: 11px; }
.watch-pnl small,.watch-pnl b { display: block; }
.watch-pnl small { color: var(--muted); font-size: 9px; font-weight: 900; }
.watch-pnl b { margin-top: 4px; font-size: 19px; }
.watch-pnl .watch-net { grid-column: 1 / -1; background: #edf3ff; }
.watch-pnl .watch-net b { font-size: 28px; }
.watch-counts { padding: 15px 17px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.watch-counts div { padding: 12px 5px; text-align: center; background: #f4f7fb; border-radius: 10px; }
.watch-counts b,.watch-counts small { display: block; }
.watch-counts b { font-size: 22px; }
.watch-counts small { margin-top: 3px; color: var(--muted); font-size: 7px; font-weight: 900; }
.warning-card { grid-column: 2; }
.warning-card[data-state="critical"] { border-color: #e39898; box-shadow: 0 0 0 2px #f9dddd; }
.warning-card[data-state="critical"] > header { background: #fff2f2; }
.warning-card[data-state="critical"] header span { background: #c54242; }
.warning-card > header > b { min-width: 33px; min-height: 33px; display: grid; place-items: center; color: #fff; background: #2a8a61; border-radius: 999px; font-size: 14px; }
.warning-card[data-state="critical"] > header > b { background: #c54242; }
.watch-warnings { max-height: 310px; overflow: auto; }
.watch-warnings article { padding: 13px 16px; border-bottom: 1px solid #eee; }
.watch-warnings article > div { display: flex; justify-content: space-between; gap: 12px; }
.watch-warnings article strong { color: #a92f2f; }
.watch-warnings article time { color: var(--muted); font-size: 10px; }
.watch-warnings article p { margin: 6px 0 0; color: #4d586d; font-size: 11px; line-height: 1.45; }
.watch-clear { padding: 24px; color: #22744f; text-align: center; font-weight: 800; }

@media (max-width: 920px), (max-device-width: 920px), (hover: none) and (pointer: coarse) {
  .site-header { padding: 9px 12px; flex-wrap: wrap; }
  .market-watch-header .console-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .market-watch-header .console-nav a { min-width: 0; text-align: center; white-space: nowrap; }
  .history-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-head { display: none; }
  .history-day-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-strategy-head { display: none; }
  .history-strategy-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .market-watch-main,.watch-title,.watch-grid,.watch-card { width: 100%; min-width: 0; max-width: 100%; }
  .watch-grid { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
  .instruments-card { order: 1; grid-column: auto; grid-row: auto; }
  .pnl-card { order: 2; grid-column: auto; grid-row: auto; }
  .count-card { order: 3; grid-column: auto; grid-row: auto; }
  .warning-card { order: 4; grid-column: auto; grid-row: auto; }
  .watch-instruments { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .market-watch-header .brand small { display: none; }
  .site-header .console-nav { gap: 2px; }
  .site-header .console-nav a { padding: 7px 8px; font-size: 10px; }
  .workspace-picker span { display: none; }
  .report-main { width: calc(100% - 16px); margin-top: 8px; }
  .market-watch-main { width: 100%; margin: 0; padding: 8px; }
  .report-hero { padding: 19px; }
  .report-hero p:not(.eyebrow) { font-size: 11px; }
  .history-totals { grid-template-columns: 1fr 1fr; }
  .history-totals article { padding: 13px; }
  .history-totals b { font-size: 17px; }
  .history-day-row { padding: 14px; gap: 10px; }
  .history-strategies { padding: 0 8px 9px; }
  .history-strategy-row { padding: 11px; }
  .watch-title { padding: 5px 2px 2px; }
  .watch-title h1 { font-size: 29px; }
  .watch-title time { display: none; }
  .watch-card { border-radius: 14px; }
  .watch-card > header { min-height: 62px; padding: 9px 11px; }
  .watch-card > header span { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
  .watch-card header h2 { font-size: 17px; }
  .watch-instruments { grid-template-columns: 1fr; max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; }
  .watch-instrument { min-width: 0; min-height: 62px; padding: 8px 11px; grid-template-columns: minmax(0,1fr) minmax(88px,auto); border-right: 0; }
  .watch-instrument strong { max-width: 132px; overflow: hidden; font-size: 18px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .watch-pnl { padding: 11px; gap: 8px; }
  .watch-pnl > div { padding: 10px; }
  .watch-pnl .watch-net b { font-size: 24px; }
  .watch-counts { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px; }
  .watch-warnings { max-height: 36vh; }
}
