
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:#000;color:#eee;font-family:Inter,Arial,sans-serif;overflow:hidden}
.app-shell{height:100vh;display:grid;grid-template-columns:minmax(0,80%) 20%;background:#000}
.chart-side{min-width:0;display:flex;flex-direction:column;border-right:1px solid #222;background:#000}
.top-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;background:#080808;border-bottom:1px solid #222}
.instrument-line{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden}
#instrumentTop{color:#00ff8a;font-weight:900;font-size:16px}
#exchangeTop,#ohlcTop{color:#ddd;font-size:12px}
.mode-pill,.bottom-toolbar button,.panel-card button,.modal button{background:#080808;color:#eee;border:1px solid #333;border-radius:8px;padding:6px 10px;font-weight:900;cursor:pointer}
.mode-pill.active{background:#062914;color:#00ff8a;border-color:#00ff8a}
.mode-pill:not(.active){color:#999}
.top-controls{display:flex;gap:8px;align-items:center}
select,input{background:#050505;color:#eee;border:1px solid #333;border-radius:8px;padding:6px 8px}
.chart-stack{flex:1;min-height:0;display:flex;flex-direction:column}
.pane{border-bottom:1px solid #151515;min-height:40px}
.price-pane{height:62%}.ribbon-pane{height:8%}.ewo-pane{height:17%}.rsi-pane{height:13%}
.pane-chart{width:100%;height:100%}
.bottom-toolbar{height:42px;display:flex;align-items:center;gap:8px;padding:6px 10px;background:#080808;border-top:1px solid #222}
.bottom-toolbar button{color:#00ff8a;border-color:#1d5b38}
.side-panel{min-width:260px;background:#050505;overflow:auto;padding:10px}
.executions-top-link{display:block;color:#00ff8a;text-decoration:none;font-weight:900;margin-bottom:10px}
.panel-card{border:1px solid #222;border-radius:12px;background:#0b0b0b;padding:10px;margin-bottom:10px}
.side-title{color:#00ff8a;text-transform:uppercase;font-size:12px;font-weight:900;margin-bottom:8px}
.search-input{width:100%;margin-bottom:8px}
.results{font-size:12px;max-height:220px;overflow:auto}
.reading-row{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;border-bottom:1px solid #171717;padding:7px 0;font-size:12px}
.reading-row:last-child{border-bottom:0}
.reading-row b{color:#00ff8a}.reading-actions{display:flex;gap:4px}
.eye-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.signal-alert{border:1px solid #333;border-radius:10px;padding:10px;text-align:center;font-weight:900}
.green{color:#00ff8a}.red{color:#ff5555}.yellow{color:#ffe600}.muted{color:#999}
.status-line{font-size:12px;color:#aaa;margin-top:6px}
.trades-drawer{position:fixed;left:20px;right:20px;bottom:20px;max-height:45vh;background:#050505;border:1px solid #333;border-radius:12px;z-index:50;display:none;overflow:auto}
.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#111;border-bottom:1px solid #333}
.trades-drawer table{width:100%;border-collapse:collapse}.trades-drawer th,.trades-drawer td{padding:6px;border-bottom:1px solid #222;font-size:12px}
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:90}
.modal{display:none;position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%,-50%);max-width:880px;max-height:86vh;overflow:auto;background:#050505;border:1px solid #333;border-radius:14px;padding:14px;box-shadow:0 0 40px rgba(0,0,0,.9)}
.modal h3{margin-top:0;color:#00ff8a}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.settings-grid label{display:block;color:#aaa;font-size:12px;margin-bottom:4px}
.settings-grid input,.settings-grid select{width:100%}
.hidden-select{display:none}
@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.side-panel{display:none}.chart-side{border-right:0}}
.v2-open-search{width:100%;padding:12px 14px!important;border-radius:12px!important;background:#07130d!important;border:1px solid #00ff8a!important;color:#00ff8a!important;font-weight:900!important;text-align:left}.v2-search-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;background:rgba(0,0,0,.78)}.v2-search-box{width:92vw;height:92vh;background:#050805;color:#eee;border:1px solid #1f3a2a;border-radius:18px;box-shadow:0 0 50px rgba(0,255,136,.12),0 0 80px rgba(0,0,0,.85);overflow:hidden;display:flex;flex-direction:column}.v2-search-head{height:58px;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid #152318}.v2-search-head h2{margin:0;flex:1;color:#fff;font-size:24px}.v2-close,.v2-back{background:transparent!important;border:0!important;color:#fff!important;font-size:38px!important;cursor:pointer;box-shadow:none!important}.v2-back{font-size:46px!important;visibility:hidden}.v2-search-input-wrap{margin:14px 18px 10px;height:56px;border:1px solid #2b3b30;border-radius:14px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#090d09}.v2-search-input-wrap span{font-size:30px;color:#aaa}#v2SearchInput{flex:1;border:0!important;background:transparent!important;color:#fff!important;font-size:22px!important;outline:none!important}.v2-search-tabs{display:flex;gap:10px;padding:8px 18px 14px;border-bottom:1px solid #152318}.v2-search-tabs button{border:1px solid #24352a!important;background:#101410!important;color:#ddd!important;border-radius:999px!important;padding:9px 16px!important}.v2-search-tabs button.active{background:#00ff8a!important;color:#001d10!important;border-color:#00ff8a!important}.v2-search-content{flex:1;overflow:auto}.v2-underlying-row{display:grid;grid-template-columns:44px 1fr 80px;gap:12px;align-items:center;padding:14px 20px;border-bottom:1px solid #151515;cursor:pointer}.v2-underlying-row:hover{background:rgba(0,255,136,.08)}.v2-icon{width:38px;height:38px;border-radius:50%;background:#102318;color:#00ff8a;display:flex;align-items:center;justify-content:center;font-weight:900}.v2-underlying-main b{display:block;font-size:20px;color:#fff}.v2-underlying-main span{display:block;color:#aaa;font-size:14px}.v2-exchange{color:#ddd;text-align:right}.v2-muted{color:#999;padding:18px}.v2-muted-inline{color:#999}.v2-loading{color:#00ff8a;padding:18px}.v2-error{color:#ff5555;padding:18px}.v2-chain-top{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-bottom:1px solid #151515}.v2-atm-pill{background:#00ff8a;color:#001d10;padding:6px 10px;border-radius:999px;font-weight:900}.v2-expiries{display:flex;gap:8px;overflow-x:auto;padding:12px 18px;border-bottom:1px solid #151515}.v2-expiries button{min-width:82px;border-radius:10px!important;border:1px solid #24352a!important;background:#101410!important;color:#ddd!important;padding:9px 12px!important;font-weight:900!important}.v2-expiries button.active{background:#00ff8a!important;color:#001d10!important;border-color:#00ff8a!important}.v2-chain-table{width:100%;border-collapse:collapse;table-layout:fixed}.v2-chain-table th{position:sticky;top:0;background:#0d120d;color:#00ff8a;font-size:15px;padding:11px;border-bottom:1px solid #1f3a2a}.v2-chain-table td{padding:9px 10px;text-align:center;border-bottom:1px solid #151515}.v2-chain-table tr:hover td{background:rgba(0,255,136,.05)}.v2-chain-table tr.atm td{background:rgba(0,255,136,.12);border-top:1px solid #00ff8a;border-bottom:1px solid #00ff8a}.v2-chain-table .strike{color:#fff;font-size:18px;font-weight:900;background:#080b08}.v2-contract{width:100%;border-radius:9px!important;padding:8px 10px!important;background:#080808!important;font-weight:900!important}.v2-contract.call{border:1px solid #00ff8a!important;color:#00ff8a!important}.v2-contract.put{border:1px solid #ff5555!important;color:#ff5555!important}

.option-modal {
  width: 78vw !important;
  height: 78vh !important;
  border-radius: 18px;
}

.option-search-top {
  display:flex;
  align-items:center;
  gap:12px;
}

.option-search-input-wrap {
  width:50%;
}

.option-search-tabs {
  width:50%;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.option-chain-table {
  font-size:12px;
}

.option-row {
  height:34px;
}

.expiry-pill {
  min-width:48px;
  height:42px;
  border-radius:10px;
  padding:4px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#08120d;
  border:1px solid #123824;
  color:#8cfcc4;
}

.expiry-pill.active {
  background:#00ff99;
  color:#00170d;
  font-weight:700;
}

.expiry-month {
  font-size:10px;
  opacity:.8;
}

.expiry-day {
  font-size:16px;
  font-weight:700;
  line-height:1;
}

#topInstrumentSearchIcon {
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  padding:0 !important;
  margin-left:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  background:#07130d !important;
  border:1px solid #00ff8a !important;
  color:#00ff8a !important;
  box-shadow:0 0 10px rgba(0,255,136,.18) !important;
  cursor:pointer !important;
  vertical-align:middle !important;
}

#topInstrumentSearchIcon svg {
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
}

#topInstrumentSearchIcon:hover {
  background:#00ff8a !important;
  color:#00170d !important;
}

.search-card {
  display:none !important;
}

/* TradingView-style staged symbol search modal */
.v2-search-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;background:rgba(0,0,0,.82);backdrop-filter:blur(4px)}
.v2-search-box{width:min(960px,94vw);max-height:92vh;background:#050606;color:#eee;border:1px solid #1d3a2a;border-radius:18px;box-shadow:0 0 60px rgba(0,255,136,.10),0 0 100px rgba(0,0,0,.9);overflow:hidden;display:flex;flex-direction:column}
.v2-search-head{height:58px;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid #202020}.v2-search-head h2{margin:0;flex:1;color:#fff;font-size:22px;font-weight:900}.v2-close,.v2-back{background:transparent!important;border:0!important;color:#fff!important;cursor:pointer;box-shadow:none!important;line-height:1}.v2-close{font-size:36px!important}.v2-back{font-size:42px!important;visibility:hidden}.v2-search-input-wrap{margin:16px 18px;height:56px;border:1px solid #333;border-radius:12px;display:flex;align-items:center;gap:12px;padding:0 14px;background:#090909}.v2-search-input-wrap:focus-within{border-color:#00d776;box-shadow:0 0 0 1px rgba(0,255,136,.25)}.v2-search-input-wrap span{font-size:28px;color:#aaa}#v2SearchInput{flex:1;border:0!important;background:transparent!important;color:#fff!important;font-size:19px!important;outline:none!important}.v2-search-content.empty{display:none}.v2-search-content.dropdown{margin:0 18px 18px;border:1px solid #222;border-radius:12px;overflow:hidden;max-height:420px}.v2-search-content.chain{flex:1;overflow:auto}.v2-underlying-row{width:100%;display:grid;grid-template-columns:44px 1fr 90px;gap:12px;align-items:center;padding:14px 16px;border:0!important;border-bottom:1px solid #171717!important;background:#070707!important;color:#fff!important;text-align:left;cursor:pointer;border-radius:0!important}.v2-underlying-row:hover{background:rgba(0,255,136,.08)!important}.v2-icon{width:38px;height:38px;border-radius:50%;background:#102318;color:#00ff8a;display:flex;align-items:center;justify-content:center;font-weight:900}.v2-underlying-main b{display:block;font-size:18px;color:#fff}.v2-underlying-main span{display:block;color:#aaa;font-size:13px}.v2-exchange{color:#ddd;text-align:right}.v2-muted,.v2-loading,.v2-error{padding:18px}.v2-loading{color:#00ff8a}.v2-muted{color:#999}.v2-error{color:#ff5555}.v2-chain-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #151515}.v2-atm-pill{background:#00e676;color:#001d10;padding:7px 12px;border-radius:8px;font-weight:900}.v2-expiries{display:flex;gap:10px;overflow-x:auto;padding:12px 18px;border-bottom:1px solid #151515}.v2-expiries button{min-width:90px;border-radius:9px!important;border:1px solid #2a2a2a!important;background:#0d0d0d!important;color:#ddd!important;padding:10px 12px!important;font-weight:800!important}.v2-expiries button.active{background:#00e676!important;color:#001d10!important;border-color:#00e676!important}.v2-chain-table{width:100%;border-collapse:collapse;table-layout:fixed}.v2-chain-table th{position:sticky;top:0;background:#080808;color:#fff;font-size:15px;padding:12px;border-bottom:1px solid #242424}.v2-chain-table th:first-child{color:#00e676}.v2-chain-table th:last-child{color:#ff4b4b}.v2-chain-table td{padding:9px 10px;text-align:center;border-bottom:1px solid #151515}.v2-chain-table tr:hover td{background:rgba(255,255,255,.03)}.v2-chain-table tr.atm td{background:rgba(0,255,136,.10)}.v2-chain-table .strike{color:#fff;font-size:18px;font-weight:900;background:#070707}.v2-contract{width:min(100%,360px);border-radius:9px!important;padding:9px 10px!important;background:#080808!important;font-weight:900!important}.v2-contract.call{border:1px solid #00e676!important;color:#00e676!important}.v2-contract.put{border:1px solid #ff4b4b!important;color:#ff4b4b!important}

/* TradingView-style compact option search modal override */
.v2-search-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;background:rgba(0,0,0,.78);backdrop-filter:blur(3px)}
.v2-search-box{width:min(96vw,1480px);height:min(92vh,920px);background:#050606;color:#f5f5f5;border:1px solid rgba(0,230,118,.35);border-radius:18px;box-shadow:0 0 70px rgba(0,255,136,.10),0 0 110px rgba(0,0,0,.95);overflow:hidden;display:flex;flex-direction:column;font-size:14px}
.v2-search-head{height:56px;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid #202020}.v2-search-head h2{margin:0;flex:1;color:#fff;font-size:24px;font-weight:800}.v2-close,.v2-back{background:transparent!important;border:0!important;color:#fff!important;cursor:pointer;box-shadow:none!important;line-height:1;padding:0!important}.v2-close{font-size:34px!important}.v2-back{font-size:42px!important;visibility:hidden}
.v2-search-toolbar{display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(420px,.95fr);gap:20px;align-items:center;padding:12px 16px;border-bottom:1px solid #1b1b1b}.v2-search-input-wrap{margin:0!important;height:48px;border:1px solid #333!important;border-radius:9px!important;display:flex;align-items:center;gap:10px;padding:0 12px;background:#090909}.v2-search-input-wrap:focus-within{border-color:#00d776!important;box-shadow:0 0 0 1px rgba(0,255,136,.22)}.v2-search-input-wrap span{font-size:24px!important;color:#ddd}#v2SearchInput{flex:1;border:0!important;background:transparent!important;color:#fff!important;font-size:15px!important;outline:none!important}
.v2-search-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid #2a2a2a;border-radius:8px;overflow:hidden;padding:0!important}.v2-search-tabs button{height:42px;border:0!important;border-right:1px solid #2a2a2a!important;background:#080808!important;color:#f1f1f1!important;border-radius:0!important;padding:0 12px!important;font-size:15px!important;font-weight:600!important}.v2-search-tabs button:last-child{border-right:0!important}.v2-search-tabs button.active{background:#00e676!important;color:#001d10!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.v2-search-content.empty{display:none}.v2-search-content.dropdown{margin:0 16px 16px;border:1px solid #222;border-radius:10px;overflow:hidden;max-height:410px}.v2-search-content.chain{flex:1;overflow:auto}.v2-underlying-row{width:100%;display:grid;grid-template-columns:38px 1fr 80px;gap:10px;align-items:center;padding:11px 14px;border:0!important;border-bottom:1px solid #171717!important;background:#070707!important;color:#fff!important;text-align:left;cursor:pointer;border-radius:0!important}.v2-underlying-row:hover{background:rgba(0,255,136,.08)!important}.v2-icon{width:32px;height:32px;border-radius:50%;background:#102318;color:#00e676;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}.v2-underlying-main b{display:block;font-size:16px;color:#fff}.v2-underlying-main span{display:block;color:#aaa;font-size:12px}.v2-exchange{color:#ddd;text-align:right;font-size:12px}.v2-muted,.v2-loading,.v2-error{padding:16px}.v2-loading{color:#00e676}.v2-muted{color:#999}.v2-error{color:#ff5555}
.v2-chain-top{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #171717}.v2-chain-spot{display:flex;gap:18px;align-items:baseline}.v2-chain-spot b{font-size:18px}.v2-chain-spot span{font-size:18px;color:#e8e8e8}.v2-chain-spot em{font-style:normal;color:#00e676;font-size:16px}.v2-atm-pill{background:#00e676!important;color:#001d10!important;padding:7px 16px!important;border-radius:7px!important;font-weight:900!important;font-size:15px!important}
.v2-expiry-wrap{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;padding:12px 18px;border-bottom:1px solid #171717}.v2-expiries{display:flex;gap:14px;overflow-x:auto;padding:0!important;border:0!important;scroll-snap-type:x proximity;scrollbar-width:thin}.v2-expiries button{flex:0 0 auto;min-width:108px;height:42px;border-radius:8px!important;border:1px solid #2a2a2a!important;background:#0d0d0d!important;color:#e6e6e6!important;padding:0 14px!important;font-size:14px!important;font-weight:700!important;scroll-snap-align:center}.v2-expiries button.active{background:#00e676!important;color:#001d10!important;border-color:#00e676!important}.v2-exp-scroll{height:42px;border-radius:8px!important;border:1px solid #2a2a2a!important;background:#080808!important;color:#fff!important;font-size:28px!important;line-height:1!important;padding:0!important}
.v2-chain-table{width:100%;border-collapse:collapse;table-layout:fixed}.v2-chain-table th{position:sticky;top:0;z-index:2;background:#080808;color:#fff;font-size:18px;font-weight:800;padding:10px;border-bottom:1px solid #252525}.v2-chain-table th:first-child{color:#00e676}.v2-chain-table th:last-child{color:#ff4b4b}.v2-chain-table td{padding:5px 60px;text-align:center;border-bottom:1px solid #151515;height:44px}.v2-chain-table tr:hover td{background:rgba(255,255,255,.03)}.v2-chain-table tr.atm td{background:linear-gradient(90deg,rgba(0,255,136,.13),rgba(0,255,136,.05),rgba(255,75,75,.12))}.v2-chain-table .strike{color:#fff;font-size:19px;font-weight:800;background:#070707}.v2-contract{width:100%;max-width:450px;border-radius:8px!important;padding:8px 10px!important;background:#080808!important;font-size:14px!important;font-weight:800!important}.v2-contract.call{border:1px solid #00e676!important;color:#00e676!important}.v2-contract.put{border:1px solid #ff4b4b!important;color:#ff4b4b!important}
@media (max-width: 860px){.v2-search-box{width:96vw;height:92vh}.v2-search-toolbar{grid-template-columns:1fr;gap:10px}.v2-chain-table td{padding:5px 8px}.v2-contract{font-size:11px!important}.v2-chain-table .strike{font-size:15px}.v2-search-head h2{font-size:18px}.v2-expiries button{min-width:86px}.v2-search-tabs button{font-size:12px!important}}

/* Hide Lightweight Charts / TradingView attribution logo in every pane. */
.pane-chart a[href*="tradingview"],
.pane-chart [class*="logo"],
.pane-chart [class*="attribution"] { display: none !important; opacity: 0 !important; pointer-events: none !important; }


/* Fixed-height option-chain pane: header/search/expiry stay visible while strikes scroll. */
.v2-search-content.chain{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden!important}
.v2-chain-fixed{flex:0 0 auto;background:#050606;z-index:3}
.v2-chain-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.v2-chain-scroll .v2-chain-table th{top:0}


/* chart_frontend_v5 select visibility */
#entry_timeframe { color: #e8e8e8 !important; background: #050505 !important; min-width: 128px; }
#entry_timeframe option { color: #111 !important; background: #fff !important; }

/* STRATEGY_BUILDER_PAGE_START */
.strategy-builder-page{background:#020403;color:#e8fff3;font-family:Inter,Arial,sans-serif;margin:0;min-height:100vh}.strategy-builder-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #153321;background:#050806}.strategy-builder-header h1{margin:0;color:#00ff8a;font-size:24px}.strategy-builder-header p{margin:4px 0 0;color:#94a89c;font-size:13px}.strategy-builder-header nav{display:flex;gap:10px;align-items:center}.strategy-builder-header a,.strategy-builder-header button,.strategy-form button{border:1px solid #1d6b40;background:#07140c;color:#00ff8a;border-radius:10px;padding:9px 12px;text-decoration:none;font-weight:900;cursor:pointer}.strategy-builder-shell{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px;padding:14px;height:calc(100vh - 101px);box-sizing:border-box}.strategy-list-panel,.strategy-editor-panel{border:1px solid #173321;border-radius:16px;background:#050806;overflow:auto}.strategy-list-title{padding:14px;border-bottom:1px solid #13271b;color:#9efbcc;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.08em}.strategy-card{padding:12px 14px;border-bottom:1px solid #101b14;cursor:pointer}.strategy-card:hover,.strategy-card.active{background:#07170f}.strategy-card b{display:block;color:#fff;font-size:15px;margin-bottom:4px}.strategy-card small{color:#8a9a90}.strategy-status{display:inline-block;margin-top:8px;border-radius:999px;border:1px solid #333;padding:2px 8px;font-size:11px;font-weight:900}.strategy-status.on{color:#00ff8a;border-color:#00aa55;background:#042414}.strategy-status.off{color:#aaa}.strategy-editor-panel{padding:16px}.editor-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#78877e}.strategy-form label{display:block;color:#9aa99f;font-size:12px;font-weight:900;text-transform:uppercase;margin:0 0 6px}.strategy-form input,.strategy-form select,.strategy-form textarea{width:100%;box-sizing:border-box;background:#020302;color:#e8fff3;border:1px solid #24352b;border-radius:10px;padding:10px;outline:none}.strategy-form textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45}.editor-topline{display:grid;grid-template-columns:1fr 1.6fr 150px 140px;gap:12px;margin-bottom:12px}.editor-topline.compact{grid-template-columns:140px 180px 160px}.builder-section{border:1px solid #13271b;border-radius:14px;padding:12px;margin-top:14px;background:#030503}.builder-section h2{margin:0 0 6px;color:#fff;font-size:17px}.builder-section p{margin:0 0 10px;color:#7f9187;font-size:12px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.indicator-row{display:grid;grid-template-columns:180px 1fr 90px 80px 42px;gap:8px;align-items:end;margin-bottom:8px}.indicator-row .remove{border-color:#653030!important;color:#ff7777!important}.strategy-message{margin-top:12px;min-height:22px;color:#00ff8a}.strategy-message.error{color:#ff7777}.editor-actions{display:flex;gap:10px;margin-top:14px}.editor-actions .danger{border-color:#6b2424;color:#ff7777;background:#160707}.top-nav-links{display:flex;gap:8px;flex-wrap:wrap}.json-error{border-color:#ff5555!important;box-shadow:0 0 0 1px rgba(255,85,85,.35)}@media(max-width:1100px){.strategy-builder-shell{grid-template-columns:1fr;height:auto}.three-columns,.editor-topline,.editor-topline.compact{grid-template-columns:1fr}.indicator-row{grid-template-columns:1fr}}
/* STRATEGY_BUILDER_PAGE_END */


/* CHART_STRATEGY_V15_SAFE */
.strategy-select{min-width:220px;border:1px solid #333;background:#050505;color:#eee;border-radius:8px;padding:6px 8px;font-size:12px;font-weight:800}
.strategy-disabled{opacity:.38;filter:grayscale(.75)}
.strategy-active-label{font-size:11px;color:#00ff8a;margin-left:6px;white-space:nowrap}
/* /CHART_STRATEGY_V15_SAFE */

/* CHART_STRATEGY_V16_DYNAMIC_LAYOUT_CSS */
.strategy-hidden{display:none!important}
.strategy-indicator-settings-card{margin-top:10px}
.strategy-indicator-settings-body{display:flex;flex-direction:column;gap:8px}
.strategy-indicator-box{border:1px solid #222;border-radius:10px;background:#070707;padding:8px}
.strategy-indicator-box.strategy-muted{opacity:.45}
.strategy-indicator-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;font-size:12px}
.strategy-indicator-head b{color:#00ff8a}.strategy-indicator-head span{color:#888;font-size:10px}
.strategy-param-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.strategy-param{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#aaa;text-transform:none}
.strategy-param input{width:100%;padding:5px 6px;border-radius:7px;border:1px solid #333;background:#050505;color:#eee;font-size:11px}
.tiny{font-size:11px}.muted{color:#888}
/* /CHART_STRATEGY_V16_DYNAMIC_LAYOUT_CSS */

/* CHART_STRATEGY_V17_BLACK_CHART_FIX_CSS */
.strategy-hidden{display:none!important}
.pane-chart{min-width:120px}
/* /CHART_STRATEGY_V17_BLACK_CHART_FIX_CSS */

/* CHART_STRATEGY_V18_UI_SIGNAL_FIX_CSS */
#strategyActiveLabel{display:none!important}
#strategyIndicatorSettingsCard{display:none!important}
.strategy-extra-settings-host{margin-top:12px;border-top:1px solid #222;padding-top:10px}
.strategy-extra-settings-host h4{margin:0 0 8px;color:#00ff8a;font-size:13px;text-transform:uppercase}
.strategy-extra-box{border:1px solid #222;border-radius:10px;padding:8px;margin:8px 0;background:#070707}
.strategy-extra-title{color:#00ff8a;font-weight:900;font-size:12px;margin-bottom:6px}
.strategy-select{min-width:300px;max-width:380px}
/* /CHART_STRATEGY_V18_UI_SIGNAL_FIX_CSS */



/* CHART_V19_PREOPEN_MODE_UI */
.strategy-select{min-width:0!important;width:180px!important;max-width:180px!important;font-size:12px!important;padding:6px 8px!important;}
.strategy-active-label{display:none!important;}
.top-controls{gap:6px!important;}
.mode-pill.inactive{display:none!important;}
.mode-pill{white-space:nowrap!important;min-width:82px;text-align:center;}
/* /CHART_V19_PREOPEN_MODE_UI */
/* STRATEGY_BUILDER_FORM_V2_START */
.indicator-row{grid-template-columns:220px 1fr 110px 80px 42px!important;align-items:start!important}.indicator-param-editor{grid-column:1 / -1}.indicator-param-editor textarea{min-height:120px}.builder-form .section-head span{font-size:12px;color:#8b9a90}.rule-grid{display:grid;gap:12px;margin:10px 0}.rule-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-grid.one{grid-template-columns:1fr}.rule-box{border:1px solid #13271b;border-radius:12px;background:#020302;padding:12px}.rule-box h3{margin:0 0 10px;color:#00ff8a;font-size:14px}.rule-box p{color:#91a498;font-size:12px;line-height:1.35}.cond-list{display:flex;flex-direction:column;gap:7px;margin:6px 0 10px}.cond-row{display:grid;grid-template-columns:1fr 36px;gap:7px;align-items:center}.cond-row .small{padding:7px!important;border-color:#653030!important;color:#ff7777!important}.inline-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.inline-fields input[type=checkbox],.risk-form-grid input[type=checkbox]{width:auto!important;margin-right:7px}.json-details{margin-top:12px;border-top:1px solid #13271b;padding-top:10px}.json-details summary{cursor:pointer;color:#9efbcc;font-size:12px;font-weight:900;text-transform:uppercase;margin-bottom:8px}.risk-form-grid{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:12px}.important-risk{border-color:#00ff8a;background:#031009}.strategy-form .rule-box label{margin-top:8px}.strategy-form .rule-box button{margin-top:2px;font-size:12px;padding:7px 10px}.strategy-form textarea.ind-params{font-size:12px}.strategy-form input[readonly]{opacity:.65;cursor:not-allowed}.strategy-card.active{outline:1px solid #00ff8a}.json-error{border-color:#ff5555!important;box-shadow:0 0 0 1px rgba(255,85,85,.35)}@media(max-width:1300px){.risk-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-grid.two{grid-template-columns:1fr}.inline-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.risk-form-grid,.inline-fields{grid-template-columns:1fr}.indicator-row{grid-template-columns:1fr!important}}
/* STRATEGY_BUILDER_FORM_V2_END */


/* CHART_STRATEGY_LIVE_V20 */
.strategy-hidden { display: none !important; }
.signal-alert { white-space: normal; line-height: 1.35; }


/* Strategy builder left-pane enable/disable toggle - v30 */
.strategy-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.strategy-toggle{flex:0 0 auto;width:58px;height:30px;border-radius:999px;border:1px solid #2b3d33;background:#111814;color:#aab7af;position:relative;cursor:pointer;padding:0!important;font-size:10px;font-weight:900;display:inline-flex;align-items:center;justify-content:flex-end;overflow:hidden}
.strategy-toggle span{position:absolute;left:4px;top:4px;width:20px;height:20px;border-radius:999px;background:#7c8880;transition:left .16s ease,background .16s ease,box-shadow .16s ease}
.strategy-toggle em{font-style:normal;padding:0 8px 0 26px;line-height:28px}
.strategy-toggle.on{background:#042414;border-color:#00aa55;color:#00ff8a;justify-content:flex-start}
.strategy-toggle.on span{left:32px;background:#00ff8a;box-shadow:0 0 10px rgba(0,255,138,.55)}
.strategy-toggle.on em{padding:0 26px 0 8px}
.strategy-toggle:hover{border-color:#00ff8a}


/* CHART_STRATEGY_TRADES_V121: right-pane strategy/day/instrument execution postmortem */
.strategy-trades-card{max-height:38vh;overflow:hidden;display:flex;flex-direction:column;gap:8px}
.strategy-trade-kpis{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12px;color:#9fb2bd}
.strategy-trade-kpis span{border:1px solid rgba(148,163,184,.22);border-radius:10px;padding:6px 8px;background:rgba(15,23,42,.38)}
.strategy-trade-kpis b{float:right;color:#e6edf3}
.strategy-trades-list{overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}
.strategy-trade-item{border:1px solid rgba(148,163,184,.22);border-left-width:3px;border-radius:12px;padding:9px;background:rgba(2,6,23,.34)}
.strategy-trade-item.open{border-left-color:#22c55e}
.strategy-trade-item.closed{border-left-color:#64748b}
.strategy-trade-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:7px}
.strategy-trade-status{font-size:10px;border-radius:999px;padding:2px 7px;border:1px solid rgba(148,163,184,.25)}
.strategy-trade-status.open{color:#86efac;border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.10)}
.strategy-trade-status.closed{color:#cbd5e1;background:rgba(100,116,139,.12)}
.strategy-trade-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 8px;font-size:11px}
.strategy-trade-grid span{color:#8ea0aa}
.strategy-trade-grid b{text-align:right;color:#e6edf3;font-weight:800}
.strategy-trade-reason{margin-top:6px;font-size:11px;color:#9fb2bd;line-height:1.25;white-space:normal;word-break:break-word}
.strategy-trade-empty{font-size:12px;padding:8px;border:1px dashed rgba(148,163,184,.24);border-radius:10px}

/* STRATEGY_TRADES_CHART_V122: Signal card removed; keep status compact without signal wording. */
.chart-status-card{padding:8px 10px}
.chart-status-card .status-line{margin:2px 0}


/* STRATEGY_TRADE_INTERACTION_V123_START */
.trade-chart-toggle{display:flex;align-items:center;gap:7px;margin:8px 0 8px;color:#d8e7f7;font-size:12px;user-select:none;}
.trade-chart-toggle input{accent-color:#ffd54a;}
.strategy-trade-item{cursor:pointer;transition:border-color .12s ease,background .12s ease,transform .12s ease;}
.strategy-trade-item:hover{border-color:rgba(255,213,74,.55);background:rgba(255,213,74,.06);}
.strategy-trade-item.selected{border-color:#ffd54a!important;background:rgba(255,213,74,.12)!important;box-shadow:0 0 0 1px rgba(255,213,74,.22) inset;}
.strategy-trade-detail{margin-top:10px;padding-top:10px;border-top:1px solid rgba(160,190,220,.18);font-size:12px;}
.trade-detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.trade-detail-grid{display:grid;grid-template-columns:72px 1fr;gap:4px 8px;margin-bottom:10px;}
.trade-detail-grid span{color:#93a9bd;}
.trade-detail-grid b{color:#e9f5ff;font-weight:700;}
.trade-snapshot-block{border:1px solid rgba(160,190,220,.16);border-radius:9px;padding:8px;margin-top:8px;background:rgba(2,10,18,.28);}
.trade-snapshot-block>b{display:block;margin-bottom:6px;color:#ffd54a;}
.trade-snapshot-row{display:grid;grid-template-columns:70px 1fr 1fr;gap:5px 7px;align-items:center;padding:4px 0;border-top:1px solid rgba(160,190,220,.10);}
.trade-snapshot-row:first-of-type{border-top:0;}
.trade-snapshot-row span{color:#8fb4d8;font-weight:700;}
.trade-snapshot-row b{color:#e9f5ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.trade-snapshot-row em{color:#b9d3eb;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.trade-snapshot-row small{grid-column:1 / -1;color:#7f94a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* STRATEGY_TRADE_INTERACTION_V123_END */

/* STRATEGY_TRADES_CHART_V124: put compact chart status above trades and give trades more room. */
.side-panel{display:flex;flex-direction:column;min-height:0;max-height:100vh}
.chart-status-card{order:2;flex:0 0 auto;margin-bottom:8px}
.strategy-trades-card{order:3;flex:1 1 auto;min-height:280px;max-height:none;margin-bottom:0}
.strategy-trades-list{flex:1 1 auto;min-height:170px;max-height:none}
.strategy-trade-detail{flex:0 0 auto;max-height:24vh;overflow:auto}
.readings-card{order:1;flex:0 0 auto}
.search-card{order:0;flex:0 0 auto}
.top-nav-links{flex:0 0 auto}
@media(max-width:1100px){.side-panel{display:none}}
