@import url('/kline-chart-lab/market-workspace-core.css?v=20260821-drawing-icons-v1');
@import url('/kline-chart-lab/market-workspace-panels.css?v=20260821-drawing-icons-v1');
@import url('/kline-chart-lab/market-workspace-portrait.css?v=20260818-market-v1-portrait');

/* Visual tuning: stronger Disciply watermark + slightly more compact chart. */
.quick-glyph{min-width:20px;min-height:20px}
.quick-glyph--svg svg{width:20px;height:20px;stroke-width:1.55}
.quick-glyph--long,.quick-glyph--short{width:22px;height:22px}
.tool-card__icon{
  width:38px;
  height:34px;
  margin-bottom:7px;
  border:1px solid rgba(49,61,78,.72);
  border-radius:9px;
  background:#090d13;
  color:#cfd7e2;
}
.tool-card__icon svg{width:25px;height:25px;stroke-width:1.55}

.chart-watermark{
  opacity:.07;
}
.chart-watermark strong{
  color:#f5f7fb;
  text-shadow:0 0 28px rgba(245,196,0,.12);
}
.chart-watermark span{
  color:#d8c861;
  opacity:.95;
}
.chart-workspace,
.chart-stage{
  min-height:calc(100dvh - 290px);
}

.chart-retry{
  min-height:34px;
  margin-top:4px;
  padding:0 14px;
  border:1px solid #655516;
  border-radius:8px;
  background:#17140a;
  color:#f5c400;
  font-size:8px;
  font-weight:850;
}
.chart-retry.is-hidden{display:none}

html.chart-native-landscape body{padding-bottom:0!important}
html.chart-native-landscape .market-bottom-nav{display:none!important}
html.market-chart-active .market-bottom-nav{
  background:#06090d!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
}

@media (max-width:1024px) and (max-height:700px) and (orientation:landscape){
  html.market-chart-active,
  html.market-chart-active body{
    height:100dvh;
    overflow:hidden!important;
    overscroll-behavior:none;
  }
  html.market-chart-active body{padding-bottom:0!important}
  html.market-chart-active .market-topbar{display:none!important}
  html.market-chart-active .market-bottom-nav{display:none!important}
  html.market-chart-active .market-main{
    height:100dvh;
    padding:0!important;
    overflow:hidden;
  }
  html.market-chart-active .instrument-strip{
    min-height:52px;
    padding:6px 12px;
  }
  html.market-chart-active .market-selector{
    min-height:39px;
    padding:3px 10px 6px;
  }
  html.market-chart-active .chart-card{
    height:calc(100dvh - 91px);
    display:flex;
    flex-direction:column;
    box-shadow:none;
  }
  html.market-chart-active .workspace-commandbar{flex:0 0 42px}
  html.market-chart-active .chart-workspace{
    flex:1 1 auto;
    min-height:0!important;
    height:auto;
    overflow:hidden;
  }
  html.market-chart-active .chart-stage{
    min-height:0!important;
    height:100%;
  }
  html.market-chart-active .quick-toolbar{
    min-height:0;
    overflow-y:auto;
  }
  html.market-chart-active .chart-statusbar{display:none}
  html.market-chart-active .chart-watermark{display:none}
}

@media (max-width:820px) and (orientation:portrait){
  html:not(.chart-native-landscape) .market-shell .chart-workspace,
  html:not(.chart-native-landscape) .market-shell .chart-stage{
    min-height:max(420px,calc(100dvh - 400px))!important;
  }
}

@supports not (height:100dvh){
  .chart-workspace,
  .chart-stage{
    min-height:calc(100vh - 290px);
  }
  @media (max-width:820px) and (orientation:portrait){
    html:not(.chart-native-landscape) .market-shell .chart-workspace,
    html:not(.chart-native-landscape) .market-shell .chart-stage{
      min-height:max(420px,calc(100vh - 400px))!important;
    }
  }
}
