.discipline-mode-toggle{
  position:relative;
  display:grid!important;
  place-items:center;
  overflow:visible;
  background:#020202!important;
  border:1px solid rgba(245,196,0,.3)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 5px 18px rgba(0,0,0,.36);
  isolation:isolate;
}
.discipline-mode-toggle img{
  display:block;
  width:24px;
  height:24px;
  object-fit:contain;
  filter:drop-shadow(0 0 5px rgba(245,196,0,.22));
  pointer-events:none;
}
.discipline-mode-toggle::after{
  content:"";
  position:absolute;
  inset:-3px;
  z-index:-1;
  border:1px solid transparent;
  border-radius:inherit;
  pointer-events:none;
}
.discipline-mode-toggle.is-active{
  color:#f5c400!important;
  border-color:rgba(245,196,0,.9)!important;
  box-shadow:inset 0 0 0 1px rgba(255,222,94,.12),0 0 0 1px rgba(245,196,0,.16),0 0 20px rgba(245,196,0,.34)!important;
}
.discipline-mode-toggle.is-active::after{
  border-color:rgba(245,196,0,.42);
  animation:discipline-toggle-pulse 2.1s ease-out infinite;
}
.discipline-mode-toggle--rail{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:10px!important;
}
.mobile-chart-action-rail.has-discipline-mode-toggle{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
}
@media(max-width:760px) and (max-height:430px) and (orientation:landscape){
  .mobile-chart-action-rail.has-discipline-mode-toggle{grid-template-columns:repeat(8,38px)!important}
}

html body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark{
  z-index:0!important;
}
html body.market-launch-ready #chartWorkspace #chartMount>div:not(.chart-watermark){
  position:relative!important;
  z-index:1!important;
}
#chartStage[data-kline-screen-custom="1"] #chartMount>div:not(.chart-watermark){
  background:transparent!important;
}
html[data-kline-page-theme="light"]:not(.discipline-mode-active) body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark{
  opacity:.12!important;
}
html[data-kline-page-theme="light"]:not(.discipline-mode-active) body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark strong{
  color:rgba(17,24,39,.34)!important;
}
html[data-kline-page-theme="light"]:not(.discipline-mode-active) body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark>span{
  color:rgba(126,96,0,.42)!important;
}

html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:0!important;
  min-width:min(310px,72vw);
  padding:18px 26px 16px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  pointer-events:none!important;
  isolation:isolate;
}
html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark::before{
  content:"";
  position:absolute;
  inset:-72px -94px;
  z-index:-1;
  border:0;
  border-radius:50%;
  background:
    radial-gradient(ellipse at center,rgba(0,0,0,.88) 0%,rgba(0,0,0,.76) 25%,rgba(0,0,0,.48) 46%,rgba(0,0,0,.2) 62%,rgba(0,0,0,0) 80%),
    radial-gradient(ellipse at center,rgba(245,196,0,.11) 0%,rgba(245,196,0,.05) 32%,rgba(245,196,0,0) 68%);
  opacity:.94;
  filter:blur(10px);
}
html[data-kline-page-theme="light"].discipline-mode-active body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark::before{
  content:""!important;
  display:block!important;
  background:
    radial-gradient(ellipse at center,rgba(0,0,0,.82) 0%,rgba(0,0,0,.7) 25%,rgba(0,0,0,.44) 46%,rgba(0,0,0,.18) 62%,rgba(0,0,0,0) 80%),
    radial-gradient(ellipse at center,rgba(245,196,0,.1) 0%,rgba(245,196,0,.04) 32%,rgba(245,196,0,0) 68%)!important;
  opacity:.92!important;
}
html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark::after{
  content:"DISCIPLINE MODE";
  position:absolute;
  top:-2px;
  left:50%;
  transform:translateX(-50%);
  padding:0;
  border:0;
  background:transparent;
  color:rgba(245,196,0,.42);
  box-shadow:none;
  font:700 8px/1.1 Inter,system-ui,sans-serif;
  letter-spacing:.16em;
  white-space:nowrap;
}
html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark strong{
  position:relative;
  z-index:2;
  color:rgba(255,255,255,.25)!important;
  text-shadow:0 0 26px rgba(245,196,0,.1)!important;
}
html[data-kline-page-theme="light"].discipline-mode-active body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark strong{
  color:rgba(216,218,214,.86)!important;
  opacity:1!important;
  -webkit-text-stroke:.7px rgba(226,181,25,.72);
  paint-order:stroke fill;
  text-shadow:
    0 1px 2px rgba(0,0,0,.82),
    0 0 6px rgba(0,0,0,.68),
    0 0 14px rgba(0,0,0,.48),
    0 0 18px rgba(245,196,0,.18)!important;
}
html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark>span:not(.discipline-mode-particles){
  position:relative;
  z-index:2;
  color:rgba(255,213,54,.38)!important;
  opacity:1!important;
  text-shadow:0 0 18px rgba(245,196,0,.1);
}
html[data-kline-page-theme="light"].discipline-mode-active body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark>span:not(.discipline-mode-particles){
  color:rgba(126,96,0,.34)!important;
  opacity:1!important;
}
.discipline-mode-particles{
  position:absolute!important;
  inset:-82px!important;
  z-index:1!important;
  display:block!important;
  overflow:visible;
  opacity:0;
  pointer-events:none;
}
html:not(.discipline-mode-active) body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark>.discipline-mode-particles{
  opacity:0!important;
  visibility:hidden!important;
}
html:not(.discipline-mode-active) body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark>.discipline-mode-particles i{
  animation-play-state:paused!important;
}
html.discipline-mode-active body.market-launch-ready #chartWorkspace #chartMount>.chart-watermark>.discipline-mode-particles{
  opacity:1!important;
  visibility:visible!important;
}
.discipline-mode-particles i{
  --size:4px;
  position:absolute;
  left:50%;
  top:50%;
  width:var(--size);
  height:var(--size);
  border-radius:50%;
  background:#f5c400;
  box-shadow:0 0 5px rgba(245,196,0,.7),0 0 10px rgba(245,196,0,.34);
  opacity:0;
  animation:discipline-particle-pull var(--duration,2.8s) cubic-bezier(.45,.05,.25,1) var(--delay,0s) infinite;
}
.discipline-mode-particles i:nth-child(1){--x:-138px;--y:-52px;--mx:-45px;--my:-17px;--delay:-.2s;--duration:2.7s}
.discipline-mode-particles i:nth-child(2){--x:126px;--y:-66px;--mx:42px;--my:-22px;--delay:-1.3s;--duration:3.1s;--size:3px}
.discipline-mode-particles i:nth-child(3){--x:-112px;--y:72px;--mx:-37px;--my:24px;--delay:-2.1s;--duration:3.3s;--size:5px}
.discipline-mode-particles i:nth-child(4){--x:148px;--y:48px;--mx:49px;--my:16px;--delay:-.8s;--duration:2.9s}
.discipline-mode-particles i:nth-child(5){--x:-54px;--y:-102px;--mx:-18px;--my:-34px;--delay:-1.7s;--duration:3.4s;--size:3px}
.discipline-mode-particles i:nth-child(6){--x:68px;--y:96px;--mx:23px;--my:32px;--delay:-2.6s;--duration:3s}
.discipline-mode-particles i:nth-child(7){--x:-158px;--y:18px;--mx:-53px;--my:6px;--delay:-1.1s;--duration:3.6s;--size:3px}
.discipline-mode-particles i:nth-child(8){--x:162px;--y:-8px;--mx:54px;--my:-3px;--delay:-2.9s;--duration:3.5s;--size:5px}
.discipline-mode-particles i:nth-child(9){--x:-88px;--y:102px;--mx:-29px;--my:34px;--delay:-.5s;--duration:3.2s}
.discipline-mode-particles i:nth-child(10){--x:94px;--y:-98px;--mx:31px;--my:-33px;--delay:-2.3s;--duration:2.8s;--size:3px}
.discipline-mode-particles i:nth-child(11){--x:-144px;--y:-88px;--mx:-48px;--my:-29px;--delay:-1.9s;--duration:3.7s}
.discipline-mode-particles i:nth-child(12){--x:136px;--y:88px;--mx:45px;--my:29px;--delay:-3.1s;--duration:3.4s;--size:3px}

/* Official user-facing name for Shield Execution. Internal shield ids/classes stay unchanged. */
.disciply-shield-dock__head>strong{
  font-size:0!important;
  letter-spacing:0!important;
}
.disciply-shield-dock__head>strong::after{
  content:"ESECUZIONE DISCIPLINATA";
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}
html[lang^="en"] .disciply-shield-dock__head>strong::after{content:"DISCIPLINED EXECUTION"}
html[lang^="es"] .disciply-shield-dock__head>strong::after{content:"EJECUCIÓN DISCIPLINADA"}
html[lang^="fr"] .disciply-shield-dock__head>strong::after{content:"EXÉCUTION DISCIPLINÉE"}
html[lang^="ar"] .disciply-shield-dock__head>strong::after{content:"تنفيذ منضبط"}

/* Confidence is presented as reliability in the user-facing UI. */
.disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3){font-size:0}
.disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3)::before{content:"Affidabilità";font-size:9px;color:#bfc5cd}
html[lang^="en"] .disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3)::before{content:"Confidence"}
html[lang^="es"] .disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3)::before{content:"Fiabilidad"}
html[lang^="fr"] .disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3)::before{content:"Fiabilité"}
html[lang^="ar"] .disciply-shield-dock__metrics .disciply-shield-chip:nth-child(3)::before{content:"الموثوقية"}

/* Localize the visible action labels without changing the MT5 buy/sell semantics. */
.disciply-shield-action{font-size:0!important}
.disciply-shield-action::after{font-size:10px;font-weight:850;letter-spacing:.06em}
.disciply-shield-action--sell::after{content:"VENDI"}
.disciply-shield-action--buy::after{content:"COMPRA"}
html[lang^="en"] .disciply-shield-action--sell::after{content:"SELL"}
html[lang^="en"] .disciply-shield-action--buy::after{content:"BUY"}
html[lang^="es"] .disciply-shield-action--sell::after{content:"VENDER"}
html[lang^="es"] .disciply-shield-action--buy::after{content:"COMPRAR"}
html[lang^="fr"] .disciply-shield-action--sell::after{content:"VENDRE"}
html[lang^="fr"] .disciply-shield-action--buy::after{content:"ACHETER"}
html[lang^="ar"] .disciply-shield-action--sell::after{content:"بيع"}
html[lang^="ar"] .disciply-shield-action--buy::after{content:"شراء"}

@keyframes discipline-particle-pull{
  0%{transform:translate(var(--x),var(--y)) scale(.35);opacity:0}
  18%{opacity:.52}
  72%{transform:translate(var(--mx),var(--my)) scale(1);opacity:.38}
  100%{transform:translate(0,0) scale(.08);opacity:0}
}
@keyframes discipline-toggle-pulse{0%{transform:scale(.88);opacity:.75}75%,100%{transform:scale(1.22);opacity:0}}

@media(max-width:820px){
  html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark{
    min-width:min(250px,66vw);
    padding:15px 18px 13px;
  }
  html.discipline-mode-active body.market-launch-ready #chartWorkspace .chart-watermark::before{inset:-58px -70px}
  .discipline-mode-particles{inset:-58px!important}

  html.discipline-mode-active body.market-launch-ready #chartStage #klineExecutionFloatingPrices .kline-exec-side,
  html.discipline-mode-active body.market-launch-ready #chartStage #klineExecutionFloatingPrices [data-kline-exec-side],
  html.discipline-mode-active body.market-launch-ready #klineExecutionPrices .kline-exec-side,
  html.discipline-mode-active body.market-launch-ready #klineExecutionPrices [data-kline-exec-side]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  html.discipline-mode-active body.market-launch-ready #chartStage .disciply-shield-dock{
    left:14px!important;
    right:58px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
    bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
  }

  html.discipline-mode-active.mobile-chart-fullscreen-active body.market-launch-ready #chartStage .disciply-shield-dock,
  html.discipline-mode-active.chart-native-landscape body.market-launch-ready #chartStage .disciply-shield-dock,
  html.discipline-mode-active body.market-launch-ready #chartStage:fullscreen .disciply-shield-dock,
  html.discipline-mode-active body.market-launch-ready #chartStage:-webkit-full-screen .disciply-shield-dock{
    left:14px!important;
    right:58px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
    bottom:calc(116px + env(safe-area-inset-bottom,0px))!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .discipline-mode-toggle.is-active::after,
  .discipline-mode-particles i{animation:none!important}
  .discipline-mode-particles{display:none!important}
}
