/* v127 */
html.m127 .app { grid-template-columns: var(--m126-l, 264px) minmax(0, 1fr) !important; }
html.m127.m127-rail .app { grid-template-columns: 56px minmax(0, 1fr) !important; }
html.m127 .sidebar-section-header[data-section="alerts"] { display: none !important; }
html.m127 .m127-gone { display: none !important; }
html.m127 .sk-menu a.m127-c { display: none !important; }
html.m127 .sk-menu .m127-gh { display: flex; align-items: center; gap: 8px; padding: 12px 24px 5px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-primary); cursor: pointer; user-select: none; }
html.m127 .sk-menu .m127-gh svg { display: block; flex: none; width: 17px; height: 17px; }
html.m127:not(.m127-rail) .sk-menu { display: grid; grid-template-columns: repeat(var(--m166n, 7), minmax(0, 1fr)); align-content: start; padding-top: 10px; }
html.m127:not(.m127-rail) .sk-menu > * { order: 5; grid-column: 1 / -1; }
html.m127:not(.m127-rail) .sk-menu > .sk-rule { order: 9; }
html.m127:not(.m127-rail) .sk-menu .m127-gh { order: 1; grid-column: auto; min-width: 0; justify-content: center; gap: 0; padding: 12px 0 11px; border-bottom: 2px solid transparent; opacity: .55; margin: 0; }
html.m127:not(.m127-rail) .sk-menu .m127-gh:hover { opacity: .9; }
html.m127:not(.m127-rail) .sk-menu .m127-gh:not(.c) { opacity: 1; border-bottom-color: var(--acc, #2B59FF); }
html.m127:not(.m127-rail) .sk-menu .m127-gh span, html.m127:not(.m127-rail) .sk-menu .m127-gh i { display: none; }
html.m127 .sk-menu .m164-lbl { order: 2; width: 100%; padding: 16px 24px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-primary); }
html.m127.m127-rail .sk-menu .m164-lbl { display: none; }
html.m127 .sk-menu .m127-gh svg { stroke: currentColor; }
html.m166-off .chart-header { display: none !important; }
html.m127:not(.m127-rail) .sk-menu > #m127-mk { order: 6; }
html.m127 .sk-menu .m127-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; order: 5; margin-left: auto; transition: transform .15s; }
html.m127 .sk-menu .m127-gh.c i { transform: rotate(-45deg); margin-top: 0; }
html.m127 #m127-mk.c { display: none; }
html.m127 #m127-mk .sidebar-search-wrap { padding: 0 24px 10px; }
#m127-rail { display: flex; align-items: center; justify-content: center; width: 30px; height: 28px; margin: 8px 12px 0 auto; background: transparent; color: var(--text-primary); border: 1px solid var(--border-mid); border-radius: 6px; cursor: pointer; padding: 0; }
#m127-rail svg { width: 16px; height: 16px; }
.m127-i { width: 16px; height: 16px; flex: none; }
/* rail: icons only */
html.m127-rail .sidebar { overflow-x: hidden; }
html.m127-rail .sk-menu a span, html.m127-rail #m127-install span { display: none; }
html.m127-rail .sk-menu a { justify-content: center; padding-left: 0; padding-right: 0; }
html.m127-rail .sk-menu a.m127-c { display: flex !important; }
html.m127-rail #m127-rail { margin: 8px auto 0; }
html.m127-rail .sk-menu .m127-gh { padding: 6px 0; justify-content: center; border-top: 1px solid var(--border-soft); margin-top: 6px; }
html.m127-rail .sk-menu .m127-gh span, html.m127-rail .sk-menu .m127-gh i { display: none; }
html.m127-rail .sk-menu .m127-gh svg { display: block; }
html.m127-rail #m127-mk, html.m127-rail #m127-dock, html.m127-rail .sk-rule { display: none !important; }
html.m127-rail .sk-menu a.on::before { width: 2px; }
/* Bloomberg dock */
#m127-dock { position: sticky; bottom: 0; padding: 8px 12px 10px; background: var(--bg-2); z-index: 5; }
#m127-dock .l106 { margin: 0; border: 1px solid var(--border-mid); border-radius: 8px; overflow: hidden; }
#m127-dock .l106-h { padding: 5px 10px; gap: 8px; font-size: 11px; }
html.m127 .macro-panel .l106 { display: none !important; }
html.m127 #m127-dock .l106 { display: block !important; }
/* hub */
#m127-hub { display: flex; gap: 22px; padding: 4px 4px 8px; border-bottom: 1px solid var(--border-soft); margin-bottom: 8px; overflow-x: auto; }
#m127-hub button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text-primary); font: inherit; font-size: 13px; padding: 6px 0; cursor: pointer; white-space: nowrap; opacity: 0.8; }
#m127-hub button.on { border-bottom-color: var(--acc, var(--gold-500)); opacity: 1; font-weight: 600; }
#m127-tg { margin-top: 26px; }
#m127-tg h3 { margin: 0 0 8px; font-size: 14px; }
/* chart header: one tidy row of icons */
html.m127 .chart-header { flex-wrap: wrap; row-gap: 4px; }
html.m127 .chart-align-btns { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
html.m127 .m127-ic, html.m127 #wl-star-btn.m127-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--text-primary); cursor: pointer; }
html.m127 .m127-ic:hover { border-color: var(--border-mid); background: var(--glass-light, rgba(255,255,255,0.06)); }
html.m127 .m127-ic.on { border-color: var(--acc, var(--gold-500)); color: var(--acc, var(--gold-500)); }
/* drawing bar above the chart */
html.m127 .chart-area > #draw-toolbar { position: static; left: auto; top: auto; flex-direction: row; align-items: center; max-height: none; margin: 0 0 6px; gap: 6px; z-index: 9; }
html.m127 #draw-toolbar .dt-body { flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 3px 6px; gap: 2px; max-width: 100%; }
html.m127 #draw-toolbar .dt-sep { width: 1px; height: 20px; margin: 0 5px; }
html.m127 #draw-toolbar .dt-color { margin: 0 2px; }
html.m127 #draw-toolbar .dt-toggle.m127-ic { align-self: center; border: 1px solid var(--border-mid); background: var(--bg-2); }
html.m127 #draw-toolbar .dt-act.m127-ic { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; }
html.m127 #draw-toolbar .dt-btn, html.m127 #draw-toolbar .dt-toggle, html.m127 #draw-toolbar .dt-act { color: var(--text-primary); }
html.m127 #draw-toolbar .dt-note { max-width: none; }
/* sleek Buy / Sell bar */
html.m127 #m126-bar { top: 10px; left: 10px; gap: 0; background: rgba(8, 8, 16, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--border-mid); border-radius: 8px; overflow: hidden; align-items: stretch; }
html.m127 #m126-bar button { background: transparent !important; border: 0; border-radius: 0; flex-direction: row; align-items: baseline; justify-content: center; gap: 7px; padding: 5px 12px; min-width: 0; color: #fff; line-height: 1.2; }
html.m127 #m126-bar button + button { border-left: 1px solid rgba(255, 255, 255, 0.14); }
html.m127 #m126-bar button:hover { background: rgba(255, 255, 255, 0.09) !important; }
html.m127 #m126-bar button i { font-size: 9px; letter-spacing: 0.12em; font-weight: 600; opacity: 1; }
html.m127 #m126-bar button b { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
html.m127 #m126-bar .sell i { color: #ff6b78; }
html.m127 #m126-bar .buy i { color: #35d08a; }
html.m127 #m126-bar.sz2 button { padding: 7px 14px; }
html.m127 #m126-bar.sz2 button b { font-size: 14px; }
html.m127 #m126-bar.sz3 button { padding: 10px 18px; }
html.m127 #m126-bar.sz3 button b { font-size: 18px; }
html.m127 #m126-bar .tg, html.m127 #m126-bar .gr { font-size: 0 !important; padding: 5px 9px; min-width: 0; align-items: center; }
html.m127 #m126-bar .tg::after, html.m127 #m126-bar .gr::after { content: ""; width: 12px; height: 12px; background: #fff; display: block; }
html.m127 #m126-bar .tg::after { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M15 5l-7 7 7 7'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M15 5l-7 7 7 7'/></svg>") center/contain no-repeat; }
html.m127 #m126-bar.col .tg::after { transform: rotate(180deg); }
html.m127 #m126-bar .gr::after { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><path d='M4 7h10M18 7h2M4 17h2M10 17h10'/><circle cx='16' cy='7' r='2'/><circle cx='8' cy='17' r='2'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><path d='M4 7h10M18 7h2M4 17h2M10 17h10'/><circle cx='16' cy='7' r='2'/><circle cx='8' cy='17' r='2'/></svg>") center/contain no-repeat; }
html.m127 .sk-menu a { color: var(--sk-ink, var(--text-primary)); }
html.m127 .sk-menu svg { stroke: var(--sk-ink, var(--text-primary)); }
html.m127 .sk-menu a.on svg { stroke: var(--acc, var(--sk-ink)); }
html.m127 .chart-align-btns .m127-ic, html.m127 #wl-star-btn.m127-ic, html.m127 #draw-toolbar .m127-ic { border: 1px solid transparent !important; border-bottom: 1px solid transparent !important; background: transparent; }
html.m127 .chart-align-btns .m127-ic:hover, html.m127 #draw-toolbar .m127-ic:hover { border-color: var(--border-mid) !important; }
html.m127 .chart-align-btns .m127-ic.on { border-color: var(--acc, var(--gold-500)) !important; }
