
/* ---- row layout ---- */
@media (min-width:1280px){
  html.mtp-v4:root body #content .mtp-dash-top-row{grid-template-columns:400px minmax(0,1fr) 400px !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right{display:contents}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-left.mtp-hl2-left{grid-column:1/-1 !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-hl2-strip{grid-column:1 !important;grid-row:2 !important;align-self:stretch !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-movers-card{grid-column:2;grid-row:2;margin:0 !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-home-events{grid-column:3;grid-row:2;margin:0 !important;height:0;min-height:100%;box-sizing:border-box}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-ad-horizontal{grid-column:1/-1;grid-row:3}
  html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card + .mtp-section-card{flex:1 1 auto !important}
}
@media (min-width:981px) and (max-width:1279px){
  html.mtp-v4:root body #content .mtp-dash-top-row{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right{display:contents}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-left.mtp-hl2-left{grid-column:1/-1 !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-hl2-strip{grid-column:1 !important;grid-row:2 !important;align-self:stretch !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-movers-card{grid-column:2;grid-row:2;margin:0 !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-home-events{grid-column:1/-1;grid-row:3;margin:0 !important}
  html.mtp-v4:root body #content .mtp-dash-top-row > .mtp-dash-right > .mtp-ad-horizontal{grid-column:1/-1;grid-row:4}
  html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card + .mtp-section-card{flex:1 1 auto !important}
}
/* ---- 1. Markets: one quote table ---- */
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card{background:#fff}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card:first-child::before{content:"Markets";display:block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mtp-red,#D71920);margin:0 0 12px}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card > h3{display:grid !important;grid-template-columns:minmax(0,1fr) 96px 72px;align-items:end;font-size:10.5px !important;font-weight:600 !important;letter-spacing:.06em !important;text-transform:uppercase !important;color:#5f6368 !important;border:0 !important;border-bottom:1px solid #e3e3df !important;padding:0 0 6px !important;margin:0 !important;background:none !important}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card > h3::after{content:"Last";order:2;text-align:right;position:static;width:auto;height:auto;background:none;border:0;margin:0}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card > h3::before{content:"Day";order:3;text-align:right;position:static;width:auto;height:auto;background:none;border:0;margin:0}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card + .mtp-section-card > h3::after{content:"Total MC"}
html.mtp-v4:root body #content .mtp-hl2-strip > .mtp-section-card + .mtp-section-card{padding-top:14px !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-cmd-grid,
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-idx-grid.mtp-gsidx{display:grid !important;grid-template-columns:minmax(0,1fr) !important;grid-template-rows:none !important;grid-auto-rows:auto !important;gap:0 !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-idx-grid.mtp-gsidx > *{grid-column:1/-1 !important;grid-row:auto !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-cmd-grid > .mtp-tile[data-sym="XIU.TO"]{order:9}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile{display:block !important;background:transparent !important;border:0 !important;border-bottom:1px solid #f0f0ec !important;border-radius:0 !important;box-shadow:none !important;padding:0 !important;min-height:0 !important;height:auto !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-icon{display:none !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-info{display:grid !important;grid-template-columns:minmax(0,1fr) 96px 72px;align-items:center;height:34px;gap:0 !important;flex-wrap:nowrap}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-label{font-size:13.5px !important;font-weight:500 !important;text-transform:none !important;letter-spacing:0 !important;color:#1a1a1a !important;line-height:1.2 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-price{display:block !important;text-align:right;font-size:13.5px !important;font-weight:600 !important;font-variant-numeric:tabular-nums;color:#1a1a1a !important;margin:0 !important;line-height:1.2 !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-mc-tag{display:none !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-tile-change{text-align:right;font-size:12.5px !important;font-weight:600 !important;font-variant-numeric:tabular-nums;min-width:0 !important;line-height:1.2 !important}
html.mtp-v4:root body #content .mtp-hl2-strip .mtp-idx-grid.mtp-gsidx > .mtp-idx-grouphead{padding:9px 0 3px !important;margin:0 !important;border:0 !important;font-size:10.5px !important}
/* ---- 2. Most Active ---- */
html.mtp-v4:root body #content .mtp-movers-card{padding:0 !important;display:flex;flex-direction:column;overflow:hidden}
html.mtp-v4:root body #content .mtp-movers-card .mtp-movers-tabs{display:flex !important;justify-content:flex-start !important;gap:22px !important;padding:12px 18px 0 !important;border:0 !important;border-bottom:1px solid #e3e3df !important;background:none !important;margin:0 !important}
html.mtp-v4:root body #content .mtp-movers-card .mtp-movers-tabs .mtp-tab{flex:0 0 auto !important;background:none !important;border:0 !important;border-bottom:2px solid transparent !important;border-radius:0 !important;box-shadow:none !important;padding:6px 0 10px !important;margin:0 0 -1px !important;font-size:13px !important;font-weight:500 !important;color:#5f6368 !important;width:auto !important}
html.mtp-v4:root body #content .mtp-movers-card .mtp-movers-tabs .mtp-tab.active{color:var(--mtp-red,#D71920) !important;font-weight:700 !important;border-bottom-color:var(--mtp-red,#D71920) !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card{padding:0 !important;margin:0 !important;border:0 !important;background:none !important;box-shadow:none !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card > h4{display:none !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row{display:grid !important;grid-template-columns:26px 74px minmax(0,1fr) 84px 150px;align-items:center;height:34px;padding:0 18px !important;margin:0 !important;border:0 !important;border-top:1px solid #f0f0ec !important;border-radius:0 !important;background:none !important;font-size:13.5px !important;gap:0 !important;box-sizing:border-box}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row:not(.mover-head):hover{background:#fafaf8 !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row.mover-head{height:auto;padding:10px 18px 6px !important;border-top:0 !important;font-size:10.5px !important;letter-spacing:.06em !important;color:#5f6368 !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row > span{width:auto !important;min-width:0 !important;flex:none !important;max-width:none !important;margin:0 !important;padding:0 !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-rank{color:#5f6368 !important;font-size:12px !important;text-align:left !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row:not(.mover-head) .mover-ticker,
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row:not(.mover-head) .mover-ticker a{font-weight:700 !important;color:var(--mtp-red,#D71920) !important;text-align:left !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row:not(.mover-head) .mover-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3a3a3a !important;font-size:13px !important;text-align:left !important}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-price,
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-vol,
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-change{text-align:right !important;font-variant-numeric:tabular-nums;font-weight:600}
html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row.mover-head > span{font-weight:600 !important}
@media (min-width:981px){
  html.mtp-v4:root body #content .mtp-movers-card .mover-card[data-mover-tab="active"] .mover-row:not(.mover-head) .mover-vol{display:flex !important;align-items:center;justify-content:flex-end;gap:8px}
  html.mtp-v4:root body #content .mtp-movers-card .mover-card[data-mover-tab="active"] .mover-row:not(.mover-head) .mover-vol::before{content:"";flex:0 0 70px;height:6px;border-radius:3px;background:linear-gradient(#1a1a1a,#1a1a1a) 0 0/calc(var(--mtp-vbar,0) * 1%) 100% no-repeat,#f0f0ec}
}
@media (max-width:980px){
  html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row{grid-template-columns:22px 60px minmax(0,1fr) 72px 70px;padding:0 12px !important}
  html.mtp-v4:root body #content .mtp-movers-card .mover-card .mover-row.mover-head{padding:10px 12px 6px !important}
  html.mtp-v4:root body #content .mtp-movers-card .mtp-movers-tabs{padding:10px 12px 0 !important;gap:16px !important}
}
/* ---- 3. Upcoming Events: grouped by date and event ---- */
html.mtp-v4:root body #content .mtp-home-events.mtp-v4-on{display:flex;flex-direction:column}
html.mtp-v4:root body #content .mtp-home-events.mtp-v4-on > ul.mtp-hev-list{display:none !important}
html.mtp-v4:root body #content .mtp-v4-ev{flex:1 1 auto;min-height:0;overflow-y:auto;margin-top:6px}
html.mtp-v4:root body #content .mtp-v4-day{display:flex;gap:14px;padding:12px 0;border-top:1px solid #f0f0ec}
html.mtp-v4:root body #content .mtp-v4-day:first-child{border-top:0;padding-top:4px}
html.mtp-v4:root body #content .mtp-v4-tile{flex:0 0 52px;text-align:center;border:1px solid #e3e3df;border-radius:6px;padding:6px 0;align-self:flex-start;line-height:1.1}
html.mtp-v4:root body #content .mtp-v4-mon{font-size:10.5px;font-weight:700;letter-spacing:.08em;color:var(--mtp-red,#D71920)}
html.mtp-v4:root body #content .mtp-v4-dd{font-size:22px;font-weight:700;color:#1a1a1a}
html.mtp-v4:root body #content .mtp-v4-today{font-size:10.5px;color:#5f6368;margin-top:2px}
html.mtp-v4:root body #content .mtp-v4-items{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:12px}
html.mtp-v4:root body #content .mtp-v4-type{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5f6368}
html.mtp-v4:root body #content .mtp-v4-name{font-size:14px;font-weight:600;line-height:1.3;color:#1a1a1a;margin-top:2px}
html.mtp-v4:root body #content .mtp-v4-sub{font-size:12px;color:#5f6368;margin-top:2px}
html.mtp-v4:root body #content .mtp-v4-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
html.mtp-v4:root body #content .mtp-v4-chip{display:inline-block;padding:3px 8px;border:1px solid #e3e3df;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;line-height:1.3}
html.mtp-v4:root body #content .mtp-v4-chip,html.mtp-v4:root body #content .mtp-v4-chip a{color:var(--mtp-red,#D71920) !important;text-decoration:none !important}
html.mtp-v4:root body #content .mtp-v4-chip:hover{border-color:var(--mtp-red,#D71920)}
