:root {
  --void: #07010f;
  --text: #f7f4ff;
  --muted: rgba(214, 198, 240, 0.72);
  --ion: #5ef6ff;
  --plasma: #ff4dad;
  --gold: #ffd56a;
  --violet: #9b7dff;
  --call: #3ef6c8;
  --put: #ff5a9a;
  --up: #2ee6a8;
  --down: #ff5d78;
  --live: #2ee6a8;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-out: cubic-bezier(0.32, 0.72, 0, 1);
  --lx: 50%;
  --ly: 18%;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-deep: rgba(16, 8, 32, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --aside-w: 248px;
  --aside-rail: 76px;
  --burger: 44px;
}

@view-transition {
  navigation: auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  margin: 6px 0;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(180, 160, 255, 0.22));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  min-height: 36px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(158, 214, 255, 0.38));
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--ion), var(--violet));
  background-clip: padding-box;
}
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment,
*::-webkit-scrollbar-button:increment,
*::-webkit-scrollbar-button:decrement {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
*::-webkit-scrollbar-corner { background: transparent; }

::view-transition-old(root) {
  animation: vtOut 0.42s var(--spring) both;
}
::view-transition-new(root) {
  animation: vtIn 0.55s var(--spring) both;
}

::view-transition-old(aside-nav),
::view-transition-new(aside-nav) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-group(aside-nav) {
  animation: none;
}

@keyframes vtOut {
  to { opacity: 0; transform: translateX(-18px) scale(0.985); filter: blur(8px); }
}
@keyframes vtIn {
  from { opacity: 0; transform: translateX(28px) scale(0.98); filter: blur(10px); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--void);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

select,
select option {
  color-scheme: dark;
  background-color: #0c0618;
  color: #f7f4ff;
}

body.has-aside {
  display: flex;
  align-items: stretch;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(155, 125, 255, 0.38), transparent 52%),
    radial-gradient(ellipse 70% 50% at 112% 88%, rgba(255, 77, 173, 0.2), transparent 48%),
    radial-gradient(ellipse 60% 42% at -8% 92%, rgba(94, 246, 255, 0.14), transparent 50%),
    var(--void);
}

.aurora {
  position: fixed;
  inset: -24%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 77, 173, 0.22), transparent 34%),
    radial-gradient(circle at 74% 52%, rgba(94, 246, 255, 0.18), transparent 36%),
    radial-gradient(circle at 50% 82%, rgba(255, 213, 106, 0.1), transparent 38%);
  filter: blur(48px) saturate(1.15);
  animation: drift 18s ease-in-out infinite alternate;
}

.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  animation: blobFloat 16s var(--spring) infinite;
}
.blob.b1 { top: 8%; left: -8%; background: #8a5cff; animation-delay: -2s; }
.blob.b2 { right: -12%; top: 36%; background: #3ef6ff; opacity: 0.28; animation-duration: 21s; }
.blob.b3 { left: 28%; bottom: -16%; background: #ff4dad; opacity: 0.3; animation-duration: 19s; animation-delay: -7s; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0.55;
}

.aside-burger {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 120;
  width: var(--burger);
  height: var(--burger);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  background-color: var(--glass-deep);
  backdrop-filter: saturate(190%) blur(28px);
  -webkit-backdrop-filter: saturate(190%) blur(28px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.45s var(--spring), border-color 0.3s ease, box-shadow 0.45s var(--spring);
}
.aside-burger:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.38);
}
.aside-burger:active { transform: scale(0.92); }
.aside-burger i {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 8px rgba(94, 246, 255, 0.35);
  transition: transform 0.5s var(--spring), opacity 0.35s ease, width 0.4s var(--spring);
}

body:not(.aside-collapsed) .aside-burger i:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}
body:not(.aside-collapsed) .aside-burger i:nth-child(2) {
  opacity: 0;
  width: 8px;
}
body:not(.aside-collapsed) .aside-burger i:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

@media (min-width: 901px) {
  body:not(.aside-collapsed) .aside-burger i:nth-child(1) { transform: none; }
  body:not(.aside-collapsed) .aside-burger i:nth-child(2) { opacity: 1; width: 16px; }
  body:not(.aside-collapsed) .aside-burger i:nth-child(3) { transform: none; }
  body:not(.aside-collapsed) .aside-burger:hover i:nth-child(1),
  body:not(.aside-collapsed) .aside-burger:hover i:nth-child(3) { width: 12px; }
}

.aside-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 0, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--spring);
}

.aside {
  --w: var(--aside-w);
  width: var(--w);
  flex: 0 0 var(--w);
  height: 100dvh;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  background-color: rgba(10, 4, 22, 0.55);
  backdrop-filter: saturate(190%) blur(42px);
  -webkit-backdrop-filter: saturate(190%) blur(42px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    18px 0 50px rgba(0, 0, 0, 0.18);
  view-transition-name: aside-nav;
  transition:
    width 0.55s var(--spring),
    flex-basis 0.55s var(--spring),
    transform 0.55s var(--spring),
    box-shadow 0.45s var(--spring);
  overflow: hidden;
}

body.aside-collapsed {
  --aside-w: var(--aside-rail);
}

.aside-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 16px 14px 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.aside-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
  background: conic-gradient(from 140deg, var(--ion), var(--violet), var(--plasma), var(--gold), var(--ion));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(255, 77, 173, 0.3);
  animation: spin 14s linear infinite;
  position: relative;
}
.aside-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 46%);
}
.aside-copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  max-width: 160px;
  transform: translateX(0);
  transition: opacity 0.28s ease, max-width 0.5s var(--spring), transform 0.5s var(--spring);
}
.aside-copy b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.aside-copy span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
body.aside-collapsed .aside-copy {
  opacity: 0;
  max-width: 0;
  transform: translateX(-8px);
}
body.aside-collapsed .aside-brand {
  padding-left: 16px;
  justify-content: center;
}
body.aside-collapsed .aside-mark { display: none; }

.aside-nav {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow: auto;
}
.aside-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 4px;
  transition: opacity 0.25s ease;
}
body.aside-collapsed .aside-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }

.aside-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  color: #e8e0f6;
  text-decoration: none;
  border: 1px solid transparent;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.4s var(--spring),
    background 0.35s var(--spring),
    border-color 0.35s var(--spring),
    box-shadow 0.4s var(--spring);
}
.aside-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--lx) var(--ly), rgba(255, 255, 255, 0.18), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.aside-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.aside-link:hover::before { opacity: 1; }
.aside-link:active { transform: scale(0.97); }
.aside-link.on {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
}
.aside-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--ion);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.aside-ico svg { width: 18px; height: 18px; display: block; }
.aside-ico.ico-spark { color: var(--ion); }
.aside-ico.ico-spark .spark-core { color: var(--gold); }
.aside-ico.ico-candles .c-up { color: var(--up); }
.aside-ico.ico-candles .c-dn { color: var(--down); }
.aside-ico.ico-plus { color: var(--violet); }
.aside-ico.ico-wallet { color: var(--gold); }
.aside-ico.ico-future { color: var(--plasma); }
.aside-ico.ico-logout { color: #ff9aab; }
.aside-link.on .aside-ico.ico-wallet { color: var(--gold); }
.aside-link.on .aside-ico.ico-future { color: #fff; }
.aside-link.on .aside-ico {
  background: linear-gradient(180deg, rgba(94, 246, 255, 0.34), rgba(155, 125, 255, 0.2));
  border-color: rgba(94, 246, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 16px rgba(94, 246, 255, 0.22);
}
.aside-link.on .aside-ico.ico-spark { color: #fff; }
.aside-link.on .aside-ico.ico-spark .spark-core { color: var(--gold); }
.aside-link.on .aside-ico.ico-candles .c-up { color: var(--up); }
.aside-link.on .aside-ico.ico-candles .c-dn { color: var(--down); }
.aside-link strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.aside-link em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  margin-top: 1px;
}
.aside-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  max-width: 170px;
  transition: opacity 0.25s ease, max-width 0.45s var(--spring);
}
body.aside-collapsed .aside-nav {
  align-items: center;
  padding: 14px 0;
}
body.aside-collapsed .aside-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}
body.aside-collapsed .aside-link {
  width: 54px;
  justify-content: center;
  gap: 0;
  padding: 11px;
}

.aside-foot {
  padding: 10px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.aside-collapsed .aside-foot {
  opacity: 1;
  height: auto;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
  display: flex;
  justify-content: center;
}

.page-main {
  flex: 1;
  min-width: 0;
  position: relative;
  view-transition-name: page-main;
  animation: pageIn 0.7s var(--spring) both;
}
html:active-view-transition .page-main { animation: none; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

body.page-chart {
  height: 100%;
  overflow: hidden;
}
body.page-chart.has-aside {
  height: 100%;
  min-height: 100%;
}
html.page-chart,
html:has(body.page-chart) { height: 100%; }
body.page-chart .page-main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.page-money .page-main {
  overflow: auto;
  min-height: 100dvh;
}
body.page-money .page-main > .app {
  position: relative;
  z-index: 3;
  padding: 22px 22px 40px;
  max-width: 1280px;
}
body.page-future .page-main {
  overflow: auto;
  min-height: 100dvh;
}
body.page-future .page-main > .app {
  position: relative;
  z-index: 3;
  padding: 22px 22px 48px;
  max-width: 1120px;
  width: 100%;
}

body.page-chart .page-main > .app {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-chart .top {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px;
  flex-wrap: nowrap;
  z-index: 32;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  background-color: rgba(10, 4, 22, 0.42);
  backdrop-filter: saturate(190%) blur(32px);
  -webkit-backdrop-filter: saturate(190%) blur(32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.page-chart .top-left {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
body.page-chart .top-right {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
body.page-chart .top-cluster {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
body.page-chart .gp {
  position: relative;
  min-width: 0;
}
body.page-chart .gp-asset { flex: 1 1 220px; max-width: 360px; }
body.page-chart .gp-mini { flex: 0 0 148px; width: 148px; }
body.page-chart .gp-quote { flex: 0 0 148px; width: 148px; }
body.page-chart .gp-live { flex: 0 0 auto; }

body.page-chart .gp-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
body.page-chart .gp-ico svg { width: 15px; height: 15px; display: block; }
body.page-chart .ico-market { color: var(--ion); }
body.page-chart .ico-quote { color: var(--gold); }
body.page-chart .ico-tf { color: var(--violet); }
body.page-chart .ico-candles .c-up { color: var(--up); }
body.page-chart .ico-candles .c-dn { color: var(--down); }
body.page-chart .gp-box.is-loading .gp-ico { animation: pulse 1.1s ease-in-out infinite; }

body.page-chart .gp-box {
  height: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: var(--glass-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: saturate(190%) blur(28px);
  -webkit-backdrop-filter: saturate(190%) blur(28px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--spring), border-color 0.3s var(--spring), box-shadow 0.4s var(--spring);
}
body.page-chart .gp-box:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
body.page-chart .gp-box:active { transform: scale(0.985); }
body.page-chart .gp-box.is-static {
  cursor: default;
  justify-content: flex-start;
}
body.page-chart .gp-box.is-static:hover,
body.page-chart .gp-box.is-static:active {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
}
body.page-chart .gp.open .gp-box,
body.page-chart .gp-box:focus-visible {
  outline: none;
  border-color: rgba(155, 125, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(155, 125, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
body.page-chart .gp-asset.is-empty .gp-box {
  border-color: rgba(94, 246, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 18px rgba(94, 246, 255, 0.12);
}
body.page-chart .gp-asset.is-empty .gp-name { color: var(--muted); font-weight: 650; }
body.page-chart .gp.open .chev { transform: rotate(180deg); }
body.page-chart .chev {
  color: var(--muted);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.45s var(--spring);
}
body.page-chart .gp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body.page-chart .sb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 10px var(--ion);
  flex-shrink: 0;
}
body.page-chart .gp-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}
body.page-chart .gp-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-chart .gp-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
body.page-chart .gp-asset .gp-kicker { display: none; }
body.page-chart .gp-asset.is-empty .gp-kicker { display: block; }
body.page-chart .gp-asset.open .gp-kicker { display: none; }
body.page-chart .gp-quote .gp-kicker { display: none; }
body.page-chart .gp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
body.page-chart .gp-change { font-weight: 700; font-variant-numeric: tabular-nums; }
body.page-chart .gp-change.up { color: var(--up); }
body.page-chart .gp-change.down { color: var(--down); }
body.page-chart .gp-change.off { color: var(--down); }
body.page-chart .gp-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.page-chart .gp-payout {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
body.page-chart .price-now {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.35s var(--spring);
}
body.page-chart .price-now.up { color: var(--up); }
body.page-chart .price-now.down { color: var(--down); }
body.page-chart .chg {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

body.page-chart .gp-search {
  display: none;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 700 14px/1.2 Inter, sans-serif;
  outline: none;
}
body.page-chart .gp-asset.open .gp-name { display: none; }
body.page-chart .gp-asset.open .gp-search { display: block; }

body.page-chart .gp-payout:empty,
body.page-chart #assetCat:empty,
body.page-chart .gp-change:empty,
body.page-chart .chg:empty { display: none; }

body.page-chart .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  color: var(--live);
  background: rgba(46, 230, 168, 0.1);
}
body.page-chart .badge.off {
  color: var(--gold);
  border-color: rgba(255, 213, 106, 0.3);
  background: rgba(255, 213, 106, 0.1);
}
body.page-chart .badge.dead {
  color: var(--down);
  border-color: rgba(255, 93, 120, 0.3);
  background: rgba(255, 93, 120, 0.1);
}
body.page-chart .badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}
body.page-chart .gp-live .gp-box { padding: 8px 12px; }
body.chart-idle .gp-quote,
body.chart-idle .price-tag { display: none; }

body.page-chart .gp-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  max-height: min(62dvh, 440px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: rgba(12, 6, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: saturate(190%) blur(36px);
  -webkit-backdrop-filter: saturate(190%) blur(36px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.4s var(--spring), transform 0.45s var(--spring), visibility 0.4s;
}
body.page-chart .gp.open .gp-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
body.page-chart .gp-asset .gp-menu { width: max(100%, 380px); max-width: min(94vw, 420px); }
body.page-chart .gp-mini .gp-menu { min-width: 168px; }
body.page-chart .gp-tools {
  padding: 8px 8px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
body.page-chart .gp-tools .type-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 7px 4px;
  font-size: 11px;
  text-align: center;
}
body.page-chart .opt-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
body.page-chart .opt-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
body.page-chart .opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s var(--spring);
}
body.page-chart .opt:hover,
body.page-chart .opt.sel { background: rgba(255, 255, 255, 0.08); }
body.page-chart .opt.closed { opacity: 0.72; }
body.page-chart .opt-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.page-chart .opt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 8px var(--ion);
  flex-shrink: 0;
}
body.page-chart .opt.closed .opt-dot { background: #8a7a9a; box-shadow: none; }
body.page-chart .opt-name { font-size: 13px; font-weight: 650; display: block; }
body.page-chart .opt-meta { display: flex; gap: 8px; margin-top: 2px; font-size: 11px; color: var(--muted); }
body.page-chart .opt-change.up { color: var(--up); }
body.page-chart .opt-change.down, .opt-change.off { color: var(--down); }
body.page-chart .gp-menu.gp-menu-grid { display: grid; }
body.page-chart .opt-closed-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8aa0;
}
body.page-chart .gp-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  max-height: none;
}
body.page-chart .gp-menu-list { padding: 8px; max-height: 320px; overflow: auto; }
body.page-chart .gp-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 6px;
  font: 700 12px/1 Inter, sans-serif;
  cursor: pointer;
  transition: transform 0.3s var(--spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
body.page-chart .gp-menu-list .gp-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
}
body.page-chart .gp-item:hover { color: #fff; border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
body.page-chart .gp-item.on {
  color: #120816;
  background: linear-gradient(180deg, #ffffff, #dccfff);
  border-color: rgba(255, 255, 255, 0.7);
}
body.page-chart .gp-item:active { transform: scale(0.96); }

body.page-chart .ind-btn {
  min-height: 56px;
  min-width: 108px;
  padding: 8px 14px 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: var(--glass-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: saturate(190%) blur(28px);
  -webkit-backdrop-filter: saturate(190%) blur(28px);
  transition: transform 0.4s var(--spring), border-color 0.3s ease, box-shadow 0.4s ease;
  text-align: left;
}
body.page-chart .ind-btn-ico {
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--ion);
}
body.page-chart .ind-btn .gp-text { min-width: 0; }
body.page-chart .ind-btn .gp-kicker { display: block; }
body.page-chart .ind-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
body.page-chart .ind-btn.open {
  color: #fff;
  border-color: rgba(94, 246, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(94, 246, 255, 0.12);
}

body.page-chart .stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
body.page-chart .chart-boot {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  background: rgba(7, 1, 15, 0.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: opacity 0.5s var(--spring), visibility 0.5s;
}
body.page-chart .chart-boot.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.page-chart .boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: 24px;
  min-width: min(280px, 86vw);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: rgba(16, 8, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: iosPop 0.55s var(--spring) both;
}
body.page-chart .chart-boot.hide .boot-card { animation: none; }
body.page-chart .boot-orb {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
body.page-chart .boot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--ion);
  border-right-color: var(--violet);
  animation: spin 1.1s linear infinite;
}
body.page-chart .boot-ring.delay {
  inset: 8px;
  border-top-color: var(--plasma);
  border-right-color: var(--gold);
  animation-duration: 1.7s;
  animation-direction: reverse;
}
body.page-chart .boot-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--ion), var(--violet), var(--plasma), var(--gold), var(--ion));
  box-shadow: 0 0 18px rgba(94, 246, 255, 0.45);
  animation: pulse 1.4s ease-in-out infinite;
}
body.page-chart .boot-msg {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}
body.page-chart .boot-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}
body.page-chart .boot-cta {
  display: none;
  margin-top: 2px;
  border: 1px solid rgba(94, 246, 255, 0.35);
  background: linear-gradient(180deg, rgba(94, 246, 255, 0.22), rgba(155, 125, 255, 0.12));
  color: #fff;
  font: 800 12px/1 Inter, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
body.page-chart .boot-cta:hover { border-color: rgba(94, 246, 255, 0.55); }
body.page-chart .chart-boot.pick .boot-cta { display: inline-flex; }
body.page-chart .chart-boot.pick .boot-ring,
body.page-chart .chart-boot.pick .boot-bar { display: none; }
body.page-chart .chart-boot.pick { cursor: pointer; }
body.page-chart .chart-boot:not(.pick) .boot-cta { display: none; }
body.page-chart .boot-bar {
  width: 140px;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
body.page-chart .boot-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ion), var(--violet), var(--plasma));
  animation: bootSlide 1.2s var(--spring) infinite;
}
body.page-chart .chart-boot.err .boot-msg { color: var(--down); }
body.page-chart .chart-boot.err .boot-bar i { animation: none; width: 100%; background: var(--down); }
@keyframes bootSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(350%); }
}
body.page-chart .chart-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: transparent;
}
body.page-chart #chart { position: absolute; inset: 0; }
body.page-chart #indPanes {
  flex: 0 0 auto;
  background: transparent;
  display: flex;
  flex-direction: column;
}
body.page-chart .ind-pane {
  position: relative;
  height: 132px;
  background: rgba(7, 1, 15, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.page-chart .ind-pane.has-time { height: 160px; }
body.page-chart .chart-wm {
  position: absolute;
  left: 12px;
  bottom: 36px;
  z-index: 6;
  pointer-events: none;
  user-select: none;
  font: 800 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

body.page-chart .price-tag {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  transform: translateY(-100px);
  opacity: 0;
  min-width: 92px;
  width: max-content;
  max-width: 128px;
  text-align: left;
  padding: 6px 10px 6px 12px;
  border-radius: 12px 0 0 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(22, 12, 38, 0.92), rgba(10, 4, 20, 0.88));
  border: 1px solid rgba(46, 230, 168, 0.42);
  border-right: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  transition: opacity 0.25s var(--spring), border-color 0.35s ease, box-shadow 0.35s ease;
}
body.page-chart .price-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 99px;
  background: var(--up);
  box-shadow: 0 0 10px var(--up);
}
body.page-chart .price-tag.down {
  border-color: rgba(255, 93, 120, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 28px rgba(255, 93, 120, 0.18);
}
body.page-chart .price-tag.down::before {
  background: var(--down);
  box-shadow: 0 0 10px var(--down);
}
body.page-chart .price-tag .pt-px {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--up);
  padding-left: 2px;
}
body.page-chart .price-tag.down .pt-px { color: var(--down); }
body.page-chart .price-tag .pt-cd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(247, 244, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body.page-chart .price-tag .pt-cd svg {
  width: 10px;
  height: 10px;
  display: block;
  opacity: 0.85;
}
body.page-chart .price-tag.urgent .pt-cd {
  color: var(--gold);
  border-color: rgba(255, 213, 106, 0.35);
  background: rgba(255, 213, 106, 0.12);
}

body.page-chart .ind-toast {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  width: min(340px, 100%);
  padding: 12px 14px 10px;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: rgba(14, 8, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: saturate(190%) blur(28px);
  -webkit-backdrop-filter: saturate(190%) blur(28px);
  animation: toastIn 0.55s var(--spring) both;
  transform-origin: top right;
}
body.page-chart .ind-toast.out {
  animation: toastOut 0.4s var(--spring) both;
  pointer-events: none;
}
body.page-chart .ind-toast-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(94, 246, 255, 0.22), transparent 58%);
}
body.page-chart .ind-toast.tone-call {
  border-color: rgba(46, 230, 168, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 40px rgba(46, 230, 168, 0.16);
}
body.page-chart .ind-toast.tone-call .ind-toast-glow {
  background: radial-gradient(circle at 80% 0%, rgba(46, 230, 168, 0.32), transparent 58%);
}
body.page-chart .ind-toast.tone-put {
  border-color: rgba(255, 93, 120, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 40px rgba(255, 93, 120, 0.16);
}
body.page-chart .ind-toast.tone-put .ind-toast-glow {
  background: radial-gradient(circle at 80% 0%, rgba(255, 93, 120, 0.32), transparent 58%);
}
body.page-chart .ind-toast.tone-pre {
  border-color: rgba(255, 213, 106, 0.42);
}
body.page-chart .ind-toast.tone-pre .ind-toast-glow {
  background: radial-gradient(circle at 80% 0%, rgba(255, 213, 106, 0.28), transparent 58%);
}
body.page-chart .ind-toast-h {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
body.page-chart .ind-toast-ico {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ion);
}
body.page-chart .ind-toast.tone-call .ind-toast-ico { color: var(--up); background: rgba(46, 230, 168, 0.16); }
body.page-chart .ind-toast.tone-put .ind-toast-ico { color: var(--down); background: rgba(255, 93, 120, 0.16); }
body.page-chart .ind-toast.tone-pre .ind-toast-ico { color: var(--gold); background: rgba(255, 213, 106, 0.16); }
body.page-chart .ind-toast-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}
body.page-chart .ind-toast-side {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ion);
}
body.page-chart .ind-toast.tone-call .ind-toast-side { color: #04140a; background: var(--up); }
body.page-chart .ind-toast.tone-put .ind-toast-side { color: #1a0408; background: var(--down); }
body.page-chart .ind-toast.tone-pre .ind-toast-side { color: #1a1404; background: var(--gold); }
body.page-chart .ind-toast-time {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
body.page-chart .ind-toast-x {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: var(--muted);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--spring);
}
body.page-chart .ind-toast-x:hover { color: #fff; background: rgba(255, 255, 255, 0.16); transform: scale(1.06); }
body.page-chart .ind-toast-title {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.page-chart .ind-toast-b {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  word-break: break-word;
}
body.page-chart .ind-toast-ttl {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
body.page-chart .ind-toast-ttl i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ion), var(--violet));
  animation: toastTtl 10s linear forwards;
}
body.page-chart .ind-toast.tone-call .ind-toast-ttl i { background: linear-gradient(90deg, var(--up), var(--ion)); }
body.page-chart .ind-toast.tone-put .ind-toast-ttl i { background: linear-gradient(90deg, var(--down), var(--plasma)); }
body.page-chart .ind-toast.tone-pre .ind-toast-ttl i { background: linear-gradient(90deg, var(--gold), var(--plasma)); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(32px) scale(0.94); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px) scale(0.96); filter: blur(8px); }
}
@keyframes toastTtl {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

body.page-chart .hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(8px);
  z-index: 7;
  font-size: 12px;
  color: var(--muted);
  background: var(--glass-deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 12px;
  display: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.page-chart .hint.show {
  display: block;
  animation: iosIn 0.5s var(--spring) both;
}

body.page-chart .ind-panel {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 20;
  width: min(400px, calc(100% - 24px));
  max-height: min(580px, calc(100% - 24px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  background-color: rgba(14, 8, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 28px 64px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  flex-direction: column;
  backdrop-filter: saturate(190%) blur(36px);
  -webkit-backdrop-filter: saturate(190%) blur(36px);
  transform-origin: top right;
}
body.page-chart .ind-panel.show {
  display: flex;
  animation: iosPop 0.45s var(--spring) both;
}

@keyframes iosPop {
  from { opacity: 0; transform: scale(0.94) translateY(-8px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.type-pills,
.tf {
  scrollbar-width: none;
}
.pill-ink {
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dccfff);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.45s var(--spring), width 0.45s var(--spring), height 0.3s var(--spring);
}
.type-pills {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(8, 4, 18, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  scrollbar-width: none;
}
.type-pills::-webkit-scrollbar { display: none; }
.type-pills .type-pill { position: relative; z-index: 1; }
.type-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.28s var(--spring), transform 0.28s var(--spring);
}
.type-pill.on { color: #120816; }

body.page-signals .type-pills {
  box-sizing: border-box;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -8%) scale(1.12); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes iosIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 900px) {
  .aside {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    width: min(84vw, 300px) !important;
    flex-basis: auto !important;
    transform: translateX(-108%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.4);
  }
  body:not(.aside-collapsed) .aside { transform: translateX(0); }
  body:not(.aside-collapsed) .aside-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  body.aside-collapsed .aside-copy,
  body:not(.aside-collapsed) .aside-copy {
    opacity: 1;
    max-width: 180px;
    transform: none;
  }
  body.aside-collapsed .aside-text,
  body:not(.aside-collapsed) .aside-text {
    opacity: 1;
    max-width: 180px;
  }
  body:not(.aside-collapsed) .aside-brand,
  body.aside-collapsed .aside-brand {
    padding-left: 62px;
    justify-content: flex-start;
  }
  body.aside-collapsed .aside-mark,
  body:not(.aside-collapsed) .aside-mark { display: block; }
  body.aside-collapsed .aside-label { opacity: 1; height: auto; padding: 10px 10px 4px; }
  body.aside-collapsed .aside-foot { opacity: 1; height: auto; padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
  body.aside-collapsed .aside-link { justify-content: flex-start; padding: 11px 12px; }

  body.page-signals .app {
    padding-top: max(64px, env(safe-area-inset-top, 0px)) !important;
  }
  body.page-chart .top {
    padding-left: 62px;
    flex-wrap: wrap;
  }
  body.page-chart .top-left {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  body.page-chart .gp-asset {
    flex: 1 1 100%;
    max-width: none;
  }
  body.page-chart .top-cluster {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  body.page-chart .top { gap: 8px; padding: 8px 8px 8px 58px; }
  body.page-chart .gp-mini,
  body.page-chart .gp-quote { flex: 1 1 130px; width: auto; }
  body.page-chart .gp-payout { display: none; }
  body.page-chart .top-right { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
