/* Brokerhub terminal skin. Loaded last; application state classes retain control. */
:root[data-bs-theme]{
  --marc-accent:var(--bh-accent);--marc-accent-soft:var(--bh-accent-soft);
  --marc-buy:var(--bh-positive);--marc-sell:var(--bh-negative);
  --marc-buy-soft:color-mix(in srgb,var(--bh-positive) 12%,transparent);
  --marc-sell-soft:color-mix(in srgb,var(--bh-negative) 12%,transparent);
  --marc-surface-1:var(--bh-surface);--marc-surface-2:var(--bh-surface-2);--marc-surface-3:var(--bh-border);
  --marc-text-2:var(--bh-muted);--marc-border:var(--bh-border);--marc-border-strong:color-mix(in srgb,var(--bh-muted) 45%,var(--bh-border));
  --marc-radius-sm:8px;--marc-radius:10px;--marc-radius-lg:12px;--marc-rail-w:var(--bh-rail-w);
  --marc-shadow-sm:none;--marc-shadow:var(--bh-shadow);--marc-shadow-lg:var(--bh-shadow);
  --cab-accent:var(--bh-accent);--cab-accent-2:var(--bh-accent-hover);--cab-danger:var(--bh-negative);
  --bs-body-bg:var(--bh-bg);--bs-body-color:var(--bh-text);--bs-secondary-color:var(--bh-muted);
  --bs-emphasis-color:var(--bh-text);--bs-border-color:var(--bh-border);--bs-tertiary-bg:var(--bh-surface-2);
  --bs-secondary-bg:var(--bh-surface);--bs-primary:var(--bh-accent);--bs-primary-rgb:0,127,119;
  --bs-success:var(--bh-positive);--bs-danger:var(--bh-negative);--bs-link-color:var(--bh-positive);
  --bs-font-sans-serif:var(--bh-font);--bs-body-font-family:var(--bh-font);
}
html,body{font-family:var(--bh-font)!important;background:var(--bh-bg);color:var(--bh-text);font-size:14px}
body{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";overscroll-behavior-x:none}
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea{touch-action:manipulation}
/* Prevent accidental text selection while navigating; keep editable and useful data copyable. */
:is(header.topbar,.dropdown-menu,#toolbarresponsivebottom,.nav,.bh-mobile-workspace-nav,button,.btn,[role="button"],[role="tab"],[role="menuitem"]){-webkit-user-select:none;user-select:none}
:is(input,textarea,[contenteditable="true"],[contenteditable=""],.marc-acc-num,[data-accbalance],[data-accequity],[data-accprofit],.marc-fund-val){-webkit-user-select:text;user-select:text}

:is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--bh-focus)!important;outline-offset:3px}
::selection{background:var(--bh-accent);color:#fff}
.btn,.nav-link,.dropdown-item{letter-spacing:0}
.btn:not(.btn-link):not(.is-busy):hover,.marc-quote-card:hover{transform:none;box-shadow:none}
.btn-primary,.btn-outline-primary:hover,.global-login .btn--login{background:var(--bh-accent)!important;border-color:var(--bh-accent)!important;color:var(--bh-on-accent)!important;box-shadow:none!important}
.btn-primary:hover,.global-login .btn--login:hover{background:var(--bh-accent-hover)!important}
.btn-outline-primary{color:var(--bh-positive);border-color:var(--bh-border)}
.btn-dark,.btn-light,.btn-default{background:var(--bh-surface-2);color:var(--bh-text);border-color:var(--bh-border)}
.btn-success,.btn.bggreen{background:var(--bh-accent)!important;border-color:var(--bh-accent)!important;color:#fff}
.btn-danger,.btn.bgred{background:#c63042!important;border-color:#c63042!important;color:#fff}
.text-success{color:var(--bh-positive)!important}.text-danger{color:var(--bh-negative)!important}
.text-muted,.text-secondary{color:var(--bh-muted)!important}
.card,.modal-content,.accordion-item,.dropdown-menu,.offcanvas{background:var(--bh-surface);color:var(--bh-text);border-color:var(--bh-border)!important;box-shadow:none}
.dropdown-menu,.modal-content{box-shadow:var(--bh-shadow)!important}
.dropdown-item{color:var(--bh-text);min-height:36px}
.dropdown-item:hover,.dropdown-item:focus{background:var(--bh-surface-2);color:var(--bh-text)}
.form-control,.form-select{background-color:var(--bh-bg)!important;color:var(--bh-text)!important;border-color:var(--bh-border)!important;min-height:38px}
.form-control::placeholder{color:var(--bh-muted)}
.form-control.is-invalid,.form-select.is-invalid,.global-login__form-control input.is-invalid{border-color:var(--bh-negative)!important}
/* A single neutral focus edge for fields throughout the cabinet and terminal. */
:root :is(input,select,textarea,.form-control,.form-select,[role="combobox"]){--bh-focus:color-mix(in srgb,var(--bh-muted) 80%,var(--bh-border))}
:root[data-bs-theme] :is(input,select,textarea,.form-control,.form-select,[role="combobox"]):focus{border-color:var(--bh-focus)!important;box-shadow:none!important}
:root[data-bs-theme] :is(input,select,textarea,.form-control,.form-select,[role="combobox"]):focus-visible{outline:2px solid var(--bh-focus)!important;outline-offset:-2px!important}
:root[data-bs-theme] input:is([type="checkbox"],[type="radio"],[type="range"],[type="color"]):focus-visible{outline-offset:2px!important}
:root[data-bs-theme] :is(input,select,textarea,.form-control,.form-select):is(.is-invalid,[aria-invalid="true"]):focus,
:root[data-bs-theme] .was-validated :is(input,select,textarea,.form-control,.form-select):invalid:focus{border-color:var(--bh-negative)!important;outline-color:var(--bh-negative)!important}
.form-check-input:checked{background-color:var(--bh-accent);border-color:var(--bh-accent)}
.btn:disabled,button:disabled{cursor:not-allowed;opacity:.45}
.table{--bs-table-bg:var(--bh-surface);--bs-table-color:var(--bh-text);--bs-table-border-color:var(--bh-border)}
.nav-underline .nav-link{color:var(--bh-muted)!important;font-size:12px;font-weight:500}
.nav-underline .nav-link.active{color:var(--bh-text)!important;border-bottom-color:var(--bh-accent)}

/* Account header and navigation share one measured height. */
header.topbar{background:var(--bh-bg)!important;border-bottom:1px solid var(--bh-border);box-shadow:none!important;backdrop-filter:none;height:var(--bh-header-h);z-index:1030}
header.topbar .navbar{height:var(--bh-header-h);min-height:var(--bh-header-h)!important;padding:0 12px!important}
header.topbar .nav-link.cursor-pointer{border:0!important;padding:4px 9px!important}
header.topbar .nav-link.cursor-pointer h3:nth-of-type(1){font-size:10px!important;font-weight:500!important;letter-spacing:0;color:var(--bh-muted);text-transform:none}
header.topbar .nav-link.cursor-pointer h3:nth-of-type(2){font-size:12px!important;font-weight:600!important}
header.topbar .nav-link.cursor-pointer .ti-arrow-up-right,header.topbar .nav-link.cursor-pointer .ti-arrow-down-right{display:none!important}
header.topbar .navbar-nav.flex-row>li:has(#drop1){order:0;margin-left:auto!important;margin-right:0}
#marcAccPill{background:var(--bh-surface-2);border:1px solid var(--bh-border);border-radius:8px;box-shadow:none;max-width:220px}
.marc-top-cta{background:var(--bh-accent-soft)!important;color:var(--bh-positive)!important;border:1px solid var(--bh-border)!important;border-radius:8px}
.marc-top-chip{border-color:var(--bh-border)!important}
.body-wrapper{padding-top:var(--bh-header-h)!important}
.body-wrapper>.container-fluid{padding:0!important;max-width:none!important}

/* Terminal panels. The account state controls all hidden classes. */
#brokerhub-ticket-host{display:none;min-width:0;min-height:0;grid-area:ticket;overflow:hidden;background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:var(--bh-radius)}
.brokerhub-ticket-empty{height:100%;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;color:var(--bh-muted);padding:24px;text-align:center}
.brokerhub-ticket-empty i{font-size:30px;color:var(--bh-positive)}
body.brokerhub-ticket-ready .brokerhub-ticket-empty{display:none}
.marc-ws__chart,.marc-ws__bottom,.marc-ws__list{background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:var(--bh-radius)}
.marc-ws__chart{padding:0!important;max-height:none!important}
.marc-ws__chart #iframedatatrade{border:0}
.marc-ws__bottom>.nav{margin-top:0!important;padding:0 12px!important;border-bottom:1px solid var(--bh-border);gap:20px;min-height:40px}
.marc-ws__bottom>.nav .nav-link{padding:11px 0 9px}
.marc-ws__bottom>.nav button{margin-top:5px!important;background:transparent;border:0}
.marc-ws__list{padding-top:10px!important;max-height:none!important}
.marc-ws__list .marc-cat-bar{padding:0 8px 8px}
.marc-ws__list .marc-watchfilter{gap:4px;padding:4px 8px 10px;border-bottom:1px solid var(--bh-border)}
.marc-watchfilter button{border-radius:6px;background:transparent;border:1px solid var(--bh-border);color:var(--bh-muted);font-size:11px;min-height:28px}
.marc-watchfilter button.active{background:var(--bh-accent-soft);border-color:var(--bh-accent);color:var(--bh-positive)}
.marc-ws__vdiv::before,.marc-ws__hdiv::before{background:transparent}
.marc-ws__toggle{background:var(--bh-surface-2);border-color:var(--bh-border);color:var(--bh-muted);box-shadow:none}
.marc-ws__toggle--v i{transform:rotate(180deg)}
.marc-list-collapsed .marc-ws__toggle--v i{transform:none}

/* Watchlist: compact rows, readable numbers and explicit action states. */
#crypt-tab [data-trquote]{padding:0 8px;contain-intrinsic-size:auto 106px}
.marc-quote-card{background:transparent!important;border:0;border-bottom:1px solid var(--bh-border)!important;border-radius:0!important;padding:10px 4px;box-shadow:none!important}
.marc-quote-card:hover{background:var(--bh-surface)!important}
[data-trquote].bg-light-subtle .marc-quote-card{background:var(--bh-accent-soft)!important;border-left:2px solid var(--bh-positive);padding-left:8px}
.marc-qc-head{justify-content:flex-start;margin-bottom:7px}
.marc-qc-title{font-size:12px;font-weight:600;letter-spacing:0}
.marc-qc-side{border:0;background:transparent;padding:2px 0;border-radius:4px}
.marc-qc-side:hover{background:var(--bh-surface-2)}
.marc-qc-price{font-size:14px;font-weight:500;line-height:1.25}
.marc-qc-sell .marc-qc-price{color:var(--bh-negative)}
.marc-qc-buy .marc-qc-price{color:var(--bh-positive)}
.marc-qc-lbl{font-size:9px;font-weight:500;letter-spacing:.03em;color:var(--bh-muted)!important}
.marc-qc-flag{min-width:28px}.marc-qc-flag .marc-qc-logo{width:22px;height:22px}
.marc-qc-spark{height:22px;margin:4px 0}.marc-qc-spark .marc-spark{height:22px}
.marc-qc-foot{font-size:10px;margin-top:4px}.marc-qc-foot b{font-weight:500}
.marc-qc-actions{transition:none}
.marc-quote-card:focus-within .marc-qc-actions{max-height:64px;opacity:1;margin-top:8px}
.marc-qc-act{min-height:30px;border-radius:5px;font-size:10px;background:var(--bh-surface)}
.marc-odo-dec{font-size:1em;opacity:1;align-self:auto}
:root[data-bs-theme] .positions-table,:root[data-bs-theme] .position-row,:root[data-bs-theme] .ticker-header{background:var(--bh-bg)!important;border-color:var(--bh-border)!important;box-shadow:none!important;border-radius:0!important}
:root[data-bs-theme] .position-row:not(.sinhoverrow):hover,:root[data-bs-theme] .ticker-header:hover,:root[data-bs-theme] .ticker-header.active{background:var(--bh-surface)!important;transform:none}
:root[data-bs-theme] .ag-theme-quartz,:root[data-bs-theme] .ag-theme-custom{
  --ag-font-family:var(--bh-font);--ag-font-size:12px;--ag-background-color:var(--bh-bg);--ag-foreground-color:var(--bh-text);
  --ag-header-background-color:var(--bh-bg);--ag-header-foreground-color:var(--bh-muted);--ag-border-color:var(--bh-border);
  --ag-odd-row-background-color:var(--bh-bg);--ag-row-hover-color:var(--bh-surface);--ag-selected-row-background-color:var(--bh-accent-soft);
  --ag-row-border-color:var(--bh-border);--ag-wrapper-border-radius:0;--ag-header-height:38px;--ag-row-height:40px;
}

/* A single order form works as a dock on wide screens and a modal elsewhere. */
#offcanvasExample{background:var(--bh-bg)!important;border-color:var(--bh-border)!important;box-shadow:var(--bh-shadow);max-width:100vw}
#offcanvasExample>.d-flex{padding:14px 16px!important;border-bottom:1px solid var(--bh-border)}
#offcanvasExample .offcanvas-title{font-size:13px;letter-spacing:0}
#offcanvasExample #btncloseoffcanvas{flex:0 0 32px;width:32px;height:32px;position:relative;padding:0;background:none;filter:none;opacity:1;color:var(--bh-muted)}
#offcanvasExample #btncloseoffcanvas::before,#offcanvasExample #btncloseoffcanvas::after{content:"";position:absolute;left:8px;top:15px;width:16px;height:1.5px;background:currentColor;transform:rotate(45deg)}
#offcanvasExample #btncloseoffcanvas::after{transform:rotate(-45deg)}
#offcanvasExample .offcanvas-body{padding:0 14px 16px!important}
#offcanvasExample .card{background:transparent;border:0!important;box-shadow:none!important}
#offcanvasExample .nav-underline{margin-bottom:12px;border-bottom:1px solid var(--bh-border)}
#offcanvasExample .marc-ticket-head{margin:10px 0!important}
#offcanvasExample #divbtnssellbuy{background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:8px}
#offcanvasExample #divbtnssellbuy .btn{border-radius:6px!important;background:transparent!important;color:var(--bh-muted)!important;min-height:44px;box-shadow:none!important}
#offcanvasExample #divbtnssellbuy [data-actionop-modal="buy"].active{background:var(--bh-accent)!important;color:white!important}
#offcanvasExample #divbtnssellbuy [data-actionop-modal="sell"].active{background:#c63042!important;color:white!important}
#offcanvasExample .marc-bs-spread{display:none}
#offcanvasExample .marc-bs-lbl{font-size:12px;font-weight:600;letter-spacing:0}
#offcanvasExample .marc-bs-price{font-size:13px}
#offcanvasExample .marc-ordertype{gap:8px;margin:12px 0}
#offcanvasExample .marc-ordertype button{background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:8px;color:var(--bh-muted);box-shadow:none;padding:9px}
#offcanvasExample .marc-ordertype button.active{background:var(--bh-accent-soft);border-color:var(--bh-accent);color:var(--bh-text)}
#offcanvasExample .marc-ot-sub{font-size:10px}
#offcanvasExample .form-label,#offcanvasExample .marc-lots-caption{color:var(--bh-muted);font-size:12px!important;text-transform:none!important;letter-spacing:0!important}
#offcanvasExample .marc-lots-stepper,#offcanvasExample .marc-fieldbox{background:var(--bh-surface)!important;border:1px solid var(--bh-border)!important;border-radius:8px!important;box-shadow:none}
#offcanvasExample .marc-lots-value{color:var(--bh-text)!important;font-size:18px!important}
#offcanvasExample .marc-lots-meta{font-size:11px;color:var(--bh-muted)}
#offcanvasExample .marc-lots-maxbtn{color:var(--bh-positive);background:transparent}
#offcanvasExample .marc-funds-row{padding:14px 0;border-top:1px solid var(--bh-border);border-bottom:1px solid var(--bh-border)}
#offcanvasExample .marc-fund-val{font-size:14px;font-weight:600}
#offcanvasExample .form-check{min-height:32px}
#offcanvasExample .form-check-label{font-size:12px}
#offcanvasExample .row:has(>#btncreateoperation),#offcanvasExample .row:has(#btncreateoperation){background:var(--bh-bg)!important;border-top:1px solid var(--bh-border);padding:12px 0!important;margin:12px 0 0!important}
#offcanvasExample #btncreateoperation{width:100%;min-height:42px;border-radius:8px!important;font-size:13px;margin:0;background:var(--bh-accent)!important;color:#fff;box-shadow:none!important;filter:none}
#offcanvasExample #btncreateoperation.marc-submit-sell{background:#c63042!important}
#offcanvasExample #btncreateoperation:hover:not(:disabled){filter:brightness(.94)}
#offcanvasExample #btncreateoperation:disabled{background:var(--bh-surface-2)!important;color:var(--bh-muted)!important;border-color:var(--bh-border)!important}
#offcanvasExample .marc-id-ticker{font-size:20px}
#offcanvasExample .marc-id-row{font-size:12px;border-color:var(--bh-border)}
#offcanvasExample .marc-id-badge,#offcanvasExample .marc-id-section{background:var(--bh-surface)}
#offcanvasExample .marc-id-header{box-shadow:none;background:transparent}

/* Authentication: the form, account choices and modal share the terminal's
   theme tokens. Application visibility and submission states remain untouched. */
/* Calm, neutral authentication controls; trading colors stay in the terminal. */
:is(.global-login,#authentication-modal){--bh-focus:color-mix(in srgb,var(--bh-muted) 80%,var(--bh-border));--bh-auth-action:color-mix(in srgb,var(--bh-text) 90%,var(--bh-surface));--bh-auth-on-action:var(--bh-surface);--bh-auth-choice:#525b65}
:is(.global-login,#authentication-modal) :is(input,select,textarea,.reg-cc-toggle):focus-visible{outline-offset:-2px;box-shadow:none!important}
:is(.global-login,#authentication-modal) input:is([type="checkbox"],[type="radio"]):focus-visible{outline-offset:2px}
.global-login .global-login__form-control.is-errored input:focus-visible,:is(.global-login,#authentication-modal) .is-invalid:focus-visible,#authentication-modal .was-validated :is(.form-control,.form-select):invalid:focus-visible{outline-color:var(--bh-negative)!important}
.global-login[aria-hidden="false"]{background:var(--bh-bg)!important;overflow-y:auto;justify-content:safe center;padding:32px 16px!important;opacity:1;animation:none}
.global-login .bh-auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);width:min(100%,1040px);max-width:1040px;margin-block:auto;border:1px solid var(--bh-border);border-radius:4px;background:var(--bh-surface);text-align:left}
.global-login .bh-auth-form{min-width:0;padding:40px;position:relative}
.global-login .global-login__content{display:block;width:100%;max-width:none;margin:0;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible;clip-path:none!important}
.global-login .marc-login-lang{position:absolute;right:0;top:0;bottom:auto;z-index:3;margin:0!important}
.global-login .marc-login-lang .dropdown-toggle{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 10px;background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:6px;color:var(--bh-text);font-size:12px}
.global-login .marc-login-lang .dropdown-menu{max-width:min(300px,calc(100vw - 64px));max-height:min(400px,60dvh)!important}
.global-login .marc-login-lang .dropdown-item{min-height:44px;white-space:normal}
.global-login .global-login__brand{padding:0!important;margin:0 0 28px!important;background:transparent!important;border:0!important;align-items:flex-start}
.global-login .global-login__brand-link{min-height:44px;max-width:calc(100% - 128px);margin:0 0 28px;display:flex;align-items:center}
.global-login #meta_logo3{max-width:100%;object-fit:contain}
.global-login .global-login__brand-image{max-width:100%}
.global-login .global-login__description{background:none!important;background-clip:border-box;-webkit-background-clip:border-box;font-family:var(--bh-font);margin:0!important;color:var(--bh-muted)!important;font-size:13px;line-height:1.6;text-align:left!important}
.global-login .global-login__description.bard-hello b{display:block;margin-bottom:8px;font-size:32px;line-height:1.15;font-weight:600;letter-spacing:-.035em;color:var(--bh-text)!important}
.global-login .global-login__body{padding:0!important}
.global-login .global-login__form-control{margin-bottom:16px}
.global-login .global-login__form-control label{display:block;margin:0 0 8px;color:var(--bh-text)!important;font-size:12px;font-weight:500}
.global-login .global-login__form-control input:not([type="checkbox"]){display:block;width:100%;max-width:100%;background:var(--bh-bg)!important;color:var(--bh-text)!important;border:1px solid var(--bh-border)!important;border-radius:6px!important;min-height:44px;padding:11px 12px;font-size:14px;line-height:1.4;box-shadow:none!important}
.global-login .global-login__form-control input:not([type="checkbox"]):focus{border-color:var(--bh-focus)!important;box-shadow:none!important}
.global-login .global-login__form-control input::placeholder{color:var(--bh-muted);opacity:1}
.global-login .global-login__form-control.is-errored input:not([type="checkbox"]),.global-login .global-login__form-control input.is-invalid{border-color:var(--bh-negative)!important;box-shadow:none!important}
.global-login .global-login__form-control.is-errored .global-login__form-message{color:var(--bh-negative)!important;font-size:12px;line-height:1.5;font-weight:500;margin-top:7px}
.global-login .global-login__form-actions{margin:4px 0 0}
.global-login .btn--login{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:11px 16px;border:1px solid var(--bh-auth-action)!important;border-radius:6px!important;background:var(--bh-auth-action)!important;color:var(--bh-auth-on-action)!important;font-size:14px;font-weight:600}
.global-login .btn--login:hover{background:var(--bh-text)!important;border-color:var(--bh-text)!important}
.global-login .btn--login>.btn__text,.global-login .btn--login>.btn__icon{color:var(--bh-auth-on-action)!important}
.global-login .btn--login>.btn__icon{width:16px;height:16px;margin:0;transform:none!important}
.global-login .global-login__footer-link,.global-login .marc-login-recover{color:var(--bh-muted)!important;font-size:12px;font-weight:500}
.global-login .marc-login-recover{display:inline-flex;align-items:center;min-height:44px;margin:0}
.global-login .marc-login-recoverwrap{margin-top:12px;text-align:left}
.global-login .marc-login-as{padding:12px;background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:6px;color:var(--bh-muted);font-size:12px}
.global-login .marc-login-as b{display:block;color:var(--bh-text);overflow-wrap:anywhere}
.global-login .marc-login-as .btn-link{min-height:44px;margin-top:4px!important;padding:8px 0!important;text-align:left;font-size:12px;color:var(--bh-text)!important}
.global-login #logincamp3{margin-top:0;margin-bottom:12px}
.global-login #logincamp3 .form-check{justify-content:flex-start;min-height:44px}
.global-login #logincamp3 input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px;border:1px solid var(--bh-muted)!important;border-radius:4px!important;background:var(--bh-bg)!important}
.global-login #logincamp3 input[type="checkbox"]:checked{background:var(--bh-auth-choice)!important;border-color:var(--bh-auth-choice)!important}
.global-login #logincamp3 input[type="checkbox"]:focus{box-shadow:none!important}
.global-login #logincamp3 label{display:flex;align-items:center;min-height:44px;margin:0;color:var(--bh-text)!important;font-size:12px;font-weight:400}
.global-login .global-login__footer{position:static;display:block;margin:24px 0 0;padding:20px 0 0;border-top:1px solid var(--bh-border);color:var(--bh-muted)!important;text-align:left}
.global-login .marc-login-reg h5{font-size:12px;font-weight:400;line-height:1.5;color:var(--bh-muted);margin:0 0 10px}
:is(.global-login,#authentication-modal) .marc-reg-btn{display:flex;align-items:center;gap:12px;min-height:48px;padding:13px 14px;border:1px solid var(--bh-border);border-radius:6px;background:var(--bh-bg);color:var(--bh-text);text-decoration:none;box-shadow:none}
:is(.global-login,#authentication-modal) .marc-reg-btn:hover{background:var(--bh-surface-2);border-color:var(--bh-muted)}
:is(.global-login,#authentication-modal) .marc-reg-btn-txt{min-width:0;gap:5px}
:is(.global-login,#authentication-modal) .marc-reg-btn-txt b{color:var(--bh-text);font-size:13px;font-weight:600;line-height:1.4}
:is(.global-login,#authentication-modal) .marc-reg-btn-txt small{color:var(--bh-muted);font-size:12px;line-height:1.5}
:is(.global-login,#authentication-modal) .marc-reg-btn>.ti{color:var(--bh-muted);font-size:20px}
:is(.global-login,#authentication-modal) .marc-pw-eye{width:44px;min-height:44px;color:var(--bh-muted);border-radius:0 6px 6px 0}
:is(.global-login,#authentication-modal) .marc-pw-eye:hover{color:var(--bh-text);background:var(--bh-surface-2)}
:is(.global-login,#authentication-modal) .marc-pw-wrap>input{padding-right:48px!important}
.global-login .bh-auth-art{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:40px;border-left:1px solid var(--bh-border);background:var(--bh-bg);overflow:hidden;border-radius:0 4px 4px 0;pointer-events:none}
.global-login .bh-auth-art-label{position:absolute;top:40px;left:40px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--bh-muted)}
.global-login .bh-auth-art-label i{font-size:18px;color:var(--bh-muted)}
.global-login .bh-auth-art svg{display:block;width:100%;height:auto}
.global-login .bh-auth-grid{stroke:var(--bh-border);opacity:.5}
.global-login .bh-auth-candle{color:color-mix(in srgb,var(--bh-muted) 80%,var(--bh-accent));transform-box:fill-box;transform-origin:center;animation:bh-auth-candle-enter 750ms cubic-bezier(.16,1,.3,1) var(--bh-candle-delay,0ms) backwards}
.global-login .bh-auth-candle--muted{color:var(--bh-muted);opacity:.4}
.global-login .bh-auth-candle path{stroke:currentColor;stroke-width:2;stroke-linecap:round}
.global-login .bh-auth-candle rect{fill:currentColor}
@keyframes bh-auth-candle-enter{from{opacity:0;transform:translateY(16px) scaleY(.5)}to{transform:none}}

/* The registration dialog owns its surfaces so older ID-based dark rules
   cannot mix a dark panel with light-theme text. */
#authentication-modal .modal-dialog{width:calc(100% - 32px);max-width:560px;margin:16px auto}
#authentication-modal .modal-dialog-centered{min-height:calc(100% - 32px)}
#authentication-modal .modal-content{max-height:calc(100dvh - 32px);display:flex;background:var(--bh-surface)!important;color:var(--bh-text);border:1px solid var(--bh-border)!important;border-radius:4px;box-shadow:var(--bh-shadow)!important;overflow:hidden}
#authentication-modal .modal-header{display:flex;align-items:flex-start;gap:12px;padding:24px;border-bottom:1px solid var(--bh-border);background:var(--bh-surface);color:var(--bh-text);flex-shrink:0}
#authentication-modal .bh-auth-modal-heading{min-width:0;flex:1}
#authentication-modal #authentication-modal-label{font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.025em;color:var(--bh-text)!important}
#authentication-modal #authentication-modal-label2{margin-top:6px!important;font-size:13px;line-height:1.5;color:var(--bh-muted)!important}
#authentication-modal #reg-logomini{max-width:100%;object-fit:contain}
#authentication-modal .bh-auth-close{position:relative;flex:0 0 44px;width:44px;height:44px;margin:-10px -10px 0 0;padding:0;border:1px solid transparent;border-radius:6px;background:none;filter:none;opacity:1;color:var(--bh-muted)}
#authentication-modal .bh-auth-close::before,#authentication-modal .bh-auth-close::after{content:"";position:absolute;left:13px;top:21px;width:18px;height:1.5px;background:currentColor;transform:rotate(45deg)}
#authentication-modal .bh-auth-close::after{transform:rotate(-45deg)}
#authentication-modal .bh-auth-close:hover{background:var(--bh-surface-2);color:var(--bh-text)}
#authentication-modal .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px;scrollbar-color:var(--bh-border) transparent}
#authentication-modal .form-label{display:block;margin-bottom:7px;color:var(--bh-text);font-size:12px;font-weight:500;opacity:1}
#authentication-modal .form-control,#authentication-modal .form-select{min-height:44px;padding:11px 12px;border:1px solid var(--bh-border)!important;border-radius:6px;background:var(--bh-bg)!important;color:var(--bh-text)!important;font-size:14px;line-height:1.4;box-shadow:none;margin-bottom:0}
#authentication-modal .form-select{padding-right:36px}
#authentication-modal .form-control::placeholder{color:var(--bh-muted);opacity:1}
#authentication-modal .form-control:focus,#authentication-modal .form-select:focus{border-color:var(--bh-focus)!important;box-shadow:none!important}
#authentication-modal :is(.form-control,.form-select).is-invalid,#authentication-modal .was-validated :is(.form-control,.form-select):invalid{border-color:var(--bh-negative)!important}
#authentication-modal .invalid-feedback{color:var(--bh-negative);font-size:12px;line-height:1.5}
#authentication-modal .valid-feedback{color:var(--bh-positive);font-size:12px;line-height:1.5}
#authentication-modal .btn-primary{min-height:44px;width:100%;padding:11px 14px;margin-top:0;border:1px solid var(--bh-auth-action)!important;border-radius:6px;background:var(--bh-auth-action)!important;color:var(--bh-auth-on-action)!important;font-size:13px;font-weight:600;box-shadow:none;filter:none}
#authentication-modal .btn-primary:hover{background:var(--bh-text)!important;border-color:var(--bh-text)!important;filter:none}
#authentication-modal .btn-primary.is-busy{color:transparent!important}
#authentication-modal .btn-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--bh-text);font-size:13px;text-decoration:none}
#authentication-modal a{color:var(--bh-text);text-underline-offset:3px}
#authentication-modal .form-check{align-items:flex-start;min-height:44px;gap:10px;margin:12px 0;font-size:12px;line-height:1.6}
#authentication-modal .form-check-input{width:18px;height:18px;flex:0 0 18px;margin-top:2px;border-color:var(--bh-muted);accent-color:var(--bh-auth-choice)}
#authentication-modal .form-check-input:checked{background-color:var(--bh-auth-choice);border-color:var(--bh-auth-choice)}
#authentication-modal .form-check-input:focus{box-shadow:none!important}
#authentication-modal .form-check-label{color:var(--bh-text)}
#authentication-modal .alert{margin:16px 24px 0;padding:12px;border-radius:4px;font-size:13px;line-height:1.5;color:var(--bh-negative);background:color-mix(in srgb,var(--bh-negative) 8%,var(--bh-surface));border:1px solid color-mix(in srgb,var(--bh-negative) 30%,var(--bh-border))}
#authentication-modal .alert-warning{color:#8a5b12;background:color-mix(in srgb,#8a5b12 8%,var(--bh-surface));border-color:color-mix(in srgb,#8a5b12 30%,var(--bh-border));margin:12px 0}
[data-bs-theme="dark"] #authentication-modal .alert-warning{color:#e8b965;background:color-mix(in srgb,#e8b965 8%,var(--bh-surface));border-color:color-mix(in srgb,#e8b965 30%,var(--bh-border))}
#authentication-modal #reg-country{position:relative}
#authentication-modal #reg-country .reg-cc-native{position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;opacity:0;pointer-events:none}
#authentication-modal #reg-country .reg-cc-toggle{display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;text-align:left}
#authentication-modal #reg-country .reg-cc-toggle .ti-chevron-down{margin-left:auto;color:var(--bh-muted)}
#authentication-modal #reg-country .reg-cc-menu{position:static;display:flex;flex-direction:column;max-height:260px;min-height:0;margin-top:8px;padding:8px;background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:6px;box-shadow:none}
#authentication-modal #reg-country .reg-cc-search{flex-shrink:0;margin-bottom:6px}
#authentication-modal #reg-country .reg-cc-options{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--bh-border) transparent}
#authentication-modal #reg-country .reg-cc-opt{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px;border-radius:4px;cursor:pointer;color:var(--bh-text);font-size:13px}
#authentication-modal #reg-country .reg-cc-opt:hover,#authentication-modal #reg-country .reg-cc-opt.reg-selected{background:var(--bh-surface-2)}
#authentication-modal #reg-country .reg-flag{width:22px;height:22px;flex:0 0 22px;margin:0}
#authentication-modal .was-validated #reg-country .reg-cc-native:invalid~.reg-cc-toggle{border-color:var(--bh-negative)!important}
@media(max-width:991.98px){
  .global-login .bh-auth-layout{grid-template-columns:minmax(0,1fr);max-width:480px}
  .global-login .bh-auth-form{padding:32px}
  .global-login .bh-auth-art{height:142px;padding:12px 24px;border-left:0;border-top:1px solid var(--bh-border);border-radius:0 0 4px 4px}
  .global-login .bh-auth-art-label{top:12px;left:24px;font-size:11px}
  .global-login .bh-auth-art svg{height:100%;width:100%;margin-left:24px}
}
@media(max-width:575.98px){
  .global-login[aria-hidden="false"]{padding:16px!important}
  .global-login .bh-auth-form{padding:24px}
  .global-login .global-login__description.bard-hello b{font-size:28px}
  .global-login .global-login__brand-link{margin-bottom:24px}
  .global-login .global-login__form-control input:not([type="checkbox"]),#authentication-modal .form-control,#authentication-modal .form-select{font-size:16px}
  #authentication-modal .modal-header,#authentication-modal .modal-body{padding:20px}
  #authentication-modal .alert{margin-inline:20px}
  #authentication-modal .modal-body .alert{margin-inline:0}
}
@media(prefers-reduced-motion:reduce){.global-login .bh-auth-candle{animation:none;transform:none}}

@media(min-width:992px){
  .page-wrapper{margin-left:0!important}
  header.topbar{left:0!important;width:100%!important;max-width:none!important}
  .marc-ws{display:grid;height:calc(100dvh - var(--bh-header-h));padding:8px;gap:0;grid-template-columns:minmax(0,1fr) 8px 280px;grid-template-rows:minmax(180px,1fr) 8px var(--marc-bottom-h,260px);grid-template-areas:"chart vdiv list" "hdiv vdiv list" "bottom vdiv list";transition:none}
  .marc-ws.marc-list-collapsed{grid-template-columns:minmax(0,1fr) 8px 0}
  .marc-ws.marc-bottom-collapsed{grid-template-rows:minmax(180px,1fr) 8px 42px}
  .marc-ws__chart{display:block;grid-area:chart;min-height:0}
  .marc-ws__bottom{grid-area:bottom;min-height:0;overflow:hidden}
  .marc-ws__list{grid-area:list;min-height:0;container-type:inline-size}
  .marc-ws__hdiv{grid-area:hdiv}.marc-ws__vdiv{grid-area:vdiv}
  .marc-ws>[data-pageis="calendar"]:not(.u-hiddenpage){grid-area:1 / 1 / -1 / -1;background:var(--bh-bg);z-index:10;overflow:auto}
  .marc-ws__list .marc-qc-spark{display:none}
}
@media(min-width:1440px){header.topbar #dropacceqtyd{display:flex!important}}
@media(min-width:992px) and (max-width:1439.98px){#offcanvasExample.offcanvas-end{width:390px!important}}
@media(max-width:991.98px){
  .page-wrapper{margin-left:0!important}header.topbar{left:0!important;width:100%!important;max-width:100%!important}
  header.topbar .navbar{padding:0 6px!important}
  .marc-ws{display:block;height:auto;min-height:calc(100dvh - var(--bh-header-h));padding:10px 10px 74px}
  .marc-ws__list{display:none;max-height:none;height:auto;min-height:calc(100dvh - var(--bh-header-h) - 95px)}
  .marc-ws__list:not(.u-hiddenpage){display:flex;flex-direction:column}
  .marc-ws__list #crypt-tab{overflow:visible;display:block;flex:none}
  .marc-ws__list #crypt-tab>.marc-flatlist{height:auto;max-height:none}
  .marc-ws__chart,.marc-ws__hdiv,.marc-ws__vdiv{display:none!important}
  .marc-ws__bottom{display:contents;border:0}
  .marc-ws__bottom>.nav{display:none!important}
  .marc-ws__bottom>.uhiddenvisibleresponsive.u-hiddenpage{display:none!important}
  .marc-ws__chart.marc-chart-fs-open{display:block!important;position:fixed;inset:0;z-index:4000;width:100vw;height:100dvh;padding:0;border:0;border-radius:0}
  .marc-ws__chart.marc-chart-fs-open #iframedatatrade{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;opacity:1!important;visibility:visible!important}
  .marc-ws__chart.marc-chart-fs-open .marc-chart-fs-x{display:flex;position:fixed;top:8px;right:8px;z-index:4002;width:40px;height:40px;align-items:center;justify-content:center;background:var(--bh-surface-2);color:var(--bh-text);border:1px solid var(--bh-border);border-radius:8px}
  body:has(#offcanvasExample.show) #toolbarresponsivebottom,body.marc-chart-fs-on #toolbarresponsivebottom{display:none!important}
  #offcanvasExample.offcanvas-end{width:min(440px,100vw)!important}
  #offcanvasExample .offcanvas-body{padding-bottom:env(safe-area-inset-bottom,16px)!important}
  #toolbarresponsivebottom{background:var(--bh-surface)!important;border-top:1px solid var(--bh-border);box-shadow:none!important;padding-bottom:env(safe-area-inset-bottom,0px)}
  .marc-qc-actions{max-height:64px;opacity:1;margin-top:8px}
  .marc-qc-act{min-height:40px}
  #myGridorders,#myGridhistory{min-height:360px}
}
@media(max-width:575.98px){
  #offcanvasExample.offcanvas-end{width:100vw!important;border-left:0!important}
  #offcanvasExample .offcanvas-body{padding:0 16px max(16px,env(safe-area-inset-bottom))!important}
  .marc-top-cta{min-width:34px;min-height:34px}
  #marcAccPill{max-width:132px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Override the active positions theme at its own specificity. */
:root[data-bs-theme] #active-positions .ticker-header{background:var(--bh-surface)!important;border-bottom-color:var(--bh-border)!important}
:root[data-bs-theme] #active-positions .ticker-header:is(:hover,.active){background:var(--bh-surface-2)!important}

#toolbarresponsivebottom [data-navbarsecc]{color:var(--bh-muted)}
#toolbarresponsivebottom [data-navbarsecc].text-primary{color:var(--bh-positive)!important}

/* Helio composition: dense prices, quiet surfaces, persistent working controls. */
:root[data-bs-theme]{--marc-radius-sm:6px;--marc-radius:4px;--marc-radius-lg:4px}
#marcAccPill,.marc-top-cta{border-radius:6px}
.form-control,.form-select,.btn{border-radius:6px}
.bh-quotes-heading,.marc-quote-card{
  --bh-quote-columns:minmax(112px,1.1fr) minmax(64px,1fr) minmax(64px,1fr) 54px 28px;
  display:grid;grid-template-columns:var(--bh-quote-columns);column-gap:4px;align-items:center;
}
.bh-quotes-heading{padding:8px 12px;color:var(--bh-muted);font-size:10px;border-bottom:1px solid var(--bh-border);flex:none}
.bh-quotes-heading>span:not(:first-child){text-align:right}
#crypt-tab [data-trquote]{padding:0 8px;contain-intrinsic-size:auto 46px}
#crypt-tab .marc-quote-card{padding:6px 4px;min-height:46px;position:relative}
#crypt-tab [data-trquote].bg-light-subtle .marc-quote-card{padding-left:4px;border-left:0;box-shadow:inset 2px 0 var(--bh-positive)!important}
#crypt-tab .marc-qc-head{grid-column:1;grid-row:1;margin:0;min-width:0;display:flex;gap:3px}
#crypt-tab .marc-qc-title{border:0;background:transparent;color:inherit;text-align:left;padding:0;line-height:1.3;font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;order:3;padding-right:0}
#crypt-tab .marc-qc-fav{order:1;flex:none;position:static;inset:auto;transform:none}
#crypt-tab .favorite-icon{display:flex;align-items:center;justify-content:center;margin:0!important;width:20px;height:30px;padding:0;border:0;background:transparent;color:var(--bh-muted)}
#crypt-tab .marc-qc-body,#crypt-tab .marc-qc-foot{display:contents}
#crypt-tab .marc-qc-side{min-width:0;min-height:32px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:0;margin:0;padding:0;background:transparent;border:0;border-radius:4px;cursor:pointer}
#crypt-tab .marc-qc-side:hover{background:var(--bh-surface-2)}
#crypt-tab .marc-qc-sell{grid-column:2;grid-row:1}
#crypt-tab .marc-qc-buy{grid-column:3;grid-row:1}
#crypt-tab .marc-qc-price{font-size:12px;font-weight:500;white-space:nowrap;max-width:100%;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
#crypt-tab .marc-qc-lbl{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
#crypt-tab .marc-qc-diff{grid-column:4;grid-row:1;min-width:0;text-align:right;font-size:10px;line-height:1.3}
#crypt-tab .marc-qc-diff small{font-size:9px}
#crypt-tab .bh-quote-expand{grid-column:5;grid-row:1;border:0;border-radius:4px;width:24px;height:32px;background:transparent;color:var(--bh-muted);padding:0}
#crypt-tab .bh-quote-expand:hover{background:var(--bh-surface-2);color:var(--bh-text)}
#crypt-tab .is-expanded .bh-quote-expand i{display:block;transform:rotate(180deg)}
#crypt-tab .marc-qc-spark,#crypt-tab .marc-qc-low,#crypt-tab .marc-qc-high,#crypt-tab .marc-qc-actions,#crypt-tab .marc-qc-sent{display:none}
#crypt-tab .is-expanded{background:var(--bh-surface)!important;row-gap:8px}
#crypt-tab .is-expanded .marc-qc-flag{display:flex;grid-row:2;grid-column:1 / 3;justify-content:flex-start;gap:8px;min-width:0}
#crypt-tab .is-expanded .marc-qc-low{display:block;grid-row:2;grid-column:3;text-align:right;font-size:10px}
#crypt-tab .is-expanded .marc-qc-high{display:block;grid-row:2;grid-column:4 / 6;text-align:right;font-size:10px}
#crypt-tab .is-expanded .marc-qc-spark{display:block;grid-row:3;grid-column:1 / -1;height:36px;margin:0}
#crypt-tab .is-expanded .marc-qc-spark .marc-spark{height:36px}
#crypt-tab .is-expanded .marc-qc-actions{display:flex;grid-row:5;grid-column:1 / -1;max-height:none;opacity:1;margin:0;gap:4px;flex-wrap:wrap}
#crypt-tab .is-expanded .marc-qc-sent{display:flex;grid-row:4;grid-column:1 / -1}
#crypt-tab .marc-qc-act{font-size:11px;min-height:32px;flex:1;white-space:nowrap}
#offcanvasExample>.d-flex{padding:10px 12px!important}
#offcanvasExample .offcanvas-body{padding:0 12px 12px!important}
#offcanvasExample .marc-lots-caption{text-align:left;opacity:1;margin-bottom:6px}
#offcanvasExample .marc-lots-valuerow{gap:0;justify-content:space-between;background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:6px;padding:2px}
#offcanvasExample .marc-lots-valuerow .marc-lots-value{font-size:14px!important;min-width:0;width:100%!important;flex:1;height:32px!important;background:transparent!important;padding:0 8px!important}
#offcanvasExample .marc-lots-ok{border:0;border-radius:4px;width:32px;height:32px;flex-basis:32px}
#offcanvasExample .marc-lots-sliderwrap{margin-top:8px}
#offcanvasExample .marc-funds-row{padding:10px 0;margin:8px 0}
#offcanvasExample .marc-fund-val{font-size:13px}
#offcanvasExample .marc-ordertype{margin:8px 0;gap:6px}
#offcanvasExample .marc-ordertype button{border-radius:6px;padding:6px;min-height:40px}
#offcanvasExample #divbtnssellbuy,#offcanvasExample .marc-fieldbox,#offcanvasExample #btncreateoperation{border-radius:6px!important}
#offcanvasExample .row:has(#btncreateoperation){position:sticky;bottom:-12px;z-index:2;padding:10px 0!important;margin-top:8px!important}
#offcanvasExample .marc-ticket-head{margin:8px 0!important}
#offcanvasExample .marc-id-section{border-radius:4px}
:root[data-bs-theme] .position-row{min-height:34px}
:root[data-bs-theme] .position-cell{padding-top:7px;padding-bottom:7px;font-size:12px}
@media(min-width:992px){
  .marc-ws{grid-template-columns:minmax(0,1fr) 6px clamp(352px,32vw,400px);padding:6px;grid-template-rows:minmax(180px,1fr) 6px var(--marc-bottom-h,260px)}
  .marc-ws.marc-list-collapsed{grid-template-columns:minmax(0,1fr) 6px 0}
}
@media(min-width:1440px){
  .marc-ws{grid-template-columns:minmax(0,1fr) 6px clamp(380px,28vw,440px)}
  .marc-ws.marc-list-collapsed{grid-template-columns:minmax(0,1fr) 6px 0}
}
@media(max-width:991.98px){
  .bh-quotes-heading{grid-template-columns:minmax(90px,1fr) 1fr 1fr 28px}
  .bh-quotes-heading>span:nth-child(4){display:none}
  #crypt-tab .marc-quote-card{grid-template-columns:minmax(90px,1fr) 1fr 1fr 28px;min-height:70px;row-gap:0;padding:4px}
  #crypt-tab .marc-qc-head{grid-row:1;grid-column:1 / 4}
  #crypt-tab .marc-qc-title{font-size:13px}
  #crypt-tab .marc-qc-diff{grid-column:1;grid-row:2;text-align:left;padding-left:23px}
  #crypt-tab .marc-qc-sell{grid-column:2;grid-row:2;min-height:40px}
  #crypt-tab .marc-qc-buy{grid-column:3;grid-row:2;min-height:40px}
  #crypt-tab .marc-qc-price{font-size:14px}
  #crypt-tab .bh-quote-expand{grid-column:4;grid-row:1 / 3;width:28px;height:60px}
  #crypt-tab .favorite-icon{width:24px;height:32px}
  #crypt-tab .is-expanded .marc-qc-flag{grid-row:3;grid-column:1 / 3}
  #crypt-tab .is-expanded .marc-qc-low{grid-row:3;grid-column:3}
  #crypt-tab .is-expanded .marc-qc-high{grid-row:4;grid-column:3}
  #crypt-tab .is-expanded .marc-qc-spark{grid-row:5}
  #crypt-tab .is-expanded .marc-qc-sent{grid-row:6}
  #crypt-tab .is-expanded .marc-qc-actions{grid-row:7}
  #crypt-tab .marc-qc-act{min-height:44px}
  #offcanvasExample .marc-lots-ok{width:40px;height:40px;flex-basis:40px}
  #offcanvasExample .marc-lots-valuerow .marc-lots-value{font-size:16px!important;height:40px!important}
}

/* Long prices stay readable without crossing into the neighbouring quote. */
#crypt-tab .marc-qc-side{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--bh-border) transparent}
#crypt-tab .marc-qc-price{flex:0 0 auto;max-width:none;width:max-content}
#crypt-tab .marc-qc-side{justify-content:safe flex-end}
#crypt-tab .is-expanded .marc-qc-head{overflow:visible}
#crypt-tab .is-expanded .marc-qc-title{white-space:normal;overflow-wrap:anywhere}

/* Exceptional six-digit instruments get room for their full precision. */
@media(min-width:992px){
  #crypt-tab .marc-quote-card:has(.marc-odo-int>.marc-odo-d:nth-child(6)) .marc-qc-head{grid-column:1 / 4}
  #crypt-tab .marc-quote-card:has(.marc-odo-int>.marc-odo-d:nth-child(6)) .marc-qc-sell{grid-row:2;grid-column:1 / 3}
  #crypt-tab .marc-quote-card:has(.marc-odo-int>.marc-odo-d:nth-child(6)) .marc-qc-buy{grid-row:2;grid-column:3 / 5}

}

#crypt-tab .is-expanded .marc-qc-flag{grid-row:3;grid-column:1 / -1;flex-direction:row}
#crypt-tab .is-expanded .marc-qc-low{grid-row:4;grid-column:1 / 3;text-align:left}
#crypt-tab .is-expanded .marc-qc-high{grid-row:4;grid-column:3 / -1;text-align:right}
#crypt-tab .is-expanded .marc-qc-spark{grid-row:5}
#crypt-tab .is-expanded .marc-qc-sent{grid-row:6}
#crypt-tab .is-expanded .marc-qc-actions{grid-row:7}
#crypt-tab .is-expanded .marc-qc-low,#crypt-tab .is-expanded .marc-qc-high{white-space:normal;overflow-wrap:anywhere}

#offcanvasExample .tab-content > #home.active{gap:8px}
@media(max-width:991.98px){
  #offcanvasExample .offcanvas-body{padding-bottom:max(16px,env(safe-area-inset-bottom))!important}
  #offcanvasExample .row:has(#btncreateoperation){bottom:calc(-1 * max(16px,env(safe-area-inset-bottom)));padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
}

#crypt-tab .bh-quote-name{display:none}
#crypt-tab .is-expanded .bh-quote-name{display:block;color:var(--bh-muted);font-size:11px;font-weight:400;margin-top:3px}

/* 40019: measured against the Helio video, with one live form and quote list. */
header.topbar .navbar{padding:0 8px!important;gap:8px;flex-wrap:nowrap}
header.topbar #navbarNav{flex:1;min-width:0}
#marcAccPill{border-radius:16px;font-size:11px;padding:5px 12px}
header.topbar .nav-link.cursor-pointer{padding:3px 8px!important}
header.topbar .nav-link.cursor-pointer h3:nth-of-type(1){font-size:9px!important}
header.topbar .nav-link.cursor-pointer h3:nth-of-type(2){font-size:11px!important}
.marc-top-cta{font-size:11px;padding:5px 10px!important}
.marc-ws__list{padding-top:4px!important;display:flex;flex-direction:column;overflow:hidden}
.marc-ws__list .marc-cat-bar{padding:2px 10px}
.marc-ws__list .marc-cat-btn{font-size:12px;padding:2px 8px;min-height:26px;border:1px solid var(--bh-border);border-radius:6px}
.marc-cat-disabled{display:none!important}
.marc-ws__list .marc-watchfilter{padding:2px 10px;gap:6px;border-bottom:0}
.marc-watchfilter button{min-height:24px;font-size:10px;padding:2px 8px}
.bh-quotes-heading{padding-top:4px;padding-bottom:4px;font-size:10px}
.marc-ws__list #crypt-tab{flex:1;min-height:120px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--bh-border) transparent}
#crypt-tab [data-trquote]{contain-intrinsic-size:auto 30px}
#crypt-tab .marc-quote-card{min-height:44px;padding:2px 4px}
#crypt-tab .marc-qc-side{min-height:28px;scrollbar-width:none}
#crypt-tab .marc-qc-price{font-family:var(--bh-number-font);font-size:12px;font-weight:400;letter-spacing:0;color:var(--bh-text)}
#crypt-tab .marc-odo-int,#crypt-tab .marc-odo-dec{font-weight:400;font-size:1em;align-self:auto;line-height:1;opacity:1}
/* Preserve the price odometer roll on quote ticks; reduced-motion still applies. */
#crypt-tab .marc-odo-reel{transition:transform .42s cubic-bezier(.2,.85,.25,1)}
#crypt-tab .marc-odo-reel>span{flex:none;height:1em;line-height:1}
#crypt-tab .marc-qc-title{font-size:12px;font-weight:500;min-height:32px}
#crypt-tab .favorite-icon{width:22px;height:32px;font-size:14px}
#crypt-tab .favorite-icon:not([aria-pressed="true"]){opacity:.65}
#crypt-tab .marc-quote-card:hover .favorite-icon,#crypt-tab .marc-quote-card:focus-within .favorite-icon{opacity:1}
#crypt-tab .bh-quote-expand{height:36px;width:28px}
#crypt-tab .marc-qc-diff{font-family:var(--bh-number-font);font-size:10px}
#bh-instrument-details{flex:none;border-top:1px solid var(--bh-border);background:var(--bh-bg);padding:14px 12px;max-height:42%;overflow:auto;scrollbar-width:thin;min-height:160px;font-size:12px}
#bh-instrument-details[hidden]{display:none}
#bh-instrument-details h3{font-size:13px;font-weight:600;margin:0}
#bh-instrument-details button{border:1px solid var(--bh-border);border-radius:6px;background:var(--bh-surface);color:var(--bh-text);min-height:32px;font-size:12px}
#bh-instrument-details .bh-details-quotes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 10px;font-family:var(--bh-number-font)}
#bh-instrument-details .bh-details-quotes b{font-size:20px;font-weight:500;display:block}
#offcanvasExample>.d-flex{padding:9px 12px!important;min-height:37px}
#offcanvasExample .nav-underline{margin-bottom:6px;min-height:32px;gap:16px}
#offcanvasExample .nav-underline .nav-link{font-size:11px;padding:6px 0}
#offcanvasExample .tab-content > #home.active{gap:8px}
.bh-ticket-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:stretch;width:100%;padding:6px 0}
#offcanvasExample .bh-ticket-controls .marc-ticket-head,#offcanvasExample .bh-ticket-controls .marc-ordertype{margin:0!important;min-width:0}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy{gap:6px;padding:0;border-radius:6px!important;background:transparent;border:0}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy .btn{display:flex;flex:1 1 0;width:auto!important;min-width:0;min-height:44px;margin:0!important;padding:10px 12px!important;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--bh-trade-color) 35%,var(--bh-border))!important;background:color-mix(in srgb,var(--bh-trade-color) 9%,var(--bh-surface))!important;line-height:1.2;font-size:12px;border-radius:6px!important}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy [data-actionop-modal="sell"]{--bh-trade-color:var(--bh-negative);--bh-trade-active:#c63042;color:var(--bh-trade-color)!important}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy [data-actionop-modal="buy"]{--bh-trade-color:var(--bh-positive);--bh-trade-active:var(--bh-accent);color:var(--bh-trade-color)!important}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy [data-actionop-modal]:hover:not(.active):not(:disabled){background:color-mix(in srgb,var(--bh-trade-color) 16%,var(--bh-surface))!important;border-color:var(--bh-trade-color)!important}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy [data-actionop-modal].active{background:var(--bh-trade-active)!important;border-color:var(--bh-trade-active)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #ffffff20!important}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy [data-actionop-modal]:focus-visible{outline:2px solid var(--bh-focus)!important;outline-offset:2px}
#offcanvasExample .bh-ticket-controls #divbtnssellbuy .marc-bs-lbl{font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;opacity:1;text-align:center}
#offcanvasExample .bh-ticket-controls .marc-bs-price,#offcanvasExample .bh-ticket-controls .marc-ot-sub{display:none}
#offcanvasExample .bh-ticket-controls .marc-ordertype{display:flex;gap:2px;padding:3px;background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:6px}
#offcanvasExample .bh-ticket-controls .marc-ordertype button{display:flex;align-items:center;justify-content:center;min-height:34px;margin:0;padding:7px 10px;min-width:0;flex:1 1 0;border:1px solid transparent;border-radius:4px;background:transparent;line-height:1.2}
#offcanvasExample .bh-ticket-controls .marc-ordertype button.active{background:var(--bh-accent-soft);border-color:var(--bh-accent);color:var(--bh-text)}
#offcanvasExample .bh-ticket-controls .marc-ot-title{justify-content:center;font-size:12px;font-weight:500;line-height:1.2;gap:0;text-align:center}
#offcanvasExample .bh-ticket-controls .marc-ot-title i{display:none}
#offcanvasExample .bh-ticket-controls:has(.showincreateposition.u-hidden){display:none}
@media(max-width:991.98px){#offcanvasExample .bh-ticket-controls #divbtnssellbuy .btn,#offcanvasExample .bh-ticket-controls .marc-ordertype button{min-height:44px}}
#offcanvasExample .marc-lots-captionrow{justify-content:flex-start}
#offcanvasExample .marc-lots-value{font-family:var(--bh-number-font)}
.bh-ticket-summary{border-top:1px solid var(--bh-border);margin-top:12px;padding-top:8px}
.bh-ticket-summary summary{font-size:11px;color:var(--bh-muted);cursor:pointer;padding:4px 0;margin-bottom:6px}
#offcanvasExample .bh-ticket-summary .marc-funds-row{border:0;padding:4px 0;margin:4px 0}
#offcanvasExample .bh-ticket-summary .form-label{font-size:10px!important}
#offcanvasExample .bh-ticket-summary .marc-fund-val{font-size:12px;font-family:var(--bh-number-font)}
#offcanvasExample .row:has(#btncreateoperation){padding-top:8px!important}
#offcanvasExample #btncreateoperation{min-height:36px;font-size:12px}
.marc-ws__bottom>.nav{min-height:32px;gap:18px}
.marc-ws__bottom>.nav .nav-link{padding:8px 0 6px;font-size:11px}
:root[data-bs-theme] .position-row{min-height:36px}
:root[data-bs-theme] .position-cell{font-size:11px}
@media(min-width:992px){.marc-ws{padding:4px;grid-template-rows:minmax(180px,1fr) 4px var(--marc-bottom-h,240px)}.page-wrapper{margin-left:0!important}header.topbar{left:0!important;width:100%!important}}
@media(max-width:991.98px){
  .marc-ws__list{overflow:visible}.marc-ws__list.u-hiddenpage{display:none}
  .marc-ws__list #crypt-tab{min-height:0;overflow:visible}
  #crypt-tab .marc-quote-card{min-height:72px;padding:5px 4px;column-gap:8px}
  #crypt-tab .favorite-icon{opacity:1!important;width:24px;height:32px}
  #crypt-tab .marc-qc-title{font-size:13px}#crypt-tab .marc-qc-price{font-size:12px}
  #crypt-tab .marc-qc-side{min-height:40px}#crypt-tab .bh-quote-expand{height:60px;width:28px}
  #bh-instrument-details{max-height:none;position:sticky;bottom:62px;z-index:5;box-shadow:0 -4px 20px #0002;border:1px solid var(--bh-border);border-radius:4px;padding:12px}
  #offcanvasExample #btncreateoperation{min-height:44px}
}
#bh-instrument-details .bh-details-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#bh-instrument-details .bh-details-title{font-weight:600;font-size:13px}
#bh-instrument-details .bh-details-close{border:0;background:transparent;min-width:30px;color:var(--bh-muted)}
#bh-instrument-details .bh-details-name{font-size:11px;color:var(--bh-muted);margin:4px 0 8px}
#bh-instrument-details .bh-details-status{font-size:10px;color:var(--bh-muted)}
#bh-instrument-details .bh-details-prices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:14px 0 8px;font-family:var(--bh-number-font)}
#bh-instrument-details .bh-details-prices strong{display:block;font-size:18px;font-weight:500;overflow-wrap:anywhere}
#bh-instrument-details .bh-details-bid{color:var(--bh-positive)}
#bh-instrument-details .bh-details-ask{text-align:right;color:var(--bh-negative)}
#bh-instrument-details .bh-details-spread,#bh-instrument-details .bh-details-session{font-size:10px;color:var(--bh-muted);margin:8px 0}
#bh-instrument-details .bh-details-trade{width:100%;margin-top:10px;background:var(--bh-accent);border-color:var(--bh-accent);color:var(--bh-on-accent)}
#offcanvasExample .bh-chart-draft{border:1px solid var(--bh-accent);background:var(--bh-accent-soft);border-radius:4px;padding:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
#offcanvasExample .bh-chart-draft[hidden]{display:none}
#offcanvasExample .bh-chart-draft button{background:var(--bh-surface);border:1px solid var(--bh-border);color:var(--bh-text);border-radius:4px;padding:5px 8px;font-size:11px}

/* Fullscreen chart owns scrolling; keep tablet viewport free of a background gutter. */
html:has(body.marc-chart-fs-on),body.marc-chart-fs-on{overflow:hidden!important}

/* Account stays at the viewport edge; Bootstrap owns open/close state. */
header.topbar{padding:0!important}
header.topbar .marc-lang-li{display:none!important}
header.topbar .navbar-nav.flex-row>.bh-account-menu{position:relative;flex:0 0 auto;min-width:0;margin-left:auto!important;margin-right:0;order:0}
header.topbar #drop1{line-height:1;height:40px;min-height:40px;max-height:40px;width:auto;max-width:220px;flex-wrap:nowrap!important;white-space:nowrap;gap:6px!important;padding:0 6px!important;align-items:center}
header.topbar #drop1 .ti-menu-2{flex:0 0 auto;font-size:22px;color:var(--bh-accent)}
header.topbar #marcAccPill{min-width:0;max-width:174px;overflow:hidden;flex-wrap:nowrap;flex:0 1 auto;height:28px;padding:4px 8px}
header.topbar .marc-acc-pill-num{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
header.topbar #marcAccPill .marc-acc-badge{flex:0 0 auto}
header.topbar .navbar .navbar-nav .bh-account-menu>#drop1+.dropdown-menu{position:absolute;right:0;left:auto;top:100%;width:min(440px,calc(100vw - 16px));min-width:0;max-width:calc(100vw - 16px);padding:0;overflow:hidden;border-radius:6px;background:var(--bh-surface);color:var(--bh-text);border-color:var(--bh-border)}
header.topbar .navbar .navbar-nav .bh-account-menu>.dropdown-menu:not(.show){display:none!important}
header.topbar .bh-account-menu .profile-dropdown{max-height:calc(100vh - var(--bh-header-h) - 16px);max-height:calc(100dvh - var(--bh-header-h) - 16px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
header.topbar .bh-account-menu .marc-acc-langlist{max-height:none;overflow:visible}
header.topbar .bh-account-menu .marc-acc-num{overflow-wrap:anywhere;min-width:0}
@media(max-width:575.98px){header.topbar #drop1{max-width:156px}header.topbar #marcAccPill{max-width:120px}}

/* One account menu for the terminal and every cabinet page. */
.bh-account-menu .profile-dropdown{padding:6px!important;scrollbar-width:thin;scrollbar-color:var(--bh-border) transparent}
.bh-account-menu #akiaccounts:empty{display:none}
.bh-account-menu .bh-nav-group--crm:not(:has(a:not(.u-hidden))){display:none}
.bh-account-menu .bh-nav-group{padding:4px 0 8px;border-bottom:1px solid var(--bh-border)}
.bh-account-menu .marc-acc-label{padding:10px 10px 6px;margin:0;color:var(--bh-muted);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.bh-account-menu .bh-nav-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.bh-account-menu .marc-acc-mi,.bh-account-menu #akipaginascrmdrop .marc-rail__item{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:10px;min-height:44px;width:auto;min-width:0;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--bh-text);font-size:12px;line-height:1.35;text-decoration:none;box-shadow:none}
.bh-account-menu .marc-acc-mi>i,.bh-account-menu #akipaginascrmdrop .marc-rail__item>i{flex:0 0 18px;font-size:18px;color:var(--bh-muted)}
.bh-account-menu .marc-acc-mi>span,.bh-account-menu #akipaginascrmdrop .marc-rail__item>span{min-width:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere;white-space:normal;text-align:left}
.bh-account-menu .marc-acc-mi:hover,.bh-account-menu #akipaginascrmdrop .marc-rail__item:hover{background:var(--bh-surface-2);color:var(--bh-text)}
.bh-account-menu .marc-acc-mi.active,.bh-account-menu #akipaginascrmdrop .marc-rail__item.active{background:var(--bh-accent-soft);border-color:var(--bh-accent);color:var(--bh-accent)}
.bh-account-menu .marc-acc-mi.active>i{color:inherit}
.bh-account-menu a:focus-visible{outline:2px solid var(--bh-accent);outline-offset:-2px}
.bh-account-menu .marc-acc-mi-arr{margin-left:auto}
.bh-account-menu .marc-acc-sep{margin:6px 0}
.bh-account-menu .bh-account-logout{padding:8px 4px 4px;border-top:1px solid var(--bh-border);margin-top:6px}
.bh-account-menu .bh-account-logout .btn{width:100%;min-height:44px;border-color:var(--bh-border);color:var(--bh-muted);font-size:12px}

/* Keep an open account menu above mobile navigation, below dialogs/drawers. */
header.topbar:has(.bh-account-menu>.dropdown-menu.show){z-index:1047}

/* Instrument identity stays visible in the compact quote header. */
.marc-symbol-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;vertical-align:middle}
.marc-symbol-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid var(--bh-border);border-radius:50%;background:var(--bh-surface-2);color:var(--bh-muted);font:600 8px/1 var(--bh-font);letter-spacing:0}
.marc-symbol-icon>.marc-qc-logo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:50%;background:var(--bh-surface-2)}
.marc-symbol-fx>.flagv2{position:absolute!important;width:16px!important;height:16px!important;border-radius:50%!important;margin:0!important;box-shadow:0 0 0 1px var(--bh-surface);background-color:var(--bh-surface-2)}
.marc-symbol-fx>.flages1{left:0;top:1px;z-index:2}.marc-symbol-fx>.flages2{right:0;bottom:1px;left:auto;top:auto;z-index:1}
#crypt-tab .marc-qc-head>.marc-qc-flag{display:inline-flex;position:relative;order:2;flex:0 0 20px;width:20px;height:20px;min-width:0;padding:0;margin:0;gap:0;align-items:center;justify-content:center}
#crypt-tab .marc-qc-head .marc-symbol-icon{width:20px;height:20px;flex-basis:20px}
#crypt-tab .marc-qc-head .marc-symbol-fx>.flagv2{width:14px!important;height:14px!important}
#crypt-tab .marc-qc-head .marc-qc-logo{width:20px;height:20px;max-width:20px;max-height:20px;border-radius:50%;margin:0}

/* Explicit order column on desktop; the same form uses a modal on mobile. */
#brokerhub-ticket-host{display:none!important}
#brokerhub-ticket-host .brokerhub-ticket-empty{display:none}
@media(min-width:1440px){
  body{--bh-order-column-width:clamp(320px,24vw,380px)}
  .marc-ws.bh-ticket-column-open{grid-template-columns:minmax(0,1fr) 6px clamp(380px,28vw,440px) 6px var(--bh-order-column-width);grid-template-areas:"chart vdiv list . ticket" "hdiv vdiv list . ticket" "bottom vdiv list . ticket"}
  .marc-ws.bh-ticket-column-open.marc-list-collapsed{grid-template-columns:minmax(0,1fr) 6px 0 0 var(--bh-order-column-width)}
  .marc-ws.bh-ticket-column-open>#brokerhub-ticket-host{display:flex!important;grid-area:ticket;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--bh-border);border-radius:var(--bh-radius);background:var(--bh-bg)}
  #brokerhub-ticket-host>form{display:flex;flex:1;min-width:0;min-height:0;margin:0;overflow:hidden}
  #brokerhub-ticket-host #offcanvasExample.bh-ticket-column{flex:1;height:100%!important;max-height:100%!important;min-width:0!important;width:100%!important}
  body.bh-ticket-column-open.marc-chart-fs-on #brokerhub-ticket-host{position:fixed;inset:0 0 0 auto;width:var(--bh-order-column-width);height:100dvh;z-index:1250;border-radius:0}
  body.bh-ticket-column-open #brokerhub-charts-host.marc-chart-fs-open{right:var(--bh-order-column-width)!important;width:calc(100vw - var(--bh-order-column-width))!important}
  body.bh-ticket-column-open .marc-chart-fs-x{right:calc(var(--bh-order-column-width) + 8px)!important}
}
/* Quotes retain their explicit visibility while an order is being prepared. */
#bh-order-modal{z-index:1450!important;color:var(--bh-text)}
#bh-order-modal .modal-dialog{width:min(420px,calc(100vw - 24px));max-width:420px;margin:12px auto;min-height:calc(100% - 24px)}
#bh-order-modal .modal-content{background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:10px;overflow:hidden;box-shadow:0 20px 70px #0005}
#bh-order-modal form{margin:0;min-width:0}
#offcanvasExample.brokerhub-ticket-floating{box-sizing:border-box;min-width:0!important;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:calc(100dvh - 26px)!important;z-index:auto!important;transform:none!important;transition:none!important;border:0!important;border-radius:0!important;box-shadow:none;overflow:hidden;display:none!important;visibility:hidden!important}
body.brokerhub-ticket-floating>.modal-backdrop.bh-order-backdrop{z-index:1440!important}
#offcanvasExample #btncreateoperation{min-height:44px}
#offcanvasExample.brokerhub-ticket-floating.bh-floating-visible{display:flex!important;visibility:visible!important}
#offcanvasExample.brokerhub-ticket-floating>.d-flex{flex-shrink:0}
#offcanvasExample.brokerhub-ticket-floating .offcanvas-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#offcanvasExample.brokerhub-ticket-floating #btncloseoffcanvas{display:block!important;min-width:44px;min-height:44px}
#offcanvasExample.brokerhub-ticket-floating #btncloseoffcanvas::before{transform:rotate(45deg);left:14px;top:21px}
#offcanvasExample.brokerhub-ticket-floating #btncloseoffcanvas::after{display:block;transform:rotate(-45deg);left:14px;top:21px}

body.brokerhub-ticket-floating .modal-backdrop{z-index:1490!important}
body.brokerhub-ticket-floating .modal{z-index:1500!important}
body.brokerhub-ticket-floating .swal2-container{z-index:1600!important}

#bh-ticket-switch-guard{padding:12px;margin:12px 0;border:1px solid var(--bh-accent);border-radius:4px;background:var(--bh-surface);color:var(--bh-text);font-size:12px;line-height:1.5}
#bh-ticket-switch-guard[hidden]{display:none!important}
#bh-ticket-switch-guard p{margin:0 0 10px}
#bh-ticket-switch-guard button{min-height:44px;max-width:100%;padding:8px 10px;margin:0 6px 4px 0;white-space:normal;font-size:12px;border:1px solid var(--bh-border);background:var(--bh-surface-2);color:var(--bh-text)}
#bh-ticket-switch-guard [data-ticket-guard="keep"]{border-color:var(--bh-accent);color:var(--bh-accent)}
#bh-ticket-switch-guard button:focus-visible{outline:2px solid var(--bh-accent);outline-offset:2px}

@media(max-width:991.98px){
 .marc-ws.marc-list-collapsed:has(>#brokerhub-charts-host[data-section="overview"])>.marc-ws__list{display:none!important}
}
#offcanvasExample.brokerhub-ticket-floating #btncloseoffcanvas:focus-visible{outline:2px solid var(--bh-accent);outline-offset:2px;border-radius:4px}
/* Navigation overlays remain usable above the floating ticket, below confirmations. */
body.brokerhub-ticket-floating header.topbar:has(.dropdown-menu.show){z-index:1300}
body.brokerhub-ticket-floating #marcRail.offcanvas:is(.show,.showing,.hiding){display:flex!important;z-index:1350}
body.brokerhub-ticket-floating #main-wrapper:has(>#marcRail:is(.show,.showing,.hiding))>.offcanvas-backdrop{z-index:1349}


@media(max-width:575px){#bh-order-modal .modal-dialog{width:100%;max-width:none;margin:0;min-height:100%;align-items:flex-end}#bh-order-modal .modal-content{border-radius:14px 14px 0 0}#offcanvasExample.brokerhub-ticket-floating{max-height:94dvh!important}}
.bh-ticket-heading{min-width:0;flex:1}.bh-ticket-purpose{font-size:10px;font-weight:600;color:var(--bh-muted);margin-bottom:5px;letter-spacing:.02em}
.bh-ticket-purpose[data-kind="edit"],.bh-ticket-purpose[data-kind="partial"]{color:var(--bh-accent)}

/* A temporary mobile chart and its live ticket share the page, without a modal overlay. */
@media(max-width:991px){
 body.bh-ticket-mobile-inline .marc-ws{gap:8px}
 body.bh-ticket-mobile-inline #brokerhub-charts-host.bh-charts-workspace{order:0}
 body.bh-ticket-mobile-inline #brokerhub-ticket-host{display:flex!important;order:0;flex:1;width:100%;height:100%;min-height:0;overflow:hidden;border:1px solid var(--bh-border);border-radius:var(--bh-radius);background:var(--bh-surface)}
 body.bh-ticket-mobile-inline #brokerhub-ticket-host>form{display:flex;flex:1;min-width:0;min-height:0;margin:0;overflow:hidden}
 body.bh-ticket-mobile-inline #brokerhub-ticket-host #offcanvasExample.bh-ticket-column{flex:1;min-height:0!important;height:100%!important;max-height:100%!important;width:100%!important}
}

/* Mobile workspace: one useful pane at a time, with the same live list and form. */
.bh-mobile-workspace-nav{display:none}
@media(max-width:991.98px){
 body:has(.marc-ws:not(.u-hidden)>#brokerhub-charts-host[data-section="overview"]){margin-bottom:0!important}
 .marc-ws:not(.u-hidden):not(.u-hiddenpage):has(>#brokerhub-charts-host[data-section="overview"]){display:flex!important;flex-direction:column;gap:8px;height:calc(100dvh - var(--bh-header-h) - 52px - env(safe-area-inset-bottom,0px))!important;min-height:0!important;max-height:none!important;overflow:hidden!important;padding:8px}
 .marc-ws:has(>#brokerhub-charts-host[data-section="overview"])>.bh-mobile-workspace-nav{display:flex;flex:none;gap:4px;min-height:44px;padding:3px;background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:6px}
 .bh-mobile-workspace-nav button{flex:1;min-width:0;min-height:44px;border:0;border-radius:4px;background:transparent;color:var(--bh-muted);font-size:13px;font-weight:500}
 .bh-mobile-workspace-nav button[aria-pressed="true"]{background:var(--bh-accent-soft);color:var(--bh-positive);box-shadow:inset 0 -2px var(--bh-positive)}
 .bh-mobile-workspace-nav button[hidden]{display:none}
 .marc-ws:has(>#brokerhub-charts-host[data-section="overview"])>.marc-ws__list{flex:1;min-width:0;min-height:0;height:100%;max-height:none!important;overflow:hidden}
 .marc-ws[data-mobile-view]:not([data-mobile-view="quotes"]):has(>#brokerhub-charts-host[data-section="overview"])>.marc-ws__list{display:none!important}
 .marc-ws[data-mobile-view]:not([data-mobile-view="chart"])>#brokerhub-charts-host:not(.marc-chart-fs-open){display:none!important}
 .marc-ws[data-mobile-view="chart"]>#brokerhub-charts-host:not(.marc-chart-fs-open){flex:1;min-height:0!important;height:100%!important;max-height:none!important}
 .marc-ws[data-mobile-view]:not([data-mobile-view="trade"])>#brokerhub-ticket-host{display:none!important}
 .marc-ws[data-mobile-view="trade"]>#brokerhub-ticket-host{flex:1;min-height:0;height:100%}
 .marc-ws__list #crypt-tab{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .marc-ws__list #crypt-tab .accordion-collapse.show,.marc-ws__list #crypt-tab>.marc-flatlist{max-height:none!important;height:auto!important;overflow:visible}
 .marc-ws__list #crypt-tab .simplebar-content-wrapper{height:auto!important;overflow:visible!important}
 .marc-ws__list #crypt-tab .simplebar-wrapper{height:auto!important;max-height:none!important}
 .marc-ws__list #crypt-tab .simplebar-mask,.marc-ws__list #crypt-tab .simplebar-offset{position:static!important}
 .marc-ws__list #crypt-tab .simplebar-placeholder,.marc-ws__list #crypt-tab .simplebar-track{display:none!important}
 .marc-ws__list #bh-instrument-details{position:relative;bottom:auto;max-height:45%;min-height:0;flex-shrink:0;overflow:auto}
 .marc-ws__list #bh-instrument-details button{min-height:44px}
 .marc-ws__list .marc-watchfilter{flex-wrap:wrap}
 .marc-ws__list .marc-watchfilter button,.marc-ws__list .marc-cat-btn{min-height:40px}
 .marc-ws__list #search{font-size:16px;min-height:44px}
 .marc-ws__list .bh-quotes-heading{display:none}
 #crypt-tab .marc-quote-card{grid-template-columns:1fr 1fr 44px;gap:4px 8px;min-height:94px;padding:6px 4px}
 #crypt-tab .marc-qc-head{grid-row:1;grid-column:1 / -1;padding-right:82px}
 #crypt-tab .marc-qc-title{font-size:13px;min-height:36px}
 #crypt-tab .favorite-icon{width:44px;height:44px}
 #crypt-tab .marc-qc-sell{grid-row:2;grid-column:1}
 #crypt-tab .marc-qc-buy{grid-row:2;grid-column:2}
 #crypt-tab .marc-qc-side{min-height:44px;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:5px 8px;border:1px solid var(--bh-border);background:var(--bh-surface);overflow:visible}
 #crypt-tab .marc-qc-lbl{position:static;width:auto;height:auto;clip-path:none;font-size:10px;line-height:1}
 #crypt-tab .marc-qc-price{font-size:13px;line-height:1}
 #crypt-tab .marc-qc-sell .marc-qc-lbl{color:var(--bh-negative)!important}
 #crypt-tab .marc-qc-buy .marc-qc-lbl{color:var(--bh-positive)!important}
 #crypt-tab .marc-qc-diff{grid-row:1;grid-column:2 / 4;max-width:82px;text-align:right;justify-self:end;padding:0;pointer-events:none;font-size:11px}
 #crypt-tab .bh-quote-expand{grid-row:2;grid-column:3;width:44px;height:44px;border:1px solid var(--bh-border)}
 #offcanvasExample input:not([type="checkbox"]):not([type="range"]),#offcanvasExample select{font-size:16px!important}
 #toolbarresponsivebottom{height:calc(52px + env(safe-area-inset-bottom,0px))}
 #toolbarresponsivebottom>.d-flex{width:100%;height:52px}
 #toolbarresponsivebottom [data-navbarsecc]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:4px 2px!important}
 #toolbarresponsivebottom [data-navbarsecc] br{display:none}
 #toolbarresponsivebottom [data-navbarsecc] i{font-size:18px!important;line-height:1}
 #toolbarresponsivebottom [data-navbarsecc] span{font-size:10px;line-height:1.2}
 body.bh-ticket-mobile-inline:has(#offcanvasExample.show):not(.marc-chart-fs-on) #toolbarresponsivebottom:not(.u-hidden){display:block!important}
}
@media(max-width:359px){
 #crypt-tab .marc-qc-side{padding:5px 6px}
 #crypt-tab .marc-qc-price{font-size:12px}
 header.topbar .navbar{gap:4px}
 header.topbar #drop1{max-width:116px;padding:0 2px!important;gap:4px!important}
 header.topbar #drop2{margin:0 4px 0 0!important;padding:5px 6px!important}
 header.topbar #marcAccPill{max-width:96px;padding:5px 8px}
 header.topbar .marc-top-cta{min-width:32px;padding:5px 6px!important}
}
@media(min-width:992px) and (max-width:1439.98px){
 .bh-quotes-heading,.marc-quote-card{--bh-quote-columns:minmax(108px,1fr) minmax(60px,1fr) minmax(60px,1fr) 48px 24px;column-gap:3px}
 #crypt-tab .marc-qc-price{font-size:11px}
 #crypt-tab .marc-qc-head{gap:2px}
 #crypt-tab .favorite-icon{width:18px}
 #crypt-tab .bh-quote-expand{width:24px}
}

/* Spacious account summary, using the original live account fields and gauge. */
header.topbar .marc-accpanel{width:min(620px,calc(100vw - 24px));min-width:0!important;max-height:calc(100dvh - var(--bh-header-h) - 20px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--bh-border);border-radius:12px;background:var(--bh-surface)!important;color:var(--bh-text);box-shadow:var(--bh-shadow)!important}
.marc-accpanel .marc-ap{padding:24px}
.marc-accpanel .marc-ap-head{justify-content:space-between;padding:0 0 20px;border-bottom:1px solid var(--bh-border)}
.marc-accpanel .marc-ap-num{color:var(--bh-muted);font-size:14px;font-variant-numeric:tabular-nums}
.bh-ap-overview{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center;padding:20px 0}
.marc-accpanel .marc-ap-donut{width:260px;height:260px;margin:0}
.marc-accpanel .marc-ap-svg{width:100%;height:100%}
.marc-accpanel .marc-ap-track{stroke:var(--bh-border)}
.marc-accpanel #marcApGaugeArc{stroke:var(--bh-positive)}
.marc-accpanel .marc-ap-center{inset:50px 38px;gap:6px}
.marc-accpanel .marc-ap-c-lbl{font-size:12px;color:var(--bh-muted)}
.marc-accpanel .marc-ap-c-val{font-size:24px;line-height:1.25;letter-spacing:-.025em;color:var(--bh-text);max-width:100%;overflow-wrap:anywhere}
.marc-accpanel .marc-ap-c-val .escurrencytop{display:block;margin-top:4px;font-size:12px;font-weight:400;letter-spacing:0;color:var(--bh-muted)}
.marc-accpanel .marc-ap-c-sub{font-size:13px;color:var(--bh-muted);overflow-wrap:anywhere}
.bh-ap-details{min-width:0;display:grid;gap:10px}
.marc-accpanel .marc-ap-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 10px;padding:12px;background:var(--bh-bg);border:1px solid var(--bh-border);border-radius:8px}
.marc-accpanel .marc-ap-ico{grid-row:span 2;background:var(--bh-surface-2);color:var(--bh-muted)}
.marc-accpanel .marc-ap-lbl{font-size:12px;color:var(--bh-muted)}
.marc-accpanel .marc-ap-val{grid-column:2;font-size:18px;color:var(--bh-text);white-space:normal;overflow-wrap:anywhere}
.marc-accpanel .marc-ap-row:nth-child(2) .marc-ap-ico{color:var(--bh-positive)}
.marc-accpanel .marc-ap-val .escurrencytop{font-size:11px;font-weight:400;color:var(--bh-muted)}
.marc-accpanel .marc-ap-bar{margin:0 2px;height:4px;background:var(--bh-border)}
.marc-accpanel .marc-ap-bar i{background:var(--bh-positive)}
.marc-accpanel .marc-ap-foot{padding:6px 2px;gap:12px;font-size:13px;color:var(--bh-muted)}
.marc-accpanel .marc-ap-foot>span:last-child{color:var(--bh-text);text-align:right;overflow-wrap:anywhere;min-width:0}
.marc-accpanel .marc-ap-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px 0;margin:0;border-color:var(--bh-border)}
.marc-accpanel .marc-ap-metrics>div{padding:12px 4px;background:var(--bh-bg);border-radius:6px;min-width:0}
.marc-accpanel .marc-ap-m-val{font-size:18px;color:var(--bh-text);overflow-wrap:anywhere}
.marc-accpanel .marc-ap-m-lbl{font-size:11px;color:var(--bh-muted);margin-top:6px;flex-wrap:wrap}
.marc-accpanel .marc-ap-switch{width:100%;margin:0;min-height:44px;border:1px solid var(--bh-border);border-radius:6px;background:var(--bh-surface-2);color:var(--bh-text)}
.marc-accpanel .marc-ap-switch:hover{background:var(--bh-border)}
.marc-accpanel :is(.marc-ap-c-val,.marc-ap-val,.marc-ap-m-val,.marc-ap-num,.marc-ap-foot>span:last-child){-webkit-user-select:text;user-select:text}
@media(max-width:650px){
 header.topbar .marc-accpanel{position:fixed!important;left:12px!important;right:12px!important;top:calc(var(--bh-header-h) + 8px)!important;transform:none!important;width:auto!important}
 .marc-accpanel .marc-ap{padding:16px}
 .bh-ap-overview{grid-template-columns:minmax(0,1fr);gap:16px;padding:12px 0}
 .marc-accpanel .marc-ap-donut{width:220px;height:220px;margin:auto}
 .marc-accpanel .marc-ap-center{inset:42px 30px}
 .marc-accpanel .marc-ap-c-val{font-size:22px}
 .bh-ap-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .marc-accpanel .marc-ap-row{grid-template-columns:minmax(0,1fr);padding:10px;gap:6px}
 .marc-accpanel .marc-ap-ico{display:none}
 .marc-accpanel .marc-ap-val{grid-column:1;font-size:16px}
 .marc-accpanel .marc-ap-bar,.marc-accpanel .marc-ap-foot{grid-column:1/-1}
 .marc-accpanel .marc-ap-m-val{font-size:16px}
}
