body.violet-page {
  --bg: #05010c;
  --bg-2: #090823;
  --panel: #704DA9;
  --panel-2: #704DA9;
  --line: rgba(183, 96, 255, .28);
  --line-strong: rgba(218, 151, 255, .62);
  --text: #F7F7FC;
  --muted: #c7aee5;
  --cyan: #c77dff;
  --blue: #8f5bff;
  --gold: #e7ccff;
  --green: #35f0a0;
  --red: #ff5c9a;
  background:
    linear-gradient(180deg, #030108 0%, #090313 36%, #05010c 100%);
}

body.violet-page .shell {
  max-width: 450px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(185, 132, 255, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(185, 132, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, #34135f 0%, #170b3c 28%, #080b2b 62%, #040716 100%);
  background-size: 24px 24px, 24px 24px, auto;
}

body.violet-page .home-view {
  grid-template-rows: 172px 238px 52px minmax(0, 1fr) 12px;
  gap: 10px;
}

body.violet-page .home-view.chart-expanded {
  grid-template-rows: 150px clamp(292px, 38vh, 338px) 48px minmax(0, 1fr) 12px;
}

body.violet-page .hero,
body.violet-page .chart-card,
body.violet-page .data-card {
  border: .5px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#704DA9, #704DA9) padding-box,
    linear-gradient(135deg, rgba(246, 233, 255, .82), rgba(169, 108, 255, .46) 35%, rgba(247, 247, 252, .28) 50%, rgba(213, 94, 255, .46) 74%, rgba(150, 105, 255, .68)) border-box;
  box-shadow:
    0 0 0 .5px rgba(232, 190, 255, .2),
    0 0 18px rgba(186, 109, 255, .22),
    0 12px 26px rgba(0, 0, 0, .34);
}

body.violet-page .hero {
  border: 0;
  border-radius: 0;
  grid-template-rows: minmax(0, 1fr) 54px;
  padding: 22px 16px 16px;
  background:
    radial-gradient(ellipse at 32% 8%, rgba(247, 247, 252, .24), transparent 26%),
    radial-gradient(ellipse at 78% 10%, rgba(219, 148, 255, .22), transparent 24%),
    radial-gradient(ellipse at 50% 62%, rgba(92, 39, 142, .52), transparent 46%),
    linear-gradient(105deg, rgba(37, 8, 69, .28) 0 18%, transparent 18% 31%, rgba(247, 247, 252, .06) 31% 35%, transparent 35% 58%, rgba(11, 5, 37, .24) 58% 72%, transparent 72%),
    linear-gradient(180deg, #6f32a8 0%, #55258b 44%, #2c165f 74%, #090b2a 100%);
  box-shadow: none;
}

body.violet-page .hero::before {
  opacity: .34;
  background:
    radial-gradient(ellipse at 24% 12%, rgba(247, 247, 252, .22), transparent 21%),
    linear-gradient(118deg, transparent 0 19%, rgba(247, 247, 252, .08) 20%, transparent 33% 100%),
    repeating-linear-gradient(102deg, rgba(247, 247, 252, .055) 0 1px, transparent 1px 24px);
  background-size: auto;
  mix-blend-mode: screen;
}

body.violet-page .hero::after {
  opacity: .28;
  background:
    radial-gradient(ellipse at 62% 2%, rgba(247, 247, 252, .28), transparent 18%),
    linear-gradient(94deg, transparent, rgba(156, 88, 214, .38) 22%, rgba(247, 247, 252, .08) 50%, transparent 78%);
  filter: blur(16px);
}

body.violet-page .hero-copy h1 {
  font-size: 35px;
  color: transparent;
  background: linear-gradient(180deg, #F7F7FC 0%, #F7F7FC 44%, #d8c8ff 72%, #F7F7FC 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(218, 151, 255, .3);
}

body.violet-page .title-quant {
  position: absolute;
  right: -14px;
  top: 5px;
  display: inline-block;
  color: #F7F7FC;
  font-size: 8px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1.3px;
  white-space: nowrap;
  opacity: .96;
  background: none;
  -webkit-text-fill-color: #F7F7FC;
  text-shadow: 0 0 7px rgba(216, 184, 255, .32);
  transform: translateY(-18%);
  transform-origin: left bottom;
}

body.violet-page .hero-copy h1::after {
  width: 154px;
  background: linear-gradient(90deg, transparent, rgba(255, 161, 255, .9), rgba(153, 94, 255, .7), transparent);
  box-shadow: 0 0 14px rgba(216, 118, 255, .58);
}

body.violet-page .hero-copy p {
  color: #F7F7FC;
  font-size: 13px;
}

body.violet-page .session-pnl {
  gap: 20px;
}

body.violet-page .session-pnl > span {
  color: #F7F7FC;
  font-size: 14px;
}

body.violet-page .session-pnl b {
  color: #bb7cff;
  font-size: 24px;
  text-shadow: 0 0 14px rgba(187, 124, 255, .46);
}

body.violet-page .session-pnl b.down {
  color: #ff5c9a;
  text-shadow: 0 0 12px rgba(255, 92, 154, .34);
}

body.violet-page .chart-stack {
  gap: 10px;
}

body.violet-page .chart-card {
  padding: 10px;
  background:
    linear-gradient(#704DA9, #704DA9) padding-box,
    linear-gradient(135deg, rgba(247, 247, 252, .72), rgba(178, 117, 255, .46) 36%, rgba(226, 178, 255, .62) 68%, rgba(132, 92, 255, .56)) border-box;
  box-shadow:
    0 0 0 .5px rgba(231, 193, 255, .18),
    0 0 16px rgba(181, 113, 255, .24),
    0 10px 22px rgba(0, 0, 0, .32);
}

body.violet-page .chart-card::after,
body.violet-page .data-card::after {
  content: none;
}

body.violet-page .chart-head strong {
  font-size: 14px;
  color: #F7F7FC;
}

body.violet-page .chart-head span,
body.violet-page .chart-meta i {
  color: #c7aee5;
}

body.violet-page .chart-meta b {
  color: #F7F7FC;
  font-size: 13px;
}

body.violet-page .grid-line,
body.violet-page .chart-separator {
  stroke: rgba(205, 150, 255, .16);
}

body.violet-page .rsi-grid-line {
  stroke: rgba(207, 138, 255, .42);
}

body.violet-page .bb-fill {
  fill: rgba(151, 75, 255, .13);
}

body.violet-page .bb-line {
  stroke: rgba(188, 96, 255, .82);
  filter: drop-shadow(0 0 6px rgba(188, 96, 255, .38));
}

body.violet-page .bb-mid {
  stroke: rgba(255, 110, 224, .62);
  filter: drop-shadow(0 0 5px rgba(255, 110, 224, .26));
}

body.violet-page .rsi-line {
  stroke: #b776ff;
  filter: drop-shadow(0 0 6px rgba(183, 118, 255, .36));
}

body.violet-page .chart-up {
  fill: #37eba1;
  stroke: #37eba1;
  filter: drop-shadow(0 0 5px rgba(55, 235, 161, .32));
}

body.violet-page .chart-down {
  fill: #ff5c9a;
  stroke: #ff5c9a;
  filter: drop-shadow(0 0 5px rgba(255, 92, 154, .34));
}

body.violet-page .trade-controls {
  gap: 10px;
}

body.violet-page .trade-button {
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
  background:
    linear-gradient(180deg, rgba(113, 45, 190, .96), rgba(63, 22, 126, .98)) padding-box,
    linear-gradient(135deg, rgba(224, 134, 255, .78), rgba(116, 76, 255, .55), rgba(240, 84, 255, .62)) border-box;
  color: #F7F7FC;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(247, 247, 252, .14), 0 0 18px rgba(157, 76, 255, .22);
}

body.violet-page .trade-button.pause {
  background:
    linear-gradient(180deg, rgba(146, 35, 148, .96), rgba(74, 14, 96, .98)) padding-box,
    linear-gradient(135deg, rgba(255, 104, 225, .76), rgba(143, 68, 255, .55), rgba(236, 76, 255, .58)) border-box;
}

body.violet-page .trade-button.start.is-active,
body.violet-page .trade-button.pause.is-active {
  color: #F7F7FC;
  box-shadow: inset 0 1px 0 rgba(247, 247, 252, .22), 0 0 24px rgba(213, 88, 255, .44);
}

body.violet-page .data-card {
  background:
    linear-gradient(#704DA9, #704DA9) padding-box,
    linear-gradient(135deg, rgba(247, 247, 252, .72), rgba(178, 117, 255, .46) 36%, rgba(226, 178, 255, .62) 68%, rgba(132, 92, 255, .56)) border-box;
  box-shadow:
    0 0 0 .5px rgba(231, 193, 255, .18),
    0 0 18px rgba(181, 113, 255, .22),
    0 12px 24px rgba(0, 0, 0, .34);
}

body.violet-page .data-title,
body.violet-page .settings-title {
  color: #F7F7FC;
  font-size: 13px;
}

body.violet-page .heartbeat.live .ecg-path {
  stroke: #b76cff;
  filter: drop-shadow(0 0 5px rgba(183, 108, 255, .52));
}

body.violet-page .heartbeat.live .ecg-trail {
  stroke: rgba(192, 102, 255, .82);
  filter: drop-shadow(0 0 8px rgba(192, 102, 255, .66));
}

body.violet-page .heartbeat.live .ecg-runner,
body.violet-page .heartbeat.live .ecg-runner-halo {
  filter: drop-shadow(0 0 10px rgba(205, 122, 255, .86));
}

body.violet-page .settings-button {
  color: #f6e9ff;
}

body.violet-page .positions {
  border-color: rgba(205, 126, 255, .16);
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(202, 130, 255, .04) 27px 27.5px),
    repeating-linear-gradient(to right, transparent 0 calc(100% / 5 - .5px), rgba(202, 130, 255, .036) calc(100% / 5 - .5px) calc(100% / 5)),
    #704DA9;
}

body.violet-page .positions::before {
  opacity: .055;
  filter: drop-shadow(0 0 12px rgba(170, 104, 255, .18));
}

body.violet-page th {
  color: #d9bfff;
  background: rgb(22, 5, 44);
}

body.violet-page th,
body.violet-page td,
body.violet-page .position-table th,
body.violet-page .position-table td {
  border-color: rgba(205, 126, 255, .09);
}

body.violet-page .settings-view {
  background:
    linear-gradient(180deg, rgba(28, 7, 57, .48), rgba(8, 2, 18, .1));
}

body.violet-page .settings-top {
  background: linear-gradient(180deg, rgba(15, 3, 32, .99) 0%, rgba(25, 6, 53, .96) 56%, rgba(37, 11, 74, .58) 90%, rgba(37, 11, 74, 0));
}

body.violet-page .back-arrow-icon {
  filter: drop-shadow(0 0 7px rgba(196, 107, 255, .42));
}

body.violet-page .coin-picker,
body.violet-page .api-popover,
body.violet-page .strategy-drawer,
body.violet-page .symbol-param-group {
  border-color: rgba(211, 134, 255, .28);
  background:
    linear-gradient(180deg, rgb(39, 12, 76), rgb(16, 4, 34)) padding-box,
    linear-gradient(135deg, rgb(153, 82, 214), rgb(73, 45, 142) 56%, rgb(185, 67, 205)) border-box;
  box-shadow: inset 0 1px 0 rgba(247, 247, 252, .08), 0 0 16px rgba(143, 67, 255, .14);
}

body.violet-page .api-access-button,
body.violet-page .strategy-mode-button {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgb(58, 24, 88), rgb(27, 8, 50)) padding-box,
    linear-gradient(135deg, rgba(239, 201, 255, .52), rgba(144, 84, 255, .45)) border-box;
  color: #F7F7FC;
}

body.violet-page .api-popover input,
body.violet-page .settings-view input:not([type="checkbox"]) {
  background: rgb(15, 4, 33);
  border-color: rgba(211, 134, 255, .26);
}

body.violet-page .api-popover .api-paste-button {
  background: rgb(42, 15, 72);
  color: #f3ddff;
}

body.violet-page .api-popover button.primary,
body.violet-page .mode-save {
  background: rgb(55, 23, 94);
  color: #F7F7FC;
  border-color: rgba(217, 151, 255, .32);
}

body.violet-page .strategy-mode-button.active,
body.violet-page .strategy-mode-card:hover .strategy-mode-button,
body.violet-page .strategy-mode-row:has(.strategy-mode-card:hover) .strategy-mode-card:hover .strategy-mode-button.active {
  border-color: rgba(225, 151, 255, .7);
  background:
    linear-gradient(180deg, rgb(100, 34, 151), rgb(51, 14, 91)) padding-box,
    linear-gradient(135deg, rgba(255, 180, 255, .74), rgba(152, 83, 255, .58)) border-box;
  color: #F7F7FC;
}

body.violet-page .settings-footer .settings-footer-logo,
body.violet-page .home-view footer .footer-logo {
  filter: drop-shadow(0 0 12px rgba(160, 104, 255, .26));
}

@media (max-width: 380px) {
  body.violet-page .home-view {
    grid-template-rows: 154px 214px 48px minmax(0, 1fr) 10px;
    gap: 8px;
  }

  body.violet-page .home-view.chart-expanded {
    grid-template-rows: 142px clamp(262px, 36vh, 292px) 44px minmax(0, 1fr) 10px;
  }

  body.violet-page .hero-copy h1 {
    font-size: 30px;
  }

  body.violet-page .session-pnl b {
    font-size: 21px;
  }
}

/* Flat amethyst concept: purple stage, one ivory content sheet. */
body.violet-page {
  --bg: #704DA9;
  --bg-2: #704DA9;
  --panel: #F7F7FC;
  --panel-2: #F7F7FC;
  --line: rgba(112, 77, 169, .24);
  --line-strong: rgba(112, 77, 169, .48);
  --text: #2b2040;
  --muted: #6b5c81;
  --cyan: #4d8de8;
  --blue: #2f78d4;
  --gold: #704DA9;
  --green: #18a66e;
  --red: #d84b73;
  background: #704DA9;
  overflow: hidden;
}

body.violet-page .shell {
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 10px;
  background: #704DA9;
}

body.violet-page .view {
  height: 100%;
  min-height: 0;
}

body.violet-page .home-view {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  grid-template-rows: 104px minmax(0, 1fr) 130px;
  gap: 6px;
}

body.violet-page .home-view.chart-expanded {
  grid-template-rows: 100px minmax(0, 1fr) 126px;
}

body.violet-page .home-view::before {
  content: "";
  position: absolute;
  top: 114px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(247, 247, 252, .92);
  border-radius: 34px;
  background: #F7F7FC;
  box-shadow: none;
  pointer-events: none;
}

body.violet-page .market-card,
body.violet-page .trade-controls,
body.violet-page .home-view > footer {
  position: relative;
  z-index: 1;
  margin-right: 12px;
  margin-left: 12px;
}

body.violet-page .market-card {
  display: grid;
  align-self: start;
  height: min(559px, calc(100% - 5px));
  grid-template-rows: minmax(0, 1fr) 158px;
  gap: 0;
  overflow: hidden;
  margin-top: 5px;
  margin-right: 7px;
  margin-left: 7px;
  border: 1px solid rgba(112, 77, 169, .42);
  border-radius: 34px;
  background: #704DA9;
}

body.violet-page .home-view.chart-expanded .market-card {
  margin-top: 9px;
}

body.violet-page .chart-stack {
  align-self: stretch;
  margin: 0;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.violet-page .trade-controls {
  width: auto;
  justify-self: stretch;
  align-self: stretch;
  margin: 0 12px;
}

body.violet-page .table-zone {
  align-self: stretch;
  margin: 0;
  border-top: 0;
  margin-bottom: 0;
}

body.violet-page .hero {
  grid-template-rows: minmax(0, 1fr) 30px;
  gap: 3px;
  border: 0;
  border-radius: 0;
  padding: 3px 12px 0;
  background: transparent;
  box-shadow: none;
}

body.violet-page .hero::before,
body.violet-page .hero::after,
body.violet-page .hero-copy h1::after {
  content: none;
}

body.violet-page .hero-copy h1 {
  font-size: 30px;
  color: #F7F7FC;
  background: none;
  -webkit-text-fill-color: #F7F7FC;
  -webkit-text-stroke: 1px #F7F7FC;
  paint-order: stroke fill;
  text-shadow: none;
  font-weight: 900;
}

body.violet-page .hero-copy h1 .title-quant {
  font-weight: 300;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

body.violet-page .hero-copy p {
  margin-top: 4px;
  font-size: 12px;
}

body.violet-page .hero-copy p,
body.violet-page .session-pnl > span {
  color: #F7F7FC;
}

body.violet-page .session-pnl {
  justify-content: center;
  gap: 14px;
  font-size: 11px;
}

body.violet-page .session-pnl b,
body.violet-page .session-pnl b.down {
  font-size: 18px;
  color: #F7F7FC;
  text-shadow: none;
}

body.violet-page .chart-card,
body.violet-page .data-card {
  border: 1.5px solid rgba(247, 247, 252, .94);
  border-radius: 20px;
  background: #704DA9;
  box-shadow: none;
}

body.violet-page .chart-card {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  padding: 12px 3px 10px;
  border: 0;
  border-radius: 0;
  background: #704DA9;
  box-shadow: none;
}

body.violet-page .chart-card + .chart-card {
  border-left: 0;
}

body.violet-page .kline-chart {
  height: calc(100% + 29px);
  min-height: 0;
  transform: translateY(12px);
  transform-origin: center top;
}

body.violet-page .chart-card.is-expanded {
  box-shadow: none;
}

body.violet-page .chart-card::before,
body.violet-page .chart-card::after,
body.violet-page .data-card::before,
body.violet-page .data-card::after {
  content: none;
}

body.violet-page .chart-head strong,
body.violet-page .chart-meta b,
body.violet-page .data-title,
body.violet-page .settings-title {
  color: #F7F7FC;
}

body.violet-page .chart-head {
  box-sizing: border-box;
  padding: 0 10px;
}

body.violet-page .chart-title {
  min-width: 0;
}

body.violet-page .chart-head strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.violet-page .chart-symbol-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 4px rgba(36, 18, 72, .24));
}

body.violet-page .chart-head span,
body.violet-page .chart-meta i {
  color: rgba(247, 247, 252, .72);
}

body.violet-page .grid-line,
body.violet-page .chart-separator {
  stroke: rgba(247, 247, 252, .22);
  stroke-width: .45;
  vector-effect: non-scaling-stroke;
}

body.violet-page .rsi-grid-line {
  stroke: rgba(247, 247, 252, .38);
  stroke-width: .4;
  vector-effect: non-scaling-stroke;
  transform: translateY(1px);
}

body.violet-page .bb-fill {
  fill: rgba(247, 247, 252, .08);
}

body.violet-page .bb-line,
body.violet-page .bb-mid,
body.violet-page .lux-line,
body.violet-page .rsi-line {
  filter: none;
}

body.violet-page .bb-line {
  stroke: rgba(247, 247, 252, .7);
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
}

body.violet-page .bb-mid {
  stroke: #f0d167;
  stroke-width: .58;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

body.violet-page .lux-line {
  stroke: #5fc9f8;
  stroke-width: .62;
  vector-effect: non-scaling-stroke;
}

body.violet-page .lux-line-middle {
  stroke: rgba(95, 201, 248, .74);
  stroke-dasharray: 3 3;
}

body.violet-page .rsi-line {
  stroke: #f0d167;
  transform: translateY(1px);
}

body.violet-page .chart-up {
  fill: #42df93;
  stroke: #42df93;
  filter: none;
}

body.violet-page .chart-down {
  fill: #ff668b;
  stroke: #ff668b;
  filter: none;
}

body.violet-page .trade-button {
  height: 44px;
  border: 0;
  border-radius: 16px;
  color: #F7F7FC;
  box-shadow: none;
}

body.violet-page .trade-button.start {
  background: #4aa27f;
}

body.violet-page .trade-button.pause {
  background: #b24972;
}

body.violet-page .trade-button.start.is-active,
body.violet-page .trade-button.pause.is-active {
  color: #F7F7FC;
  box-shadow: none;
}

body.violet-page .position-card-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 10px 8px;
}

body.violet-page .positions {
  border-color: rgba(247, 247, 252, .3);
  border-radius: 18px;
  background: #704DA9;
}

body.violet-page .positions::before {
  opacity: .03;
  filter: none;
}

body.violet-page th {
  color: rgba(247, 247, 252, .74);
  background: #704DA9;
}

body.violet-page th,
body.violet-page td,
body.violet-page .position-table th,
body.violet-page .position-table td {
  color: #F7F7FC;
  border-color: rgba(247, 247, 252, .18);
}

body.violet-page .settings-button,
body.violet-page .position-symbol-cell b,
body.violet-page .entry-source-badge {
  color: #F7F7FC;
}

body.violet-page .home-view footer .footer-logo {
  width: min(82px, 24vw);
  opacity: .82;
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(12%) saturate(1035%) hue-rotate(215deg) brightness(103%) contrast(101%)
    drop-shadow(0 0 8px rgba(230, 205, 255, .24));
  transform: translateY(7px);
}

body.violet-page .home-view > footer {
  align-content: end;
  display: none;
  margin-right: 0;
  margin-left: 0;
  padding-bottom: 0;
}

body.violet-page .settings-view {
  background: #704DA9;
}

body.violet-page .about-view {
  position: relative;
  min-height: 100%;
  padding: 34px 22px;
  background: #704DA9;
}

body.violet-page .about-top {
  position: relative;
  display: grid;
  align-items: start;
  min-height: 88px;
}

body.violet-page .about-top h2 {
  margin: 0;
  color: #ffffff;
  font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

body.violet-page .about-top .back-icon-button {
  position: absolute;
  top: 0;
  right: 0;
}

body.violet-page .settings-top {
  background: #704DA9;
}

body.violet-page .settings-top h2,
body.violet-page .settings-top p {
  color: #F7F7FC;
}

body.violet-page .settings-heading {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: max-content;
  max-width: calc(100vw - 88px);
  margin: -10px auto 0;
}

body.violet-page .settings-top h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

body.violet-page .settings-balance-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

body.violet-page .settings-slogan {
  margin: 2px 0 0;
  color: #ffffff !important;
  font-family: "Source Han Sans SC Heavy", "Noto Sans CJK SC Black", "PingFang SC", "Heiti SC", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: .45px #ffffff;
  paint-order: stroke fill;
  text-shadow:
    .35px 0 0 #ffffff,
    -.35px 0 0 #ffffff,
    0 .35px 0 #ffffff;
}

body.violet-page .settings-balance-line img {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 3px rgba(34, 18, 66, .2));
}

body.violet-page .settings-daily-pnl {
  color: #F7F7FC;
  white-space: nowrap;
}

body.violet-page .settings-daily-pnl b {
  color: #F7F7FC;
  font-weight: inherit;
}

body.violet-page .settings-daily-pnl b.is-profit {
  color: #42df93;
}

body.violet-page .settings-daily-pnl b.is-loss {
  color: #ff668b;
}

body.violet-page .coin-picker,
body.violet-page .api-popover,
body.violet-page .strategy-drawer,
body.violet-page .symbol-param-group {
  border: 1.5px solid rgba(112, 77, 169, .18);
  border-radius: 20px;
  background: #F7F7FC;
  box-shadow: none;
}

body.violet-page .coin-title,
body.violet-page .coin-options label,
body.violet-page .api-form span,
body.violet-page .symbol-param-group b {
  color: #2b2040;
}

body.violet-page .api-access-button,
body.violet-page .strategy-mode-button {
  border: 0;
  border-radius: 16px;
  background: #F7F7FC;
  color: #704DA9;
  box-shadow: none;
}

body.violet-page .api-popover input,
body.violet-page .settings-view input:not([type="checkbox"]) {
  background: #eeeaf5;
  color: #2b2040;
  border-color: rgba(112, 77, 169, .22);
}

body.violet-page .api-popover .api-paste-button,
body.violet-page .api-popover button.primary,
body.violet-page .mode-save {
  background: #704DA9;
  color: #F7F7FC;
  border: 0;
}

body.violet-page .strategy-mode-button.active,
body.violet-page .strategy-mode-card:hover .strategy-mode-button,
body.violet-page .strategy-mode-row:has(.strategy-mode-card:hover) .strategy-mode-card:hover .strategy-mode-button.active {
  border: 0;
  background: #704DA9;
  color: #F7F7FC;
}

body.violet-page .settings-footer span {
  color: rgba(247, 247, 252, .68);
}

body.violet-page .settings-footer .settings-footer-logo {
  filter: none;
}

@media (max-width: 380px) {
  body.violet-page .home-view {
    height: 100%;
    min-height: 0;
    grid-template-rows: 96px minmax(0, 1fr) 126px;
    gap: 5px;
  }

  body.violet-page .home-view.chart-expanded {
    grid-template-rows: 94px minmax(0, 1fr) 122px;
  }

  body.violet-page .home-view::before {
    top: 103px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    border-radius: 28px;
  }

  body.violet-page .market-card,
  body.violet-page .trade-controls,
  body.violet-page .home-view > footer {
    margin-right: 10px;
    margin-left: 10px;
  }

  body.violet-page .market-card {
    height: min(530px, calc(100% - 3px));
    grid-template-rows: minmax(0, 1fr) 150px;
    margin-top: 3px;
    margin-right: 7px;
    margin-left: 7px;
    border-radius: 28px;
  }

  body.violet-page .home-view.chart-expanded .market-card {
    margin-top: 5px;
  }

  body.violet-page .chart-stack {
    margin: 0;
    border-radius: 0;
  }

  body.violet-page .trade-controls {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
  }

  body.violet-page .table-zone {
    margin: 0;
  }

  body.violet-page .home-view > footer {
    margin-right: 0;
    margin-left: 0;
  }

  body.violet-page .hero {
    padding-top: 0;
  }

  body.violet-page .hero-copy h1 {
    font-size: 28px;
  }

  body.violet-page .session-pnl b,
  body.violet-page .session-pnl b.down {
    font-size: 16px;
  }
}

/* 2026-05-14 violet polish: deeper content cards, themed controls, purple logo glow. */
body.violet-page {
  --violet-card: #5f3f98;
  --violet-card-deep: #523485;
  --violet-ivory: #F7F7FC;
  --violet-soft: #d8b8ff;
  --violet-start: #3d9270;
  --violet-start-dark: #2f765e;
  --violet-pause: #a24068;
  --violet-pause-dark: #7e2c58;
}

body.violet-page .market-card,
body.violet-page .chart-card,
body.violet-page .positions,
body.violet-page th {
  background: var(--violet-card);
}

body.violet-page .market-card {
  border: 0;
  background: linear-gradient(180deg, var(--violet-card) 0%, var(--violet-card-deep) 100%);
}

body.violet-page .chart-card {
  background: linear-gradient(180deg, var(--violet-card) 0%, var(--violet-card-deep) 100%);
}

body.violet-page .table-zone,
body.violet-page .position-card-wrap {
  background: linear-gradient(180deg, var(--violet-card) 0%, var(--violet-card-deep) 100%);
}

body.violet-page .positions {
  border-color: rgba(247, 247, 252, .34);
  border-radius: 34px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(247, 247, 252, .035) 27px 27.5px),
    repeating-linear-gradient(to right, transparent 0 calc(100% / 5 - .5px), rgba(247, 247, 252, .032) calc(100% / 5 - .5px) calc(100% / 5)),
    linear-gradient(180deg, var(--violet-card) 0%, var(--violet-card-deep) 100%);
}

body.violet-page th {
  background: var(--violet-card-deep);
}

body.violet-page .positions::before {
  opacity: .04;
  filter:
    drop-shadow(0 0 16px rgba(206, 166, 255, .18))
    drop-shadow(0 10px 14px rgba(54, 28, 96, .26));
}

body.violet-page .rsi-grid-line,
body.violet-page .rsi-line {
  transform: translateY(-14px);
}

body.violet-page .back-arrow-icon {
  filter:
    drop-shadow(0 0 6px rgba(216, 184, 255, .58))
    drop-shadow(0 5px 8px rgba(47, 27, 84, .26));
}

body.violet-page .trade-button {
  border: .2px solid rgba(247, 247, 252, .18);
  box-shadow: none;
}

body.violet-page .trade-button.start {
  background: #78ae94;
}

body.violet-page .trade-button.pause {
  background: #765168;
}

body.violet-page .trade-button.start.is-active {
  background: #21c884;
  box-shadow: none;
}

body.violet-page .trade-button.pause.is-active {
  background: #d94870;
  box-shadow: none;
}

body.violet-page .coin-picker {
  border: .2px solid rgba(95, 63, 152, .48);
  background: #e7d8f4;
}

body.violet-page .coin-title {
  color: #5f3f98;
}

body.violet-page .coin-options {
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #4f337d;
}

body.violet-page .coin-options label,
body.violet-page .coin-options label.active {
  border: .2px solid rgba(247, 247, 252, .62) !important;
  background: #5f3f98 !important;
  color: #F7F7FC !important;
}

body.violet-page .coin-options input {
  accent-color: #d8b8ff;
}

body.violet-page .compact-symbol-picker {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.violet-page .compact-symbol-picker .coin-options {
  gap: 3px;
  padding: 0;
  background: transparent;
}

body.violet-page .compact-symbol-picker .coin-options label {
  min-width: 38px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 9px;
  border-color: rgba(139, 93, 201, .34) !important;
  background: #e9ddf8 !important;
  color: #5f3f98 !important;
  font-size: 11px;
  line-height: 1;
}

body.violet-page .strategy-symbol-picker .coin-options label,
body.violet-page .strategy-symbol-picker .coin-options label.active {
  min-width: 0;
  min-height: 0;
  padding: 0 2px;
  border: 0 !important;
  background: transparent !important;
  color: #f8f6ff !important;
}

body.violet-page .compact-symbol-picker .coin-options input {
  width: 11px;
  height: 11px;
}

body.violet-page .strategy-symbol-picker .coin-options input {
  width: 15px;
  height: 15px;
  margin: 0 5px 0 0;
}

body.violet-page .strategy-title-row {
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  transform: translateY(-3px);
}

body.violet-page .strategy-title-row h3 {
  max-width: none;
  min-width: 0;
  white-space: nowrap;
}

body.violet-page .strategy-running-summary {
  justify-self: end;
  min-width: 0;
  color: #48ff8a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(72, 255, 138, .44);
}

body.violet-page .strategy-card-metric .strategy-running-summary {
  padding-left: 4px;
}

body.violet-page .strategy-symbol-picker {
  flex: 0 0 auto;
  margin-left: auto;
  justify-self: end;
  transform: translateX(2px);
}

body.violet-page .strategy-card-head {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

body.violet-page .settings-entry[hidden] {
  display: none;
}

body.violet-page .api-access-button,
body.violet-page .strategy-mode-button {
  border: .2px solid rgba(112, 77, 169, .36);
  background: #dfcff1;
  color: #5f3f98;
}

body.violet-page .api-connector.connected .api-access-button {
  border: .2px solid rgba(176, 128, 28, .48);
  background: #efd36f;
  color: #4d317d;
}

body.violet-page .api-popover .api-paste-button {
  background: #e9ddf8;
  color: #5f3f98;
}

body.violet-page .account-switcher {
  display: grid;
  gap: 12px;
  width: min(100% - 24px, 780px);
  margin: 0 auto 16px;
  padding: 16px 18px;
  border: .2px solid rgba(231, 222, 255, .26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(72, 56, 122, .16)),
    rgba(9, 11, 24, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 28px rgba(15, 8, 42, .16);
}

body.violet-page .account-switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.violet-page .account-switcher-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.violet-page .account-switcher-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}

body.violet-page .account-switcher-actions .api-connector {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.violet-page .api-connector:not(.open) .api-popover {
  display: none;
}

body.violet-page .api-connector.open .api-popover {
  display: grid;
}

body.violet-page .api-connector:hover .api-popover,
body.violet-page .api-connector:focus-within .api-popover {
  display: grid;
}

body.violet-page .account-switcher-actions .api-access-button {
  min-width: 82px;
  height: 30px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(74, 209, 205, .42) !important;
  background: linear-gradient(135deg, rgba(89, 93, 214, .24), rgba(71, 197, 190, .22)) !important;
  color: #f8f6ff !important;
  box-shadow: 0 8px 18px rgba(72, 55, 143, .14);
}

body.violet-page .account-switcher-actions .api-popover {
  position: fixed;
  top: clamp(150px, 22vh, 218px);
  right: auto;
  left: 50%;
  z-index: 60;
  width: min(360px, calc(100vw - 30px));
  max-height: min(68vh, 560px);
  gap: 10px;
  padding: 12px;
  overflow: auto;
  transform: translateX(-50%);
}

body.violet-page .account-switcher-actions .api-message {
  margin: 0;
  color: rgba(227, 219, 248, .72);
  font-size: 11px;
  line-height: 1.35;
}

body.violet-page .account-switcher-actions #logoutBtn {
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  white-space: nowrap;
  border: 1px solid rgba(231, 222, 255, .22);
  border-radius: 8px;
  background: rgba(247, 242, 255, .08);
  color: rgba(248, 246, 255, .86);
  box-shadow: none;
}

body.violet-page .account-switcher-actions #logoutBtn:hover {
  border-color: rgba(74, 209, 205, .48);
  background: linear-gradient(135deg, rgba(89, 93, 214, .36), rgba(71, 197, 190, .3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(72, 55, 143, .2);
}

body.violet-page .account-switcher-title span,
body.violet-page .account-switcher-title em,
body.violet-page .account-platform-copy em,
body.violet-page .account-card-data-row em,
body.violet-page .account-empty-state {
  color: rgba(227, 219, 248, .7);
}

body.violet-page .account-switcher-title strong,
body.violet-page .account-platform-copy strong,
body.violet-page .account-card-title-row strong,
body.violet-page .account-empty-state strong {
  color: #f8f6ff;
}

body.violet-page .account-platform-button {
  border: .2px solid rgba(231, 222, 255, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(72, 56, 122, .14)),
    rgba(9, 11, 24, .36);
}

body.violet-page .account-platform-button:hover,
body.violet-page .account-platform-button:focus-visible,
body.violet-page .account-platform-group.is-expanded .account-platform-button {
  border-color: rgba(216, 184, 255, .42);
  background:
    linear-gradient(135deg, rgba(216, 184, 255, .18), rgba(31, 189, 175, .09)),
    rgba(9, 11, 24, .48);
}

body.violet-page .account-platform-group.is-current .account-platform-button {
  border-color: rgba(216, 184, 255, .56);
  box-shadow: 0 0 0 1px rgba(216, 184, 255, .12), 0 12px 24px rgba(47, 27, 84, .2);
}

body.violet-page .account-platform-logo-wrap {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(247, 247, 252, .12);
}

body.violet-page .account-card {
  border: .2px solid rgba(231, 222, 255, .18);
  background: rgba(247, 247, 252, .08);
}

body.violet-page .account-card:hover,
body.violet-page .account-card:focus-visible {
  border-color: rgba(216, 184, 255, .42);
  background: rgba(247, 247, 252, .13);
}

body.violet-page .account-card.is-selected {
  border-color: rgba(216, 184, 255, .58);
  background:
    linear-gradient(135deg, rgba(216, 184, 255, .22), rgba(31, 189, 175, .11)),
    rgba(247, 247, 252, .11);
  box-shadow: 0 0 0 1px rgba(216, 184, 255, .12), 0 14px 24px rgba(47, 27, 84, .2);
}

body.violet-page .account-card-status {
  color: #4d317d;
  background: #dff4ef;
}

body.violet-page .account-card.is-disabled .account-card-status {
  color: #8f3c57;
  background: rgba(255, 211, 220, .72);
}

body.violet-page .account-empty-state {
  border-color: rgba(231, 222, 255, .22);
  background: rgba(247, 247, 252, .07);
}

body.violet-page .api-oauth-panel {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(247, 247, 252, .78);
}

body.violet-page .api-oauth-button {
  width: 100%;
  border: .2px solid rgba(247, 247, 252, .72);
  border-radius: 13px;
  padding: 11px 14px;
  background:
    linear-gradient(135deg, rgba(86, 73, 190, .98), rgba(31, 189, 175, .9));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.violet-page .api-register-link {
  border: .2px solid rgba(95, 63, 152, .18);
  background: rgba(95, 63, 152, .08);
  color: #5f3f98;
}

body.violet-page .api-oauth-button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

body.violet-page .api-oauth-panel span {
  min-height: 16px;
  color: rgba(43, 32, 64, .72);
  font-size: 12px;
  line-height: 1.35;
}

body.violet-page .oauth-panel {
  border-color: rgba(112, 77, 169, .16);
  background: rgba(255, 255, 255, .64);
}

body.violet-page .oauth-hint {
  color: #5f3f98;
}

body.violet-page .oauth-actions button {
  border: .2px solid rgba(112, 77, 169, .28);
  background: #e9ddf8;
  color: #5f3f98;
}

body.violet-page .oauth-actions button:disabled {
  opacity: .62;
}

body.violet-page .weex-invite-backdrop {
  background: rgba(8, 5, 18, .56);
}

body.violet-page .weex-invite-card {
  border: .2px solid rgba(247, 247, 252, .42);
  background:
    radial-gradient(circle at 82% 8%, rgba(65, 197, 187, .26), transparent 34%),
    linear-gradient(145deg, rgba(242, 238, 249, .96), rgba(222, 209, 242, .92));
  color: #2b2040;
  box-shadow: 0 28px 86px rgba(32, 20, 58, .36);
}

body.violet-page .weex-invite-kicker,
body.violet-page .weex-invite-card p,
body.violet-page .weex-invite-code span {
  color: rgba(43, 32, 64, .68);
}

body.violet-page .weex-invite-code {
  border: .2px solid rgba(95, 63, 152, .18);
  background: rgba(255, 255, 255, .46);
}

body.violet-page .weex-invite-code:hover,
body.violet-page .weex-invite-code.copied {
  border-color: rgba(95, 63, 152, .34);
  background: rgba(255, 255, 255, .64);
}

body.violet-page .weex-invite-code strong {
  color: #5f3f98;
}

body.violet-page .weex-invite-cancel {
  border: .2px solid rgba(95, 63, 152, .18);
  background: rgba(95, 63, 152, .08);
  color: #5f3f98;
}

body.violet-page .weex-invite-confirm {
  border: .2px solid rgba(247, 247, 252, .72);
  background: linear-gradient(135deg, rgba(86, 73, 190, .98), rgba(31, 189, 175, .9));
  color: #fff;
}

body.violet-page .api-popover button.primary,
body.violet-page .mode-save,
body.violet-page .strategy-mode-button.active,
body.violet-page .strategy-mode-card:hover .strategy-mode-button,
body.violet-page .strategy-mode-row:has(.strategy-mode-card:hover) .strategy-mode-card:hover .strategy-mode-button.active {
  border: .2px solid rgba(247, 247, 252, .62);
  background: #5f3f98;
  color: var(--violet-ivory);
}

body.violet-page .home-view footer .footer-logo {
  width: min(82px, 24vw);
  opacity: .96;
  filter:
    drop-shadow(0 0 10px rgba(216, 184, 255, .42))
    drop-shadow(0 10px 12px rgba(46, 25, 80, .4));
}

body.violet-page .settings-footer .settings-footer-logo {
  width: min(82px, 24vw);
  opacity: .96;
  filter:
    drop-shadow(0 0 10px rgba(216, 184, 255, .42))
    drop-shadow(0 10px 12px rgba(46, 25, 80, .4));
}

@media (max-width: 380px) {
  body.violet-page .positions {
    border-radius: 28px;
  }
}

/* 2026-05-14 violet balance: unified card color, taller ivory sheet, clearer mode state. */
body.violet-page .home-view::before {
  bottom: 18px;
}

body.violet-page .market-card,
body.violet-page .chart-card,
body.violet-page .table-zone,
body.violet-page .position-card-wrap {
  background: linear-gradient(180deg, var(--violet-card) 0%, var(--violet-card-deep) 100%) !important;
}

body.violet-page .home-view footer .footer-logo {
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(15%) saturate(760%) hue-rotate(217deg) brightness(102%) contrast(99%)
    drop-shadow(0 0 8px rgba(216, 184, 255, .3));
}

body.violet-page .coin-options {
  padding: 0;
  background: transparent;
}

body.violet-page .strategy-mode-button,
body.violet-page .strategy-mode-card:hover .strategy-mode-button,
body.violet-page .strategy-mode-row:has(.strategy-mode-card:hover) .strategy-mode-button.active {
  border: .2px solid rgba(247, 247, 252, .62);
  background: #5f3f98;
  color: #F7F7FC;
}

body.violet-page .strategy-mode-button.active,
body.violet-page .strategy-mode-card:hover .strategy-mode-button.active,
body.violet-page .strategy-mode-row:has(.strategy-mode-card:hover) .strategy-mode-button.active {
  border: .2px solid rgba(95, 63, 152, .72);
  background: #dfcff1;
  color: #5f3f98;
}

@media (max-width: 380px) {
  body.violet-page .home-view::before {
    bottom: 6px;
  }
}

/* Continuous purple card: one background across charts and holdings. */
body.violet-page .market-card {
  background: linear-gradient(180deg, var(--violet-card) 0%, #58398d 54%, var(--violet-card-deep) 100%) !important;
}

body.violet-page .chart-card,
body.violet-page .table-zone,
body.violet-page .position-card-wrap {
  background: transparent !important;
}

body.violet-page .positions {
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(247, 247, 252, .035) 27px 27.5px),
    repeating-linear-gradient(to right, transparent 0 calc(100% / 5 - .5px), rgba(247, 247, 252, .032) calc(100% / 5 - .5px) calc(100% / 5)),
    transparent !important;
}

body.violet-page th {
  background: transparent;
}

/* Header settings shortcut with flipped reference arrow. */
body.violet-page .hero-session-pnl.session-pnl {
  gap: 12px;
}

body.violet-page .hero-settings-button {
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #F7F7FC;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}

body.violet-page .hero-settings-button img {
  width: 21px;
  height: 14px;
  display: block;
  object-fit: contain;
  opacity: .96;
  transform: translateY(.5px);
  animation: violetForwardArrowNudge 1.15s ease-in-out infinite;
  filter:
    drop-shadow(0 0 5px rgba(216, 184, 255, .44))
    drop-shadow(0 2px 4px rgba(53, 27, 94, .22));
}

/* Run toggle and manual-open popover. */
body.violet-page .trade-controls {
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  align-items: center;
  align-content: center;
  row-gap: 8px;
  transform: translateY(-8px);
}

body.violet-page .manual-open-control {
  position: relative;
  min-width: 0;
}

body.violet-page .trade-button.run-toggle,
body.violet-page .trade-button.manual-open {
  width: 100%;
  border: .2px solid rgba(247, 247, 252, .18);
  box-shadow: none;
}

body.violet-page .trade-button.run-toggle {
  background: #d94870;
}

body.violet-page .trade-button.run-toggle.is-active {
  background: #21c884;
}

body.violet-page .trade-button.run-toggle:active,
body.violet-page .trade-button.manual-open:active {
  transform: translateY(2px) scale(.985);
}

body.violet-page .trade-button.manual-open {
  border-color: rgba(121, 87, 28, .28);
  background: #e5c85f;
  color: #4d317d;
}

body.violet-page .trade-button.manual-open.has-position {
  border-color: rgba(129, 219, 250, .5);
  background: #aee7ff;
  color: #39246f;
}

body.violet-page .trade-run-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 18, 70, .42);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

body.violet-page .trade-run-confirm-modal[hidden] {
  display: none;
}

body.violet-page .trade-run-confirm-modal.show {
  opacity: 1;
  pointer-events: auto;
}

body.violet-page .trade-run-confirm-card {
  position: relative;
  width: min(360px, 100%);
  border: 1px solid rgba(231, 208, 255, .46);
  border-radius: 18px;
  padding: 24px 20px 18px;
  background:
    linear-gradient(180deg, rgba(76, 52, 119, .96), rgba(44, 30, 75, .98)) padding-box,
    linear-gradient(135deg, rgba(238, 214, 255, .82), rgba(126, 81, 206, .52)) border-box;
  color: #fff;
  box-shadow:
    0 26px 52px rgba(18, 8, 40, .46),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(14px) scale(.96);
  transition: transform .2s ease;
}

body.violet-page .trade-run-confirm-modal.show .trade-run-confirm-card {
  transform: translateY(0) scale(1);
}

body.violet-page .trade-run-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(231, 208, 255, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  font-size: 22px;
  line-height: 1;
}

body.violet-page .trade-run-confirm-kicker {
  margin: 0 42px 8px 0;
  color: rgba(215, 194, 245, .78);
  font-size: 13px;
  font-weight: 700;
}

body.violet-page .trade-run-confirm-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

body.violet-page .trade-run-confirm-body {
  margin: 12px 0 20px;
  color: rgba(238, 229, 255, .82);
  font-size: 14px;
  line-height: 1.65;
}

body.violet-page .trade-run-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}

body.violet-page .trade-run-confirm-actions button {
  min-width: 0;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

body.violet-page .trade-run-confirm-cancel {
  border: 1px solid rgba(221, 199, 249, .48);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
}

body.violet-page .trade-run-confirm-submit {
  border: 1px solid rgba(255, 190, 205, .42);
  background: #d94870;
  color: #fff;
}

body.violet-page .trade-run-confirm-submit:active {
  transform: translateY(1px) scale(.985);
}

body.violet-page .trade-run-confirm-modal.is-busy .trade-run-confirm-card {
  cursor: progress;
}

body.violet-page .trade-run-confirm-modal.is-busy button {
  opacity: .72;
}

body.violet-page .trade-controls-slogan {
  grid-column: 1 / -1;
  margin: 0;
  color: #2b1054;
  font-family: "KaiTi", "STKaiti", "Kaiti SC", "Songti SC", serif;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

body.violet-page .manual-open-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: min(198px, 44vw);
  display: grid;
  gap: 7px;
  padding: 9px;
  border: .2px solid rgba(95, 63, 152, .42);
  border-radius: 14px;
  background: #f1e8fb;
  box-shadow: 0 12px 24px rgba(46, 25, 80, .22);
}

body.violet-page .manual-open-panel label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #5f3f98;
  font-size: 11px;
}

body.violet-page .manual-open-panel select,
body.violet-page .manual-open-panel input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: .2px solid rgba(95, 63, 152, .36);
  border-radius: 8px;
  background: #fffaff;
  color: #4d317d;
  font: inherit;
}

/* 2026-05-14 violet position polish: centered ECG, lighter table field, fixed manual-open close. */
body.violet-page .position-title {
  min-height: 24px;
  justify-content: center;
  padding-top: 0;
  transform: translateY(-5px);
}

body.violet-page .position-tools {
  width: 100%;
  justify-content: center;
}

body.violet-page .heartbeat {
  width: min(280px, 72vw);
  height: 26px;
}

body.violet-page .heartbeat .ecg {
  width: min(280px, 72vw);
  height: 22px;
}

body.violet-page .positions {
  background: transparent !important;
}

body.violet-page .position-table th,
body.violet-page .position-table td {
  border-color: rgba(231, 208, 255, .2) !important;
  border-width: .5px;
}

body.violet-page .position-symbol-cell {
  text-align: center;
}

body.violet-page .position-symbol-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 5px rgba(36, 18, 72, .22));
}

body.violet-page .position-symbol-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

body.violet-page .position-strategy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 4px;
  border: .5px solid rgba(219, 196, 255, .45);
  border-radius: 6px;
  background: rgba(246, 237, 255, .12);
  color: rgba(247, 240, 255, .88);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  transform: translateY(.5px);
}

body.violet-page .position-table th {
  background: rgba(116, 80, 168, .18);
}

body.violet-page .manual-open-panel {
  width: min(208px, 48vw);
}

/* Violet operation feedback to match the translucent card prompt style. */
body.violet-page .operation-feedback {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  border-color: rgba(238, 214, 255, .76);
  background:
    linear-gradient(135deg, rgba(239, 218, 255, .98), rgba(220, 192, 251, .98));
  color: #21133f;
  box-shadow:
    0 20px 40px rgba(24, 8, 54, .38),
    0 0 28px rgba(205, 111, 255, .48),
    inset 0 1px 0 rgba(255, 255, 255, .76);
  transform-origin: 50% 0;
  transform: translate(-50%, -130%) scale(.58);
  transition: opacity .16s ease;
}

body.violet-page .operation-feedback.show {
  animation: violetFeedbackTopPop .54s cubic-bezier(.2, .72, .2, 1) both;
}

body.violet-page .operation-feedback.show .operation-feedback-icon {
  animation: violetFeedbackIconPulse .56s ease-out both;
}

body.violet-page .operation-feedback.success {
  box-shadow:
    0 20px 40px rgba(24, 8, 54, .34),
    0 0 26px rgba(35, 211, 121, .34),
    inset 0 1px 0 rgba(255, 255, 255, .76);
}

body.violet-page .operation-feedback.error {
  box-shadow:
    0 20px 40px rgba(24, 8, 54, .34),
    0 0 26px rgba(255, 55, 104, .44),
    inset 0 1px 0 rgba(255, 255, 255, .76);
}

body.violet-page .operation-feedback.warning {
  box-shadow:
    0 20px 40px rgba(24, 8, 54, .34),
    0 0 26px rgba(255, 143, 35, .4),
    inset 0 1px 0 rgba(255, 255, 255, .76);
}

/* 2026-05-14 violet interaction tuning: manual open, compact PNL, centered ECG, settings drawers. */
body.violet-page .hero-session-pnl.session-pnl {
  gap: 9px;
  font-size: 10.5px;
}

body.violet-page .hero-session-pnl.session-pnl > span {
  font-size: 10.5px;
}

body.violet-page .hero-session-pnl.session-pnl b,
body.violet-page .hero-session-pnl.session-pnl b.down {
  font-size: 16px;
}

body.violet-page .hero-session-pnl.session-pnl b.up,
body.violet-page .hero-session-pnl.session-pnl b.profit-tier-base {
  color: #66e7a8;
}

body.violet-page .hero-session-pnl.session-pnl b.profit-tier-mid {
  color: #66e7a8;
  font-size: 20px;
}

body.violet-page .hero-session-pnl.session-pnl b.profit-tier-high {
  color: #66e7a8;
  font-size: 24px;
}

body.violet-page .position-tools {
  transform: translateX(-78px);
}

body.violet-page .position-table th {
  background: rgba(72, 47, 116, .72) !important;
  color: #f1e8fb;
}

body.violet-page .position-direction {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 28px;
  font-weight: 600;
}

body.violet-page .position-direction i {
  font-style: normal;
  font-size: .72em;
  font-weight: 500;
  opacity: .9;
}

body.violet-page .position-direction.is-long,
body.violet-page .position-pnl.is-profit {
  color: #66e7a8 !important;
}

body.violet-page .position-direction.is-short,
body.violet-page .position-pnl.is-loss {
  color: #ff6f98 !important;
}

body.violet-page .position-pnl.is-flat {
  color: #F7F7FC !important;
}

body.violet-page .manual-open-panel {
  width: min(220px, 52vw);
  gap: 8px;
}

body.violet-page .manual-open-panel .manual-margin-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

body.violet-page .manual-side-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.violet-page .manual-side-action {
  height: 30px;
  border: .2px solid rgba(95, 63, 152, .42);
  border-radius: 9px;
  color: #fffaff;
  font-weight: 700;
}

body.violet-page .manual-side-action.long {
  background: #6fb78f;
}

body.violet-page .manual-side-action.short {
  background: #c84e73;
}

body.violet-page .manual-side-action:active {
  transform: translateY(1px) scale(.98);
}

body.violet-page .manual-side-action:disabled {
  opacity: .58;
  cursor: wait;
  filter: grayscale(.18);
  transform: none;
}

body.violet-page .back-arrow-icon {
  width: 48px;
  height: 34px;
  opacity: .98;
  animation: violetBackArrowPoint 1.2s ease-in-out infinite;
  filter:
    drop-shadow(0 0 9px rgba(216, 184, 255, .7))
    drop-shadow(0 5px 8px rgba(47, 27, 84, .28));
}

body.violet-page .strategy-section {
  width: min(100% - 42px, 720px);
  margin: 0 auto;
  padding: 0;
}

body.violet-page .strategy-card-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.violet-page .exit-settings-panel {
  width: min(390px, 100%);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(231, 222, 255, .18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(71, 59, 116, .13)),
    rgba(13, 13, 28, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(15, 8, 42, .14);
}

body.violet-page .strategy-exit-panel {
  width: 100%;
}

body.violet-page .exit-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.violet-page .exit-settings-head div {
  display: grid;
  gap: 2px;
}

body.violet-page .exit-settings-head span {
  color: rgba(227, 219, 248, .62);
  font-size: 10px;
  font-weight: 700;
}

body.violet-page .exit-settings-head strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

body.violet-page .exit-settings-save {
  width: 64px;
  height: 30px;
  border: 1px solid rgba(74, 209, 205, .42);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(89, 93, 214, .32), rgba(71, 197, 190, .28));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(72, 55, 143, .16);
}

body.violet-page .exit-toggle-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

body.violet-page .exit-toggle {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(231, 222, 255, .14);
  border-radius: 12px;
  background: rgba(247, 242, 255, .055);
}

body.violet-page .exit-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #55d5ce;
}

body.violet-page .exit-toggle span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.violet-page .exit-toggle b {
  overflow: hidden;
  color: #f8f6ff;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.violet-page .exit-toggle em {
  overflow: hidden;
  color: rgba(227, 219, 248, .54);
  font-size: 10px;
  font-style: normal;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.violet-page .exit-symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.violet-page .exit-symbol-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.violet-page .exit-symbol-grid span {
  color: rgba(227, 219, 248, .6);
  font-size: 10px;
  font-weight: 700;
}

body.violet-page .exit-symbol-grid input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(231, 222, 255, .16);
  border-radius: 11px;
  background: rgba(12, 13, 30, .5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  padding: 0 10px;
}

body.violet-page .strategy-card {
  position: relative;
  gap: 8px;
  padding: 10px 11px;
  border-color: rgba(231, 222, 255, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(82, 104, 188, .22)),
    rgba(20, 28, 66, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 30px rgba(15, 28, 72, .2);
}

body.violet-page .bollinger-strategy-card {
  padding-bottom: 10px;
}

body.violet-page .strategy-card-help-link {
  justify-self: end;
  margin: -5px 18px 0 0;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(248, 246, 255, .82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  opacity: .86;
  cursor: pointer;
}

body.violet-page .strategy-card-help-link:hover {
  color: #ffffff;
  opacity: 1;
}

body.violet-page .strategy-card-help-link img {
  width: 21px;
  height: 14px;
  display: block;
  object-fit: contain;
  opacity: .96;
  transform: translateY(.5px);
  animation: violetForwardArrowNudge 1.15s ease-in-out infinite;
  filter:
    drop-shadow(0 0 5px rgba(216, 184, 255, .44))
    drop-shadow(0 2px 4px rgba(53, 27, 94, .22));
}

body.violet-page .strategy-card-head span {
  color: rgba(227, 219, 248, .66);
  font-size: 10px;
}

body.violet-page .strategy-card-actions {
  grid-column: auto;
  justify-self: end;
}

body.violet-page .strategy-card-head h3 {
  color: #f8f6ff;
  font-size: 16px;
  font-weight: 800;
}

body.violet-page .strategy-card .strategy-mode-card {
  width: min(246px, 100%);
}

body.violet-page .strategy-drawer {
  z-index: 26;
}

body.violet-page [data-mode-card="default"] .strategy-drawer,
body.violet-page [data-mode-card="steady"] .strategy-drawer {
  min-height: 226px;
  padding-bottom: 16px;
}

body.violet-page [data-mode-card="steady"] .strategy-drawer {
  min-height: 288px;
}

body.violet-page [data-bollinger-mode-card] .strategy-drawer {
  min-height: 168px;
  padding-bottom: 14px;
}

body.violet-page .strategy-mode-card.open .strategy-drawer {
  max-height: 620px;
}

body.violet-page [data-bollinger-mode-card].open {
  padding-bottom: 178px;
}

body.violet-page [data-bollinger-mode-card]:not(.open) {
  padding-bottom: 0 !important;
}

body.violet-page .strategy-mode-card:not(.open) .strategy-drawer,
body.violet-page .strategy-mode-card:not(.open):hover .strategy-drawer,
body.violet-page .strategy-mode-card:not(.open):focus-within .strategy-drawer {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -4px) !important;
}

body.violet-page .strategy-mode-card.open .strategy-drawer {
  padding-top: 25px !important;
  padding-bottom: 16px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) !important;
}

body.violet-page .strategy-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body.violet-page .strategy-card.settings-open {
  border-color: rgba(244, 238, 255, .34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(86, 112, 202, .26)),
    rgba(22, 32, 74, .6);
}

body.violet-page .strategy-card.is-strategy-disabled {
  border-color: rgba(231, 222, 255, .12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(82, 104, 188, .12)),
    rgba(20, 28, 66, .42);
}

body.violet-page .strategy-card-metric {
  display: grid;
  grid-template-columns: auto minmax(58px, auto) minmax(0, .82fr) max-content;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border-color: rgba(235, 226, 255, .16);
  background: rgba(246, 241, 255, .075);
}

body.violet-page .strategy-card-metric span {
  color: rgba(235, 226, 255, .72);
  font-size: 12px;
  font-weight: 800;
}

body.violet-page .strategy-card-metric strong {
  color: #ffffff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(198, 176, 255, .35);
}

body.violet-page .strategy-card-metric strong.win-rate-low {
  color: #ff5c9a;
  text-shadow: 0 0 14px rgba(255, 92, 154, .35);
}

body.violet-page .strategy-card-metric strong.win-rate-mid {
  color: #ffe66d;
  text-shadow: 0 0 14px rgba(255, 230, 109, .32);
}

body.violet-page .strategy-card-metric strong.win-rate-high {
  color: #35f0a0;
  text-shadow: 0 0 14px rgba(53, 240, 160, .34);
}

body.violet-page .strategy-card-metric em {
  color: rgba(235, 226, 255, .72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  body.violet-page .strategy-card-metric {
    grid-template-columns: auto minmax(48px, auto) max-content minmax(0, 1fr);
  }

  body.violet-page .strategy-card-metric .strategy-running-summary {
    grid-column: auto;
    justify-self: end;
    padding-left: 4px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
  }
}

body.violet-page .strategy-enable-toggle {
  min-width: 96px;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border-color: rgba(231, 222, 255, .18);
  background: rgba(247, 242, 255, .06);
  color: rgba(227, 219, 248, .62);
  white-space: nowrap;
}

body.violet-page .strategy-enable-toggle span {
  white-space: nowrap;
}

body.violet-page .strategy-enable-toggle i {
  flex: 0 0 auto;
  background: rgba(188, 177, 216, .74);
}

body.violet-page .strategy-enable-toggle.is-enabled {
  border-color: rgba(74, 209, 205, .42);
  background: linear-gradient(135deg, rgba(89, 93, 214, .24), rgba(71, 197, 190, .22));
  color: #f8f6ff;
  box-shadow: 0 8px 18px rgba(72, 55, 143, .14);
}

body.violet-page .strategy-enable-toggle.is-enabled i {
  background: linear-gradient(135deg, #f4f0ff, #55d5ce);
  box-shadow: 0 0 16px rgba(74, 209, 205, .32), inset 0 1px 0 rgba(255, 255, 255, .66);
}

body.violet-page .strategy-settings-toggle {
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  border-color: rgba(231, 222, 255, .22);
  background: rgba(247, 242, 255, .08);
  color: rgba(248, 246, 255, .86);
}


body.violet-page .rundong-strategy-card {
  opacity: 1;
}

body.violet-page .rundong-strategy-card.is-strategy-disabled {
  opacity: .78;
}

body.violet-page .strategy-placeholder-status {
  height: 32px;
  min-width: 86px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(231, 222, 255, .2);
  border-radius: 8px;
  background: rgba(247, 242, 255, .08);
  color: rgba(248, 246, 255, .72);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.violet-page .strategy-settings-toggle.active,
body.violet-page .strategy-settings-toggle:hover {
  border-color: rgba(74, 209, 205, .48);
  background: linear-gradient(135deg, rgba(89, 93, 214, .36), rgba(71, 197, 190, .3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(72, 55, 143, .2);
}

body.violet-page .strategy-settings-stack {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  align-content: center;
  gap: 34px;
  width: auto;
  padding: 18px;
  background: rgba(22, 10, 45, .48);
  -webkit-backdrop-filter: blur(16px) saturate(.86) brightness(.82);
  backdrop-filter: blur(16px) saturate(.86) brightness(.82);
}

body.violet-page .strategy-settings-stack::before {
  content: "";
  display: block;
  width: min(430px, calc(100vw - 110px));
  height: 46px;
  background: url("/assets/strategy-slogan-calligraphy.png?v=20260607-slogan-tight-sidepad-1") center / contain no-repeat;
  filter: none;
}

body.violet-page .strategy-settings-stack.is-open {
  display: grid;
}

body.violet-page.strategy-settings-modal-open {
  overflow: hidden;
}

body.violet-page.strategy-settings-modal-open .settings-top,
body.violet-page.strategy-settings-modal-open .account-switcher,
body.violet-page.strategy-settings-modal-open .settings-entry,
body.violet-page.strategy-settings-modal-open .strategy-card-grid,
body.violet-page.strategy-settings-modal-open .settings-footer {
  filter: blur(8px) saturate(.78) brightness(.72) !important;
  opacity: .58;
  pointer-events: none;
  transition: filter .18s ease, opacity .18s ease;
}

body.violet-page.strategy-settings-modal-open .api-access-button,
body.violet-page.strategy-settings-modal-open .api-popover {
  filter: blur(8px) saturate(.78) brightness(.72) !important;
  opacity: .55;
  pointer-events: none;
}

body.violet-page .strategy-settings-panel {
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border-color: rgba(231, 222, 255, .2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(71, 59, 116, .14)),
    rgba(13, 13, 28, .5);
  box-shadow: 0 22px 60px rgba(18, 8, 42, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  outline: none;
}

body.violet-page .strategy-settings-title {
  color: #f8f6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.violet-page .strategy-settings-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

body.violet-page .strategy-settings-close {
  border-color: rgba(231, 222, 255, .16);
  background: rgba(247, 242, 255, .06);
  color: rgba(229, 221, 250, .74);
}

body.violet-page .strategy-settings-title .exit-settings-save,
body.violet-page .strategy-settings-title .strategy-settings-close {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 34px;
  flex: 0 0 64px;
  padding: 0;
  line-height: 1;
  text-align: center;
}

body.violet-page .strategy-settings-symbol-picker {
  position: absolute !important;
  top: -30px;
  right: 0 !important;
  left: auto !important;
  z-index: 2;
  width: calc((100% - 16px) / 3);
  display: flex;
  justify-content: flex-end;
  margin: 0;
  transform: none;
}

body.violet-page .strategy-settings-symbol-picker .coin-options {
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
}

body.violet-page .strategy-settings-symbol-picker .coin-options label,
body.violet-page .strategy-settings-symbol-picker .coin-options label.active {
  font-size: 12px;
}

body.violet-page .strategy-settings-panel .strategy-mode-card,
body.violet-page .strategy-settings-panel [data-bollinger-mode-card].open,
body.violet-page .strategy-settings-panel [data-bollinger-mode-card]:not(.open) {
  width: 100%;
  padding-bottom: 0 !important;
}

body.violet-page .strategy-settings-panel .strategy-mode-card[hidden] {
  display: none !important;
}

body.violet-page .signal-template-row {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.violet-page .signal-template-row .strategy-mode-card {
  display: contents;
}

body.violet-page .signal-template-row .strategy-mode-button {
  order: 1;
  width: 100%;
  min-height: 38px;
}

body.violet-page .signal-template-row .symbol-mode-drawer {
  order: 2;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(340px, 100%);
}

body.violet-page .strategy-settings-panel .strategy-drawer,
body.violet-page .strategy-settings-panel .symbol-mode-drawer {
  position: static;
  left: auto;
  right: auto;
  width: 100%;
  min-height: 0 !important;
  max-height: 0 !important;
  margin-top: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none !important;
}

body.violet-page .strategy-settings-panel .strategy-mode-card.open .strategy-drawer,
body.violet-page .strategy-settings-panel .strategy-mode-card.open .symbol-mode-drawer {
  max-height: 680px !important;
  margin-top: 8px;
  padding-top: 25px !important;
  padding-bottom: 16px !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.violet-page .mode-save {
  width: min(136px, 48%);
  height: 34px;
  justify-self: center;
  align-self: center;
  border-radius: 12px;
}

body.violet-page.single-symbol-selected .symbol-mode-drawer {
  width: min(258px, calc(100vw - 88px));
}

body.violet-page.single-symbol-selected .symbol-param-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

body.violet-page.single-symbol-selected .symbol-param-group:not([hidden]) {
  width: 100%;
  max-width: 216px;
}

body.violet-page.dual-symbol-selected .symbol-mode-drawer {
  width: min(398px, calc(100vw - 24px));
}

body.violet-page.dual-symbol-selected .signal-template-row .symbol-mode-drawer {
  width: min(340px, 100%);
}

body.violet-page.single-symbol-selected .signal-template-row .symbol-mode-drawer {
  width: min(248px, 100%);
}

body.violet-page.auth-required .shell {
  opacity: .2;
  filter: saturate(.54) brightness(.58);
}

body.violet-page .auth-gate {
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: clamp(18px, 3.8vw, 44px);
  background: #000;
  backdrop-filter: blur(12px);
}

body.violet-page .auth-video-bg,
body.violet-page .auth-video,
body.violet-page .auth-wave-canvas,
body.violet-page .auth-video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.violet-page .auth-video-bg {
  display: block;
  overflow: hidden;
  z-index: 1;
  background: #000;
}

body.violet-page .auth-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .98;
  filter: saturate(1.04) brightness(.9) contrast(1.05);
}

body.violet-page .auth-wave-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1.2s ease-in;
}

body.violet-page .auth-video-shade {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 255, 255, .07), transparent 32%),
    radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 28%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .04) 48%, rgba(0, 0, 0, .18) 100%);
}

body.violet-page .auth-wave-canvas.is-ready {
  opacity: 1;
}

body.violet-page .auth-gate::before,
body.violet-page .auth-gate::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: 0;
  pointer-events: none;
}

body.violet-page .auth-gate::before {
  display: none;
}

body.violet-page .auth-gate::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .42), transparent 42%, rgba(0, 0, 0, .2)),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, .38) 76%);
  opacity: .82;
}

body.violet-page .auth-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(14px, 2vh, 26px);
  width: min(1180px, 100%);
  min-height: min(840px, calc(100svh - clamp(36px, 7.6vw, 88px)));
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #F7F7FC;
  box-shadow: none;
}

body.violet-page .auth-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: clamp(70px, 10vh, 120px);
  width: min(720px, 90vw);
  height: 180px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 18% 56%, rgba(128, 215, 255, .2), transparent 44%),
    radial-gradient(ellipse at 82% 52%, rgba(174, 128, 255, .22), transparent 44%),
    linear-gradient(90deg, transparent, rgba(247, 247, 252, .15), transparent);
  opacity: .52;
  filter: blur(34px);
  transform: translateX(-50%);
}

body.violet-page .auth-stage {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 0;
  padding: 0;
  overflow: visible;
  text-align: left;
  background: transparent;
}

body.violet-page .auth-stage::before {
  display: none;
}

body.violet-page .auth-stage-top,
body.violet-page .auth-app-brand {
  color: rgba(247, 247, 252, .72);
}

body.violet-page .auth-stage-top {
  order: -1;
  display: flex;
  justify-content: space-between;
  justify-self: start;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

body.violet-page .auth-app-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body.violet-page .auth-app-brand strong {
  color: #F8F8FC;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
}

body.violet-page .auth-status-strip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.violet-page .auth-status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(137, 218, 255, .18);
  border-radius: 999px;
  color: rgba(221, 247, 255, .76);
  background: rgba(6, 14, 28, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 18px rgba(66, 217, 255, .08);
  font-family: var(--font-number);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

body.violet-page .auth-status-strip i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #36f2a4;
  box-shadow: 0 0 12px rgba(54, 242, 164, .86);
  animation: violetAuthStatusPulse 1.6s ease-in-out infinite;
}

body.violet-page .auth-hero-copy {
  display: grid;
  justify-items: center;
  justify-self: center;
  gap: 14px;
  width: min(900px, 100%);
  max-width: 900px;
  margin-top: clamp(78px, 12vh, 122px);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  transition: opacity .22s ease, filter .22s ease;
}

body.violet-page .auth-hero-copy p,
body.violet-page .auth-hero-copy h1,
body.violet-page .auth-hero-subtitle,
body.violet-page .auth-hero-subtitle-en {
  margin: 0;
}

body.violet-page .auth-hero-kicker {
  display: grid;
  gap: 0;
  justify-items: center;
}

body.violet-page .auth-hero-kicker span {
  display: block;
}

body.violet-page .auth-hero-kicker span {
  color: rgba(137, 218, 255, .54);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: .12em;
}

body.violet-page .auth-hero-copy h1 {
  display: grid;
  gap: 10px;
  max-width: 980px;
  color: #F7F7FC;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1;
  font-weight: 700;
}

body.violet-page .auth-title-line {
  display: block;
  text-shadow: 0 0 34px rgba(247, 247, 252, .08);
}

body.violet-page .auth-title-line-accent {
  padding-left: 0;
}

body.violet-page .auth-hero-subtitle {
  max-width: 660px;
  color: rgba(247, 247, 252, .7);
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.55;
}

body.violet-page .auth-hero-subtitle-en {
  max-width: 720px;
  color: rgba(247, 247, 252, .52);
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.45;
}

body.violet-page .auth-experience-button {
  top: min(78%, calc(100% - 84px));
  overflow: hidden;
  min-width: 178px;
  height: 54px;
  padding: 0 34px;
  border-color: rgba(247, 247, 252, .14);
  color: rgba(247, 247, 252, .62);
  background:
    radial-gradient(circle at var(--auth-cta-x, 50%) var(--auth-cta-y, 50%), rgba(247, 247, 252, .16), transparent 38%),
    linear-gradient(180deg, rgba(247, 247, 252, .105), rgba(122, 216, 255, .04));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .32),
    0 0 26px rgba(122, 216, 255, .06),
    inset 0 1px 0 rgba(247, 247, 252, .12);
  font-size: 15px;
  letter-spacing: 0;
  opacity: .68;
}

body.violet-page .auth-experience-button:hover,
body.violet-page .auth-experience-button:focus-visible,
body.violet-page .auth-experience-button.is-awake {
  border-color: rgba(247, 247, 252, .58);
  color: #090914;
  background:
    radial-gradient(circle at var(--auth-cta-x, 50%) var(--auth-cta-y, 50%), rgba(255, 255, 255, .98), transparent 40%),
    linear-gradient(180deg, rgba(247, 247, 252, .96), rgba(194, 241, 255, .82));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, .42),
    0 0 60px rgba(122, 216, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  opacity: 1;
}

body.violet-page .auth-experience-button:active {
  transform: translate(-50%, calc(-50% + 1px)) scale(.99);
}

body.violet-page .auth-gate.is-auth-modal-open .auth-hero-copy {
  opacity: .62;
  filter: blur(.6px);
}

body.violet-page .auth-gate.is-auth-modal-open .auth-status-strip {
  opacity: .36;
  filter: blur(.4px);
}

body.violet-page .auth-modal-layer {
  z-index: 5;
  place-items: end center;
  padding: clamp(18px, 3.8vw, 44px);
  background:
    radial-gradient(ellipse at 50% 72%, rgba(122, 216, 255, .08), transparent 34%),
    rgba(0, 0, 0, .1);
  backdrop-filter: blur(3px);
}

body.violet-page .auth-content {
  justify-self: center;
  align-self: end;
  width: min(820px, 100%);
  min-height: 554px;
  padding: clamp(18px, 2.4vw, 24px) clamp(24px, 5vw, 56px);
  border: 1px solid rgba(247, 247, 252, .14);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 24% 96%, rgba(122, 216, 255, .12), transparent 42%),
    radial-gradient(ellipse at 78% 0%, rgba(174, 128, 255, .1), transparent 38%),
    linear-gradient(180deg, rgba(17, 18, 28, .58), rgba(24, 24, 40, .42));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(247, 247, 252, .18),
    inset 0 -1px 0 rgba(122, 216, 255, .1);
  backdrop-filter: blur(34px) saturate(1.14);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

body.violet-page .auth-modal-close {
  top: 16px;
  right: 16px;
  border-color: rgba(247, 247, 252, .16);
  color: rgba(247, 247, 252, .72);
  background: rgba(247, 247, 252, .052);
  backdrop-filter: blur(10px);
}

body.violet-page .auth-modal-close:hover {
  color: #090914;
  border-color: rgba(247, 247, 252, .72);
  background: #F7F7FC;
}

body.violet-page .auth-heading,
body.violet-page .auth-tabs,
body.violet-page .auth-login-method,
body.violet-page .auth-form,
body.violet-page .auth-message {
  width: min(560px, 100%);
  justify-self: center;
}

body.violet-page .auth-content:hover {
  border-color: rgba(247, 247, 252, .24);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, .44),
    0 0 44px rgba(122, 216, 255, .08),
    inset 0 1px 0 rgba(247, 247, 252, .22),
    inset 0 -1px 0 rgba(122, 216, 255, .14);
  transform: translateY(-1px);
}

body.violet-page .auth-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 16px;
  text-align: center;
}

body.violet-page .auth-heading h2 {
  grid-column: 1;
  color: #F7F7FC;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.12;
}

body.violet-page .auth-heading p,
body.violet-page .auth-message,
body.violet-page .auth-field {
  color: rgba(247, 247, 252, .7);
}

body.violet-page .auth-heading p {
  grid-column: 1;
  grid-row: auto;
  max-width: none;
  text-align: center;
}

body.violet-page .auth-tabs {
  width: min(240px, 100%);
  margin: 0 auto 18px;
  border-color: rgba(247, 247, 252, .12);
  border-radius: 999px;
  background: rgba(247, 247, 252, .052);
}

body.violet-page .auth-tabs button {
  height: 36px;
  border-radius: 999px;
  color: rgba(247, 247, 252, .72);
}

body.violet-page .auth-tabs button.active {
  color: #090914;
  background: #F7F7FC;
}

body.violet-page .auth-login-method {
  width: auto;
  height: 36px;
  margin: -8px auto 14px;
}

body.violet-page .auth-login-method button {
  width: 36px;
  height: 36px;
  border-color: rgba(247, 247, 252, .13);
  color: rgba(247, 247, 252, .72);
  background: rgba(247, 247, 252, .052);
  backdrop-filter: blur(10px);
}

body.violet-page .auth-login-method button.active {
  color: #090914;
  border-color: rgba(247, 247, 252, .72);
  background: #F7F7FC;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

body.violet-page .auth-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

body.violet-page .auth-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(247, 247, 252, .12);
  border-radius: 14px;
  background: rgba(247, 247, 252, .06);
  color: rgba(247, 247, 252, .76);
  font-size: 11px;
  line-height: 1.45;
}

body.violet-page .auth-consent input {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  accent-color: #F7F7FC;
}

body.violet-page .auth-consent a {
  color: #9fe5ff;
}

body.violet-page .auth-field input {
  height: 52px;
  border: 1px solid rgba(247, 247, 252, .14);
  border-radius: 14px;
  background: rgba(247, 247, 252, .052);
  color: #F7F7FC;
}

body.violet-page .auth-code-row {
  grid-template-columns: minmax(0, 1fr) 96px;
}

body.violet-page .auth-code-row button {
  height: 52px;
  border: 1px solid rgba(247, 247, 252, .16);
  border-radius: 14px;
  color: #090914;
  background: #F7F7FC;
  font-weight: 800;
}

body.violet-page .auth-gate.is-email-login .auth-form {
  width: min(560px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

body.violet-page .auth-gate.is-email-login .auth-field,
body.violet-page .auth-gate.is-email-login .auth-code-field,
body.violet-page .auth-gate.is-email-login .auth-consent,
body.violet-page .auth-gate.is-email-login .auth-submit {
  grid-column: 1;
  width: min(430px, 100%);
  justify-self: center;
}

body.violet-page .auth-gate.is-email-login .auth-code-row {
  grid-template-columns: minmax(0, 1fr) 88px;
}

body.violet-page .auth-field input:focus {
  border-color: rgba(137, 218, 255, .72);
  box-shadow:
    0 0 0 3px rgba(137, 218, 255, .12),
    0 0 24px rgba(137, 218, 255, .16);
}

body.violet-page .auth-submit {
  grid-column: 1 / -1;
  width: 100%;
  height: 52px;
  margin: 0;
  border-radius: 999px;
  border: 0;
  color: #090914;
  background: #F7F7FC;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .28),
    0 0 32px rgba(247, 247, 252, .12);
}

body.violet-page .auth-submit:active {
  transform: translateY(2px) scale(.985);
}

@media (max-width: 760px) {
  body.violet-page .auth-gate {
    padding: 14px;
  }

  body.violet-page .auth-panel {
    width: 100%;
    min-height: calc(100svh - 28px);
    grid-template-rows: minmax(0, 1fr);
    gap: 10px;
  }

  body.violet-page .auth-stage {
    min-height: 0;
    padding: 0;
  }

  body.violet-page .auth-stage-top {
    gap: 10px;
  }

  body.violet-page .auth-status-strip {
    gap: 5px;
    overflow: hidden;
  }

  body.violet-page .auth-status-strip span {
    height: 25px;
    padding: 0 8px;
    font-size: 8px;
  }

  body.violet-page .auth-hero-copy {
    gap: 8px;
    margin-top: 34px;
  }

  body.violet-page .auth-hero-copy h1 {
    gap: 8px;
    max-width: 360px;
    font-size: clamp(30px, 11vw, 44px);
  }

  body.violet-page .auth-title-line-accent {
    padding-left: 0;
  }

  body.violet-page .auth-hero-subtitle,
  body.violet-page .auth-hero-subtitle-en {
    max-width: 360px;
    font-size: 13px;
  }

  body.violet-page .auth-content {
    min-height: min(554px, calc(100svh - 40px));
    padding: 20px;
    border-radius: 22px;
  }

  body.violet-page .auth-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.violet-page .auth-heading p {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    text-align: left;
  }

  body.violet-page .auth-heading h2 {
    font-size: 23px;
  }

  body.violet-page .auth-form {
    grid-template-columns: 1fr;
  }

  body.violet-page .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  body.violet-page .auth-submit {
    width: 100%;
  }
}

@media (max-width: 380px) {
  body.violet-page .auth-panel {
    width: 100%;
  }

  body.violet-page .auth-stage {
    padding: 0;
  }

  body.violet-page .auth-hero-subtitle-en {
    display: none;
  }
}

@keyframes violetAuthStatusPulse {
  0%, 100% {
    opacity: .68;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.violet-page .auth-status-strip i {
    animation: none;
  }
}

@keyframes violetAuthFlow {
  0%, 100% {
    opacity: .64;
    transform: translateY(28px) scaleX(1.08) scaleY(.96);
    filter: blur(42px) saturate(1.04) brightness(.92);
  }
  42% {
    opacity: .9;
    transform: translateY(-16px) scaleX(.94) scaleY(1.08);
    filter: blur(34px) saturate(1.22) brightness(1.12);
  }
  58% {
    opacity: .82;
    transform: translateY(-2px) scaleX(.88) scaleY(1.1);
    filter: blur(36px) saturate(1.2) brightness(1.2);
  }
}

@keyframes violetAuthTunnel {
  0%, 100% {
    opacity: .56;
    transform: scale(1.08);
    filter: brightness(.9) blur(.4px);
  }
  44% {
    opacity: .72;
    transform: scale(.94);
    filter: brightness(1.18) blur(0);
  }
  58% {
    opacity: .64;
    transform: scale(.9);
    filter: brightness(1.34) blur(.12px);
  }
}

@keyframes violetBackArrowPoint {
  0%, 100% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(-5px);
  }
}

@keyframes violetForwardArrowNudge {
  0%, 100% {
    transform: translate(.5px, .5px) scale(1);
    opacity: .82;
  }
  46% {
    transform: translate(5px, .5px) scale(1.12);
    opacity: 1;
  }
}

@keyframes violetFeedbackPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(.9);
    filter: saturate(.8) brightness(.94);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, 4px) scale(1.035);
    filter: saturate(1.12) brightness(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes violetFeedbackTopPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -26px) scale(.72);
    filter: saturate(.82) brightness(.94) blur(.8px);
  }
  56% {
    opacity: .96;
    transform: translate(-50%, -6px) scale(.94);
    filter: saturate(.96) brightness(.99) blur(.18px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes violetFeedbackIconPulse {
  0% {
    transform: scale(.74);
    filter: brightness(.92);
  }
  48% {
    transform: scale(1.18);
    filter: brightness(1.18);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}


body.violet-page .account-switcher-actions .api-connector .api-access-button,
body.violet-page .account-switcher-actions .api-connector.connected .api-access-button {
  box-sizing: border-box;
  min-width: 112px;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(74, 209, 205, .42) !important;
  background: linear-gradient(135deg, rgba(89, 93, 214, .24), rgba(71, 197, 190, .22)) !important;
  color: #f8f6ff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(72, 55, 143, .14);
}

body.violet-page .account-switcher-actions .api-connector .api-access-button::before,
body.violet-page .account-switcher-actions .api-connector.connected .api-access-button::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4f0ff, #55d5ce);
  box-shadow: 0 0 16px rgba(74, 209, 205, .32), inset 0 1px 0 rgba(255, 255, 255, .66);
}


/* Keep the API action inside the account card right-side blank area. */
body.violet-page .account-switcher {
  position: relative;
}

body.violet-page .account-switcher.has-api-action .account-switcher-head {
  padding-right: 218px;
}

body.violet-page .account-switcher.has-api-action .account-switcher-actions {
  position: absolute;
  top: 58px;
  right: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.violet-page .account-switcher.has-api-action .api-connector {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.violet-page .account-switcher.has-api-action .api-access-button,
body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button {
  box-sizing: border-box;
  min-width: 146px;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(74, 209, 205, .44) !important;
  background: linear-gradient(135deg, rgba(89, 93, 214, .34), rgba(71, 197, 190, .27)) !important;
  color: #f8f6ff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(72, 55, 143, .16);
}

body.violet-page .account-switcher.has-api-action #logoutBtn {
  height: 38px;
  min-width: 62px;
  border-radius: 10px;
}

@media (max-width: 430px) {
  body.violet-page .account-switcher.has-api-action .account-switcher-head {
    padding-right: 188px;
  }
  body.violet-page .account-switcher.has-api-action .account-switcher-actions {
    top: 56px;
    right: 18px;
    gap: 8px;
  }
  body.violet-page .account-switcher.has-api-action .api-access-button,
  body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button {
    min-width: 132px;
    padding: 0 12px;
    font-size: 13px;
  }
}


/* Match account action buttons to strategy action height and shorten API button. */
body.violet-page .account-switcher.has-api-action .account-switcher-actions {
  top: 60px;
  right: 28px;
  gap: 10px;
}

body.violet-page .account-switcher.has-api-action .api-connector {
  flex: 0 0 112px;
  width: 112px;
}

body.violet-page .account-switcher.has-api-action .api-access-button,
body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

body.violet-page .account-switcher.has-api-action .api-access-button::before,
body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button::before {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

body.violet-page .account-switcher.has-api-action #logoutBtn {
  width: 64px;
  min-width: 64px;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px;
  border-radius: 8px;
}

@media (max-width: 430px) {
  body.violet-page .account-switcher.has-api-action .account-switcher-actions {
    top: 59px;
    right: 18px;
    gap: 8px;
  }
  body.violet-page .account-switcher.has-api-action .api-connector,
  body.violet-page .account-switcher.has-api-action .api-access-button,
  body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
  }
  body.violet-page .account-switcher.has-api-action #logoutBtn {
    width: 58px;
    min-width: 58px;
  }
}

/* Hide the leading dot on the account API action button. */
body.violet-page .account-switcher.has-api-action .api-access-button::before,
body.violet-page .account-switcher.has-api-action .api-connector.connected .api-access-button::before {
  display: none !important;
  content: none !important;
}

/* Move account action buttons up as requested. */
body.violet-page .account-switcher.has-api-action .account-switcher-actions {
  top: 25px !important;
}

@media (max-width: 430px) {
  body.violet-page .account-switcher.has-api-action .account-switcher-actions {
    top: 24px !important;
  }
}


body.violet-page .rundong-symbol-grid .symbol-param-group {
  align-content: start;
  gap: 8px;
  padding: 10px;
}

body.violet-page .rundong-symbol-grid .symbol-param-group > b {
  font-size: 12px;
  line-height: 1.1;
  margin-bottom: 2px;
}

body.violet-page .rundong-param-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 10px;
  border: 1.5px solid rgba(112, 77, 169, .24);
  border-radius: 14px;
  background: rgba(238, 234, 245, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

body.violet-page .rundong-param-card label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.violet-page .rundong-param-card label span {
  display: block;
  min-height: 14px;
  color: rgba(43, 32, 64, .72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

body.violet-page .rundong-param-card input {
  width: 100%;
  height: 30px;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 420px) {
  body.violet-page .rundong-param-card {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 2026-06-13: manual-open position state and non-blurred translucent prompts. */
body.violet-page .trade-run-confirm-modal {
  background: rgba(36, 18, 70, .34) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.violet-page .trade-button.manual-open {
  border-color: rgba(121, 87, 28, .3) !important;
  background: #e5c85f !important;
  color: #4d317d !important;
}

body.violet-page .trade-button.manual-open.has-position {
  border-color: rgba(126, 219, 255, .58) !important;
  background: #7fdcff !important;
  color: #2d1d60 !important;
}

body.violet-page .manual-open-panel {
  width: min(210px, calc(100vw - 42px)) !important;
  min-height: 150px;
  padding: 13px 10px;
  gap: 9px;
  border-color: rgba(226, 210, 255, .44) !important;
  background: rgba(241, 232, 251, .42) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 14px 28px rgba(31, 16, 57, .24);
}

body.violet-page .manual-side-action {
  height: 38px;
  font-size: 13px;
}


/* 2026-06-13: compact confirm modal and stronger window shadows. */
body.violet-page .trade-run-confirm-card {
  width: min(340px, calc(100vw - 44px)) !important;
  box-shadow:
    0 0 0 1px rgba(231, 208, 255, .30),
    0 0 28px rgba(15, 6, 34, .52),
    0 20px 48px rgba(12, 5, 28, .58),
    -12px 0 28px rgba(18, 7, 39, .26),
    12px 0 28px rgba(18, 7, 39, .26),
    inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

body.violet-page .manual-open-panel {
  box-shadow:
    0 0 0 1px rgba(226, 210, 255, .24),
    0 0 18px rgba(22, 8, 45, .34),
    0 14px 30px rgba(31, 16, 57, .34),
    -7px 0 18px rgba(22, 8, 45, .18),
    7px 0 18px rgba(22, 8, 45, .18) !important;
}


/* 2026-06-13: make help-learning entry a reliable direct link. */
body.violet-page .strategy-card-help-link {
  position: relative;
  z-index: 40;
  pointer-events: auto !important;
  min-height: 32px;
  padding: 6px 0 6px 12px !important;
  text-decoration: none;
  touch-action: manipulation;
}

body.violet-page .strategy-card-help-link span,
body.violet-page .strategy-card-help-link img {
  pointer-events: none;
}


/* 2026-06-13: auth gate must hide user shell until identity is verified. */
body.violet-page.auth-pending .shell,
body.violet-page.auth-required .shell {
  display: none !important;
}


/* 2026-06-13: direct render real auth gate on first paint. */
body.violet-page.auth-pending,
body.violet-page.auth-required {
  background: #000 !important;
}

body.violet-page.auth-pending .auth-gate,
body.violet-page.auth-required .auth-gate {
  display: grid;
}


/* 2026-06-13: direct auth background without pre-splash layer. */
body.violet-page.auth-pending,
body.violet-page.auth-required {
  background: #000 !important;
}

body.violet-page:not(.auth-pending):not(.auth-required) {
  background: #704DA9;
}

/* 2026-06-17 user home ECG up 20px and holdings height +20px. */
body.violet-page .home-view:not(.chart-expanded) .position-card-wrap {
  height: calc(100% + 20px);
  transform: translateY(-20px);
}
