:root{
  --bgPlain: #05070d;
  /* Match space background base so we don't flash on load */
  --bg:#05070d; --panel:#0c0613; --line:#2b1042; --text:#ffe9ff; --muted:#f0a6ff;
  /* UI accent is hue-driven (default magenta). Updated via Space Settings slider. */
  --accentH: 305; --accentS: 90%; --accentL: 62%;
  --accent: hsl(var(--accentH) var(--accentS) var(--accentL));
  --accentSoft: hsl(var(--accentH) var(--accentS) calc(var(--accentL) + 10%));
  --red:#ff3b6b; --amber:#ffcc55;
  --shadow: 0 0 0 1px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16), 0 10px 30px rgba(0,0,0,0.55);
  --radius:16px; --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color:var(--text);
  font-family: var(--mono);
}
a{ color: inherit; text-decoration:none; }

.app{ display:flex; min-height:100vh; }
.sidebar{
  width:260px;
  border-right:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  padding:16px;
  background: linear-gradient(180deg, hsla(var(--accentH) var(--accentS) var(--accentL) / 0.06), rgba(0,0,0,0));
  position:sticky;
  top:0;
  height:100vh;
}
.brand{
  padding:14px 12px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(12,6,19,0.6);
}
.brandTitle{ font-size:18px; letter-spacing:0.5px; color:var(--accent); }
.brandSub{ font-size:12px; opacity:0.8; margin-top:4px; }
.nav{ margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.navBtn{
  display:block;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
  background: rgba(12,6,19,0.45);
}
.navBtn:hover{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.25); }
.navBtn.active{
  border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.45);
  box-shadow: 0 0 0 1px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18), 0 0 24px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
}
.sidebarFoot{ position:absolute; bottom:14px; width:228px; opacity:0.9; }
.tiny{ font-size:11px; color:rgba(255,215,255,0.7); }
.slogan{ margin-top:8px; color:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.85); }

.main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.topbar{
  display:flex; gap:10px; align-items:center;
  padding:8px 14px;
  border-bottom:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  background: rgba(0,0,0,0.30);
}
.pill{
  padding:8px 10px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  border-radius:999px;
  font-size:12px;
  background: rgba(12,6,19,0.55);
}
.btn{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18);
  background: rgba(12,6,19,0.55);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.35); }
.btn.primary{ background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.35); }
.btn.ok{ background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16); border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.55); }
.btn.disabled{ opacity:0.45; cursor:not-allowed; }

.page{ padding:18px; overflow:auto; }
.pageHead{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:14px; }
h1{ margin:0; font-size:18px; color:var(--accent); }
h2{ margin:0 0 10px 0; font-size:14px; color:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.9); }
h3{ margin:14px 0 10px 0; font-size:13px; color:rgba(255,215,255,0.9); }
.muted{ color:rgba(255,215,255,0.70); }
.small{ font-size:12px; }
.row{ display:flex; align-items:center; gap:10px; }
.gap{ gap:10px; }

.grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:12px; }
.card{
  padding:14px;
  border-radius: var(--radius);
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  background: rgba(12,6,19,0.55);
  box-shadow: var(--shadow);
}
.cardTop{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.title{ font-size:14px; }
.badge{
  font-size:11px;
  padding:6px 8px;
  border-radius: 999px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.20);
  background: rgba(0,0,0,0.25);
}
.badge.s4{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.55); box-shadow: 0 0 18px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12); }
.badge.s3{ border-color: rgba(255,204,85,0.45); }
.badge.s2{ border-color: rgba(255,204,85,0.28); }

.kpis{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:10px; }
.kpis2{ grid-template-columns: repeat(2, 1fr); }
.kpi{
  padding:10px;
  border-radius: 14px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
  background: rgba(0,0,0,0.20);
}
.k{ font-size:11px; color:rgba(255,215,255,0.70); }
.v{ font-size:13px; margin-top:6px; color:rgba(255,215,255,0.95); }
.actions{ display:flex; gap:10px; margin-top:12px; }

.cols{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; align-items:start; }
@media(max-width:1100px){
  .cols{ grid-template-columns:1fr; }
  .sidebar{ position:static; height:auto; }
  .sidebarFoot{ position:static; width:auto; margin-top:18px; }
}

.panel{
  padding:14px;
  border-radius: var(--radius);
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  background: rgba(12,6,19,0.55);
  box-shadow: var(--shadow);
}

.formGrid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
label{ display:flex; flex-direction:column; gap:6px; font-size:12px; color:rgba(255,215,255,0.78); }
input,select{
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16);
  background: rgba(0,0,0,0.25);
  color:var(--text);
  outline:none;
}
input:focus,select:focus{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.40); box-shadow: 0 0 0 3px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); }

.table{ border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12); border-radius: 14px; overflow:hidden; }
.tr{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr 1.2fr 0.9fr 1fr 0.9fr 0.8fr;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
  align-items:center;
  font-size:12px;
}
.tr.head{ background: rgba(0,0,0,0.25); color:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.85); font-size:11px; }
.tr:last-child{ border-bottom:none; }

.chip{
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(255,215,255,0.18);
  text-align:center;
  font-size:11px;
}
.chip.safe{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.55); color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.95); }
.chip.tight{ border-color: rgba(255,204,85,0.55); color: rgba(255,204,85,0.95); }
.chip.danger{ border-color: rgba(255,59,59,0.55); color: rgba(255,59,59,0.95); }

.tag{
  display:inline-block;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16);
  background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.06);
  font-size:11px;
  margin-right:6px;
}

.gate{
  margin-top:12px;
  padding:12px;
  border-radius: 14px;
  border:1px solid rgba(255,215,255,0.14);
  background: rgba(0,0,0,0.22);
}
.gateTitle{ color:rgba(255,215,255,0.9); font-size:12px; margin-bottom:6px; }
.gate.ok{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.35); }
.gate.bad{ border-color: rgba(255,59,59,0.35); }

.spark{
  margin:0;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12);
  background: rgba(0,0,0,0.25);
  overflow:auto;
}


/* =============================
   Signals UI
   ============================= */
.signalsTop{ margin-bottom:10px; }
.signalsList{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }

.sigRow{ display:flex; justify-content:space-between; gap:12px; padding:10px 10px; border-radius:14px; border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.22); cursor:pointer; }
.sigRow:hover{ border-color: rgba(255,255,255,0.18); background: rgba(0,0,0,0.28); }
.sigLeft{ display:flex; flex-direction:column; gap:6px; min-width: 0; }
.sigPair{ display:flex; flex-direction:column; min-width:0; }
.sigSym{ font-weight:700; letter-spacing:0.2px; }
.sigMeta{ font-size:12px; color: rgba(255,255,255,0.65); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 360px; }
.sigBadges{ display:flex; gap:6px; flex-wrap:wrap; }

.sigRight{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; min-width: 120px; }
.sigConf{ font-weight:800; }
.sigTime{ font-size:12px; color: rgba(255,255,255,0.55); }
.sigChk{ font-size:12px; color: rgba(255,255,255,0.75); }

.sigMeter{ width:110px; height:7px; border-radius:999px; background: rgba(255,255,255,0.10); overflow:hidden; }
.sigMeterBar{ height:100%; width:0%; background: rgba(255,255,255,0.55); }

.badge{ display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; font-size:12px; border:1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.15); }
.badge.b-good{ border-color: rgba(60,255,140,0.35); color: rgba(180,255,215,0.95); }
.badge.b-bad{ border-color: rgba(255,80,80,0.35); color: rgba(255,200,200,0.95); }
.badge.b-warn{ border-color: rgba(255,190,80,0.35); color: rgba(255,230,190,0.95); }
.badge.b-hot{ border-color: rgba(255,120,230,0.35); color: rgba(255,220,250,0.95); }
.badge.b-muted{ border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.78); }

.drawer{ position:fixed; top:0; right:0; height:100vh; width:min(520px, 96vw); background: rgba(10,12,18,0.92); border-left:1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  display:flex; flex-direction:column; z-index: 50; }
.drawerHead{ display:flex; justify-content:space-between; align-items:center; padding:14px 14px; border-bottom:1px solid rgba(255,255,255,0.10); }
.drawerTitle{ display:flex; align-items:center; gap:10px; font-weight:800; }
.drawerBody{ padding:14px; overflow:auto; }
.drawerLevels{ display:grid; grid-template-columns: 1fr 1fr 2fr; gap:10px; }
.lvl{ border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); border-radius:14px; padding:10px; }
.lvlVal{ font-weight:800; margin-top:2px; }
.divider{ height:1px; background: rgba(255,255,255,0.10); margin:12px 0; }

.meter{ flex:1; height:8px; border-radius:999px; background: rgba(255,255,255,0.10); overflow:hidden; }
.meterBar{ height:100%; width:0%; background: rgba(255,255,255,0.55); }

.checkGroups{ display:flex; flex-direction:column; gap:12px; }
.checkGroup h3{ margin:0 0 6px 0; font-size:13px; color: rgba(255,255,255,0.78); }
.checkList{ display:flex; flex-direction:column; gap:6px; }
.checkRow{ display:flex; gap:10px; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.14); }
.checkRow.fail{ border-color: rgba(255,80,80,0.22); }
.checkRow.ok{ border-color: rgba(60,255,140,0.22); }
.checkIcon{ width:20px; display:flex; align-items:flex-start; justify-content:center; }
.checkLabel{ font-size:13px; }
.checkSub{ font-size:12px; color: rgba(255,255,255,0.60); margin-top:2px; }

.toast{ position:fixed; left:50%; bottom:18px; transform: translateX(-50%) translateY(10px); opacity:0; transition: opacity .2s ease, transform .2s ease;
  padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.9); z-index: 100; }
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0px); }


/* Charts */
.chart{border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.12); border-radius:14px; background:rgba(0,0,0,0.20);}
.axis{stroke:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.25); stroke-width:1;}
.line{fill:none; stroke:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.85); stroke-width:2;}
.dot{fill:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.9);}
.label{fill:rgba(255,215,255,0.70); font-size:11px; font-family: var(--mono);}
.barUp{fill:hsla(var(--accentH) var(--accentS) var(--accentL) / 0.45);}
.barDn{fill:rgba(255,59,59,0.45);}




/* Alerts */
.alert{padding:12px; border-radius:14px; border:1px solid rgba(255,215,255,0.14); background:rgba(0,0,0,0.22);}
.alertTitle{color:rgba(255,215,255,0.9); font-size:12px; margin-bottom:8px;}
.alert.bad{border-color: rgba(255,59,59,0.35);}

/* Copy-to-clipboard textarea */
textarea[data-copy="1"] {
  color: rgba(255,215,255, 1);
  font-family: inherit;
  width: 100%;
  resize: none;
  cursor: copy;
}

textarea.spark{
  font-family: inherit;
  width: 100%;
  resize: none;
  overflow: hidden;
  cursor: copy;
}
textarea.spark.copied{
  outline: none;
  box-shadow: 0 0 0 3px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.22);
  border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.55);
  background-image:
    radial-gradient(24px 24px at calc(100% - 18px) 18px, hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18), hsla(var(--accentH) var(--accentS) var(--accentL) / 0.0) 70%);
}

/* Pair autocomplete */
.pairDropdown{
  position:absolute;
  z-index:9999;
  border-radius: 14px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16);
  background: rgba(12,6,19,0.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: 320px;
  overflow-y:auto;
}
.pairRow{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  font-size:12px;
  cursor:pointer;
  border-bottom:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
}
.pairRow:last-child{ border-bottom:none; }
.pairRow:hover{ background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.06); }
.pairRow.active{ background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); }
.pairIcon{ width:18px; height:18px; border-radius:4px; background: rgba(0,0,0,0.25); object-fit: cover; flex: 0 0 auto; }
.pairText{ color: rgba(255,215,255,0.95); }

input.pairInput.valid{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.55); }
input.pairInput.invalid{ border-color: rgba(255,59,59,0.55); }
.pairHint.bad{ color: rgba(255,59,59,0.92); }
.pairHint.good{ color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.92); }

/* Chart page */
.tfBar{ display:flex; gap:8px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.tfBar .spacer{ flex:1; }
.btn.tf{ padding:6px 10px; border-radius:10px; }
.btn.tf.active{ box-shadow: 0 0 0 3px hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18); border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.38); }

.btn.tf.bull{
  border-color: rgba(0,255,136,0.55);
  color: rgba(0,255,136,0.95);
  background: rgba(0,255,136,0.10);
}
.btn.tf.bear{
  border-color: rgba(255,0,85,0.55);
  color: rgba(255,0,85,0.95);
  background: rgba(255,0,85,0.10);
}

.pairPickerPair.bull{ color: rgba(0,255,136,0.95); }
.pairPickerPair.bear{ color: rgba(255,0,85,0.95); }

.trendHud{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:10px 10px 0 10px;
  font-size:12px;
}
.trendRow{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; width:100%; }
.trendStrength{ display:flex; gap:10px; align-items:center; min-width:240px; }
.trendStrengthLabel{ opacity:0.7; }
.trendStrengthBar{
  position:relative;
  width:160px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  overflow:hidden;
}
.trendStrengthFill{
  height:100%;
  width:0%;
  background: rgba(255,255,255,0.45);
}
.trendStrengthPct{ min-width:34px; text-align:right; opacity:0.85; }
.trendComposite{ font-variant-numeric: tabular-nums; opacity:0.85; }
.trendAlign{ padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,0.14); opacity:0.9; }
.trendDiv{ opacity:0.85; }
.trendAlign.bull{ border-color: rgba(0,255,136,0.45); color: rgba(0,255,136,0.95); background: rgba(0,255,136,0.08); }
.trendAlign.bear{ border-color: rgba(255,0,85,0.45); color: rgba(255,0,85,0.95); background: rgba(255,0,85,0.08); }
.trendComposite.bull, .trendDiv.bull{ color: rgba(0,255,136,0.95); }
.trendComposite.bear, .trendDiv.bear{ color: rgba(255,0,85,0.95); }

.chartBox{ width:100%; min-height:420px; border-radius:16px; border:1px solid rgba(255,255,255,0.10); overflow:hidden; position:relative; }
.chartBox canvas{ display:block; width:100%; height:100%; }

.chartLoading{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); z-index:5; }
.chartSpinner{ width:42px; height:42px; border-radius:50%; border:3px solid rgba(255,215,255,0.18); border-top-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.85); animation: csSpin 0.9s linear infinite; }
@keyframes csSpin{ to{ transform: rotate(360deg); } }
.muted.good{ color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.92); }
.muted.bad{ color: rgba(255,59,59,0.92); }


/* Chart pair picker */
.pairPicker{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,0.10);border-radius:12px;background:rgba(255,255,255,0.03);cursor:pointer;user-select:none}
.pairPicker:hover{background:rgba(255,255,255,0.05)}
.pairPicker:focus{outline:2px solid rgba(255,255,255,0.18);outline-offset:2px}
.pairPickerIcon{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,0.06);object-fit:cover}
.pairPickerMain{display:flex;flex-direction:column;gap:2px;min-width:0}
.pairPickerPair{font-weight:700;letter-spacing:0.2px}
.pairPickerPrice{font-size:12px;opacity:0.8}
.pairPickerCaret{margin-left:auto;opacity:0.8}
.pairPickerSearch .pairInput{width:100%}

/* =====================================================
   Chart full-screen layout + off-canvas sidebar (Chart only)
   ===================================================== */

body.chart-full .app{ height: 100vh; }
body.chart-full main.main{ height: 100vh; }
body.chart-full section.page{ flex:1; height:auto; padding:0; overflow:hidden; }

/* Chart fills remaining viewport space; no dead gap below. */
body.chart-full #tvChart{ flex:1; min-height:0; margin: 0; }

body.chart-full .chartShell{
  height: 100%;
  display:flex;
  flex-direction:column;
  position: relative;
}

body.chart-full .chartControls{
  /* Overlay header so the chart can render up to the topbar/watchlist area. */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: none;
  background: transparent;
  pointer-events: none; /* enable only on interactive children */
}

/* Subtle backdrop behind the overlay controls for readability */
body.chart-full .chartControls::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

body.chart-full .chartControls > *{ position: relative; }
body.chart-full .chartControls .pairPicker,
body.chart-full .chartControls .tfBar,
body.chart-full .chartControls .pairPickerSearch{
  pointer-events: auto;
}

body.chart-full .chartControlsRow{
  display:flex;
  overflow: visible;
  align-items:center;
  gap: 10px;
  position: relative;
}

/* Timeframe controls tucked to the right */
body.chart-full .chartControlsRow{ justify-content: space-between; }
body.chart-full .chartControls .tfBar{
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
body.chart-full .chartControls .tfBar .spacer{ display:none; }

/* Compact chart header: keep everything inline to preserve vertical chart space. */
body.chart-full .chartControls .pairPicker{
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  gap: 8px;
}
body.chart-full .chartControls .pairPickerIcon{ width: 22px; height: 22px; }
body.chart-full .chartControls .pairPickerMain{
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
}
body.chart-full .chartControls .pairPickerPair{ font-size: 13px; line-height: 1; }
body.chart-full .chartControls .pairPickerLine2{
  font-size: 12px;
  gap: 6px;
  line-height: 1;
}
body.chart-full .chartControls .pairPickerPrice{ font-size: 12px; opacity: 0.85; }

/* Inline strength + heatmap + flags (single-line, no wrapping). */
body.chart-full .chartControls .pairPickerStrengthWrap{ width: 120px; }
body.chart-full .chartControls .pairPickerStrengthBar{ height: 5px; }
body.chart-full .chartControls .pairPickerStrengthNeedle{ top: -4px; height: 14px; }

body.chart-full .chartControls .pairPickerHeatmap{
  flex: 0 0 auto;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
body.chart-full .chartControls .pairPickerFlags{
  flex: 0 0 auto;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.chart-full .chartControls .pairPicker{ flex: 0 0 auto; min-width: 240px; }
/* Pair search: standalone window anchored to the pair picker (does not change control bar height). */
body.chart-full .chartControls .pairPickerSearch{
  position: fixed;
  top: 0;
  left: 0;
  width: min(520px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(12,18,14,0.98);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  z-index: 40;
  overflow: hidden;
  max-height: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 180ms ease, opacity 160ms ease, transform 180ms ease;
}

/* Chart page pair search results (standalone, inside the popup window) */
body.chart-full .pairPickerSearch .pairResults{
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.14);
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}
body.chart-full .chartControls .pairPickerSearch.open{
  max-height: 320px;
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}

body.chart-full .chartControls .tfBar{ margin: 0; }
body.chart-full .chartBox{ flex: 1; min-height: 0; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }

/* Small reset button (bottom-right of chart) */
body.chart-full .chartResetBtn{
  position:absolute;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,6,19,0.85);
  box-shadow: var(--shadow);
  color: rgba(255,215,255,0.95);
  cursor: pointer;
}
body.chart-full .chartResetBtn:hover{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.35); }

/* Off-canvas sidebar */
body.chart-full aside.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 60;
  /* Sidebar overlay must be fully opaque */
  background: var(--panel);
  transform: translateX(-102%);
  transition: transform 180ms ease;
  box-shadow: 0 24px 70px rgba(0,0,0,0.65);
}

body.chart-full.sidebar-open aside.sidebar{ transform: translateX(0%); }

.sidebarBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 55;
}

.sidebarToggle{
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,6,19,0.85);
  box-shadow: var(--shadow);
  color: rgba(255,215,255,0.95);
  cursor: pointer;
}

body.chart-full.sidebar-open .sidebarToggle{ left: 304px; }

/* Ensure the main content uses full width when sidebar is off-canvas */
body.chart-full .app{ grid-template-columns: 1fr; }


body.chart-full{ overflow:hidden; }
body.chart-full .chartShell{ overflow:hidden; }


/* =====================================================
   Mobile usability (all pages)
   Styling-only changes; desktop behavior preserved.
   ===================================================== */
@media (max-width: 760px){
  .app{ min-height:100vh; }
  /* Off-canvas sidebar on mobile (all pages) */
  aside.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(86vw, 320px);
    z-index: 60;
    transform: translateX(-102%);
    transition: transform 180ms ease;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0,0,0,0.65);
  }
  body.sidebar-open aside.sidebar{ transform: translateX(0%); }
  .sidebarFoot{ position:absolute; width: calc(100% - 32px); }
  .main{ width:100%; }

  /* Topbar: tighter, wrap nicely, keep tap targets */
  .topbar{
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .pill{ font-size: 11px; padding: 7px 9px; }

  /* Mobile menu button (hamburger in topbar) */
  .mobileSidebarToggle{
    display: inline-flex;
    align-items:center;
    justify-content:center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(12,6,19,0.85);
    box-shadow: var(--shadow);
    color: rgba(255,215,255,0.95);
    cursor: pointer;
  }

  /* Pages: reduce padding and avoid horizontal scroll */
  .page{ padding: 12px; }
  .grid{ grid-template-columns: 1fr; }
  .kpis{ grid-template-columns: 1fr; }
  .kpis2{ grid-template-columns: 1fr; }
  .formGrid{ grid-template-columns: 1fr; }
  .row{ flex-wrap: wrap; }

  /* Buttons/inputs: slightly larger for touch */
  .btn{ padding: 12px 14px; }
  input,select{ padding: 12px 12px; }

  /* Tables: allow sideways scroll instead of overflow clipping */
  .table{ overflow:auto; }
  .tr{ min-width: 740px; }
}

/* Hide mobile menu button on desktop */
.mobileSidebarToggle{ display:none; }

/* Chart page mobile tweaks */
@media (max-width: 760px){
  body.chart-full .chartControls{ padding: 10px 10px; gap: 10px; }
  body.chart-full .chartControlsRow{ gap: 8px; }
  body.chart-full .chartControls .pairPicker{ min-width: 190px; }
  body.chart-full .chartControls .tfBar{
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  body.chart-full .tfBtn{ flex: 0 0 auto; }
  body.chart-full .chartResetBtn{ right: 10px; bottom: 10px; width: 40px; height: 40px; }
  /* Prevent browser gesture scrolling on the chart canvas; JS handles pan/zoom */
  body.chart-full #tvCanvas{ touch-action: none; }
}


/* === Space background (global) === */
.spaceBgCanvas{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:0;
  pointer-events:none;
}
.app{ position:relative; z-index:1; }


html.space-disabled body{ background: var(--bgPlain) !important; }
#spaceBg{ position:fixed; inset:0; width:100vw; height:100vh; z-index:0; }
.modalBackdrop{ position:fixed; inset:0; background: rgba(0,0,0,0.60); z-index:40; }
.modal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow:auto;
  background:
    radial-gradient(600px 240px at 20% -10%, hsla(var(--accentH) var(--accentS) var(--accentL) / 0.20), rgba(0,0,0,0) 60%),
    radial-gradient(420px 220px at 110% 0%, hsla(var(--accentH) var(--accentS) var(--accentL) / 0.14), rgba(0,0,0,0) 55%),
    rgba(12,6,19,0.98);
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18);
  border-radius:16px;
  z-index:50;
  box-shadow: var(--shadow);
}
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px 10px;
  position:sticky;
  top:0;
  background: rgba(12,6,19,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10);
}
.modalTitle{ font-weight:700; }
.modalBody{ padding:12px 14px 8px; }
.modalBody .row{ display:flex; align-items:center; gap:10px; }
.modalBody hr{ border:0; border-top:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); margin:12px 0; }
.modalBody .grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px 12px; }
.modalBody label{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.modalBody input[type='checkbox']{ transform: scale(1.05); align-self:flex-start; }
.modalBody input[type='number']{
  width:100%;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.16);
  background: rgba(255,255,255,0.05);
  color: inherit;
}
.modalBody input[type='range']{
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  /* Rainbow preview behind the slider so you can see what you're choosing */
  background: linear-gradient(90deg,
    hsl(0 95% 62%),
    hsl(30 95% 62%),
    hsl(60 95% 58%),
    hsl(120 85% 55%),
    hsl(180 85% 55%),
    hsl(220 90% 60%),
    hsl(270 95% 62%),
    hsl(320 95% 62%),
    hsl(360 95% 62%)
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.modalBody input[type='range']::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  background: rgba(12,6,19,0.92);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
.modalBody input[type='range']::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  background: rgba(12,6,19,0.92);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
.modalBody .hint{ opacity:0.8; font-size:12px; margin-top:10px; }
.modalFoot{ display:flex; gap:10px; justify-content:flex-end; padding:10px 14px 14px; }
.modalFoot button{ padding:8px 12px; border-radius:12px; border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18); background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.06); color: inherit; }
.modalFoot button:hover{ background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.32); }

/* Modal close button matches theme */
.modalHead button{
  appearance:none;
  border:1px solid hsla(var(--accentH) var(--accentS) var(--accentL) / 0.18);
  background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.06);
  color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.90);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
}
.modalHead button:hover{ border-color: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.34); background: hsla(var(--accentH) var(--accentS) var(--accentL) / 0.10); }
@media (max-width: 520px){ .modalBody .grid2{ grid-template-columns:1fr; } }

/* Chart flush-left (no gap) */
body.chart-full .chartShell, body.chart-full #tvChart, body.chart-full .chartBox{ margin-left:0; padding-left:0; }
body.chart-full #tvCanvas{ margin:0; }

/* ===== Trend header v0.4.x ===== */
.pair-header{padding:10px 14px; display:flex; flex-direction:column; gap:6px;}
.pair-title{display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px;}
.pair-symbol{opacity:0.95;}
.pair-price{font-variant-numeric: tabular-nums;}
.pair-trend{font-weight:800; letter-spacing:0.4px;}
.pair-trend.bull{color:#00ff88;}
.pair-trend.bear{color:#ff0055;}
.pair-trend.neutral{color:#9aa0a6;}
.momentum-accel{font-weight:800; margin-left:6px;}
.momentum-accel.up{color:#00ff88;}
.momentum-accel.down{color:#ff0055;}

.pair-strength-wrap{width:320px; max-width:100%;}
.strength-bar{position:relative; height:7px; border-radius:5px;
  background: linear-gradient(to right, #ff0055 0%, #777 50%, #00ff88 100%);
  overflow:hidden;
}
.strength-needle{position:absolute; top:-5px; width:2px; height:18px; background:#fff; left:50%;
  box-shadow:0 0 8px rgba(255,255,255,0.45);
  transition:left 180ms ease;
}

.trend-heatmap{display:flex; gap:4px; flex-wrap:wrap;}
.heatmap-cell{width:28px; height:14px; border-radius:3px; font-size:9px; line-height:14px; text-align:center; font-weight:800; color:#111;}
.heatmap-cell.neutral{background:#777; color:#111;}
.heatmap-cell.bull{background:#00ff88; color:#06120c;}
.heatmap-cell.bear{background:#ff0055; color:#1b060a;}
/* Compact trend heatmap pill (1m..1d) */
/* Horizontal timeframe trend pill (1m..1d) — traffic-light style */
body.chart-full .trendHeatmapPill{
  display:flex;
  align-items:stretch;
  padding:0;
  height:26px; /* match chip height */
  border-radius:999px;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
body.chart-full .trendHeatmapGrid{
  display:flex;
  flex:1;
  width:100%;
  height:100%;
  gap:0;
  flex-wrap:nowrap;
  align-items:stretch;
}
body.chart-full .trendHeatmapGrid .heatmap-cell{
  flex:1;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  line-height:1;
  border-radius:0;
  border-right: 1px solid rgba(0,0,0,0.25);
}
body.chart-full .trendHeatmapGrid .heatmap-cell:last-child{
  border-right:none;
}


.structure-flags{display:flex; gap:10px; flex-wrap:wrap; font-size:11px; opacity:0.95;}
.flag{padding:2px 6px; border-radius:10px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12);}
.flag.on{background:rgba(255,255,255,0.12);}
.flag.good{border-color:rgba(0,255,136,0.35);}
.flag.bad{border-color:rgba(255,0,85,0.35);}

@keyframes alignFlash{0%{box-shadow:0 0 0 rgba(255,0,85,0);} 50%{box-shadow:0 0 22px rgba(255,0,85,0.35);} 100%{box-shadow:0 0 0 rgba(255,0,85,0);}}
.pair-title.align-break{animation:alignFlash 600ms ease;}

/* background hue fade */
body.bg-bull{ background-color: rgba(0,255,136, calc(0.03 * var(--bgHueMag,0))); }
body.bg-bear{ background-color: rgba(255,0,85, calc(0.03 * var(--bgHueMag,0))); }
body.bg-neutral{}

/* ===== Pair picker trend block (v0.4.5) ===== */
.pairPicker{min-height:64px;}
.pairPickerMain{display:flex; flex-direction:column; gap:4px; padding:2px 0;}
.pairPickerLine2{display:flex; align-items:center; gap:8px; font-weight:700; font-size:13px;}
.pairPickerTrend{font-weight:800; letter-spacing:0.3px;}
.pairPickerTrend.bull{color:#00ff88;}
.pairPickerTrend.bear{color:#ff0055;}
.pairPickerTrend.neutral{color:#9aa0a6;}
.pairPickerAccel{font-weight:900;}
.pairPickerAccel.up{color:#00ff88;}
.pairPickerAccel.down{color:#ff0055;}

.pairPickerStrengthWrap{width:210px; max-width:100%;}
.pairPickerStrengthBar{position:relative; height:6px; border-radius:5px;
  background: linear-gradient(to right, #ff0055 0%, #777 50%, #00ff88 100%);
  overflow:hidden;
}
.pairPickerStrengthNeedle{position:absolute; top:-5px; width:2px; height:16px; background:#fff; left:50%;
  box-shadow:0 0 8px rgba(255,255,255,0.45);
  transition:left 160ms ease;
}

.pairPickerHeatmap{display:flex; gap:3px; flex-wrap:wrap;}
.pairHeatCell{width:24px; height:12px; border-radius:3px; font-size:9px; line-height:12px; text-align:center; font-weight:900; color:#111;}
.pairHeatCell.neutral{background:#777;}
.pairHeatCell.bull{background:#00ff88; color:#06120c;}
.pairHeatCell.bear{background:#ff0055; color:#1b060a;}

.pairPickerFlags{display:flex; gap:6px; flex-wrap:wrap; font-size:10px; opacity:0.95;}
.pairFlag{padding:1px 6px; border-radius:10px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12);}
.pairFlag.good{border-color:rgba(0,255,136,0.35);}
.pairFlag.bad{border-color:rgba(255,0,85,0.35);}

@keyframes alignFlash2{0%{box-shadow:0 0 0 rgba(255,0,85,0);} 50%{box-shadow:0 0 18px rgba(255,0,85,0.35);} 100%{box-shadow:0 0 0 rgba(255,0,85,0);}}
.pairPicker.align-break{animation:alignFlash2 600ms ease;}

/* v5.3.4 — EXTRA COMPACT CHART HEADER (ensure visible even if body class changes) */
body.chart-full .chartControls{ gap: 6px; padding: 4px 8px 4px 0px; }
body.chart-full .chartControlsRow{ gap: 8px; }
body.chart-full .chartControls .pairPicker{
  min-height: 38px;
  padding: 4px 8px;
  border-radius: 10px;
}
body.chart-full .chartControls .pairPickerIcon{ width: 20px; height: 20px; }
body.chart-full .chartControls .pairPickerPair{ font-size: 13px; line-height: 16px; }
body.chart-full .chartControls .pairPickerLine1{ gap: 8px; }
body.chart-full .chartControls .pairPickerPrice{ font-size: 13px; }
body.chart-full .chartControls .pairPickerTrend{ font-size: 12px; }
body.chart-full .chartControls .pairPickerTrendBar{ margin-top: 2px; }

/* Tight TF bar buttons */
body.chart-full .tfBar{ gap: 6px; }
body.chart-full .tfBar .btn.tf{ padding: 4px 8px; font-size: 12px; border-radius: 10px; }


/* ============================
   v5.3.8 — Overlay header refinements
   - Trend bar under price
   - Remove comp/RSI pills (HUD removed in chart.pug)
   - TF dropdown + MEXC symbol floated right
   ============================ */

body.chart-full .chartControlsRow{
  /* Pair header + TF dropdown are standalone overlay elements (no connecting div). */
  position: relative;
  height: 0;
  padding: 0;
  display:block;
}

/* Make the pair header stand alone (no "connected" block feel) */
body.chart-full .pairPicker{
  pointer-events:auto;
  position: absolute;
  top: 0;
  left: 0;
  border-radius:14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Pair title line 1: Pair + Price + TrendLabel */
body.chart-full .pairPickerLine1{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:nowrap;
}
body.chart-full .pairPickerTrendBar{
  height:8px;
  border-radius:999px;
  position: relative;
  /* Fixed red → gray → green bar */
  background: linear-gradient(to right, #ff0055 0%, #777 50%, #00ff88 100%);
  overflow:hidden;
  width: 100%;
}
body.chart-full .pairPickerTrendFill{
  height:100%;
  width:0%;
  border-radius:999px;
  /* keep element for JS, but visually rely on the fixed gradient */
  background: rgba(255,255,255,0.0);
}

/* Needle indicates current composite direction/strength on the trend bar */
body.chart-full .pairPickerTrendNeedle{
  position:absolute;
  top: -4px;
  left: 50%;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  transform: translateX(-1px);
}

/* Right side floating controls */
body.chart-full .chartTopRight{
  pointer-events:auto;
  position: absolute;
  top: 0;
  right: 0;
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
body.chart-full .tfDropdown{
  position:relative;
}
body.chart-full .tfToggle{
  padding:6px 10px;
  border-radius:10px;
}
body.chart-full .tfMenu{
  position:absolute;
  top: calc(100% + 6px);
  right: 0;
  display:none;
  padding:6px;
  border-radius:12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  min-width: 78px;
  z-index: 60;
}
body.chart-full .tfMenu .tfOpt{
  width:100%;
  text-align:right;
  margin:2px 0;
  padding:6px 8px;
  border-radius:10px;
}
body.chart-full .tfMenu .tfOpt:hover{
  background: rgba(255,255,255,0.08);
}

/* Drawings dropdown */
body.chart-full .drawDropdown{
  position:relative;
}
body.chart-full .drawToggle{
  padding:6px 10px;
  border-radius:10px;
}
body.chart-full .drawMenu{
  position:absolute;
  top: calc(100% + 6px);
  right: 0;
  display:none;
  padding:10px;
  border-radius:12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  min-width: 140px;
  z-index: 60;
}
body.chart-full .drawRow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: rgba(217,255,231,0.92);
  user-select:none;
  cursor:pointer;
}
body.chart-full .drawRow input{ cursor:pointer; }

/* Hide legacy strength needle container if still present from older markup */
body.chart-full .pairPickerStrengthWrap{ display:none !important; }


body.chart-full .drawRow{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 4px;
  user-select:none;
  cursor:pointer;
  font-size: 12px;
  color: rgba(235,255,245,0.92);
}
body.chart-full .drawRow input{
  cursor:pointer;
}
body.chart-full .drawDivider{
  height:1px;
  margin:6px 0;
  background: rgba(255,255,255,0.12);
}
body.chart-full .drawAction{
  margin-top: 6px;
  width: 100%;
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(217,255,231,0.92);
  cursor: pointer;
}
body.chart-full .drawAction:hover{
  background: rgba(255,255,255,0.10);
}

body.chart-full .drawMenu{
  min-width: 220px;
}

/* ----------------------------
   Watchlist ticker (topbar)
   ---------------------------- */

.watchTicker{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 1;
  overflow-x:auto;
  overflow-y:hidden;
  padding: 2px 2px;
  scrollbar-width: thin;
}

.watchTicker::-webkit-scrollbar{ height: 6px; }

.tickerPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(235,255,245,0.92);
  white-space: nowrap;
  cursor: pointer;
  user-select:none;
}

.tickerPill:hover{
  background: rgba(255,255,255,0.06);
}

.tickerIcon{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
}

.tickerName{ font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }
.tickerPair{ font-size: 11px; opacity: 0.8; margin-left: -4px; }
.tickerPrice{ font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.95; }
.tickerSep{ opacity: 0.35; }
