/* v126: right panel becomes a drawer, grouped left menu, Buy/Sell bar */
html .app { grid-template-columns: var(--m126-l, 264px) minmax(0, 1fr) !important; }
html .macro-panel { position: fixed !important; top: 60px; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 60; display: none !important; background: var(--bg-2) !important; box-shadow: -10px 0 40px rgba(0,0,0,0.5); border-left: 1px solid var(--border-mid) !important; max-height: none !important; }
html.m126-open .macro-panel { display: block !important; }
html .macro-panel .sk-ptabs, html .macro-panel .panel-select-row { display: none !important; }
.m126-hd { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; font-weight: 600; font-size: 14px; color: var(--text-primary); }
.m126-hd button { background: transparent; border: 1px solid var(--border-mid); color: var(--text-primary); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
html.m126-bb .macro-panel > *:not(.l106):not(.m126-hd) { display: none !important; }
html:not(.m126-bb) .macro-panel .l106 { display: none !important; }
html .sidebar-section-header[data-section="prediction"], html #sidebar-prediction, html .sidebar-section-header[data-section="smarkets"], html #sidebar-smarkets, html #sidebar-brokerhead, html #sidebar-brokerhead + div { display: none !important; }
html .sk-menu a.gap { margin-top: 0 !important; }
.sk-menu .m126-gh { display: flex; align-items: center; gap: 6px; padding: 9px 14px 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-primary); cursor: pointer; user-select: none; }
.sk-menu .m126-gh i { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -2px; transition: transform .15s; }
.sk-menu .m126-gh.c i { transform: rotate(-45deg); margin-top: 0; }
.sk-menu a.m126-c { display: none !important; }
#m126-bar { position: absolute; top: 8px; left: 8px; z-index: 25; display: flex; align-items: stretch; gap: 3px; font-family: var(--font-mono, monospace); }
#m126-bar button { border: 0; cursor: pointer; color: #fff; line-height: 1.1; border-radius: 4px; padding: 3px 7px; font-size: 10px; display: flex; flex-direction: column; align-items: center; min-width: 54px; }
#m126-bar button b { font-size: 11px; font-weight: 600; }
#m126-bar button i { font-style: normal; font-size: 8px; letter-spacing: 0.06em; opacity: 0.95; }
#m126-bar .sell { background: #c23b3b; }
#m126-bar .buy { background: #1f8f5f; }
#m126-bar .tg, #m126-bar .gr { background: var(--bg-2); color: var(--text-primary); border: 1px solid var(--border-mid); min-width: 0; padding: 3px 6px; justify-content: center; font-size: 11px; }
#m126-bar.sz2 button { padding: 5px 10px; font-size: 12px; min-width: 70px; }
#m126-bar.sz2 button b { font-size: 14px; }
#m126-bar.sz3 button { padding: 8px 14px; font-size: 14px; min-width: 92px; }
#m126-bar.sz3 button b { font-size: 18px; }
#m126-bar.sz2 .tg, #m126-bar.sz2 .gr, #m126-bar.sz3 .tg, #m126-bar.sz3 .gr { min-width: 0; }
#m126-bar.col .sell, #m126-bar.col .buy, #m126-bar.col .gr { display: none; }
#m126-bar.off { display: none; }
#m126-pop { position: absolute; top: 44px; left: 8px; z-index: 26; background: var(--bg-2); color: var(--text-primary); border: 1px solid var(--border-mid); border-radius: 8px; padding: 10px 12px; font-size: 12px; width: 230px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
#m126-pop h4 { margin: 0 0 8px; font-size: 12px; }
#m126-pop .r { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
#m126-pop select { background: var(--bg-2); color: var(--text-primary); border: 1px solid var(--border-mid); border-radius: 5px; padding: 3px 5px; font-size: 12px; }
#m126-toast { position: absolute; top: 46px; left: 8px; z-index: 27; background: var(--bg-2); color: var(--text-primary); border: 1px solid var(--border-mid); border-radius: 6px; padding: 6px 10px; font-size: 12px; }
