/* PRO BOT Terminal — TradingView arayüz teması (Ultimate düzeni). Mevcut öğeler taşınır/örtülür; kimlikler ve davranış korunur. */
:root{--tv-bg:#131722;--tv-panel:#1e222d;--tv-panel2:#2a2e39;--tv-line:#2a2e39;--tv-line2:#363a45;--tv-text:#d1d4dc;--tv-muted:#787b86;--tv-blue:#2962ff;--tv-blue2:#4c7dff;--tv-up:#089981;--tv-down:#f23645;--tv-hover:#2a2e39;--tv-active:#2a2e39;--tv-font:-apple-system,BlinkMacSystemFont,"Trebuchet MS",Roboto,Ubuntu,sans-serif}
body.tv{background:var(--tv-bg);color:var(--tv-text);font-family:var(--tv-font);font-size:13px;overflow:hidden;height:100vh;height:100dvh;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}
body.tv *{scrollbar-width:thin;scrollbar-color:#363a45 transparent}
body.tv header,body.tv .risk-banner,body.tv .metrics,body.tv .chart-tools,body.tv .strategy-strip,body.tv .chart-footer,body.tv .instrument{display:none!important}
/* ---------- üst araç çubuğu ---------- */
#tv-top{display:flex;align-items:center;gap:2px;height:48px;min-height:48px;padding:0 8px;background:var(--tv-bg);border-bottom:1px solid var(--tv-line);position:relative;z-index:30;user-select:none}
#tv-top .tvb,#tv-top button,#tv-top select{font-family:var(--tv-font)}
.tvb{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;min-width:34px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--tv-text);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}
.tvb:hover{background:var(--tv-hover)}.tvb.on,.tvb.selected{background:var(--tv-active);color:var(--tv-blue2)}
.tvb svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4}
.tvb.fill svg{fill:currentColor;stroke:none}
.tvsep{width:1px;height:24px;background:var(--tv-line);margin:0 6px;flex:none}
.tvgrow{flex:1}
#tv-sym{font-weight:700;font-size:14px;gap:8px;padding:0 12px 0 10px}
#tv-sym .ic{width:20px;height:20px;border-radius:50%;background:var(--tv-panel2);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
#tv-tfs{display:flex;align-items:center;gap:0}
#tv-tfs .tvb{min-width:30px;padding:0 7px;font-weight:600}
#tv-top select{height:30px;background:transparent;color:var(--tv-text);border:0;font-size:13px;font-weight:600;cursor:pointer;padding:0 4px;border-radius:4px;max-width:120px}
#tv-top select:hover{background:var(--tv-hover)}
#tv-top select option,#tv-top select optgroup{background:var(--tv-panel);color:var(--tv-text)}
#tv-top #marketStatus{display:none}
#tv-top .tvinfo{font-size:11px;color:var(--tv-muted);padding:0 6px}
#tv-top #clock{font-size:12px;color:var(--tv-muted);padding:0 8px}
#tv-top .connection{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--tv-muted)}
#tv-top .connection i{width:7px;height:7px;border-radius:50%;background:var(--tv-up);display:inline-block}
.tvpill{font-size:10px;font-weight:700;letter-spacing:.04em;padding:3px 7px;border-radius:10px;background:#f2a53326;color:#f2a533;margin:0 4px}
/* açılır menüler */
.tvmenu{position:fixed;z-index:100;min-width:200px;max-height:75vh;overflow:auto;background:var(--tv-panel);border:1px solid var(--tv-line2);border-radius:6px;box-shadow:0 6px 24px #0009;padding:6px 0}
.tvmenu .it{display:flex;align-items:center;gap:10px;padding:7px 14px;font-size:13px;color:var(--tv-text);cursor:pointer;white-space:nowrap}
.tvmenu .it:hover{background:var(--tv-hover)}.tvmenu .it.on{color:var(--tv-blue2)}
.tvmenu .hd{padding:8px 14px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--tv-muted);text-transform:uppercase}
.tvmenu .hr{height:1px;background:var(--tv-line);margin:5px 0}
.tvmenu .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:4px 8px}
.tvmenu .grid .it{justify-content:center;padding:8px 4px;border-radius:4px}
.tvadv{position:fixed;z-index:90;top:48px;right:8px;width:min(760px,96vw);max-height:78vh;overflow:auto;background:var(--tv-panel);border:1px solid var(--tv-line2);border-radius:6px;box-shadow:0 8px 28px #000a;padding:8px}
.tvadv.hidden,.tvmenu.hidden{display:none}
.tvadv .indicator-bar,.tvadv .chart-tools,.tvadv .strategy-strip{display:flex!important;flex-wrap:wrap;gap:4px;padding:6px 4px;align-items:center;border:0}
.tvadv button,.tvadv .chip{background:var(--tv-panel2);color:var(--tv-text);border:1px solid var(--tv-line2);border-radius:4px;padding:3px 8px;font-size:12px;cursor:pointer}
.tvadv button.selected,.tvadv .chip.selected{border-color:var(--tv-blue);color:var(--tv-blue2)}
.tvadv select,.tvadv input.mini{background:var(--tv-bg);color:var(--tv-text);border:1px solid var(--tv-line2);border-radius:4px;padding:3px 6px;font-size:12px;width:auto;max-width:180px}
.tvadv h4{margin:8px 4px 2px;font-size:11px;letter-spacing:.06em;color:var(--tv-muted);text-transform:uppercase}
/* ---------- ana yerleşim ---------- */
body.tv main{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);flex:1;min-height:0;height:auto;gap:0;padding:0;background:var(--tv-bg)}
#tv-left{grid-column:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border-right:1px solid var(--tv-line);background:var(--tv-bg);overflow-y:auto;overflow-x:hidden;position:relative}
#tv-left .tvb{width:40px;height:40px;padding:0;position:relative}
#tv-left .tvb svg{width:28px;height:28px}
#tv-left .tvb .tri{position:absolute;right:1px;bottom:5px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid var(--tv-muted);opacity:0}
#tv-left .tvb:hover .tri{opacity:1}
#tv-left .sp{height:1px;width:28px;background:var(--tv-line);margin:4px 0;flex:none}
body.tv .workspace{grid-column:2;display:flex!important;flex-direction:column;min-width:0;min-height:0;padding:0;gap:0;background:var(--tv-bg);overflow:hidden}
body.tv .chart-panel{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;border:0!important;border-radius:0!important;background:var(--tv-bg)!important;padding:0!important;margin:0!important}
body.tv .chart-grid{flex:1;min-height:0;height:auto!important}
body.tv #chart{flex:1;min-height:0;height:auto!important;position:relative;background:var(--tv-bg)}
body.tv .chart-grid.multi{height:auto!important}
body.tv .chart-panel>.indicator-bar,body.tv .chart-panel>#drawBar{display:none!important}
body.tv .chart-panel:fullscreen{height:100vh}
/* legend */
#tv-legend{position:absolute;left:10px;top:8px;z-index:6;pointer-events:none;font-size:13px;line-height:19px;max-width:calc(100% - 90px)}
#tv-legend>*{pointer-events:auto}
#tv-legend .l1{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:600}
#tv-legend .l1 .nm{font-size:14px}#tv-legend .l1 .dim{color:var(--tv-muted);font-weight:400}
#tv-legend .l1 .dot{width:8px;height:8px;border-radius:50%;background:var(--tv-up);display:inline-block}
#tv-legend .l2{display:flex;gap:10px;flex-wrap:wrap;font-weight:500;font-size:12.5px;font-feature-settings:"tnum"}
#tv-legend .l2 b{font-weight:500}.up{color:var(--tv-up)}.down{color:var(--tv-down)}
#tv-legend .l3{display:flex;flex-direction:column;gap:1px;margin-top:2px}
#tv-legend #studyChips{display:flex!important;flex-direction:column;align-items:flex-start;gap:1px;padding:0!important}
#tv-legend #studyChips .chip{background:transparent!important;border:0!important;padding:0 4px!important;color:var(--tv-text)!important;font-size:12px;border-radius:3px}
#tv-legend #studyChips .chip:hover{background:var(--tv-hover)!important}
#tv-legend #feedSource{display:block;font-size:11px;color:var(--tv-muted)}
#tv-legend #quote{font-size:15px;font-weight:700}
#tv-legend #ohlc{font-size:12px;color:var(--tv-muted)}
/* alt aralık çubuğu */
#tv-range{display:flex;align-items:center;gap:2px;height:38px;min-height:38px;padding:0 8px;border-top:1px solid var(--tv-line);background:var(--tv-bg);font-size:12px}
#tv-range .tvb{height:26px;min-width:0;padding:0 8px;font-size:12px;font-weight:500;color:var(--tv-text)}
#tv-range .rs{margin-left:auto;display:flex;align-items:center;gap:4px;color:var(--tv-muted)}
#tv-range .rs .tvb{color:var(--tv-text)}
#tv-range #timeBasis{color:var(--tv-muted);padding:0 8px;font-size:12px}
/* alt panel */
body.tv .bottom-panel{flex:none;display:flex;flex-direction:column;background:var(--tv-bg)!important;border:0!important;border-top:1px solid var(--tv-line)!important;border-radius:0!important;margin:0!important;padding:0!important;max-width:none;overflow:hidden;height:38px;transition:none}
body.tv .bottom-panel.open{height:var(--tv-bottom-h,300px)}
body.tv .bottom-panel .tabs{display:flex;align-items:center;gap:0;height:38px;min-height:38px;padding:0 6px;border-bottom:1px solid var(--tv-line);overflow-x:auto;overflow-y:hidden;max-width:none;flex:none;background:var(--tv-bg)}
body.tv .bottom-panel .tabs button{height:38px;border:0;background:transparent;color:var(--tv-muted);padding:0 12px;font-size:13px;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;border-radius:0;white-space:nowrap}
body.tv .bottom-panel .tabs button:hover{color:var(--tv-text)}
body.tv .bottom-panel .tabs button.active{color:var(--tv-text);border-bottom-color:var(--tv-text)}
body.tv .bottom-panel .tab-note{display:none}
body.tv .bottom-panel .tabs .tvtog{margin-left:auto;color:var(--tv-muted)}
body.tv #tableContent{flex:1;min-height:0;overflow:auto;padding:0}
#tv-bhandle{height:5px;margin-top:-3px;cursor:ns-resize;flex:none;position:relative;z-index:5}
#tv-bhandle:hover{background:var(--tv-blue)}
/* sağ: panel + ray */
#tv-right{grid-column:3;display:flex;min-height:0;border-left:1px solid var(--tv-line);background:var(--tv-bg)}
#tv-rpanel{width:340px;display:none;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--tv-line);background:var(--tv-bg)}
#tv-right.open #tv-rpanel{display:flex}
#tv-rhead{display:flex;align-items:center;gap:6px;height:48px;min-height:48px;padding:0 12px;border-bottom:1px solid var(--tv-line);font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--tv-text)}
#tv-rhead .tvgrow{flex:1}
#tv-rbody{flex:1;min-height:0;overflow:auto;padding:0}
#tv-rbody>*{display:none!important}
#tv-rbody>.tvshow{display:block!important}
#tv-rbody section,#tv-rbody aside{background:transparent!important;border:0!important;padding:8px 12px!important;margin:0!important;max-width:none;width:auto}
#tv-rbody .section-title{font-size:11px;letter-spacing:.06em;color:var(--tv-muted);margin:6px 0;text-transform:uppercase}
#tv-rbody .watchlist{display:block}
#tv-rbody input,#tv-rbody select,#tv-rbody textarea{background:var(--tv-panel)!important;color:var(--tv-text)!important;border:1px solid var(--tv-line2)!important;border-radius:4px;padding:6px 8px;font-size:12.5px;font-family:var(--tv-font);max-width:100%}
#tv-rbody button{font-family:var(--tv-font)}
#tv-rbody .chip,#tv-rbody .secondary,#tv-rbody .btn-file{background:var(--tv-panel)!important;color:var(--tv-text)!important;border:1px solid var(--tv-line2)!important;border-radius:4px;padding:5px 9px;cursor:pointer;font-size:12px}
#tv-rbody .secondary.full,#tv-rbody button.full{display:block;width:100%;margin:6px 0;padding:8px;text-align:center}
#tv-rbody .field-row{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0;align-items:center}
#tv-rbody .field-row label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--tv-muted)}
#tv-rbody .primary,#tv-rbody button.primary{background:var(--tv-blue)!important;border-color:var(--tv-blue)!important;color:#fff!important}
#tv-rbody .symbol-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:7px 10px;margin:0;background:transparent!important;border:0!important;border-bottom:1px solid var(--tv-line)!important;border-radius:0!important;color:var(--tv-text);cursor:pointer;min-height:44px}
#tv-rbody .symbol-item:hover{background:var(--tv-hover)!important}
#tv-rbody .symbol-item.active{background:var(--tv-active)!important}
#tv-rbody .symbol-item strong{font-size:13px;font-weight:700}
#tv-rbody .symbol-item small{display:block;font-size:11px;color:var(--tv-muted);font-weight:400}
#tv-rbody .symbol-icon{width:24px;height:24px;border-radius:50%;background:var(--tv-panel2);display:inline-flex;align-items:center;justify-content:center;font-size:11px;flex:none}
#tv-rail{width:46px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;background:var(--tv-bg)}
#tv-rail .tvb{width:38px;height:38px;padding:0}
#tv-rail .tvb svg{width:26px;height:26px}
#tv-rail .tvb.on{background:var(--tv-active);color:var(--tv-blue2)}
#tv-rail .sp{flex:1}
body.tv .chart-message{color:var(--tv-muted);font-family:var(--tv-font)}
body.tv .data-window{background:var(--tv-panel)!important;border:1px solid var(--tv-line2)!important;color:var(--tv-text)}
body.tv .toast{background:var(--tv-panel);border:1px solid var(--tv-line2);color:var(--tv-text);border-radius:6px}
body.tv .modal .modal-card,body.tv .modal>div{background:var(--tv-panel)!important;color:var(--tv-text);border:1px solid var(--tv-line2)!important;border-radius:8px}
body.tv .modal input,body.tv .modal select,body.tv .modal textarea{background:var(--tv-bg);color:var(--tv-text);border:1px solid var(--tv-line2);border-radius:4px}
body.tv .modal button{background:var(--tv-panel2);color:var(--tv-text);border:1px solid var(--tv-line2);border-radius:4px;padding:5px 10px;cursor:pointer}
body.tv .ctx-menu,body.tv .cmd-palette{background:var(--tv-panel)!important;border:1px solid var(--tv-line2)!important;color:var(--tv-text);border-radius:6px}
body.tv table{font-size:12.5px}
body.tv #tableContent table th{color:var(--tv-muted);font-weight:500;text-align:left;border-bottom:1px solid var(--tv-line);background:var(--tv-bg);position:sticky;top:0}
body.tv #tableContent table td{border-bottom:1px solid var(--tv-line)}
body.tv .login{background:var(--tv-bg)}
body.tv .pos{color:var(--tv-up)}body.tv .neg{color:var(--tv-down)}
/* ---------- mobil (TradingView mobil düzeni) ---------- */
#tv-mnav{display:none}
@media (max-width:860px){
 body.tv main{grid-template-columns:minmax(0,1fr)}
 #tv-left{position:fixed;left:0;top:48px;bottom:56px;z-index:40;width:48px;background:var(--tv-bg);transform:translateX(-100%);transition:transform .15s;border-right:1px solid var(--tv-line)}
 body.tv.leftopen #tv-left{transform:none}
 #tv-top{padding:0 4px;height:44px;min-height:44px;overflow-x:auto}
 #tv-top .hide-m,#tv-top .tvsep,#tv-top #clock,#tv-top .connection,#tv-top .tvpill{display:none!important}
 #tv-right{position:fixed;left:0;right:0;top:44px;bottom:56px;z-index:45;display:none;border:0}
 #tv-right.open{display:flex}
 #tv-rpanel{width:100%}
 #tv-rail{display:none}
 #tv-mnav{display:flex;position:fixed;left:0;right:0;bottom:0;height:56px;background:var(--tv-panel);border-top:1px solid var(--tv-line);z-index:60;padding-bottom:env(safe-area-inset-bottom)}
 #tv-mnav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:var(--tv-muted);font-size:10px;font-family:var(--tv-font);cursor:pointer}
 #tv-mnav button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
 #tv-mnav button.on{color:var(--tv-text)}
 body.tv .bottom-panel{position:fixed;left:0;right:0;bottom:56px;z-index:44;display:none}
 body.tv.bopen .bottom-panel{display:flex;height:55vh}
 #tv-range{height:34px;min-height:34px;overflow-x:auto}
 #tv-legend{font-size:12px;left:6px;top:4px}
 #tv-legend .l2{font-size:11.5px;gap:6px}
 body.tv main{padding-bottom:56px}
 .tvadv{top:44px;left:4px;right:4px;width:auto}
}
@media (display-mode:standalone){body.tv{padding-top:env(safe-area-inset-top)}}
@media (max-width:860px){#tv-sym{flex:0 0 auto;max-width:120px;overflow:hidden;font-size:13px}#tv-sym .ic{display:none}#tv-top .tvb{flex:0 0 auto}}

#tv-legend .l1{gap:6px;font-weight:500}
#tv-legend .l1 .nm,#tv-legend #instrumentName{font-size:13px;font-weight:600}
#tv-legend #feedSource{display:inline;font-size:12px;color:var(--tv-muted);text-transform:none;letter-spacing:0}
#tv-legend .l2{display:none}
#tv-ohlcline{font-size:12px;font-feature-settings:"tnum";margin-top:1px;white-space:nowrap}
#tv-ohlcline i{font-style:normal;color:var(--tv-muted)}#tv-ohlcline b{font-weight:500}
#tv-volline{font-size:12px;color:var(--tv-muted);margin-top:2px}#tv-volline b{font-weight:500}
#tv-clock{margin-left:auto;padding:0 10px;color:var(--tv-text);font-size:12px;font-feature-settings:"tnum";white-space:nowrap}
#tv-range .rs{margin-left:0}
body.tv .bottom-panel:not(.open){height:43px!important;min-height:0!important;max-height:43px!important;flex:none!important}
@media (max-width:860px){body.tv .bottom-panel:not(.open){display:none!important}}
@media (max-width:860px){#tv-clock,#tv-range #timeBasis,#tv-range .tvb[title^="Tarihe"]{display:none!important}#tv-range{padding:0 2px;gap:0;overflow-x:auto}#tv-range .tvb{padding:0 6px}#tv-legend #feedSource{display:none}#tv-ohlcline{white-space:normal;font-size:11px;max-width:330px}}
#tv-modal-x{position:fixed;top:10px;right:10px;z-index:200;width:40px;height:40px;border-radius:50%;border:1px solid var(--tv-line2);background:var(--tv-panel2);color:var(--tv-text);font-size:18px;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.5)}
@media (max-width:860px){body.tv .modal{padding:56px 0 0!important;align-items:stretch}body.tv .modal .modal-card,body.tv .modal>div{width:100%!important;max-width:none!important;border-radius:0!important;min-height:calc(100vh - 56px)}body.tv .modal .modal-body{max-height:none}}

/* ---------- üst çubuk: taşma ve üst üste binme düzeltmesi (masaüstü; telefon kuralları yukarıda) ---------- */
@media (min-width:861px){
 #tv-top{overflow:hidden}
 #tv-top>*{flex:none}
 #tv-top>.tvgrow{flex:1 1 0;min-width:0}
 #tv-top #chartType{width:76px}
 #tv-top #layoutGrid{width:64px}
 #tv-top .tvpill{white-space:nowrap;margin:0 6px}
 #tv-top .connection{font-size:0;gap:0;padding:0 8px}
 #tv-top .connection i{width:8px;height:8px}
 #tv-top #clock{display:none;white-space:nowrap}
 #tv-top .tvb[title^="Otomatik grafik"] span,#tv-top .tvb[title^="Çalışma alanını kaydet"] span,#tv-top .tvb[title^="Alarm oluştur"] span,#tv-top .tvb[title^="Mum tekrar"] span{display:none}
}
@media (min-width:1560px){
 #tv-top #clock{display:inline-block}
 #tv-top .tvb[title^="Alarm oluştur"] span,#tv-top .tvb[title^="Mum tekrar"] span{display:inline}
}
@media (min-width:1800px){
 #tv-top .tvb[title^="Otomatik grafik"] span,#tv-top .tvb[title^="Çalışma alanını kaydet"] span{display:inline}
}
@media (min-width:861px) and (max-width:1320px){
 #tv-top #layoutGrid,#tv-top .tvb[title^="Çalışma alanını kaydet"],#tv-top #tv-xt{display:none}
}
@media (min-width:861px) and (max-width:1120px){
 #tv-top .tvb[title^="Grafik ayarları"],#tv-top .tvb[title^="Otomatik grafik"],#tv-top .tvpill,#tv-top .tvb[title^="Göstergeler"] span{display:none}
}

/* ---------- grafik sol üst: TradingView tarzı gösterge satırları ---------- */
#tv-legend #studyChips{gap:0}
#tv-legend #studyChips .chip{display:flex!important;align-items:center;gap:6px;height:22px;padding:0 4px!important;font-size:13px;font-weight:500;color:var(--tv-text)!important;white-space:nowrap;cursor:default}
#tv-legend #studyChips .chip .nm{color:var(--tv-text)}
#tv-legend #studyChips .chip .vals{display:inline-flex;gap:8px;font-feature-settings:"tnum"}
#tv-legend #studyChips .chip.tvoff .nm{opacity:.45;text-decoration:none}
#tv-legend #studyChips .chip .tverr{color:var(--tv-down);font-weight:700}
#tv-legend #studyChips .chip .acts{display:none;gap:2px;margin-left:4px}
#tv-legend #studyChips .chip:hover .acts,#tv-legend #studyChips .chip:focus-within .acts{display:inline-flex}
@media (hover:none){#tv-legend #studyChips .chip .acts{display:inline-flex}}
#tv-legend #studyChips .chip .acts i{width:24px;height:22px;border-radius:4px;cursor:pointer;background:var(--tv-text);opacity:.8;font-size:0;-webkit-mask:var(--ic) center/18px no-repeat;mask:var(--ic) center/18px no-repeat}
#tv-legend #studyChips .chip .acts i:hover{opacity:1;background:var(--tv-blue2)}
#tv-legend #studyChips .chip .acts i.eye{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><path d='M3 14c3-5 6.5-7.5 11-7.5S22 9 25 14c-3 5-6.5 7.5-11 7.5S6 19 3 14z'/><circle cx='14' cy='14' r='3.2'/></svg>")}
#tv-legend #studyChips .chip .acts i.eyeoff{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><path d='M3 14c3-5 6.5-7.5 11-7.5S22 9 25 14c-3 5-6.5 7.5-11 7.5S6 19 3 14z'/><path d='M5 23L23 5'/></svg>")}
#tv-legend #studyChips .chip .acts i.gear{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><circle cx='14' cy='14' r='3.5'/><path d='M14 4v3M14 21v3M4 14h3M21 14h3M7 7l2 2M19 19l2 2M21 7l-2 2M9 19l-2 2'/></svg>")}
#tv-legend #studyChips .chip .acts i.rm{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.8'><path d='M7 7l14 14M21 7L7 21'/></svg>")}

/* ---------- TradingView modülleri: nesne ağacı, yardım, üst çubuk düğmeleri ---------- */
.tvmod{display:none}.tvmod.tvshow{display:block}
.tvo-h{margin:14px 12px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--tv-muted)}
.tvo-row{display:flex;align-items:center;gap:8px;padding:0 12px;height:34px;color:var(--tv-text);font-size:13px;border-bottom:1px solid var(--tv-line)}
.tvo-row:hover{background:var(--tv-hover)}.tvo-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvo-sub{font-size:12px;font-feature-settings:"tnum";white-space:nowrap}.tvo-sub b{margin-left:6px;font-weight:500}
.tvo-acts{display:inline-flex;gap:2px}.tvo-acts i{width:24px;height:24px;border-radius:4px;cursor:pointer;background:var(--tv-muted);-webkit-mask:var(--ic) center/18px no-repeat;mask:var(--ic) center/18px no-repeat}
.tvo-acts i:hover{background:var(--tv-blue2)}
.tvo-acts i.eye{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><path d='M3 14c3-5 6.5-7.5 11-7.5S22 9 25 14c-3 5-6.5 7.5-11 7.5S6 19 3 14z'/><circle cx='14' cy='14' r='3.2'/></svg>")}
.tvo-acts i.eyeoff{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><path d='M3 14c3-5 6.5-7.5 11-7.5S22 9 25 14c-3 5-6.5 7.5-11 7.5S6 19 3 14z'/><path d='M5 23L23 5'/></svg>")}
.tvo-acts i.gear{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.6'><circle cx='14' cy='14' r='3.5'/><path d='M14 4v3M14 21v3M4 14h3M21 14h3M7 7l2 2M19 19l2 2M21 7l-2 2M9 19l-2 2'/></svg>")}
.tvo-acts i.rm{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.8'><path d='M7 7l14 14M21 7L7 21'/></svg>")}
.tvo-empty{padding:8px 12px;color:var(--tv-muted);font-size:12px}
.tvo-kv{display:flex;justify-content:space-between;padding:6px 12px;font-size:13px;border-bottom:1px solid var(--tv-line)}.tvo-kv span{color:var(--tv-muted)}.tvo-kv b{font-weight:500;font-feature-settings:"tnum"}
.tvhelp{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.tvhelp div{display:flex;gap:10px;align-items:center;font-size:13px}
.tvhelp kbd{min-width:104px;padding:3px 7px;border:1px solid #33425a;border-radius:4px;background:#131a26;color:#dce4f1;font-size:12px}
#tv-rail{overflow-y:auto}
@media (max-width:860px){.tvhelp{grid-template-columns:1fr}}
@media (min-width:861px) and (max-width:1560px){#tv-top #layoutGrid,#tv-top #tv-xt,#tv-top #tv-ha,#tv-top .tvb[title^="Grafik ayarları"],#tv-top .tvb[title^="Otomatik grafik"]{display:none}}
@media (min-width:861px) and (max-width:1250px){#tv-top #tv-fav,#tv-top #tv-tplm{display:none}}

/* Çizimler paneli + Analiz merkezi */
.dpw-search{padding:8px}.dpw-search input{width:100%;box-sizing:border-box;padding:8px 10px;border-radius:6px;border:1px solid var(--tv-line2);background:var(--tv-panel);color:inherit;font-size:14px}
.dpw-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:0 8px 8px}.dpw-tabs button{padding:5px 9px;border-radius:14px;border:1px solid var(--tv-line2);background:transparent;color:inherit;font-size:12px;cursor:pointer}.dpw-tabs button.on{background:#2962ff;border-color:#2962ff;color:#fff}
.dpw-body{padding:0 4px 12px}.dpw-row{display:flex;align-items:center;justify-content:space-between;padding:10px 10px;border-radius:6px;cursor:pointer;font-size:14px;min-height:20px}.dpw-row:hover{background:rgba(127,127,127,.15)}
.dpw-star{font-style:normal;font-size:18px;opacity:.5;padding:0 6px}.dpw-star.on{color:#f7c548;opacity:1}
.dpw-empty,.dpw-hint{padding:12px;font-size:12px;color:var(--tv-muted)}.dpw-h,.ac-h{padding:10px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--tv-muted)}
.dpw-chk{display:flex;gap:8px;align-items:center;padding:8px 10px;font-size:13px}
.dpw-grid{display:flex;flex-wrap:wrap;gap:2px;padding:4px 8px}.dpw-grid b{font-weight:400;font-size:22px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer}.dpw-grid b:hover{background:rgba(127,127,127,.2)}
#dpw-favbar{position:absolute;top:44px;left:50%;transform:translateX(-50%);z-index:9;display:flex;gap:2px;background:var(--tv-panel);border:1px solid var(--tv-line2);border-radius:6px;padding:3px;max-width:92%;overflow-x:auto}#dpw-favbar button{border:0;background:transparent;color:inherit;padding:5px 8px;font-size:12px;border-radius:4px;white-space:nowrap;cursor:pointer}#dpw-favbar button:hover{background:rgba(127,127,127,.2)}
.ac-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px}.ac-grid button{padding:10px 8px;border-radius:6px;border:1px solid var(--tv-line2);background:transparent;color:inherit;font-size:13px;cursor:pointer;text-align:left}.ac-grid button:hover{background:rgba(127,127,127,.15)}
.ac-gauges{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px 8px}.ac-gauge{text-align:center;font-size:11px}.ac-gauge svg{width:100%;max-width:120px}.ac-v{font-weight:700;font-size:13px}.ac-c{display:flex;justify-content:space-between;font-size:10px;gap:2px}
.ac-tab{width:100%;font-size:12px;border-collapse:collapse}.ac-tab th{text-align:left;color:var(--tv-muted);font-weight:500;padding:4px 8px}.ac-tab td{padding:5px 8px;border-top:1px solid var(--tv-line2)}.ac-tab .up,.ac-gauge .up{color:#089981}.ac-tab .dn,.ac-gauge .dn{color:#f23645}
@media(max-width:760px){.dpw-row{padding:13px 10px;font-size:15px}.ac-gauges{grid-template-columns:1fr}}

/* Analiz merkezi v2, Grafik türü, Yerleşim */
.tc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:4px 10px 8px}.tc-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 4px 10px;border-radius:12px;background:rgba(127,127,127,.14);cursor:pointer;font-size:12px;text-align:center;user-select:none}.tc-tile svg{width:30px;height:30px}.tc-tile.on{background:#2a2e39;color:#fff;outline:1px solid #2962ff}.tc-star{position:absolute;top:4px;right:7px;font-style:normal;color:#f7a600;font-size:15px}.tc-star.off{opacity:.35;color:inherit}
.tc-h{padding:10px 12px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--tv-muted)}.tc-hint{padding:8px 12px;font-size:12px;color:var(--tv-muted)}
.tc-drop{margin:8px 12px;padding:9px 14px;border-radius:10px;border:0;background:rgba(127,127,127,.16);color:inherit;font-size:14px;font-weight:600;cursor:pointer}.tc-menu{margin:0 12px 6px;padding:6px;border:1px solid var(--tv-line2);border-radius:8px;background:var(--tv-panel)}.tc-menu label{display:flex;gap:10px;align-items:center;padding:9px 8px;font-size:14px;cursor:pointer}
.tc-lay{display:flex;flex-wrap:wrap;gap:8px;padding:4px 12px 8px}.tc-lt{width:64px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(127,127,127,.14);cursor:pointer}.tc-lt svg{width:34px;height:28px}.tc-lt.on{background:#2a2e39;color:#fff;outline:1px solid #2962ff}
.tc-top{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 12px}.tc-g2{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 12px}.tc-g3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 12px 4px}
.tc-top button,.tc-g2 button,.tc-g3 button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:13px 6px;border-radius:12px;border:1px solid transparent;background:rgba(127,127,127,.14);color:inherit;font-size:13px;cursor:pointer}.tc-top button{background:transparent;border-color:var(--tv-line2)}
.tc-banner{margin:6px 12px;padding:16px;text-align:center;border-radius:12px;background:rgba(127,127,127,.14);border:1.5px solid #c13ea8;font-size:14px;cursor:pointer}.tc-help{padding:18px;text-align:center;font-weight:700;cursor:pointer;border-top:1px solid var(--tv-line2);margin-top:12px}
.tc-back{margin:8px 12px;padding:6px 10px;border:0;border-radius:8px;background:rgba(127,127,127,.16);color:inherit;cursor:pointer}.tc-in{display:block;width:calc(100% - 24px);box-sizing:border-box;margin:6px 12px;padding:9px;border-radius:8px;border:1px solid var(--tv-line2);background:var(--tv-panel);color:inherit;font:inherit}.tc-row{display:flex;gap:8px;padding:0 12px}.tc-row .tc-in{margin:0;flex:1}.tc-btn{padding:9px 16px;border-radius:8px;border:0;background:#2962ff;color:#fff;font-weight:600;cursor:pointer;margin:6px 12px}.tc-row .tc-btn{margin:0}
.tc-idea{display:flex;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--tv-line2)}.tc-idea i{font-style:normal;cursor:pointer;opacity:.6}.tc-broker{margin:6px 12px;padding:14px;border-radius:12px;background:rgba(127,127,127,.14);cursor:pointer;display:flex;flex-direction:column;gap:3px}.tc-broker span{font-size:12px;color:var(--tv-muted)}

.ul-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-bottom:1px solid var(--tv-line2)}.ul-tabs button,.ul-sub button{padding:5px 9px;border-radius:14px;border:1px solid var(--tv-line2);background:transparent;color:inherit;font-size:12px;cursor:pointer}.ul-tabs button.on,.ul-sub button.on{background:#2962ff;border-color:#2962ff;color:#fff}
.ul-sub{display:flex;gap:4px;padding:8px;flex-wrap:wrap}.ul-body{padding-bottom:16px}.ul-click{cursor:pointer}.ul-click:hover{background:rgba(120,130,150,.15)}
.ul-heat{display:flex;flex-wrap:wrap;gap:3px;padding:8px}.ul-heat button{min-width:54px;min-height:54px;border:0;border-radius:4px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-size:12px}.ul-heat small{font-size:11px;opacity:.9}
.ul-corr td{text-align:center;font-size:11px;padding:6px 3px}.ul-corr th{font-size:10px}.ul-big{padding:10px 10px 4px;font-size:15px;font-weight:700}
.ul-bar{height:6px;background:rgba(120,130,150,.2);border-radius:3px;overflow:hidden;min-width:80px}.ul-bar i{display:block;height:100%}
.ul-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.ul-form label{font-size:11px;color:var(--tv-muted);display:flex;flex-direction:column;gap:3px}.ul-form input{padding:7px;border-radius:5px;border:1px solid var(--tv-line2);background:transparent;color:inherit;font-size:14px}.ul-out{padding:10px;font-size:13px;line-height:1.7}
@media(max-width:760px){.ul-tabs button,.ul-sub button{padding:9px 12px;font-size:14px}}
