@scope (body[data-patch-release="207"]) {
  :scope .launch-loader-title,
  :scope #splash .splash-content h1.launch-surface-title {
    top: max(calc(env(safe-area-inset-top) + 24px), 4.5dvh) !important;
    right: auto;
    left: 50% !important;
    width: min(34vw, 300px) !important;
    margin: 0;
    text-align: center;
    transform: translateX(-50%) !important;
  }

  :scope .launch-title-lockup { display: block; width: 100%; height: auto; object-fit: contain; }

  :scope #asset-summary-details .asset-summary-actions,
  :scope #stock-sellall-source {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  :scope #asset-summary-details .asset-summary-actions:has(> .ps-positions-toggle[data-empty-portfolio="true"]),
  :scope #stock-sellall-source:has(> .ps-positions-toggle[data-empty-portfolio="true"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :scope #asset-summary-details :is(.ps-positions-toggle, .ps-sellall-btn),
  :scope #stock-sellall-source > [data-portfolio-view="stock"] {
    box-sizing: border-box;
    width: 100% !important;
    grid-area: auto !important;
    height: 44px !important;
    margin: 0;
    padding-block: 0 !important;
    line-height: 1 !important;
  }

  :scope #asset-summary-details .ps-head { display: block !important; }
  :scope :is(#asset-summary-details,#stock-sellall-source) .ps-positions-toggle{display:flex;align-items:center;justify-content:center;gap:6px}
  :scope #stock-source-sellall{border:1px solid transparent}
  :scope .ps-positions-toggle>span{display:inline}
  :scope .ps-positions-toggle>em{margin-left:0}
  :scope #asset-summary-details .ps-value-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px}

  :scope #daytrade-field {
    isolation: isolate;
    position: relative;
    height: clamp(230px, 46dvh, 330px);
    overflow: hidden;
    background: #fbfcfe !important;
    border: 1px solid #d1d6db;
    box-shadow: none !important;
  }

  :scope #daytrade-modal:not(.is-intro):has(#daytrade-result.hidden) .daytrade-feature-visual {
    display: none !important;
  }

  :scope #daytrade-modal:not(.is-intro):has(#daytrade-result.hidden) > .daytrade-content {
    overflow-y: hidden !important;
  }

  :scope #daytrade-field::before {
    display: none !important;
  }

  :scope #daytrade-field::after {
    display: none !important;
  }

  :scope .daytrade-chart-art {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #8b95a1;
    pointer-events: none;
  }

  :scope .daytrade-chart-art::before {
    content: "";
  }

  :scope .daytrade-chart-line {
    fill: none;
    stroke: #3182f6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .74;
  }

  :scope .daytrade-chart-grid {
    fill: none;
    stroke: #e5e8eb;
    stroke-width: 1;
  }

  :scope .daytrade-chart-candles .up {
    fill: #f04452;
    stroke: #f04452;
  }

  :scope .daytrade-chart-candles .down {
    fill: #3182f6;
    stroke: #3182f6;
  }

  :scope .daytrade-chart-candles :is(.up, .down) {
    stroke-width: 3;
    opacity: .42;
  }

  :scope #daytrade-field :is(.daytrade-target, .daytrade-pop) {
    z-index: 2;
  }

  :scope #daytrade-modal #daytrade-field .daytrade-target {
    border: 3px solid #f04452;
    border-radius: 50% !important;
    color: #b72838;
    background: #fff;
    box-shadow: 0 6px 14px rgba(25, 31, 40, .16) !important;
    letter-spacing: 0;
  }

  :scope #daytrade-modal #daytrade-field .daytrade-target > span {
    font-size: 24px;
    line-height: 1;
  }

  :scope #daytrade-modal #daytrade-field .daytrade-target.gold {
    border-color: #f5b544;
    color: #8a5a00;
    background: #fff7df;
  }

  :scope #daytrade-modal #daytrade-field .daytrade-target.gold > span {
    font-size: 17px;
  }

  :scope #daytrade-modal #daytrade-field .daytrade-target.collected {
    color: #fff;
    background: #3182f6 !important;
    border-color: #3182f6 !important;
    transform: scale(.92);
    pointer-events: none;
  }

  :scope #ant-avatar[data-motion-frame="celebrate"] {
    animation: antCelebrateStableV207 700ms cubic-bezier(.2, .8, .2, 1) both !important;
  }

  :scope #ant-avatar[data-motion-frame="talk"] {
    animation: antTalkStableV207 860ms ease-in-out both !important;
  }

  :scope #ant-avatar[data-motion-frame="step-left"],
  :scope #ant-avatar[data-motion-frame="step-right"] {
    animation: antWorkStableV207 760ms ease-in-out both !important;
  }

  @media (width <= 520px) {
    :scope .launch-loader-title,
    :scope #splash .splash-content h1.launch-surface-title {
      top: max(calc(env(safe-area-inset-top) + 22px), 4.5dvh) !important;
      left: 50% !important;
      width: min(57vw, 270px) !important;
    }

    :scope .ps-positions-toggle > span[data-compact-label] { font-size: 0; }
    :scope .ps-positions-toggle > span[data-compact-label]::after {
      content: attr(data-compact-label);
      font-size: 13px;
    }
    :scope .ps-positions-toggle { position: relative; }
    :scope .ps-positions-toggle > em { position: absolute; right: 8px; }

    :scope #daytrade-field {
      height: clamp(240px, 43dvh, 310px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    :scope #ant-avatar[data-motion-frame] {
      animation: none !important;
    }
  }
}

@keyframes antCelebrateStableV207 {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  34% { transform: translateY(-16px) rotate(-3deg) scale(1.07); }
  64% { transform: translateY(-5px) rotate(3deg) scale(1.035); }
}

@keyframes antTalkStableV207 {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-5px) rotate(-2deg); }
  65% { transform: translateY(-2px) rotate(2deg); }
}

@keyframes antWorkStableV207 {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0); }
  28% { transform: translateX(-12px) translateY(-8px) rotate(-2deg); }
  62% { transform: translateX(18px) translateY(-5px) rotate(2deg); }
}
