* {
  box-sizing: border-box;
  margin: 0;
}
body {
  font:
    14px/1.4 -apple-system,
    sans-serif;
  background: #131722;
  color: #d1d4dc;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: #1e222d;
  border-bottom: 1px solid #2a2e39;
  flex-wrap: wrap;
}
header input,
header select,
header button {
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45;
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
}
header button {
  cursor: pointer;
}
header button.active {
  background: #2962ff;
  border-color: #2962ff;
  color: #fff;
}
header label.chip {
  background: #2a2e39;
  border: 1px solid #363a45;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: #9598a1;
  cursor: pointer;
  user-select: none;
}
header label.chip:has(input:checked) {
  background: #2962ff22;
  border-color: #2962ff;
  color: #d1d4dc;
}
header label.chip input {
  display: none;
}
#hdrCoin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #363a45;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
#priceBox {
  text-align: right;
  line-height: 1.15;
}
#price {
  font-size: 20px;
  font-weight: 700;
}
#chg24 {
  font-size: 11px;
}
a.home {
  color: #d1d4dc;
  text-decoration: none;
  font-weight: 700;
}
main {
  flex: 1;
  display: flex;
  min-height: 0;
}
#chartCol {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#chart {
  flex: 1;
  min-height: 0;
  position: relative;
}
/* Kauf-/Verkaufszonen des Bots als schwache Bänder über die volle Chartbreite */
.zone {
  position: absolute;
  left: 0;
  right: 72px;
  pointer-events: none;
  z-index: 2;
  display: none;
}
#zoneBuy {
  background: rgba(38, 166, 154, 0.08);
  border-top: 1px dashed rgba(38, 166, 154, 0.3);
}
#zoneSell {
  background: rgba(239, 83, 80, 0.08);
  border-bottom: 1px dashed rgba(239, 83, 80, 0.3);
}
.zone::after {
  position: absolute;
  left: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.55;
}
#zoneBuy::after {
  content: 'BUY ZONE';
  top: 2px;
  color: #26a69a;
}
#zoneSell::after {
  content: 'SELL ZONE';
  bottom: 2px;
  color: #ef5350;
}
/* Prognose-Kegel: graue ±1σ-Spanne, animierte Mittellinie = Erwartungswert */
#forecast {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  display: none;
  overflow: visible;
}
#forecast .fcLine {
  animation: fcDash 0.8s linear infinite;
}
@keyframes fcDash {
  to {
    stroke-dashoffset: -10;
  }
}
#probPane {
  height: 110px;
  border-top: 1px solid #363a45;
  position: relative;
}
#probLabel {
  position: absolute;
  top: 4px;
  left: 8px;
  z-index: 5;
  font-size: 11px;
  color: #787b86;
}
.pulse {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
/* Asset-Sidebar links */
nav {
  width: 300px;
  background: #1e222d;
  border-right: 1px solid #363a45;
  overflow-y: auto;
  transition: width 0.15s;
  flex-shrink: 0;
}
nav.collapsed {
  /* !important: der Resize-Griff setzt eine Inline-Breite, die hier verlieren muss */
  width: 58px !important;
}
nav.collapsed + #navResize {
  display: none;
}
nav.collapsed .label,
nav.collapsed .aside-col,
nav.collapsed .marks,
nav.collapsed .bellTgl,
nav.collapsed .rm {
  display: none;
}
.asset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.asset:hover {
  background: #2a2e39;
}
.asset.sel {
  background: #2962ff22;
  border-right: 2px solid #2962ff;
}
.coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.coin img,
#hdrCoin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.label {
  flex: 1;
  min-width: 0;
}
.label small {
  display: block;
  color: #787b86;
}
.chg {
  font-size: 12px;
}
/* Signal-Sidebar rechts */
aside {
  width: 260px;
  background: #161a24;
  padding: 12px;
  overflow-y: auto;
  border-left: 1px solid #363a45;
  flex-shrink: 0;
}
aside h2 {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #787b86;
  margin: 2px 4px 6px;
}
.prob {
  font-size: 40px;
  font-weight: 700;
}
.up {
  color: #26a69a;
}
.down {
  color: #ef5350;
}
.neutral {
  color: #787b86;
}
.row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #ffffff08;
  font-size: 13px;
}
#vPat {
  text-align: right;
}
#vPat div {
  padding: 1px 0;
}
.verdict {
  margin: 12px 0 6px;
  padding: 10px;
  border-radius: 10px;
  background: #131722;
  border: 1px solid #ffffff0d;
  font-weight: 600;
}
/* Bedingungs-Pills: grüner Kreis mit ✓ = erfüllt, leerer Ring = darauf warten wir */
#checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  margin-bottom: 10px;
}
#checklist .chk {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #131722;
  border: 1px solid #ffffff08;
  border-radius: 8px;
  padding: 6px 8px;
  color: #787b86;
  line-height: 1.35;
}
#checklist .chk i {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #565a66;
  margin-top: 1px;
  font-style: normal;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#checklist .chk.ok {
  color: #d1d4dc;
  border-color: #26a69a33;
}
#checklist .chk.ok i {
  background: #26a69a;
  border-color: #26a69a;
  color: #fff;
}
#gauge {
  margin: 12px 0 2px;
}
#gaugeBar {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ef5350 0%, #e57373 30%, #787b86 45%, #787b86 55%, #66bb6a 70%, #26a69a 100%);
}
#gaugeBar .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #13172288;
}
#gaugeNeedle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 4px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: left 0.3s;
  box-shadow: 0 0 5px #000;
}
#gaugeScale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.posBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.posBtns button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font: inherit;
  white-space: nowrap;
  transition: filter 0.15s;
}
.posBtns button:hover {
  filter: brightness(1.18);
}
.posBtns button:disabled {
  filter: grayscale(0.7) brightness(0.6);
  cursor: not-allowed;
}
#aSpark {
  margin: 6px 0 2px;
}
#aSpark svg {
  width: 100%;
  height: 76px;
  display: block;
}
.bLong {
  background: #26a69a;
}
.bShort {
  background: #ef5350;
}
.bClose {
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45 !important;
}
aside input,
aside select {
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45;
  border-radius: 8px;
  padding: 6px;
  font: inherit;
}
/* history rows as small cards: action left, P&L right; time left, price right */
#aHist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
#aHist .hRow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131722;
  border: 1px solid #ffffff08;
  border-radius: 8px;
  padding: 6px 8px;
}
#aHist .hMain {
  flex: 1;
  min-width: 0;
}
#aHist .hTop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #d1d4dc;
}
#aHist .hAct {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hPnl {
  flex-shrink: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
}
.hPnl.up {
  background: #26a69a1a;
  border: 1px solid #26a69a44;
}
.hPnl.down {
  background: #ef53501a;
  border: 1px solid #ef535044;
}
.hPnl.n {
  color: #9598a1;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
}
#aHist .hSub {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: #787b86;
  font-size: 10.5px;
}
#replayBar {
  display: none;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: #1e222d;
  border-top: 1px solid #363a45;
}
#replayBar input[type='range'] {
  flex: 1;
}
#score {
  font-size: 12px;
  color: #787b86;
  margin-top: 14px;
}
.hint {
  font-size: 11px;
  color: #787b86;
}
aside h2.sec {
  margin-top: 16px;
  cursor: pointer;
}
/* Neutraler Handelsauftrag (manuelle Ausführung im Spiel) */
#orderCard {
  background: #131722;
  border: 1px solid #2962ff88;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
#ordTitle {
  font-weight: 700;
  margin-bottom: 6px;
}
#preWarn {
  margin-bottom: 8px;
  color: #ffb74d;
}
/* Sidebar-Resize-Griff: eigene schmale Spalte links neben der Sidebar */
#sbResize {
  width: 5px;
  flex-shrink: 0;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s;
}
#sbResize:hover {
  background: #2962ff66;
}

/* ponytail: Minimal-Responsive — alles untereinander, Assets als horizontale Leiste.
   Echte Mobile-UX (Touch-Gesten, Bottom-Sheet) wäre der Ausbau, wenn Mobile wichtig wird. */
@media (max-width: 800px) {
  main {
    flex-direction: column;
    overflow-y: auto;
  }
  nav {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #363a45;
    flex-shrink: 0;
  }
  #assetList {
    display: flex;
    overflow-x: auto;
  }
  .asset {
    flex: 0 0 auto;
  }
  .asset.sel {
    border-right: 0;
    border-bottom: 2px solid #2962ff;
  }
  #chartCol {
    height: 35vh;
    min-height: 200px;
    flex: 0 0 auto;
  } /* Chart flach halten — Signal & Trading im Blick */
  #probPane {
    height: 64px;
  }
  aside {
    width: 100% !important;
    border-left: 0;
  }
  #sbResize,
  #navResize {
    display: none;
  }
}

/* ---------- Karten-Container, Fear & Greed, Pair-Suche ---------- */
#sigCard {
  position: relative;
}
#muteBtn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  z-index: 2;
}
#sigCard,
#tradeBody {
  background: #1e222d;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px #0007;
}
#anaBody .row:last-child {
  border-bottom: 0;
}
aside::-webkit-scrollbar {
  width: 8px;
}
aside::-webkit-scrollbar-thumb {
  background: #2a2e39;
  border-radius: 4px;
}
aside::-webkit-scrollbar-track {
  background: transparent;
}
#probDir {
  font-size: 22px;
  margin-right: 8px;
  font-weight: 700;
  vertical-align: 4px;
}
#sigTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.aside-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.marks {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 11px;
  flex-shrink: 0;
  min-height: 13px;
}
.sigFlash {
  animation: pulse 1s infinite;
}
.muteTgl {
  cursor: pointer;
}
.rearm {
  color: #2962ff;
  cursor: pointer;
  font-weight: 600;
}
.cardCoin {
  width: 20px;
  height: 20px;
  font-size: 7px;
  flex-shrink: 0;
}
/* Titelzeilen der Karte: Icon und Text sauber vertikal zentriert */
#ordTitle > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Pair-Suche und eigene Liste */
#navSearch {
  padding: 10px;
  border-bottom: 1px solid #2a2e39;
}
#pairSearch {
  width: 100%;
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12.5px;
}
.sres {
  padding: 6px 4px;
  cursor: pointer;
  font-size: 12.5px;
  color: #9598a1;
}
.sres:hover {
  background: #2a2e39;
  color: #d1d4dc;
  border-radius: 6px;
}
nav.collapsed #navSearch {
  display: none;
}
.asset .rm {
  color: #565a66;
  cursor: pointer;
  padding: 0 2px;
  visibility: hidden;
}
.asset:hover .rm {
  visibility: visible;
}

/* Portfolio-Kopf: großer Wert (Farbe = P&L), Invested/Cash-Bar */
#pfValue {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 2px 4px;
}
#pfValue .hint,
#pfValue #aGain {
  font-size: 14px;
  font-weight: 600;
}
#pfBar {
  height: 8px;
  border-radius: 4px;
  background: #2a2e39;
  overflow: hidden;
  margin: 2px 2px 4px;
}
#pfInv {
  display: block;
  height: 100%;
  width: 0;
  background: #2962ff;
  transition: width 0.3s;
}
#limPct {
  margin: 0 2px 6px;
}

/* All sections share the same subtle frame — no background of their own,
   they stay on the sidebar tone (inner cards like the verdict box keep theirs) */
#sigCard,
#portBody,
#tradeBody {
  border: 1px solid #2a2e39;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
/* Portfolio header: big value left, goal progress / limit warnings top-right */
#pfHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
#gameState {
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  margin: 10px 2px 0;
  max-width: 48%;
}

/* Sidebar form controls: same look as the header controls — browser defaults
   rendered the portfolio number inputs bigger/lighter than everything else */
aside input,
aside select {
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  min-width: 0;
}
aside input:focus,
aside select:focus {
  outline: 1px solid #2962ff;
}

/* Limit corridor like the game app: red from the loss limit, green to the goal,
   knob = current portfolio position */
#limitTrack {
  position: relative;
  display: flex;
  gap: 4px;
  height: 8px;
  margin: 8px 2px 4px;
}
#limitTrack i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
#limitRed {
  background: #ef5350;
}
#limitGreen {
  background: #26a69a;
  flex: 1;
}
#limitKnob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #26a69a; /* JS setzt rot/grün nach Zone */
  border: 2px solid #161a24; /* Sektions-Hintergrund als Rand */
  box-shadow: 0 0 3px #0009;
  transform: translate(-50%, -50%);
  transition:
    left 0.3s,
    background 0.3s;
}
#limitLbls {
  display: flex;
  justify-content: space-between;
  margin: 0 2px 6px;
  font-size: 12.5px;
  line-height: 1.25;
}

/* Asset rows: mini sparkline + last price like the game app */
.asset .spark {
  width: 44px;
  height: 16px;
  flex-shrink: 0;
}
.aside-col .px {
  font-size: 11.5px;
  text-align: right;
  font-weight: 600;
}
nav.collapsed .spark {
  display: none;
}
#availLine {
  margin: 0 2px 4px;
}

/* Section header buttons (export/reset) right-aligned in the collapsible title */
aside h2.sec {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.secBtns {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.secBtns button {
  background: #2a2e39;
  color: #d1d4dc;
  border: 1px solid #363a45;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
#limitBar {
  cursor: pointer;
}
/* Portfolio setup modal */
#setupModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 18, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}
#setupCard {
  background: #161a25;
  border: 1px solid #2a2e39;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
}
#setupCard h3 {
  margin-bottom: 10px;
  color: #fff;
}
#setupCard label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #9598a1;
}
#setupCard label input {
  display: block;
  width: 100%;
  margin-top: 3px;
  background: #0f131c;
  color: #e8e8e8;
  border: 1px solid #2a2e39;
  border-radius: 7px;
  padding: 8px;
  font: inherit;
}

/* Holdings: title row with summed invested value, bar below, pair list under it */
/* holdings as small cards — same anatomy as the history rows */
#aPos {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  margin: 4px 0 6px;
}
#aPos .pRow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131722;
  border: 1px solid #ffffff08;
  border-radius: 8px;
  padding: 6px 8px;
}
#aPos .pMain {
  flex: 1;
  min-width: 0;
}
#aPos .pTop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #d1d4dc;
  font-weight: 600;
}
#aPos .pMark {
  color: #787b86;
}
#aPos .pMark .ico {
  width: 12px;
  height: 12px;
}
#aPos .pSub {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: #787b86;
  font-size: 10.5px;
}

/* Monochrome inline icons */
.ico {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  display: inline-block;
}
.marks .ico,
.muteTgl .ico {
  width: 15px;
  height: 15px;
}
#muteBtn {
  background: none;
  border: 0;
  padding: 1px 2px;
  cursor: pointer;
}
#sigPair {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: #d1d4dc;
}
#sigPair .coin {
  width: 18px;
  height: 18px;
  font-size: 8px;
}
.sigFlash {
  animation: pulse 1s infinite;
}

.secBtns .ico {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
button .ico + span,
#setupHint .ico + span {
  margin-left: 5px;
}
#cloudBadge .cbSt {
  font-size: 10px;
  margin-left: 1px;
}
.rm .ico {
  width: 12px;
  height: 12px;
}

/* Left sidebar resize handle (mirror of the right one) */
#navResize {
  width: 5px;
  cursor: col-resize;
  flex-shrink: 0;
}
#navResize:hover {
  background: #2962ff44;
}
nav.resizing {
  transition: none;
}

/* Signal card docked in the left sidebar under the selected asset */
#assetList #sigCard,
#assetNav > #sigCard {
  margin: 4px 8px 10px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 10px;
  padding: 10px;
}
nav.collapsed #sigCard {
  display: none !important;
}

/* Asset row, two lines: small status icons LEFT of the sparkline, price/24h%
   on the right, bell as a big click target at the far right */
/* position/bot marks inline right after the asset name */
.label .lbl1 {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.label .marks {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.label .marks .ico {
  width: 12px;
  height: 12px;
}
.aside-col {
  text-align: right;
}
.bellTgl {
  display: flex;
  align-items: center;
  padding: 6px 2px 6px 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.bellTgl .ico {
  width: 18px;
  height: 18px;
}

/* Compact signal view: score %, gauge bar and verdict only */
#sigCard {
  cursor: pointer;
}
#sigCard.mini #checklist,
#sigCard.mini #preWarn,
#sigCard.mini #score,
#sigCard.mini #sigTop .hint,
#sigCard.mini #gauge {
  display: none;
}
/* Mini = one line: percent + arrow, verdict right next to it */
#sigCard.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}
#sigCard.mini .prob {
  font-size: 18px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
#sigCard.mini .prob #probDir {
  font-size: 14px;
  line-height: 1;
  width: 15px;
  justify-content: center;
}
#sigCard.mini .verdict {
  flex: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact per-asset signal line: IDENTICAL to the collapsed card variant,
   just without background/border (the only allowed difference) */
.sigMini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 8px;
  padding: 7px 10px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 10px;
  cursor: pointer;
}
.sigMini .p {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.sigMini .p .ar {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  width: 15px;
  text-align: center;
  flex-shrink: 0;
}
.sigMini .v {
  font-size: 12.5px;
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
nav.collapsed .sigMini {
  display: none !important;
}

/* score arrow vertically centered next to the number */
.prob {
  display: flex;
  align-items: center;
  gap: 4px;
}
.prob #probDir {
  font-size: 0.55em;
  line-height: 1;
  display: inline-flex;
  width: 0.62em;
  justify-content: center;
  flex-shrink: 0;
}

/* trend arrows as SVGs: identical geometry, identical spacing */
.sigMini .p .ar .ico {
  width: 13px;
  height: 13px;
  display: block;
}
#probDir .ico {
  width: 0.55em;
  height: 0.55em;
  display: block;
}
#sigCard.mini #probDir .ico {
  width: 13px;
  height: 13px;
}

/* holdings rows: same hand/dot icons as the asset list */
#aPos .hRow .ico {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 2px;
}

/* analysis block folded into the signal card */
/* section header inside the card: hairline on top, chevron right-aligned */
#anaBox {
  margin-top: 10px;
  background: #1e222d;
  border: 1px solid #2a2e39;
  border-radius: 10px;
  padding: 6px 8px;
}
#anaBody {
  margin-top: 6px;
}
#anaTgl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #787b86;
  cursor: pointer;
  user-select: none;
}
#anaTgl:hover {
  color: #d1d4dc;
}
#anaTgl .ico {
  width: 12px;
  height: 12px;
  vertical-align: 0;
}
#sigCard.mini #anaBox,
#sigCard.mini #sigCfgRow {
  display: none !important;
}

/* stale analysis: visibly aged, never "live"-looking */
.sigMini.stale {
  opacity: 0.65;
}

/* chart overlay: coin + price moved out of the header (top-left of the chart) */
#chartInfo {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(19, 23, 34, 0.82);
  border: 1px solid #2a2e39;
  border-radius: 8px;
  padding: 4px 10px;
  pointer-events: none;
}
#chartInfo #priceBox {
  text-align: left;
}

/* depot menu (header right): active depot with live value; dropdown lists every
   depot with a mini summary — value colored vs. its start, hold/bot markers */
#depotMenu {
  position: relative;
}
#depotBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  color: #d1d4dc;
  font-size: 13px;
}
#depotBtn:hover {
  border-color: #3f4454;
  background: #161b27;
}
#depotBtn .ico {
  width: 12px;
  height: 12px;
  color: #787b86;
}
#depotList {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  padding: 4px;
  z-index: 80;
}
.dRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.dRow:hover {
  background: #1c2230;
}
.dRow.cur {
  background: #182032;
}
.dName {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.dv {
  font-variant-numeric: tabular-nums;
}
.dv.neutral {
  color: #787b86;
}
.dMark {
  display: inline-flex;
  color: #787b86;
}
.dMark .ico {
  width: 13px;
  height: 13px;
}
.dAct {
  color: #787b86;
  border-top: 1px solid #1e222d;
  border-radius: 0;
}
.dAct:first-of-type {
  border-top: none;
}

/* stake buttons inside the order card + the collapsed-history "more" line */
.hMore {
  text-align: center;
  color: #787b86;
  font-size: 11px;
  padding: 3px 0;
  cursor: pointer;
}
.hMore:hover {
  color: #d1d4dc;
}

/* free-trade dock: docked under the selected asset in the left sidebar */
#tradeDock {
  margin: 4px 10px 8px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 10px;
  padding: 6px 8px;
}
#tradeDockHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #787b86;
  cursor: pointer;
  user-select: none;
}
#tradeDockHead:hover {
  color: #d1d4dc;
}
#tradeDockHead .ico {
  width: 12px;
  height: 12px;
}
#tradeDockBody {
  margin-top: 6px;
}
#tradeDockBody .posBtns {
  margin-bottom: 2px;
}
nav.collapsed #tradeDock {
  display: none;
}

#dockTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
#dockTop .availBig {
  flex-shrink: 0;
}
#dockChips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

/* per-pair signal options: toggle chips top-right, next to the score */
#sigCfgRow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.cfgChip {
  background: #1e222d;
  border: 1px solid #363a45;
  border-radius: 999px;
  color: #787b86;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.cfgChip:hover {
  border-color: #3f4454;
  color: #d1d4dc;
}
.cfgChip.on {
  background: #2962ff22;
  border-color: #2962ff;
  color: #d1d4dc;
}
.cfgChip.up {
  border-color: #26a69a66;
  color: #26a69a;
}
.cfgChip.down {
  border-color: #ef535066;
  color: #ef5350;
}

/* trade dock: big available balance, segmented stake buttons, fee row */
.availBig {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.availBig .lbl {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #787b86;
}
.availBig b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
/* stake slider: track like the portfolio limit bar, detents at 25/50/75 */
#sizeBar {
  margin: 4px 0 0;
}
#sizeInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0 8px;
}
#sizeInfo #sizeAmt {
  font-size: 12px;
  color: #d1d4dc;
  font-variant-numeric: tabular-nums;
}
#sizeInfo #sizeVal {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #d1d4dc;
}
.stkTrack {
  position: relative;
  flex: 1;
  height: 16px; /* gleiche Höhe wie die Gauge-Bar in der Signal-Karte */
  border-radius: 8px;
  background: #1e222d;
  border: 1px solid #363a45;
  cursor: pointer;
  touch-action: none;
}
.stkTrack.autoDim {
  opacity: 0.45;
}
.stkTrack .tick {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 2px;
  background: #363a45;
  transform: translateX(-50%);
  z-index: 1;
}
.stkFill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
  background: #2962ff;
}
.stkKnob {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d1d4dc;
  border: 2px solid #131722;
  box-shadow: 0 0 3px #0009;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
#sizeVal {
  min-width: 38px;
  text-align: right;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #d1d4dc;
}

/* section chevrons (right sidebar) — same icons as the left-side docks */
.secArrow {
  margin-left: auto;
  display: inline-flex;
  color: #787b86;
}
.secBtns + .secArrow {
  margin-left: 8px;
}
.secArrow .ico {
  width: 12px;
  height: 12px;
}

/* agenda position cards: coin + side + value + P&L, current signal, actions */
.apCard {
  background: #131722;
  border: 1px solid #ffffff08;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}
.apHead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.apName {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apVal {
  font-variant-numeric: tabular-nums;
}
.apSig {
  font-size: 11.5px;
  margin: 6px 0 2px;
}
.apBtns {
  margin: 8px 0 0;
}
.apBtns button {
  padding: 6px;
  font-size: 12px;
}
/* held position of the chart pair, right above the dock buttons */
#dockPos,
.apPos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
#dockPos b,
.apPos b {
  flex: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.apPos {
  margin: 7px 0 2px;
}

/* order card: live signal summary, stake bar preset to the recommendation, ONE action */
#oSigSum .oScore {
  font-weight: 700;
  font-size: 15px;
  margin-right: 6px;
}
#ordBtns {
  display: block;
}
#oBar {
  margin: 8px 0 2px;
}
#oBarInfo {
  display: flex;
  justify-content: space-between;
  margin: 5px 0 8px;
  font-size: 11.5px;
  color: #d1d4dc;
  font-variant-numeric: tabular-nums;
}
#ordBtns .ordRow {
  display: flex;
  gap: 6px;
}
#ordBtns .ordGo {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font: inherit;
}
#ordBtns .ordX {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: #fff;
  font: inherit;
}

/* order card: mirror of the left-side anatomy */
#oSigSum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 2px;
}
#oSigSum .oScore {
  font-size: 17px;
}
#oSigSum .oVerd {
  font-weight: 600;
  min-width: 0;
}
#ordBtns .availBig {
  margin: 8px 0 2px;
}
#ordBtns .ordGo {
  padding: 11px;
  font-size: 14.5px;
  border-radius: 9px;
}

/* per-asset bot approval toggle, next to the bell */
.botTgl {
  cursor: pointer;
  color: #565a66;
  display: inline-flex;
  flex-shrink: 0;
}
.botTgl .ico {
  width: 15px;
  height: 15px;
}
.botTgl.on {
  color: #2962ff;
}
.botTgl:hover {
  color: #d1d4dc;
}

#botChip .ico {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

/* stake bar inside agenda position cards */
.apBar {
  margin: 2px 0 0;
}
.apCard .availBig {
  margin: 6px 0 4px;
}
.apBarInfo {
  display: flex;
  justify-content: space-between;
  margin: 5px 0 2px;
  font-size: 11.5px;
  color: #d1d4dc;
  font-variant-numeric: tabular-nums;
}

/* statistics section: headline numbers big, per-pair P&L as bars */
.stTop {
  display: flex;
  gap: 18px;
  margin: 2px 0 6px;
}
.stBig {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.stBig b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.stBig .lbl {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #787b86;
}
.stSub {
  margin-bottom: 8px;
}
.stBarRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11.5px;
}
.stLbl {
  width: 34px;
  color: #9598a1;
  flex-shrink: 0;
}
.stBar {
  position: relative;
  flex: 1;
  height: 8px;
  background: #131722;
  border: 1px solid #ffffff08;
  border-radius: 4px;
  overflow: hidden;
}
.stBar i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}
.stBar .stZero {
  width: 2px;
  background: #565a66;
  transform: translateX(-50%);
  z-index: 1;
}
.stBar i.pos {
  background: #26a69a;
}
.stBar i.neg {
  background: #ef5350;
}
.stBarRow b {
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#statsBody {
  border: 1px solid #2a2e39;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

#aSym .rowBot .ico {
  width: 12px;
  height: 12px;
  color: #2962ff;
  vertical-align: -2px;
}

#aSpark {
  cursor: pointer;
}

.dMark.paused {
  opacity: 0.45;
}
.dMark.paused .ico + .ico {
  width: 9px;
  height: 9px;
  margin-left: -3px;
}
