/* MercadoLab 0.7 · dense, interactive trading workspace */
:root{--ml7-accent:#2962ff;--ml7-edge:rgba(120,137,170,.18)}
*{scrollbar-width:thin;scrollbar-color:#545b69 transparent}
body.dark{--blue:#6a95ff;--bluesoft:#1c2a48;--pane:#101114;--bg:#101114;--pane2:#15171c;--rail:#101114;--hover:#22252c;--line:#2b2d35;--line2:#25272d;--ink:#e4e7ed;--sub:#9ca3af;--soft:#7d8594;--plotgrid:#23252a;--ml7-edge:#30333c}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
.globalbar{height:45px!important;min-height:45px!important;background:var(--pane);border-bottom:1px solid var(--line);gap:12px}
.wordmark{letter-spacing:-.55px}.brandmark{border-radius:8px}.version{font-size:9px;letter-spacing:.4px}
.chartbar{min-height:43px;height:43px;gap:4px;border-bottom:1px solid var(--line)}
.markethead{min-height:61px!important;height:61px!important;padding:8px 16px!important;}
.bigprice{font-size:22px!important;letter-spacing:-.6px}
.markettitle{font-size:11px!important}.chart-stage{min-height:180px!important}
.plot-head{height:26px!important;min-height:26px!important;padding:5px 14px 0!important}
.plot-footer{height:27px!important;min-height:27px!important}
.drawrail{width:47px!important;gap:3px!important;padding-top:8px!important}
.pro-rail-main{width:34px!important;height:35px!important;border-radius:7px!important;transition:background .14s,border-color .14s,color .14s}
.pro-rail-main:hover{background:var(--hover)!important}.pro-rail-main.active{background:var(--bluesoft)!important}
.pro-tool-menu{box-shadow:0 16px 54px #0009!important;border-radius:10px!important}
.ml-ind-label{height:25px!important;border:1px solid transparent!important;box-shadow:none!important;background:transparent!important;border-radius:5px!important;padding:1px 4px!important;transition:background .14s,border-color .14s}
.ml-ind-label:hover,.ml-ind-label:focus-within{background:var(--pane)!important;border-color:var(--line)!important}
.ml-ind-buttons{opacity:0;transition:opacity .14s}
.ml-ind-label:hover .ml-ind-buttons,.ml-ind-label:focus-within .ml-ind-buttons{opacity:1}
.ml-labels-pane{z-index:10}.ml-labels-main{z-index:10}
body .lower{height:var(--ml7-lower-height,258px)!important;min-height:0;max-height:calc(100vh - 300px);transition:none!important;flex:0 0 auto}
body .lower.collapsed{height:36px!important}
.ml7-layer{position:absolute;inset:0;z-index:12;pointer-events:none}
.ml7-pane{position:absolute;top:var(--pane-top);left:0;right:85px;height:0;pointer-events:none;z-index:1}
.ml7-divider{position:absolute;top:-7px;height:19px;width:100%;cursor:row-resize;pointer-events:auto;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center;outline:0}
.ml7-line{position:absolute;top:9px;left:0;right:0;height:1px;background:var(--line);transition:background .14s,height .14s}
.ml7-divider:hover .ml7-line,.ml7-divider:focus-visible .ml7-line,body.ml7-resizing .ml7-line{height:2px;background:var(--blue)}
.ml7-grip{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:44px;height:17px;border-radius:6px;background:var(--pane);border:1px solid var(--line);box-shadow:0 1px 4px #0003;opacity:.82;transition:background .12s,border-color .12s,opacity .12s}
.ml7-grip i{display:block;width:16px;height:1px;border-radius:3px;background:var(--sub)}
.ml7-divider:hover .ml7-grip,.ml7-divider:focus-visible .ml7-grip,body.ml7-resizing .ml7-grip{background:var(--bluesoft);border-color:var(--blue);opacity:1}
.ml7-size{position:absolute;left:calc(50% + 34px);top:1px;padding:2px 7px;font:10px/15px ui-monospace,Consolas,monospace;border-radius:4px;background:var(--pane);border:1px solid var(--line);color:var(--sub);opacity:0;transition:opacity .12s;white-space:nowrap}
.ml7-divider:hover .ml7-size,body.ml7-resizing .ml7-size,.ml7-divider:focus-visible .ml7-size{opacity:1}
.ml7-pane-actions{position:absolute;top:11px;right:10px;display:flex;gap:2px;pointer-events:auto;background:var(--pane);padding:2px 4px;border:1px solid transparent;border-radius:6px;opacity:0;transition:opacity .12s,border-color .12s,background .12s}
.ml7-pane:hover .ml7-pane-actions,.ml7-pane:focus-within .ml7-pane-actions,.ml7-resizing .ml7-pane-actions{opacity:1;border-color:var(--line)}
.ml7-action{height:22px;min-width:25px;border:0;border-radius:4px;background:transparent;color:var(--sub);cursor:pointer;font-size:14px;font-family:ui-sans-serif,system-ui,sans-serif;display:grid;place-items:center}
.ml7-action:hover,.ml7-action:focus-visible{color:var(--ink);background:var(--hover)}
.ml7-action[data-ml7=remove]:hover{color:#f23645;background:#f2364517}
.ml7-min .ml7-action[data-ml7=collapse],.ml7-max .ml7-action[data-ml7=maximize]{color:var(--blue);background:var(--bluesoft)}
.ml7-layout-wrap{position:relative;flex:none}
.ml7-layout-button{display:flex;align-items:center;gap:7px;height:30px;min-width:70px;padding:0 9px;border:1px solid transparent;background:transparent;color:var(--sub);border-radius:6px;font:600 11px ui-sans-serif,system-ui;cursor:pointer}
.ml7-layout-button:hover{color:var(--ink);background:var(--hover);border-color:var(--line)}.ml7-layout-button .ic{width:15px;height:15px}.ml7-layout-button b{font-size:10px;font-weight:400}
.ml7-layout-menu{position:absolute;top:calc(100% + 5px);right:0;width:290px;background:var(--pane);border:1px solid var(--line);border-radius:9px;box-shadow:0 14px 35px #0006;z-index:40;padding:8px}
.ml7-layout-menu.hidden{display:none!important}
.ml7-menu-caption{padding:8px 10px;font-size:9px;font-weight:700;letter-spacing:1.1px;color:var(--soft)}
.ml7-layout-menu button{display:block;width:100%;border:0;background:none;text-align:left;padding:10px 11px;border-radius:6px;color:var(--ink);cursor:pointer}
.ml7-layout-menu button:hover{background:var(--hover)}.ml7-layout-menu strong{display:block;font-size:12px;font-weight:600}.ml7-layout-menu span{display:block;font-size:10px;color:var(--sub);margin-top:4px}
.ml7-menu-line{border-top:1px solid var(--line);margin:6px 0}
.ml7-lower-grip{height:8px;min-height:8px;width:100%;border-top:1px solid var(--line);background:var(--pane);cursor:row-resize;display:flex;align-items:center;justify-content:center;touch-action:none;z-index:16}
.ml7-lower-grip:hover,body.ml7-resizing .ml7-lower-grip{background:var(--bluesoft);border-top-color:var(--blue)}
.ml7-grip-lines{height:2px;width:39px;background:var(--sub);border-radius:2px;opacity:.6}
.ml7-sidebar-grip{position:absolute;width:8px;top:0;bottom:0;left:-5px;cursor:col-resize;z-index:20;touch-action:none}
.ml7-sidebar-grip:before{content:'';position:absolute;width:1px;left:4px;top:0;bottom:0;background:var(--line);transition:width .15s,background .15s}
.ml7-sidebar-grip:hover:before{width:3px;background:var(--blue)}
.watchpanel{position:relative}
body.ml7-resizing{cursor:row-resize!important;user-select:none!important}
body.ml7-resizing-horizontal{cursor:col-resize!important}
body.ml7-resizing *{cursor:inherit!important;user-select:none!important}
.watchhead,.pro-sidebar-tabs,.bottom-tabs{background:var(--pane)}
.chartbar .chart-action:hover,.chartbar .iconpill:hover{border-radius:6px;background:var(--hover)}
body.dark .plot-wrap{background:#101114}
body.dark .pro-rail-main.toggled{background:#19345a!important}
body.dark .pro-ind-pill{border-color:var(--line)}
@media(max-width:780px){.ml7-sidebar-grip{display:none}.ml7-layout-button span{display:none}.ml7-layout-button{min-width:30px;padding:0 6px}.ml7-pane-actions{right:2px}.ml7-action[data-ml7=up],.ml7-action[data-ml7=down]{display:none}.ml7-grip{width:35px}.ml7-pane{right:68px}.ml7-size{display:none}}

/* Align study titles below their separators rather than drawing under the handle. */
.ml-labels-pane{transform:translateY(20px);left:8px;right:180px;z-index:14}
.ml-ind-title{font-weight:570!important;max-width:140px!important}
.ml-ind-label{min-width:60px}
.ml-labels-pane .ml-ind-label{background:var(--pane)!important;min-height:24px}
.ml7-pane-actions{top:14px}
.ml7-has-panes .ml7-grip{opacity:.95}

.ml-labels-pane .ml-ind-label{cursor:grab}
.ml-labels-pane .ml-ind-label:active{cursor:grabbing}
.ml-ind-label.ml7-drop-target{outline:1px dashed var(--blue)!important;background:var(--bluesoft)!important}
