/* Терминал: плавность, рельсы с подписями, выезжающие панели, настройки и панели дневника.
   Грузится после chart.css и переопределяет то, что там было проще. */

/* ───── движение ───── */
@keyframes tmIn { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes tmInUp { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmToastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tmSlide { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes tmSlideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(36px); } }
@keyframes tmSheet { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes tmShimmer { from { background-position: -240px 0; } to { background-position: 240px 0; } }
@keyframes tmSpin { to { transform: rotate(360deg); } }
@keyframes cxFlashWin { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

.tmDrop, .tmPop, .tmDrEd, .cxCloseBadge, .cxTrendW { animation: tmIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tmPop.tmFly, .tmPop.tmErase, .tmPop.tmNoteEd, .tmPop.tmTouch { animation-name: tmIn; }
.tmDrop--bal, .tmDrop--user, .tmDrop--more { transform-origin: top right; }
.tmToast { animation: tmToastIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tmHint { animation: tmFade 0.2s ease both; }
.cxModal:not([hidden]) .cxModal__back { animation: tmFade 0.2s ease both; }
.cxModal:not([hidden]) .cxModal__card { animation: tmInUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cxModal__back { backdrop-filter: blur(2px); }
.tmPanel { animation: tmSlide 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tmPanel.is-out { animation: tmSlideOut 0.17s ease-in both; }
.tmPane:not([hidden]) { animation: tmFade 0.2s ease both; }

.tm button, .tm a, .tm select, .tm input {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}
.tm button:not(:disabled):active { transform: scale(0.97); }
.tmPairBtn:hover, .tmTfBtn:hover, .tmIndBtn:hover, .tmUserBtn:hover, .tmBalBtn:hover, .tmSetBtn:hover { background: #171F33; }
.cxTf button:hover, .tmSwitch a:hover { background: rgba(255, 255, 255, 0.06); }
.tmDrop button:hover, .tmDrop > a:hover, .tmRow:hover { background: rgba(255, 255, 255, 0.08); }
.cxRow, .tmEv { transition: background-color 0.15s; }
.cxRow:hover, .tmEv:hover { background: #182034; }
.cxTrade { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.cxTrade:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .tm *, .tm *::before, .tm *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

/* ───── верхняя панель ───── */
.tmSetBtn {
  flex: none; width: 42px; height: 42px; border: 1px solid var(--cx-line); background: var(--cx-bg2); border-radius: 12px;
  display: grid; place-items: center; color: var(--cx-dim);
}
.tmSetBtn svg { width: 20px; height: 20px; }
.tmSetBtn:hover { color: var(--brand, #FFCB2E); border-color: rgba(255, 203, 46, 0.5); }
.tmDrop .tmAcc__dep { height: 44px; margin-top: 6px; justify-content: center; border-radius: 12px; font-weight: 800; background: var(--brand-btn, #FFCB2E); color: var(--brand-ink, #1A1400); }
.tmDrop .tmAcc__dep:hover { background: var(--brand-btn, #FFCB2E); filter: brightness(1.07); }
body[data-clock="s"] .tmClock { font-size: 12.5px; }
body[data-clock="l"] .tmClock { font-size: 18.5px; }
body[data-lbl="s"] .cxLegend { font-size: 11px; }
body[data-lbl="l"] .cxLegend { font-size: 13.5px; }
body[data-tips="off"] [data-tip]::after, body[data-tips="off"] .tmHint { display: none !important; }
body[data-tips="compact"] [data-tip]::after { font-size: 10.5px; padding: 3px 7px; border-radius: 6px; }
.tmRow__c { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 0 6px; }

/* ───── размеры блока торговли ───── */
.cxSide { width: var(--cx-sidew, 300px); transition: width 0.2s ease; }
.cxPay.is-low b:first-child, .cxPay.is-low div:first-child b { color: var(--cx-down); }
.cxPay.is-low div:first-child { box-shadow: inset 0 0 0 1px rgba(244, 117, 111, 0.5); }
@media (min-width: 900px) and (max-width: 1099px) { .cxSide { width: min(var(--cx-sidew, 300px), 264px); } }

/* ───── левый рельс с подписями ───── */
.tmTools {
  width: 66px; padding: 8px 0 6px; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tmTools::-webkit-scrollbar { display: none; }
.tmTools button { width: 56px; height: auto; min-height: 44px; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; }
.tmTools button svg { width: 21px; height: 21px; flex: none; }
.tmTools__l { font-size: 9.5px; font-weight: 700; line-height: 1.1; text-align: center; color: inherit; opacity: 0.85; max-width: 54px; }
.tmTools button.has-fly { width: 56px; padding-right: 2px; }
.tmTools__car { right: 0; top: 0; bottom: 0; width: 10px; }
.tmTools__car::after { right: 1px; bottom: 4px; }
.tmTools__sep { flex: none; margin: 3px 0; }
.tmTools__grow { flex: 1 1 auto; min-height: 6px; }
.tmTools .tmTools__col { min-height: 32px; width: 40px; }
.tmTools .tmTools__col svg { width: 17px; height: 17px; transition: transform 0.2s; }
.tmTools.is-collapsed { width: 46px; }
.tmTools.is-collapsed button { width: 38px; min-height: 36px; padding: 6px 0; }
.tmTools.is-collapsed .tmTools__l { display: none; }
.tmTools.is-collapsed .tmTools__car { display: none; }
.tmTools.is-collapsed .tmTools__col svg { transform: rotate(180deg); }
.tmTools.is-collapsed .tmTools__sep { width: 22px; }
.tmMag__dot { right: 12px; top: 6px; }
.tmTools.is-collapsed .tmMag__dot { right: 6px; }
.tmTools button.tmTools__fav.is-on { color: var(--brand, #FFCB2E); }
.tmTools button.tmTools__fav svg { fill: none; }
.tmTools button.tmTools__fav.is-on svg { fill: currentColor; fill-opacity: 0.25; }

/* окно избранных и меню инструментов */
.tmFly { min-width: 240px; }
.tmFly__r { display: flex; align-items: center; gap: 2px; }
.tmPop.tmFly .tmFly__r > button:first-child { flex: 1 1 auto; min-width: 0; }
.tmPop.tmFly .tmFly__r > .tmFly__s { flex: none; width: 34px; padding: 0; justify-content: center; color: rgba(255, 255, 255, 0.25); }
.tmPop.tmFly .tmFly__s svg { width: 17px; height: 17px; }
.tmPop.tmFly .tmFly__s:hover { color: var(--cx-txt); }
.tmPop.tmFly .tmFly__s.is-on { color: var(--brand, #FFCB2E); background: transparent; }
.tmPop.tmFly .tmFly__s.is-on svg { fill: currentColor; }
.tmFly__e { margin: 4px 10px 8px; font-size: 12.5px; line-height: 1.5; color: var(--cx-dim); max-width: 230px; }
.tmDrEd { flex-wrap: wrap; max-width: min(560px, calc(100% - 16px)); }
.tmNoteEd { width: 250px; }
.tmNoteEd textarea { width: 100%; resize: none; background: var(--cx-bg0); border: 1px solid var(--cx-line); border-radius: 10px; color: var(--cx-txt); font: 600 13.5px/1.4 Manrope, sans-serif; padding: 9px 11px; }
.tmNoteEd textarea:focus { outline: none; border-color: rgba(255, 203, 46, 0.6); }
.tmNoteEd__b { display: flex; gap: 8px; margin-top: 8px; }
.tmNoteEd__b .tmBtn { height: 38px; font-size: 13px; }

/* ───── правый рельс с подписями ───── */
.tmRail { width: 68px; padding: 8px 0 6px; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tmRail::-webkit-scrollbar { display: none; }
.tmRail > button, .tmRail > .tmRail__a {
  position: relative; width: 60px; min-height: 46px; padding: 6px 2px 5px; border: 0; background: transparent; color: var(--cx-dim); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none;
}
.tmRail > button svg, .tmRail > .tmRail__a svg { width: 21px; height: 21px; }
.tmRail > button span:not(.tmRail__n), .tmRail > .tmRail__a span { font-size: 9.5px; font-weight: 700; line-height: 1.1; text-align: center; max-width: 56px; }
.tmRail > button:hover, .tmRail > .tmRail__a:hover { background: rgba(255, 255, 255, 0.08); color: var(--cx-txt); }
.tmRail > button.is-on { background: rgba(255, 203, 46, 0.16); color: var(--brand, #FFCB2E); }
.tmRail__sep { flex: none; width: 28px; height: 1px; background: var(--cx-line); margin: 4px 0; }
.tmRail__grow { flex: 1 1 auto; min-height: 6px; }
.tmRail__col svg { transition: transform 0.2s; }
.tmRail > .tmRail__col { min-height: 32px; width: 40px; }
.tmRail > .tmRail__col svg { width: 17px; height: 17px; }
.tmRail.is-collapsed { width: 48px; }
.tmRail.is-collapsed > button, .tmRail.is-collapsed > .tmRail__a { width: 40px; min-height: 38px; padding: 7px 0; }
.tmRail.is-collapsed > button span:not(.tmRail__n), .tmRail.is-collapsed > .tmRail__a span { display: none; }
.tmRail.is-collapsed .tmRail__col svg { transform: rotate(180deg); }
.tmRail.is-collapsed .tmRail__sep { width: 24px; }
.tmRail.is-collapsed [data-tip]::after { display: block; right: calc(100% + 8px); }
.tmRail [data-tip]::after { display: none; }
.tmRail__n { top: 3px; right: 3px; }

/* ───── выезжающая панель поверх графика ───── */
.tmChartCol { position: relative; }
.tmBody .tmPanel {
  position: absolute; z-index: 14; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100%; flex: none;
  background: #0D121F; box-shadow: -18px 0 44px rgba(0, 0, 0, 0.5);
}
.tmPanel__head { padding: 14px 14px 10px; }
.tmPanels, .tmPanes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.tmPanes > .tmPane { flex: 1 1 auto; }
.tmPane { padding: 4px 14px 16px; }
.tmPanel__x { transition: background 0.15s, color 0.15s; }
.tmPanel__x:hover { background: #1D263E; }
.cxTabs button { transition: background 0.15s, color 0.15s; }
.cxTabs button:not(.is-on):hover { background: #192237; color: var(--cx-txt); }
.cxTabs { flex-wrap: wrap; }
.tmBtn--inl { margin-top: 12px; padding: 0 18px; flex: none; }
.cxTbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: 'JetBrains Mono', monospace; }
.cxTbl th { text-align: left; font: 700 11px Manrope, sans-serif; color: var(--cx-dim); padding: 4px 6px 8px; }
.cxTbl td { padding: 8px 6px; border-top: 1px solid var(--cx-line); }
.cxTbl tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* ───── кнопка «к текущей цене», вспышка, виджет тренда ───── */
.cxToNow {
  position: absolute; z-index: 6; right: 76px; bottom: 36px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  animation: tmIn 0.2s ease both;
}
.cxToNow svg { width: 18px; height: 18px; }
.cxToNow:hover { filter: brightness(1.08); }
.cxFlash { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; border-radius: inherit; }
.cxFlash.is-win { animation: cxFlashWin 0.9s ease-out both; box-shadow: inset 0 0 0 2px rgba(85, 223, 160, 0.9), inset 0 0 90px rgba(85, 223, 160, 0.28); }
.cxFlash.is-lose { animation: cxFlashWin 0.9s ease-out both; box-shadow: inset 0 0 0 2px rgba(244, 117, 111, 0.9), inset 0 0 90px rgba(244, 117, 111, 0.28); }
.cxFlash.is-warn { animation: cxFlashWin 0.9s ease-out both; box-shadow: inset 0 0 0 2px rgba(255, 203, 46, 0.85), inset 0 0 80px rgba(255, 203, 46, 0.2); }
.cxTrendW {
  position: absolute; z-index: 6; left: 12px; bottom: 36px; min-width: 128px; padding: 10px 12px 8px;
  background: rgba(13, 18, 31, 0.96); border: 1px solid var(--cx-line); border-radius: 13px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.trW__t { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet, #9B87FF); margin-bottom: 6px; }
.trW__r { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 3px 0; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12.5px; color: var(--cx-dim); }
.trW__r b { font-size: 17px; width: 20px; text-align: center; }
.cxTrendW small { display: block; margin-top: 4px; font-size: 10px; color: var(--cx-dim); opacity: 0.8; }

/* ───── загрузка: скелет и крутилка ───── */
.cxState.is-load { background: var(--cx-chart-bg, #0D121F); overflow: hidden; }
.cxSkel { position: absolute; inset: 14% 70px 12% 28px; display: flex; align-items: flex-end; gap: 8px; opacity: 0.9; }
.cxSkel i {
  flex: 1; border-radius: 4px; height: 40%; background: linear-gradient(90deg, #141B2D 0%, #1D263E 50%, #141B2D 100%); background-size: 240px 100%;
  animation: tmShimmer 1.3s linear infinite;
}
.cxSkel i:nth-child(3n) { height: 62%; } .cxSkel i:nth-child(4n) { height: 30%; } .cxSkel i:nth-child(5n+1) { height: 52%; } .cxSkel i:nth-child(7n) { height: 72%; }
.cxSpin { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: #13192A; border: 1px solid var(--cx-line); font-weight: 700; color: var(--cx-txt); }
.cxSpin span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--brand, #FFCB2E); animation: tmSpin 0.8s linear infinite; }
.cxSkelList { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cxSkelList i { height: 52px; border-radius: 12px; background: linear-gradient(90deg, #13192A 0%, #1A2339 50%, #13192A 100%); background-size: 240px 100%; animation: tmShimmer 1.3s linear infinite; }
.tmHint { z-index: 7; }

/* ───── панели: общие куски ───── */
.pnHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 8px; font-size: 12px; font-weight: 700; color: var(--cx-dim); flex-wrap: wrap; }
.pnSeg { display: inline-flex; gap: 3px; padding: 3px; background: var(--cx-bg2); border-radius: 10px; }
.pnSeg button { border: 0; background: transparent; color: var(--cx-dim); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.pnSeg button:hover { color: var(--cx-txt); }
.pnSeg button.is-on { background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); }
.pnNote { margin: 8px 2px 10px; font-size: 12px; line-height: 1.5; color: var(--cx-dim); }
.pnNote--warn { color: var(--brand-text, #FFD95C); background: rgba(255, 203, 46, 0.08); border: 1px solid rgba(255, 203, 46, 0.25); padding: 9px 11px; border-radius: 11px; }
.pnSub { margin: 14px 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet, #9B87FF); }

/* радар */
.rdRow { display: grid; grid-template-columns: minmax(0, 1.2fr) 52px auto; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--cx-bg2); border-radius: 12px; padding: 9px 11px; margin-bottom: 5px; color: var(--cx-txt); }
.rdRow:hover { background: #192237; }
.rdRow.is-on { box-shadow: inset 0 0 0 1px rgba(255, 203, 46, 0.5); }
.rdRow--dim { grid-template-columns: 1fr auto; opacity: 0.6; }
.rdRow__n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rdRow__n b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdRow small { font-size: 11px; font-weight: 600; color: var(--cx-dim); }
.rdRow__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rdRow__bar i { display: block; height: 100%; border-radius: 3px; background: var(--violet, #9B87FF); transition: width 0.4s ease; }
.rdRow__c { display: flex; flex-direction: column; align-items: flex-end; font: 800 13px 'JetBrains Mono', monospace; }
.rdRow__c small { font-family: Manrope, sans-serif; }

/* сессии */
.ssChart { position: relative; padding: 18px 0 6px 74px; margin-bottom: 10px; }
.ssTicks { position: absolute; left: 74px; right: 0; top: 0; height: 14px; font: 600 10px 'JetBrains Mono', monospace; color: var(--cx-dim); }
.ssTicks span { position: absolute; transform: translateX(-50%); }
.ssTrack { position: relative; height: 26px; display: flex; align-items: center; }
.ssTrack__n { position: absolute; left: -74px; width: 68px; font-size: 12px; font-weight: 700; }
.ssTrack__bar { position: relative; width: 100%; height: 14px; background: rgba(255, 255, 255, 0.05); border-radius: 7px; overflow: hidden; }
.ssTrack__bar i { position: absolute; top: 0; bottom: 0; background: var(--c); opacity: 0.85; border-radius: 7px; }
.ssNow { position: absolute; top: 12px; bottom: 0; width: 0; border-left: 2px solid var(--brand, #FFCB2E); margin-left: 0; }
.ssChart .ssNow { left: calc(74px + (100% - 74px) * var(--p, 0)); }
.ssNow b { position: absolute; top: -14px; left: 0; transform: translateX(-50%); font: 700 10px 'JetBrains Mono', monospace; background: var(--brand, #FFCB2E); color: #1A1400; padding: 1px 5px; border-radius: 5px; }
.ssList { display: flex; flex-direction: column; gap: 6px; }
.ssRow { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--cx-bg2); border-radius: 12px; padding: 10px 12px; }
.ssRow > i { width: 8px; height: 30px; border-radius: 4px; background: var(--c); }
.ssRow__n, .ssRow__s { display: flex; flex-direction: column; gap: 2px; }
.ssRow__s { align-items: flex-end; text-align: right; }
.ssRow small { font-size: 11px; color: var(--cx-dim); font-weight: 600; }
.ssRow__s b { font-size: 12.5px; color: var(--cx-dim); }
.ssRow__s.is-open b { color: var(--cx-up); }
.ssTog { margin-top: 12px; }

/* дневник */
.drTabs { margin-bottom: 12px; }
.drGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drCard { background: var(--cx-bg2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drCard span { font-size: 11px; color: var(--cx-dim); font-weight: 700; }
.drCard b { font: 800 17px 'JetBrains Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drCard small { font: 700 11.5px 'JetBrains Mono', monospace; color: var(--cx-dim); }
.drSpark { width: 100%; height: 70px; background: var(--cx-bg2); border-radius: 12px; }
.drFilt { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.drSel { flex: 1; min-width: 110px; height: 36px; }
.drMood { display: flex; flex-wrap: wrap; gap: 6px; }
.drMood button { border: 1px solid var(--cx-line); background: var(--cx-bg2); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 12.5px; }
.drMood button:hover { border-color: rgba(255, 255, 255, 0.3); }
.drMood button.is-on { background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); border-color: transparent; }
.drLim { background: var(--cx-bg2); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.drLim.is-over { box-shadow: inset 0 0 0 1px rgba(244, 117, 111, 0.6); }
.drLim__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.drStep { display: inline-flex; align-items: center; gap: 4px; }
.drStep button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 16px; font-weight: 700; }
.drStep button:hover { background: rgba(255, 255, 255, 0.16); }
.drStep b { min-width: 30px; text-align: center; font-family: 'JetBrains Mono', monospace; }
.drLim__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin: 9px 0 5px; overflow: hidden; }
.drLim__bar i { display: block; height: 100%; background: var(--brand, #FFCB2E); border-radius: 3px; transition: width 0.3s; }
.drLim.is-over .drLim__bar i { background: var(--cx-down); }
.drLim small { font-size: 11px; color: var(--cx-dim); font-weight: 600; }
.drNote { width: 100%; resize: vertical; background: var(--cx-bg2); border: 1px solid var(--cx-line); border-radius: 12px; color: var(--cx-txt); font: 600 13px/1.5 Manrope, sans-serif; padding: 10px 12px; }
.drNote:focus, .drIn input:focus, .tcIn:focus { outline: none; border-color: rgba(255, 203, 46, 0.6); }
.drCalc { background: var(--cx-bg2); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.drCalc h4 { margin: 0 0 10px; font-size: 13px; }
.drIns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.drIn { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.drIn span { font-size: 11px; color: var(--cx-dim); font-weight: 700; }
.drIn input { width: 100%; height: 36px; background: var(--cx-bg0); border: 1px solid var(--cx-line); border-radius: 9px; color: var(--cx-txt); font: 700 13px 'JetBrains Mono', monospace; padding: 0 9px; }
.drOut { margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--cx-dim); }
.drOut b { color: var(--brand-text, #FFD95C); font-family: 'JetBrains Mono', monospace; }
.drOut small { display: block; margin-top: 4px; font-size: 11px; opacity: 0.85; }

/* вход по касанию */
.tmTouch { width: 280px; padding: 14px; z-index: 125; }
.tcHead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tcHead b { font-family: var(--f-display, 'Unbounded', sans-serif); font-size: 13px; font-weight: 600; }
.tcHead span { font: 700 12px 'JetBrains Mono', monospace; color: var(--brand-text, #FFD95C); }
.tcL { margin: 10px 0 5px; font-size: 11px; font-weight: 700; color: var(--cx-dim); }
.tmPop .pnSeg { display: flex; }
.tmPop .pnSeg button { flex: 1; border: 0; background: transparent; font-size: 12.5px; padding: 7px 4px; color: var(--cx-dim); }
.tmPop .pnSeg button.is-on { background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); }
.tmPop .tcDir button.is-on.is-buy { background: var(--cx-up); color: #07140E; }
.tmPop .tcDir button.is-on.is-sell { background: var(--cx-down); color: #1A0706; }
.tcChips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tcChips button { padding: 8px 0; font-size: 12px; }
.tcIn { width: 100%; height: 40px; background: var(--cx-bg0); border: 1px solid var(--cx-line); border-radius: 10px; color: var(--cx-txt); font: 700 15px 'JetBrains Mono', monospace; padding: 0 10px; text-align: center; color-scheme: dark; }
.tcAmt { display: grid; grid-template-columns: 38px 1fr 38px; gap: 6px; }
.tcAmt button { height: 40px; font-size: 18px; }
.tcAck { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--brand-text, #FFD95C); cursor: pointer; }
.tcAck input { margin-top: 2px; accent-color: #FFCB2E; width: 16px; height: 16px; flex: none; }
.tcBtns { display: flex; gap: 8px; margin-top: 12px; }
.tcBtns--s { margin-top: 8px; }
.tmPop .tcBtns .tmBtn { height: 42px; font-size: 13px; }
.tcBtns--s .tmBtn { height: 34px; font-size: 12.5px; color: var(--cx-dim); }
.tmPop .tmBtn--danger { background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); border-color: transparent; }
.tmPop .tmBtn--del { color: var(--cx-down); }
.tcState { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--cx-dim); }

/* ───── настройки ───── */
.stCardW { width: min(780px, 100%); height: min(760px, 92vh); max-height: none; padding-bottom: 16px; }
.stWrap { display: flex; gap: 18px; flex: 1 1 auto; min-height: 0; }
.stNav { flex: none; width: 168px; display: flex; flex-direction: column; gap: 4px; }
.stNav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--cx-dim); font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 11px; text-align: left; }
.stNav button svg { width: 19px; height: 19px; flex: none; }
.stNav button:hover { background: rgba(255, 255, 255, 0.07); color: var(--cx-txt); }
.stNav button.is-on { background: rgba(255, 203, 46, 0.16); color: var(--brand, #FFCB2E); }
.stBody { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding-right: 6px; }
.stBody h3 { margin: 0 0 12px; font-family: var(--f-display, 'Unbounded', sans-serif); font-size: 15px; font-weight: 600; }
.stRow { background: var(--cx-bg2); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.stRow__h { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.stRow__h b { font-size: 14px; }
.stRow__h small { font-size: 12px; color: var(--cx-dim); font-weight: 600; line-height: 1.4; }
.stTog { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; color: var(--cx-txt); }
.stRow:has(> .stTog) { flex-direction: column; gap: 10px; }
.stSw { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #3A3A42; position: relative; transition: background 0.18s; }
.stSw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s; }
.stSw.is-on { background: var(--brand, #FFCB2E); }
.stSw.is-on::after { transform: translateX(18px); background: #1A1400; }
.stCards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stCard { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--cx-line); background: var(--cx-bg0); border-radius: 12px; padding: 12px 6px 10px; font-weight: 700; font-size: 12.5px; color: var(--cx-dim); }
.stCard svg { width: 26px; height: 26px; }
.stCard:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--cx-txt); }
.stCard.is-on { border-color: var(--brand, #FFCB2E); color: var(--brand, #FFCB2E); background: rgba(255, 203, 46, 0.08); }
.stSws { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stDot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--c); padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.stDot--sq { border-radius: 8px; }
.stDot:hover { transform: scale(1.1); }
.stDot.is-on { border-color: var(--cx-bg2); outline: 2px solid var(--brand, #FFCB2E); }
.stPick { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: conic-gradient(#f44, #fd4, #4f4, #4df, #84f, #f44); cursor: pointer; flex: none; }
.stPick input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.stSws__t { font-size: 12px; color: var(--cx-dim); font-weight: 600; }
.stPick.is-on { outline: 2px solid var(--brand, #FFCB2E); outline-offset: 2px; }
.stBgRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stBtn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 203, 46, 0.5); background: rgba(255, 203, 46, 0.08); color: var(--brand-text, #FFD95C); font-weight: 700; font-size: 13px; cursor: pointer; }
.stBtn:hover { background: rgba(255, 203, 46, 0.16); }
.stBtn--ghost { border-color: var(--cx-line); background: transparent; color: var(--cx-dim); }
.stBtn--ghost:hover { color: var(--cx-txt); background: rgba(255, 255, 255, 0.05); }
.stBgMsg { font-size: 12px; color: var(--cx-dim); font-weight: 600; }
.stRange--dim { margin-top: 10px; }
.stRange--dim span { font-size: 12.5px; color: var(--cx-dim); font-weight: 700; }
/* выпадающие списки: плавное закрытие */
.tmDrop.is-closing, .tmPop.is-closing { animation: tmOut 0.12s ease-in both; }
@keyframes tmOut { to { opacity: 0; transform: translateY(-4px) scale(0.985); } }
.cxModal.is-closing .cxModal__card { animation: tmOutDown 0.15s ease-in both; }
.cxModal.is-closing .cxModal__back { animation: tmFadeOut 0.15s ease-in both; }
@keyframes tmOutDown { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes tmFadeOut { to { opacity: 0; } }
.cxTf button.is-on { transition: background-color 0.2s ease, color 0.2s ease; }
.cxToNow:hover { transform: scale(1.06); }
.stSeg { display: flex; gap: 4px; padding: 3px; background: var(--cx-bg0); border-radius: 11px; align-self: stretch; flex-wrap: wrap; }
.stSeg button { flex: 1; border: 0; background: transparent; color: var(--cx-dim); font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 9px; white-space: nowrap; }
.stSeg button:hover { color: var(--cx-txt); background: rgba(255, 255, 255, 0.05); }
.stSeg button.is-on { background: var(--brand, #FFCB2E); color: var(--brand-ink, #1A1400); }
.stSeg .stSeg__play { flex: none; color: var(--violet, #9B87FF); }
.stRange { display: flex; align-items: center; gap: 14px; }
.stRange input { flex: 1; accent-color: #FFCB2E; height: 4px; }
.stRange b { min-width: 56px; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.stNum { display: flex; align-items: center; gap: 10px; }
.stNum.is-off { opacity: 0.4; }
.stNum input { width: 110px; height: 38px; background: var(--cx-bg0); border: 1px solid var(--cx-line); border-radius: 10px; color: var(--cx-txt); font: 700 14px 'JetBrains Mono', monospace; padding: 0 10px; }
.stNum input:focus, .stSel:focus { outline: none; border-color: rgba(255, 203, 46, 0.6); }
.stNum span { font-size: 12px; color: var(--cx-dim); font-weight: 600; }
.stSel { width: 100%; height: 42px; background: var(--cx-bg0); border: 1px solid var(--cx-line); border-radius: 10px; color: var(--cx-txt); font: 700 14px Manrope, sans-serif; padding: 0 10px; color-scheme: dark; }
.stNote { margin: 0; font-size: 12px; color: var(--cx-dim); }
.stKeys { display: grid; gap: 6px; }
.stKeys > div { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--cx-dim); }
.stKeys kbd { min-width: 96px; text-align: center; padding: 4px 8px; border-radius: 7px; background: var(--cx-bg0); border: 1px solid var(--cx-line); font: 700 12px 'JetBrains Mono', monospace; color: var(--cx-txt); }

/* ───── мобильная вёрстка ───── */
@media (max-width: 899px) {
  .tmSetBtn { display: none; }
  .cxModal { grid-template-columns: minmax(0, 1fr); }
  .stCardW { min-width: 0; }
  .tmBody .tmPanel {
    position: fixed; inset: 0; z-index: 150; width: auto; max-width: none; border-radius: 0; border: 0; box-shadow: none;
    display: flex !important; flex-direction: column; overflow: hidden;
    animation: tmSheet 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .tmBody .tmPanel[hidden] { display: none !important; }
  .tmBody .tmPanel.is-out { animation: tmSheet 0.17s ease-in reverse both; }
  .tmPanel__head { display: flex !important; padding: 16px 14px 10px; border-bottom: 1px solid var(--cx-line); }
  .tmPanel__x { width: 38px; height: 38px; }
  .tmPane { overflow-y: auto !important; padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
  body.has-sheet { overflow: hidden; }
  .tmTools, .tmRail { display: none; }
  .cxSide { width: auto; }
  .cxToNow { right: 66px; bottom: 30px; }
  .cxTrendW { display: none !important; }
  .stCardW { height: 92vh; padding: 16px 14px 12px; }
  .stWrap { flex-direction: column; gap: 10px; }
  .stNav { flex-direction: row; width: auto; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .stNav button { flex: none; padding: 8px 12px; font-size: 13px; }
  .stCards { grid-template-columns: repeat(2, 1fr); }
  .tmTouch { width: min(300px, calc(100vw - 16px)); }
  .ssChart { padding-left: 64px; }
  .ssTicks { left: 64px; }
  .ssTrack__n { left: -64px; width: 58px; font-size: 11px; }
  .ssChart .ssNow { left: calc(64px + (100% - 64px) * var(--p, 0)); }
  .tmDrop--more { min-width: 230px; max-height: 70vh; overflow-y: auto; }
}

.drTabs button { padding: 7px 9px; font-size: 12px; }

/* ── мобильные: цели касания не меньше 40px ── */
@media (max-width: 899px) {
  .tmDrop--more > button, .tmDrop--more > a, .tmDrop--more .tmSwitch a { min-height: 44px; display: flex; align-items: center; }
  .tmPanel__x { width: 40px; height: 40px; }
  .cxTabs button, .cxTabs a { min-height: 40px; }
  .cxModal__x { width: 40px; height: 40px; }
  .stNav button, .stSeg button, .stTog { min-height: 40px; }
  .stDot { width: 40px; height: 40px; }
}

/* ───────── зум: − · к цене · + (внизу по центру графика, проявляется при наведении) ───────── */
.cxZoom {
  position: absolute; z-index: 6; left: calc(50% - 32px); bottom: 40px; transform: translate(-50%, 6px);
  display: flex; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(17, 22, 38, 0.86); border: 1px solid var(--cx-line); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.2, .8, .2, 1);
}
.cxChartBox:hover .cxZoom, .cxZoom:focus-within { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cxZoom button {
  position: relative; width: 34px; height: 30px; border: 0; border-radius: 10px; display: grid; place-items: center;
  background: transparent; color: var(--cx-dim); cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.1s;
}
.cxZoom button:hover { background: rgba(255, 255, 255, 0.07); color: var(--cx-txt); }
.cxZoom button:active { transform: scale(0.92); }
.cxZoom button[data-zoom="0"]:hover { color: var(--brand, #FFCB2E); }
.cxZoom svg { width: 17px; height: 17px; }
.cxZoom [data-tip]::after { top: auto; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); }
@media (hover: none) { .cxZoom { display: none; } }

/* ═══════════ v4: компактно, как у po.bingo — шапка 56, контролы 38, рельс 72, блок сделки 270 ═══════════ */

/* ── шапка ── */
@media (min-width: 900px) {
  body.tm { --tm-top: 56px; font-size: 13px; }
  .tmTop { gap: 8px; padding: 0 12px; }
  .tmLogo .side__markName { font-size: 17px; }
  .tmSwitch { border-radius: 11px; padding: 3px; }
  .tmSwitch a { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
  .tmPairBtn, .tmTfBtn, .tmIndBtn, .tmUserBtn { height: 38px; border-radius: 11px; font-size: 13px; padding: 0 11px; gap: 7px; }
  .tmPairBtn__pct { font-size: 11.5px; }
  .tmArrows button { width: 28px; height: 38px; border-radius: 10px; }
  .tmArrows svg { width: 14px; height: 14px; }
  .cxTf { border-radius: 11px; padding: 3px; }
  .cxTf button { font-size: 11.5px; padding: 6px 7px; border-radius: 8px; }
  .tmSetBtn, .tmMoreBtn { width: 38px; height: 38px; border-radius: 11px; }
  .tmSetBtn svg { width: 18px; height: 18px; }
  .tmIndBtn svg { width: 17px; height: 17px; }
  .tmUserBtn { padding: 0 9px 0 4px; }
  .tmUserBtn__ava { width: 30px; height: 30px; font-size: 13px; }
  .tmDrop button, .tmDrop > a { padding: 8px 11px; font-size: 13px; }
}
/* часы — моноширинная плашка */
.tmClock {
  align-items: center; height: 38px; padding: 0 12px; border-radius: 11px;
  background: var(--cx-bg2); border: 1px solid var(--cx-line); color: var(--cx-txt);
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 14.5px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  transition: font-size 0.2s ease;
}
body[data-clock="s"] .tmClock { font-size: 12.5px; padding: 0 10px; }
body[data-clock="m"] .tmClock { font-size: 14.5px; }
body[data-clock="l"] .tmClock { font-size: 17.5px; padding: 0 13px; }
@media (min-width: 1280px) { .tmClock { display: inline-flex; } }

/* баланс: иконка-кошелёк, подпись счёта, сумма и валюта-чип */
.tmBalBtn { flex-direction: row; align-items: center; gap: 9px; text-align: left; }
.tmBalBtn__ico { display: none; }
.tmBalBtn__txt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tmBalBtn > .tmChev { display: none; }
@media (min-width: 900px) {
  .tmBalBtn { height: 42px; padding: 0 10px 0 5px; border-radius: 12px; border-width: 1.5px; background: linear-gradient(180deg, #13192A, #111727); }
  .tmBalBtn__ico {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
    background: rgba(255, 203, 46, 0.14); color: var(--brand, #FFCB2E); border: 1px solid rgba(255, 203, 46, 0.3);
  }
  .tmBalBtn__ico svg { width: 16px; height: 16px; }
  .tmBalBtn__txt { align-items: flex-start; gap: 2px; }
  .tmBalBtn__lbl { font-size: 9px; letter-spacing: 0.12em; }
  .tmBalBtn__val { font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
  .tmCur { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: var(--cx-dim); }
  .tmBalBtn > .tmChev { display: block; margin-left: 1px; }
  .tmBalBtn[aria-expanded="true"] > .tmChev, .tmPairBtn[aria-expanded="true"] .tmChev, .tmTfBtn[aria-expanded="true"] .tmChev, .tmUserBtn[aria-expanded="true"] .tmChev { transform: rotate(180deg); }
  .tmChev { transition: transform 0.2s ease; }
}

/* Ширины шапки. «Кабинет / Терминал» виден от 1280; чтобы всё помещалось,
   на узких экранах раньше прячем имя, стрелки ‹ › и подписи. */
@media (min-width: 900px) and (max-width: 1279px) {
  .tmSwitch:not(.tmSwitch--wide) { display: none; }
}
@media (min-width: 900px) and (max-width: 1679px) {
  .tmUserBtn__name, .tmUserBtn .tmChev { display: none; }
  .tmUserBtn { padding: 0 4px; }
}
@media (min-width: 900px) and (max-width: 1499px) { .tmArrows { display: none; } }
@media (min-width: 900px) and (max-width: 1439px) {
  .tmIndBtn__t { display: none; }
  .tmIndBtn { padding: 0 10px; }
}
@media (min-width: 900px) and (max-width: 1379px) {
  .tmSwitch a { padding: 6px 9px; font-size: 12px; }
  .tmPairBtn__pct { display: none; }
  .cxTf button { padding: 6px 6px; }
}

/* ── рабочая область и рельсы ── */
@media (min-width: 900px) {
  .tmBody { gap: 8px; padding: 8px; }
  .tmTools, .tmRail, .cxSide, .tmPanel, .cxChartBox { border-radius: 14px; }
  .tmTools { width: 62px; padding: 6px 0 4px; }
  .tmTools button, .tmTools button.has-fly { width: 54px; min-height: 42px; padding: 5px 2px 4px; gap: 2px; border-radius: 9px; }
  .tmTools button svg { width: 18px; height: 18px; }
  .tmTools__l { font-size: 9.5px; max-width: 52px; }
  .tmRail { width: 72px; gap: 1px; padding: 6px 0 4px; }
  .tmRail > button, .tmRail > .tmRail__a { width: 66px; min-height: 48px; padding: 5px 2px 4px; gap: 3px; border-radius: 10px; }
  .tmRail > button svg, .tmRail > .tmRail__a svg { width: 18px; height: 18px; }
  .tmRail > button span:not(.tmRail__n), .tmRail > .tmRail__a span { font-size: 9.5px; line-height: 1.15; max-width: 64px; }
  .tmRail > button.is-on { box-shadow: inset 0 0 0 1px rgba(255, 203, 46, 0.45); }
  .tmRail__n { top: 3px; right: 9px; }
  .tmRail__sep { margin: 2px 0; }
  .tmRail.is-collapsed { width: 50px; }
  .tmRail.is-collapsed > button, .tmRail.is-collapsed > .tmRail__a { width: 40px; min-height: 38px; }
  .cxLegend { font-size: 11.5px; left: 12px; top: 9px; }
}
/* Пунктов в рельсе 12+: на невысоких экранах ужимаем, подписи остаются.
   body.tm — чтобы перекрыть общее правило из chart-panels.css (оно грузится позже). */
@media (min-width: 900px) and (max-height: 1000px) {
  body.tm .tmRail > button, body.tm .tmRail > .tmRail__a { min-height: 46px; padding: 4px 2px 3px; gap: 2px; }
  body.tm .tmRail > button svg, body.tm .tmRail > .tmRail__a svg { width: 18px; height: 18px; }
  body.tm .tmRail__sep { margin: 2px 0; }
}
@media (min-width: 900px) and (max-height: 860px) {
  body.tm .tmRail > button, body.tm .tmRail > .tmRail__a { min-height: 42px; padding: 3px 2px 2px; }
  body.tm .tmRail > button svg, body.tm .tmRail > .tmRail__a svg { width: 17px; height: 17px; }
  body.tm .tmRail > button span:not(.tmRail__n), body.tm .tmRail > .tmRail__a span { font-size: 9px; line-height: 1.1; }
  .tmTools button, .tmTools button.has-fly { min-height: 40px; padding: 4px 2px 3px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  body.tm .tmRail > button span:not(.tmRail__n), body.tm .tmRail > .tmRail__a span { display: none; }
  body.tm .tmRail > button, body.tm .tmRail > .tmRail__a { min-height: 38px; }
}

/* ── блок сделки ── */
.cxField__lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #7F7F8C; }
.cxTime {
  position: relative; gap: 8px; background: var(--cx-bg0); border-radius: 12px; padding: 0 6px 0 13px;
  font-size: 18px; font-weight: 700; letter-spacing: 0.03em; color: var(--cx-txt);
}
.cxTime__v { font-variant-numeric: tabular-nums; }
.cxTime__tag { margin-left: 0; }
.cxTime__clk {
  margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #273453, #1A2339); color: var(--brand, #FFCB2E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.cxTime .cxTime__clk svg { width: 17px; height: 17px; color: inherit; }
.cxTime:hover .cxTime__clk, .cxTime[aria-expanded="true"] .cxTime__clk { transform: rotate(-20deg) scale(1.05); }
.cxTime[aria-expanded="true"], .cxAmt:has(.cxAmt__val[aria-expanded="true"]) { border-color: rgba(255, 203, 46, 0.55); }
.cxAmt { gap: 4px; background: var(--cx-bg0); border-radius: 12px; padding: 0 6px; }
.cxAmt__cur {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); color: var(--brand-text, #FFD95C); font: 800 16px 'Manrope', sans-serif;
}
.cxAmt__cur:hover { background: rgba(255, 203, 46, 0.16); }
.cxAmt__val { font-size: 18px; padding: 0 4px; color: var(--cx-txt); }
.cxAmt__steps { flex: none; display: flex; gap: 3px; }
.cxAmt__step { width: 30px; height: 32px; border-radius: 9px; font-size: 17px; }
.cxField--deal { gap: 6px; }
.cxDeal {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.cxDeal .cxPay {
  display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 9px 10px 8px;
  background: linear-gradient(180deg, #1A2421 0%, #101625 100%); border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.cxDeal .cxPay b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; color: var(--cx-up); letter-spacing: -0.01em; }
.cxDeal .cxPay span { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--cx-up); opacity: 0.85; }
.cxDeal .cxPay.is-low { background: linear-gradient(180deg, #2A1A1A 0%, #101524 100%); box-shadow: none; }
.cxDeal .cxPay.is-low b, .cxDeal .cxPay.is-low span { color: var(--cx-down); }
.cxDeal .cxTrade {
  height: clamp(60px, 8vh, 70px); padding: 0 12px; border-radius: 0; gap: 9px; font-size: 16.5px; letter-spacing: 0.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); transform: none;
  transition: filter 0.18s ease, box-shadow 0.18s ease, background-position 0.35s ease;
  background-size: 100% 160%; background-position: 0 0;
}
.cxDeal .cxTrade svg { width: 19px; height: 19px; transition: transform 0.22s cubic-bezier(.2, .8, .2, 1); }
.cxDeal .cxTrade--buy { background-image: linear-gradient(180deg, #74F2BA 0%, #45D894 45%, #2FB878 100%); color: #03140B; }
.cxDeal .cxTrade--sell { background-image: linear-gradient(180deg, #FF8E87 0%, #F2645D 45%, #D6443F 100%); color: #1D0403; border-top: 1px solid rgba(0, 0, 0, 0.28); }
.cxDeal .cxTrade:not(:disabled):hover { filter: brightness(1.07) saturate(1.05); background-position: 0 40%; transform: none; }
.cxDeal .cxTrade--buy:not(:disabled):hover svg { transform: translate(2px, -2px); }
.cxDeal .cxTrade--sell:not(:disabled):hover svg { transform: translate(2px, 2px); }
.cxDeal .cxTrade:not(:disabled):active { transform: none; filter: brightness(0.93); box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.25); }
.cxDeal .cxTrade:disabled { opacity: 1; filter: saturate(0.35) brightness(0.6); }
@media (min-width: 900px) {
  .cxSide { width: var(--cx-sidew, 270px); padding: 14px; gap: 13px; }
  .cxField { gap: 6px; }
  .cxTime, .cxAmt { height: 48px; }
  .cxAmt__val { height: 44px; }
  .cxNoSess { padding: 9px 10px; gap: 7px; border-radius: 11px; }
  .cxNoSess p { font-size: 11.5px; }
  .cxNoSess button { height: 32px; font-size: 12px; border-radius: 9px; }
  .cxNote { font-size: 10.5px; line-height: 1.45; }
  .cxErr { font-size: 11.5px; }
}
@media (min-width: 900px) and (max-width: 1365px) {
  .cxSide { width: min(var(--cx-sidew, 270px), 300px); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .cxSide { width: min(var(--cx-sidew, 270px), 248px); padding: 12px; gap: 11px; }
  .cxTime, .cxAmt__val { font-size: 16px; }
  .cxAmt__step { width: 28px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .cxSide { gap: 10px; padding: 12px; }
  .cxTime, .cxAmt { height: 44px; }
  .cxAmt__val { height: 40px; }
}

/* ── телефон: время | сумма в ряд, ниже общий блок выплаты и кнопок ── */
@media (max-width: 899px) {
  .cxSide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px; }
  .cxField--exp { grid-column: 1; flex-direction: column; gap: 0; }
  .cxField--amt { grid-column: 2; }
  .cxField--exp .cxField__lbl, .cxField--amt > .cxField__lbl, .cxField--deal > .cxField__lbl { display: none; }
  .cxField--exp .cxTime { height: 44px; font-size: 16.5px; padding: 0 4px 0 11px; border-radius: 12px; }
  .cxTime__clk { width: 34px; height: 34px; }
  .cxTime .cxTime__clk svg { width: 17px; height: 17px; }
  .cxTime__tag { display: none; }
  .cxAmt { height: 44px; padding: 0 3px; gap: 2px; border-radius: 12px; }
  .cxAmt__cur { width: 30px; height: 40px; font-size: 16px; border-radius: 9px; }
  .cxAmt__val { font-size: 16.5px; height: 42px; padding: 0 2px; }
  .cxAmt__steps { gap: 2px; }
  .cxAmt__step { width: 30px; height: 40px; min-width: 30px; min-height: 40px; font-size: 18px; border-radius: 9px; }
  .cxField--deal { grid-column: 1 / -1; }
  .cxDeal { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .cxDeal .cxPay { grid-column: 1 / -1; padding: 6px 10px; gap: 9px; align-self: auto; }
  .cxDeal .cxPay b { font-size: 17px; }
  .cxDeal .cxPay span { font-size: 12.5px; }
  .cxDeal .cxTrade { height: 50px; font-size: 16px; gap: 7px; }
  .cxDeal .cxTrade svg { width: 18px; height: 18px; }
  .cxDeal .cxTrade--sell { border-top: 0; border-left: 1px solid rgba(0, 0, 0, 0.28); }
}

/* ── метки на графике: таймер свечи и «Время закрытия» по настройке ── */
body[data-lbl="s"] .cxTimer i { font-size: 9px; } body[data-lbl="s"] .cxTimer b { font-size: 11.5px; }
body[data-lbl="l"] .cxTimer i { font-size: 12px; } body[data-lbl="l"] .cxTimer b { font-size: 15.5px; }
body[data-lbl="xl"] .cxTimer i { font-size: 13.5px; } body[data-lbl="xl"] .cxTimer b { font-size: 18.5px; }
body[data-lbl="s"] .cxCloseBadge { font-size: 11px; padding: 5px 10px; }
body[data-lbl="l"] .cxCloseBadge { font-size: 13.5px; padding: 7px 13px; }
body[data-lbl="xl"] .cxCloseBadge { font-size: 15.5px; padding: 8px 15px; }
body[data-lbl="xl"] .cxLegend { font-size: 15px; }

/* ═══════════ настройки: крупное окно с меню слева ═══════════ */
.stModal .cxModal__back { background: rgba(3, 4, 11, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stModal .stCardW {
  width: min(1040px, 100%); height: min(820px, calc(100vh - 48px)); height: min(820px, calc(100dvh - 48px)); padding: 0; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #121727 0%, #0E1220 100%); border-color: rgba(255, 255, 255, 0.09);
}
.stModal:not([hidden]) .cxModal__card { animation: stIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.stModal.is-closing .cxModal__card { animation: stOut 0.16s ease-in both; }
@keyframes stIn { from { opacity: 0; transform: translateY(14px) scale(0.975); } to { opacity: 1; transform: none; } }
@keyframes stOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
.stHead { margin: 0; padding: 20px 22px 18px 28px; border-bottom: 1px solid var(--cx-line); }
.stHead h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.stE { font-style: normal; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; display: inline-grid; place-items: center; }
.stHead .stE { font-size: 22px; }
.stHead .cxModal__x { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.stHead .cxModal__x svg { width: 20px; height: 20px; }
.stHead .cxModal__x:hover { background: rgba(255, 255, 255, 0.12); }
.stModal .stWrap { gap: 0; }
.stModal .stNav { width: 300px; padding: 18px 16px; gap: 6px; border-right: 1px solid var(--cx-line); }
.stModal .stNav button {
  position: relative; gap: 14px; padding: 13px 16px; font-size: 17px; border-radius: 14px; color: #C9C9D1; border: 1.5px solid transparent;
}
.stModal .stNav button .stE { font-size: 21px; width: 26px; }
.stModal .stNav button:hover { background: rgba(255, 255, 255, 0.05); color: var(--cx-txt); }
.stModal .stNav button.is-on { background: rgba(255, 203, 46, 0.12); border-color: rgba(255, 203, 46, 0.75); color: var(--brand, #FFCB2E); }
.stModal .stBody { padding: 26px 34px 30px 40px; scrollbar-gutter: stable; }
.stSec.is-in { animation: stSec 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes stSec { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.stModal .stBody h3 { margin: 0 0 6px; font-size: 21px; }
.stSub { margin: 0 0 22px; font-size: 14.5px; color: #7F7F8C; font-weight: 600; }
.stCap { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #6F6F7B; margin-bottom: 2px; }
.stModal .stRow { background: transparent; border-radius: 0; padding: 18px 0; margin: 0; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.stModal .stRow:last-child { border-bottom: 0; }
.stModal .stRow--cards { padding-top: 4px; }
.stRow__l { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.stModal .stRow__h { gap: 5px; flex: 1 1 260px; }
.stModal .stRow__h b { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.stModal .stRow__h .stE { font-size: 19px; width: 22px; }
.stModal .stRow__h small { font-size: 13.5px; color: #8A8A96; padding-left: 32px; }
.stCtl { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.stModal .stTog { gap: 18px; }
.stModal .stSw { width: 54px; height: 30px; border-radius: 15px; }
.stModal .stSw::after { width: 24px; height: 24px; }
.stModal .stSw.is-on::after { transform: translateX(24px); background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.stModal .stTog:hover .stSw:not(.is-on) { background: #4A4A54; }
.stModal .stCards { grid-template-columns: 1fr 1fr; gap: 12px; }
.stModal .stCard {
  gap: 10px; padding: 22px 10px 18px; border-radius: 18px; font-size: 16.5px; color: #C2C2CB; background: rgba(0, 0, 0, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.07); transition: border-color 0.18s, background-color 0.18s, color 0.18s, transform 0.12s;
}
.stCard__e { font-style: normal; font-size: 30px; line-height: 1; transition: transform 0.25s cubic-bezier(.2, .8, .2, 1); }
.stModal .stCard:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--cx-txt); background: rgba(255, 255, 255, 0.03); }
.stModal .stCard:hover .stCard__e { transform: translateY(-2px) scale(1.06); }
.stModal .stCard.is-on { border-color: var(--brand, #FFCB2E); color: var(--cx-txt); background: linear-gradient(180deg, rgba(255, 203, 46, 0.1), rgba(255, 203, 46, 0.03)); box-shadow: 0 0 0 3px rgba(255, 203, 46, 0.12); }
.stColor { position: relative; display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--c); cursor: pointer; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.12s; }
.stColor--big { width: 46px; height: 46px; border-radius: 12px; }
.stColor:hover { transform: scale(1.06); }
.stColor input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.stColor.is-on { outline: 2px solid var(--brand, #FFCB2E); outline-offset: 2px; }
.stIco { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--cx-line); background: rgba(255, 255, 255, 0.04); color: var(--cx-dim); font-size: 19px; display: grid; place-items: center; }
.stIco:hover:not(:disabled) { color: var(--cx-txt); background: rgba(255, 255, 255, 0.09); }
.stIco:disabled { opacity: 0.35; cursor: default; }
.stPairs { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 32px; }
.stPair { display: inline-flex; gap: 3px; padding: 5px; border-radius: 11px; border: 1.5px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.2); }
.stPair i { width: 18px; height: 18px; border-radius: 5px; background: var(--c); }
.stPair:hover { border-color: rgba(255, 255, 255, 0.25); }
.stPair.is-on { border-color: var(--brand, #FFCB2E); }
.stModal .stSeg { background: rgba(0, 0, 0, 0.25); border-radius: 13px; padding: 4px; gap: 4px; align-self: auto; flex-wrap: nowrap; }
.stModal .stSeg button { flex: none; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.stModal .stSeg button.is-on { background: rgba(255, 203, 46, 0.16); color: var(--brand, #FFCB2E); box-shadow: inset 0 0 0 1.5px rgba(255, 203, 46, 0.75); }
.stModal .stSeg--aa { background: transparent; padding: 0; gap: 8px; }
.stModal .stSeg--aa button {
  width: 50px; height: 50px; padding: 0; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #B9B9C3;
  border-radius: 12px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stModal .stSeg--aa button:hover { color: var(--cx-txt); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.stModal .stRange { gap: 16px; }
.stModal .stRange input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 220px; flex: none; height: 6px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, var(--brand, #FFCB2E) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%));
}
.stModal .stRange input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand, #FFCB2E); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform 0.12s; }
.stModal .stRange input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.stModal .stRange input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand, #FFCB2E); }
.stModal .stRange b { min-width: 64px; font-size: 18px; color: var(--cx-txt); }
.stBtn--ghost { height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; color: var(--cx-txt); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.stBtn--wide { width: 100%; height: 46px; font-size: 15px; color: var(--cx-dim); border-color: rgba(255, 255, 255, 0.12); background: transparent; }
.stBtn--wide:hover:not(:disabled) { color: var(--cx-txt); background: rgba(255, 255, 255, 0.05); }
.stBtn:disabled { opacity: 0.4; cursor: default; }
.stBgPanel { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 0; animation: stSec 0.22s ease both; }
.stModal .stBgPanel .stDot { width: 44px; height: 44px; border-radius: 12px; }
.stModal .stBgPanel .stDot.is-on { outline-offset: 2px; border-color: transparent; }
.stLine { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15.5px; font-weight: 600; }
.stLine .stColor { width: 70px; height: 38px; border-radius: 10px; }
.stModal .stNote { font-size: 13px; color: #7F7F8C; }
.stModal .stSel { width: 260px; height: 46px; border-radius: 12px; font-size: 15px; }
.stModal .stNum { padding-left: 32px; }
.stModal .stNum input { height: 44px; width: 130px; border-radius: 12px; }
.stModal .stKeys { gap: 8px; }
.stModal .stKeys > div { font-size: 14.5px; }
.stModal .stKeys kbd { min-width: 120px; padding: 7px 10px; font-size: 13px; border-radius: 9px; }
@media (max-width: 1099px) and (min-width: 900px) {
  .stModal .stNav { width: 220px; }
  .stModal .stBody { padding: 22px 24px; }
}
@media (max-width: 899px) {
  .stModal { padding: 0; place-items: end stretch; }
  .stModal .stCardW { width: 100%; height: 94dvh; border-radius: 22px 22px 0 0; }
  .stModal:not([hidden]) .cxModal__card { animation: tmSheet 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  .stHead { padding: 14px 14px 12px 18px; }
  .stHead h2 { font-size: 18px; }
  .stModal .stWrap { flex-direction: column; gap: 0; }
  .stModal .stNav { width: auto; flex-direction: row; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--cx-line); gap: 6px; flex: none; }
  .stModal .stNav button { flex: none; padding: 9px 13px; font-size: 14.5px; gap: 8px; }
  .stModal .stNav button .stE { font-size: 17px; width: auto; }
  .stModal .stBody { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .stModal .stBody h3 { font-size: 18px; }
  .stSub { margin-bottom: 10px; font-size: 13.5px; }
  .stModal .stRow { padding: 15px 0; }
  .stModal .stRow__h b { font-size: 15.5px; }
  .stModal .stRow__h small { font-size: 12.5px; }
  .stModal .stCard { padding: 16px 8px 14px; font-size: 15px; }
  .stModal .stRow[data-row="panelW"], .stModal .stRow[data-row="clockSize"] { display: none; }
  .stModal .stNav button:focus-visible { outline: 0; }
  .stModal .stSel { width: 100%; }
  .stCtl:has(.stSel) { width: 100%; }
  .stModal .stSeg { flex-wrap: wrap; }
  .stModal .stSeg--aa button { width: 46px; height: 46px; }
  .stPairs, .stModal .stNum, .stModal .stRow__h small { padding-left: 0; }
  .stModal .stKeys kbd { min-width: 92px; }
}

/* ── управление балансом ── */
.mnSub { margin: 0 0 12px; font-size: 12.5px; color: var(--cx-dim); }
.mnTabs { margin-bottom: 14px; }
.mnLbl { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-dim); margin-bottom: 6px; }
.mnIn { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--cx-line); background: var(--cx-bg2); color: var(--cx-txt);
  font: 700 15px/1 'JetBrains Mono', monospace; }
.mnIn:focus { outline: none; border-color: var(--brand, #FFCB2E); box-shadow: 0 0 0 3px rgba(255, 203, 46, .14); }
.mnBal { display: flex; gap: 8px; align-items: center; }
.mnBal .mnIn { flex: 1; height: 46px; font-size: 18px; border-color: rgba(255, 203, 46, .45); }
.mnHint { flex: none; font-size: 11px; color: var(--cx-dim); }
.mnLink { flex: none; border: 0; background: none; padding: 4px 2px; font: 700 12px/1.2 var(--f, inherit); color: var(--brand-text, #FFD95C); cursor: pointer; }
.mnLink:hover { text-decoration: underline; }
.mnSteps { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.mnStep { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; --c: #3DB88A; }
.mnStep--o { --c: #FF9F45; } .mnStep--y { --c: #FFCB2E; }
.mnStep__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 'JetBrains Mono', monospace; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.mnStep__t { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--cx-dim); }
.mnStep__t > span { flex: 1; }
.mnStep__p { width: 46px; height: 24px; padding: 0 4px; text-align: right; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--cx-dim); font: 700 12px/1 'JetBrains Mono', monospace; }
.mnStep__p:hover { border-color: var(--cx-line); }
.mnStep__p:focus { outline: none; border-color: var(--brand, #FFCB2E); color: var(--cx-txt); background: var(--cx-bg2); }
.mnStep__t i { font-style: normal; font-size: 11px; }
.mnBar { height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.mnBar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c)); }
.mnStep__v { border: 0; background: none; padding: 6px 4px; border-radius: 8px; font: 800 16px/1 'JetBrains Mono', monospace; color: var(--c); cursor: pointer; min-width: 74px; text-align: right; }
.mnStep__v:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
.mnFoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--cx-dim); }
.mnFoot b { color: var(--cx-txt); }
.mnNote { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--cx-dim); }
.mnGrid3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px; }
.mnRes { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 203, 46, .08); border: 1px solid rgba(255, 203, 46, .25); }
.mnRes span { font-size: 12.5px; color: var(--cx-dim); }
.mnRes b { font: 800 20px/1 'JetBrains Mono', monospace; color: var(--brand-text, #FFD95C); }
.mnRes small { margin-left: auto; font: 700 12px/1 'JetBrains Mono', monospace; color: var(--cx-dim); }
.mnTblW { max-height: 300px; overflow-y: auto; border: 1px solid var(--cx-line); border-radius: 12px; }
.mnTbl { width: 100%; border-collapse: collapse; font: 600 12.5px/1.2 'JetBrains Mono', monospace; }
.mnTbl th { position: sticky; top: 0; background: var(--cx-bg2); text-align: left; padding: 8px 10px; font: 800 10px/1 var(--f, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--cx-dim); }
.mnTbl td { padding: 7px 10px; border-top: 1px solid var(--cx-line); }
.mnTbl td small { color: var(--cx-dim); font-size: 10.5px; }
.mnUp { color: #3DB88A; } .mnDn { color: #D9606B; }
.mnOk { color: #3DB88A; font-weight: 800; } .mnNo { color: var(--cx-dim); }
.mnToday { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cx-bg2); border: 1px solid var(--cx-line); }
.mnToday > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mnToday .mnLbl { margin: 0; }
.mnToday b { font: 800 19px/1 'JetBrains Mono', monospace; }
.mnToday small { font-size: 11.5px; color: var(--cx-dim); }
.mnBtn { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--brand-btn, #FFCB2E); color: var(--brand-ink, #1A1400); font-weight: 800; font-size: 12.5px; cursor: pointer; }

/* ── счётчик плюсов и минусов ── */
.cxScore { padding: 10px 12px; border-radius: 12px; background: var(--cx-bg2); border: 1px solid var(--cx-line); display: flex; flex-direction: column; gap: 7px; }
.cxScore__h { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-dim); }
.cxScore__h button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--cx-dim); font-size: 14px; cursor: pointer; }
.cxScore__h button:hover { background: rgba(255, 255, 255, .07); color: var(--cx-txt); }
.cxScore__r { display: flex; align-items: center; gap: 12px; font: 800 18px/1 'JetBrains Mono', monospace; }
.cxScore__r i { font-style: normal; font-size: 12px; margin-right: 5px; }
.cxScore__w { color: #3DB88A; } .cxScore__l { color: #D9606B; }
.cxScore__p { margin-left: auto; font-size: 13px; color: var(--cx-dim); }
.cxScore__bar { height: 4px; border-radius: 99px; background: rgba(244, 117, 111, .35); overflow: hidden; }
.cxScore__bar i { display: block; height: 100%; background: #3DB88A; }
.cxScore small { font: 700 12px/1 'JetBrains Mono', monospace; }

/* ── компактнее, как в профессиональных терминалах (компьютер) ── */
@media (min-width: 900px) {
  .tmTop { gap: 8px; }
  .tmPairBtn, .tmIndBtn { height: 34px; }
  .tmBalBtn { height: 38px; padding: 0 12px; }
  .tmBalBtn__val { font-size: 13.5px; }
  .tmClock { font-size: 13.5px; }
  .cxTf button { padding: 6px 8px; font-size: 12px; }
  .cxSide.cxSide { padding: 12px; gap: 10px; }
  .cxField { gap: 5px; }
  .cxField__lbl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
  .cxSide .cxTime { height: 42px; font-size: 16.5px; padding: 0 12px; }
  .cxTime svg { width: 17px; height: 17px; }
  .cxSide .cxAmt__val { height: 40px; }
  .cxAmt__cur { font-size: 15px; }
  .cxAmt__step { width: 30px; height: 30px; font-size: 17px; }
  .cxPay div { padding: 7px 10px; }
  .cxPay b { font-size: 15px; }
  .cxBtns { gap: 8px; }
  .cxSide .cxDeal .cxTrade { height: 54px; font-size: 15.5px; }
  .cxSide .cxDeal .cxPay b { font-size: 19px; }
  .cxSide .cxAmt__val { font-size: 16.5px; }
  .cxNote { font-size: 11px; }
}
.cxScore__bar.is-empty { background: rgba(255, 255, 255, .06); }
.cxScore__e { font-family: inherit !important; font-weight: 600 !important; color: var(--cx-dim); }
@media (max-width: 899px) {
  .cxScore { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; }
  .cxScore__h { order: 3; margin-left: auto; gap: 6px; }
  .cxScore__h span { display: none; }
  .cxScore__r { font-size: 14px; gap: 10px; }
  .cxScore__p { margin-left: 4px; font-size: 12px; }
  .cxScore__bar { display: none; }
  .cxScore small { font-size: 11.5px; }
  .cxScore .cxScore__e { display: none; }
}

/* ── убрано: панель масштаба внизу по центру, счётчик в панели сделки ── */
.cxZoom, .cxScore { display: none !important; }


/* ── свободное перемещение ── */
.cxFree {
  position: absolute; z-index: 6; right: 14px; bottom: 34px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--cx-line); background: rgba(15, 20, 35, .88); color: var(--cx-dim); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.cxFree svg { width: 16px; height: 16px; }
.cxFree:hover { color: var(--cx-txt); border-color: rgba(255, 255, 255, .25); }
.cxFree.is-on { color: var(--brand, #FFCB2E); border-color: rgba(255, 203, 46, .6); background: rgba(255, 203, 46, .12); box-shadow: 0 0 14px -4px rgba(255, 203, 46, .5); }
.cxFreeHint {
  position: absolute; z-index: 8; left: 14px; bottom: 34px; max-width: 360px; padding: 10px 14px 12px; border-radius: 12px; overflow: hidden;
  background: rgba(12, 16, 29, .94); border: 1px solid var(--cx-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); pointer-events: none;
  display: flex; flex-direction: column; gap: 4px; animation: tmIn .18s ease both;
}
.cxFreeHint b { font-size: 12.5px; }
.cxFreeHint span { font-size: 11.5px; color: var(--cx-dim); line-height: 1.4; }
.cxFreeHint::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brand, #FFCB2E); transform-origin: left; }
.cxFreeHint.is-go::after { animation: freeBar 3.2s linear forwards; }
@keyframes freeBar { to { transform: scaleX(0); } }

/* ── настройки: окно под шапкой, как выпадающая панель ── */
@media (min-width: 900px) {
  .stModal { display: block; padding: 0; }
  .stModal .cxModal__back { background: transparent; backdrop-filter: none; }
  .stModal .stCardW {
    position: absolute; top: 62px; right: 64px; width: min(800px, calc(100vw - 140px)); height: auto; max-height: calc(100vh - 80px);
    display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 18px;
    background: #0E1220; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  }
  .stModal .stHead { margin: 0; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--cx-line); }
  .stModal .stHead h2 { font-size: 15px; }
  .stModal .cxModal__x { width: 30px; height: 30px; }
  .stModal .stWrap { gap: 0; min-height: 0; }
  .stModal .stNav { width: 190px; padding: 12px 10px; border-right: 1px solid var(--cx-line); gap: 2px; }
  .stModal .stNav button { font-size: 13.5px; padding: 9px 12px; }
  .stModal .stBody { padding: 16px 20px 14px; overflow-y: auto; max-height: calc(100vh - 150px); }
  .stModal .stBody h3 { font-size: 14px; margin-bottom: 2px; }
  .stModal .stRow { background: transparent; border-radius: 0; padding: 12px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .stModal .stRow:last-child { border-bottom: 0; }
  .stModal .stRow__h b { font-size: 13.5px; }
  .stModal .stRow__h small { font-size: 11.5px; }
}

/* ── счётчик сделок: плавающее окно ── */
.tcnt {
  position: fixed; z-index: 120; width: 236px; border-radius: 16px; overflow: hidden; user-select: none;
  background: rgba(14, 18, 32, .97); border: 1px solid rgba(255, 255, 255, .11); box-shadow: 0 22px 50px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: tmIn .18s ease both;
}
.tcnt.is-drag { box-shadow: 0 28px 60px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 203, 46, .35); }
.tcnt__h { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 14px; cursor: grab; border-bottom: 1px solid var(--cx-line); }
.tcnt.is-drag .tcnt__h { cursor: grabbing; }
.tcnt__h b { font-size: 12.5px; }
.tcnt__h span { flex: 1; font-size: 11px; color: var(--cx-dim); }
.tcnt__h button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--cx-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.tcnt__h button:hover { background: rgba(255, 255, 255, .08); color: var(--cx-txt); }
.tcnt__nums { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; padding: 14px 14px 10px; }
.tcnt__n, .tcnt__p { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tcnt__n b { font: 800 28px/1 'JetBrains Mono', monospace; }
.tcnt__n--w b { color: #3DB88A; } .tcnt__n--l b { color: #D9606B; }
.tcnt__p b { font: 800 15px/1 'JetBrains Mono', monospace; color: var(--cx-txt); padding-bottom: 6px; }
.tcnt small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-dim); }
.tcnt__bar { height: 4px; margin: 0 14px; border-radius: 99px; background: rgba(244, 117, 111, .55); overflow: hidden; }
.tcnt__bar i { display: block; height: 100%; background: #3DB88A; transition: width .25s ease; }
.tcnt__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 10px; }
.tcnt__b { height: 46px; border: 0; border-radius: 12px; font: 800 18px/1 'JetBrains Mono', monospace; cursor: pointer; transition: filter .12s, transform .12s; }
.tcnt__b--w { background: linear-gradient(180deg, #6FEFB5, #3FCB8A); color: #03140B; }
.tcnt__b--l { background: linear-gradient(180deg, #FF8C85, #E9574F); color: #1D0403; }
.tcnt__b:hover { filter: brightness(1.07); }
.tcnt__b:active { transform: scale(.96); }
.tcnt__b.is-hit { animation: cntHit .3s ease; }
@keyframes cntHit { 40% { transform: scale(.92); } }
.tcnt__f { display: flex; align-items: center; gap: 4px; padding: 0 10px 10px 14px; }
.tcnt__last { flex: 1; display: flex; gap: 3px; align-items: center; min-height: 18px; }
.tcnt__last i { width: 8px; height: 8px; border-radius: 2px; }
.tcnt__last i.w { background: #3DB88A; } .tcnt__last i.l { background: #D9606B; }
.tcnt__last em { font-style: normal; font-size: 11px; color: var(--cx-dim); }
.tcnt__f button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--cx-dim); font-size: 14px; cursor: pointer; }
.tcnt__f button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--cx-txt); }
.tcnt__f button:disabled { opacity: .35; cursor: default; }
.tmRail button[data-counter].is-on { color: var(--brand, #FFCB2E); background: rgba(255, 203, 46, .14); }

/* ── шапка: размеры как в компактных терминалах ── */
@media (min-width: 900px) {
  .tmTop .tmIndBtn { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
  .tmTop .tmIndBtn svg { width: 15px; height: 15px; }
  .tmTop .tmSetBtn { width: 32px; height: 32px; border-radius: 9px; }
  .tmTop .tmSetBtn svg { width: 16px; height: 16px; }
  .tmTop .tmClock { height: 32px; padding: 0 10px; border-radius: 9px; font-size: 13px; }
  .tmTop .tmUserBtn { height: 36px; width: 36px; padding: 0; border: 0; background: transparent; border-radius: 50%; justify-content: center; }
  .tmTop .tmUserBtn__name, .tmTop .tmUserBtn .tmChev { display: none; }
  .tmTop .tmUserBtn__ava { width: 34px; height: 34px; font-size: 14px; }
  .tmTop .tmBalBtn { height: 40px; }
}
/* надпись под кнопками сделки — убрана */
.cxNote { display: none !important; }
/* счётчик: крупные знаки + и − */
.tcnt__b { font-size: 24px; }

/* ── настройки: компактно ── */
@media (min-width: 900px) {
  .stModal.stModal .stCardW { width: min(640px, calc(100vw - 140px)); border-radius: 14px; }
  .stModal.stModal .stHead { padding: 10px 10px 10px 16px; }
  .stModal.stModal .stHead h2 { font-size: 14px; gap: 8px; }
  .stModal.stModal .stHead .stE { font-size: 15px; }
  .stModal.stModal .stHead .cxModal__x { width: 28px; height: 28px; border-radius: 8px; }
  .stModal.stModal .stHead .cxModal__x svg { width: 15px; height: 15px; }
  .stModal.stModal .stNav { width: 150px; padding: 8px 8px; gap: 2px; }
  .stModal.stModal .stNav button { padding: 7px 10px; font-size: 12.5px; gap: 9px; border-radius: 9px; border-width: 1px; }
  .stModal.stModal .stNav button .stE { font-size: 14px; width: 16px; }
  .stModal.stModal .stBody { padding: 12px 16px 12px 18px; max-height: calc(100vh - 140px); }
  .stModal.stModal .stBody h3 { font-size: 13.5px; margin-bottom: 2px; }
  .stModal.stModal .stSub { margin-bottom: 8px; font-size: 11.5px; }
  .stModal.stModal .stCap { font-size: 10px; }
  .stModal.stModal .stRow { padding: 10px 0; gap: 8px; }
  .stModal.stModal .stRow__l { gap: 12px; }
  .stModal.stModal .stRow__h { flex-basis: 200px; gap: 2px; }
  .stModal.stModal .stRow__h b { font-size: 12.5px; gap: 7px; }
  .stModal.stModal .stRow__h .stE { font-size: 13px; width: 16px; }
  .stModal.stModal .stRow__h small { font-size: 11px; padding-left: 23px; }
  .stModal.stModal .stSw { width: 36px; height: 20px; border-radius: 10px; }
  .stModal.stModal .stSw::after { width: 14px; height: 14px; }
  .stModal.stModal .stSw.is-on::after { transform: translateX(16px); }
  .stModal.stModal .stCards { gap: 8px; }
  .stModal.stModal .stCard { padding: 10px 6px 8px; font-size: 12px; border-radius: 10px; gap: 5px; }
  .stModal.stModal .stCard__e { font-size: 18px; }
  .stModal.stModal .stSeg { border-radius: 9px; padding: 3px; gap: 3px; }
  .stModal.stModal .stSeg button { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }
  .stModal.stModal .stSeg--aa { gap: 5px; padding: 0; }
  .stModal.stModal .stSeg--aa button { width: 30px; height: 30px; border-radius: 8px; padding: 0; }
  .stModal.stModal .stRange { gap: 10px; }
  .stModal.stModal .stRange input[type="range"] { width: 150px; height: 4px; }
  .stModal.stModal .stRange input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; border-width: 2px; }
  .stModal.stModal .stRange b { min-width: 46px; font-size: 12.5px; }
  .stModal.stModal .stColor { width: 24px; height: 24px; border-radius: 7px; }
  .stModal.stModal .stColor--big { width: 30px; height: 30px; }
  .stModal.stModal .stIco { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
  .stModal.stModal .stPairs { padding-left: 23px; gap: 5px; }
  .stModal.stModal .stPair i { width: 13px; height: 13px; }
  .stModal.stModal .stBtn, .stModal.stModal .stBtn--ghost { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
  .stModal.stModal .stBtn--wide { height: 32px; font-size: 12px; }
  .stModal.stModal .stSel { width: 200px; height: 32px; font-size: 12.5px; border-radius: 8px; }
  .stModal.stModal .stNum { padding-left: 23px; }
  .stModal.stModal .stNum input { height: 30px; width: 100px; border-radius: 8px; }
  .stModal.stModal .stKeys > div { font-size: 12px; }
  .stModal.stModal .stKeys kbd { min-width: 90px; padding: 4px 8px; font-size: 11px; }
  .stModal.stModal .stLine { font-size: 12.5px; }
  .stModal.stModal .stLine .stColor { width: 48px; height: 26px; }
  .stModal.stModal .stBgPanel .stDot { width: 28px; height: 28px; border-radius: 8px; }
  .stModal.stModal .stNote { font-size: 11px; }
}
