.technicalWorkspace { border:1px solid #344e65; border-radius:14px; background:#101c2b; padding:clamp(9px,2vw,18px); }
.technicalWorkspace [hidden] { display:none!important; }
.technicalWorkspace header,.technicalControls,.technicalTools,.technicalIndicators { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.technicalWorkspace header { justify-content:space-between; }
.technicalWorkspace button,.technicalWorkspace input,.technicalWorkspace select { min-height:38px; }
.technicalWorkspace button:disabled { opacity:.45; cursor:default; }
.technicalSearch { position:relative; width:min(320px,100%); z-index:4; }
.technicalSearch input { width:100%; }
.technicalMatches { position:absolute; inset:calc(100% + 4px) 0 auto; padding:6px; border:1px solid #344e65; border-radius:9px; background:#142438; overflow:auto; max-height:245px; }
.technicalMatches button { display:block; width:100%; text-align:start; margin-bottom:4px; }
.technicalChartBox { border:1px solid #344e65; border-radius:10px; background:#091523; overflow:hidden; }
#technicalCanvas { display:block; width:100%; height:clamp(310px,53vh,620px); touch-action:none; cursor:crosshair; }
.technicalWorkspace .technicalReadout { display:block; padding:9px; min-height:38px; unicode-bidi:plaintext; color:#b5c8de; font-size:12px; }
.technicalTools label { display:inline-flex; gap:4px; align-items:center; }
#technicalColor { width:42px; padding:3px; }
#technicalText { max-width:100%; }
@media(max-width:600px) {
  .technicalWorkspace button,.technicalWorkspace select { min-height:44px; font-size:12px; }
  #technicalCanvas { height:360px; }
}

.technicalIndicatorMenu { margin:8px 0; padding:8px 12px; border:1px solid #344e65; border-radius:8px; }
.technicalIndicatorMenu summary { cursor:pointer; font-weight:700; }
.technicalIndicatorMenu input[type=search] { margin-block:8px; }
#technicalExtraStudies figure { margin:8px 0 0; padding:8px; border:1px solid #344e65; border-radius:8px; }
#technicalExtraStudies svg { display:block; width:100%; max-height:96px; direction:ltr; }

.technicalQuickTools { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.technicalQuickTools button[aria-pressed=true],.technicalEditBar button[aria-pressed=true] { background:#21485c; color:#c2fff7; border-color:#6ce0d1; }
.technicalCanvasSurface { position:relative; }
.technicalEditBar {
  position:absolute; z-index:2; display:flex; align-items:center; flex-wrap:nowrap; gap:5px;
  padding:4px 5px; max-width:calc(100% - 12px); color:#e0efff; background:#14283b;
  border:1px solid #42617a; border-radius:9px; box-shadow:0 8px 18px #0008;
}
.technicalEditBar label { display:flex; align-items:center; gap:3px; font-size:11px; }
.technicalEditBar input[type=color] { width:29px; padding:2px; }
.technicalEditBar button,.technicalEditBar select { padding-inline:6px; font-size:11px; }
.technicalLens {
  position:absolute; z-index:3; pointer-events:none; width:116px; padding:2px;
  background:#14283b; color:#e0efff; border:1px solid #6ce0d1; border-radius:8px;
  box-shadow:0 6px 16px #000a; text-align:center; font-size:10px;
}
.technicalLens canvas { display:block; width:112px; height:72px; border-radius:5px; }
.technicalLens span { display:block; padding:3px 0; }

.technicalIndicators { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); align-items:start; }
.technicalIndicatorGroup { border:1px solid #344e65; border-radius:8px; padding:6px 9px; }
.technicalIndicatorGroup summary { min-height:38px; display:list-item; line-height:38px; }
.technicalIndicatorGroup label { display:flex; align-items:center; gap:7px; padding:3px 2px; font-size:13px; }
.technicalIndicatorGroup input[type=checkbox] { min-height:0; width:17px; height:17px; }
.technicalIndicatorGroup select { min-width:0; max-width:100%; }
#technicalIndicatorSearch { width:min(100%,400px); }

.technicalManager {
  width:min(640px,calc(100% - 26px)); max-height:85dvh; overflow:auto; direction:rtl;
  background:#142438; color:#e0efff; padding:16px; border:1px solid #42617a; border-radius:14px;
}
.technicalManager::backdrop { background:#06101db0; }
.technicalManager header h2 { margin:0; }
.technicalManagerActions,.technicalReplay,.technicalAnchorRow { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.technicalReplay { padding:8px; margin:8px 0; border:1px solid #344e65; border-radius:8px; }
.technicalReplay summary { cursor:pointer; margin-bottom:8px; }
.technicalReplay label,.technicalReplay output { display:inline-block; margin:4px 0; }
.technicalReplay output { font-size:12px; }
.technicalShapeRow { display:grid; grid-template-columns:auto minmax(90px,1fr) repeat(2,auto); gap:4px; align-items:center; margin:6px 0; }
.technicalShapeRow button { text-align:start; overflow-wrap:anywhere; }
.technicalShapeRow input[type=checkbox] { min-height:20px; }
.technicalAnchorRow { margin:8px 0; }
.technicalAnchorRow input { max-width:min(150px,100%); }
#technicalAnchorFeedback { display:block; margin-top:7px; }
@media(max-width:600px){
 .technicalManager { width:100%; max-height:80dvh; margin:auto 0 0; border-radius:14px 14px 0 0; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); }
 .technicalEditBar { flex-wrap:wrap; justify-content:center; }
}
