.market-strategy-body .investment-projection-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.investment-projection-panel .projection-chart-summary,
.investment-projection-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.investment-projection-panel .projection-chart-summary {
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.investment-projection-panel .projection-chart-summary dt {
  font-size: clamp(11px, 2.5vw + 1px, 13px);
}
.investment-projection-panel .projection-chart-summary dd {
  color: #edf6fa;
  font-size: clamp(13px, 3vw + 1px, 17px);
  overflow-wrap: anywhere;
}
.investment-projection-panel .projection-running-days,
#bot-expo .spot-running-days { color: #55d8e8; font: inherit; }
.projection-legend-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 8px 6px;
  border: 1px solid var(--provision-line, rgba(145, 167, 181, .22));
  border-radius: 7px;
  background: rgba(2, 9, 14, .64);
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.investment-projection-panel .projection-legend-percent {
  color: #edf6fa;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.projection-legend-percent small { color: #91a7b5; font-size: 10px; font-weight: 600; }
.investment-projection-panel .projection-legend-name {
  color: #b8cbd4;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.projection-legend-name::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.projection-legend-actual .projection-legend-name::before { background: #63d489; }
.projection-legend-estimate .projection-legend-name::before { background: linear-gradient(90deg, #e7b95e, #63d489); }
.projection-legend-pace .projection-legend-name::before { width: 18px; background: repeating-linear-gradient(90deg, #63d489 0 5px, transparent 5px 8px); }
.investment-projection-panel .projection-legend-amount {
  display: block;
  margin: 0;
  color: #e7b95e;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
.projection-legend-actual .projection-legend-amount,
.projection-legend-pace .projection-legend-amount { color: #7bdfa6; }
.projection-legend-item .projection-legend-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #91a7b5;
  font-size: 12px;
  font-weight: 600;
}
.investment-projection-panel > footer small { font-size: 10px; }
.investment-projection-panel > footer strong { font-size: 12px; }
.investment-projection-panel .actual-chart-balance { font-size: 14px; }

#bot-expo .spot-return-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#bot-expo .spot-return-metrics > .metric-card { min-width: 0; overflow-wrap: anywhere; }
#bot-expo .spot-profit-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
#bot-expo .spot-stop-action { display: flex; justify-content: flex-end; margin-top: 14px; }

.spot-profit-period-mobile { --spot-profit-chart-height: 254.4px; }
.spot-profit-period-mobile .multi-coin-customer-period-chart,
.spot-profit-period-mobile .multi-coin-customer-period-chart > .bot-message {
  min-height: var(--spot-profit-chart-height);
}
.spot-profit-period-mobile .multi-coin-customer-period-chart svg {
  height: var(--spot-profit-chart-height);
}
.order-summary-card.accumulated-orders-card {
  min-width: 0;
  align-self: start;
  padding: 10px;
}
.accumulated-orders-card > header { margin-bottom: 7px; }
.accumulated-orders-card h3 {
  margin: 0;
  font-size: clamp(12px, 2.8vw, 14px);
}
.accumulated-order-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1vw, 8px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.accumulated-order {
  min-width: 0;
  padding: 6px 4px;
  display: grid;
  align-content: start;
  gap: 3px;
  border: 1px solid var(--provision-line, rgba(84, 215, 232, .14));
  border-radius: 6px;
  background: rgba(2, 9, 14, .55);
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.accumulated-order > strong {
  color: var(--text, #edf6fa);
  font-size: clamp(11px, 2.8vw, 14px);
}
.accumulated-order-change { color: var(--green, #7bdfa6); font-weight: 700; }
.accumulated-order-price { color: var(--muted, #a7b8c2); }
.accumulated-order-price > b { display: block; margin-top: 2px; color: var(--cyan, #55d8e8); }
.pair-tile .pair-tile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pair-tile.pair-tile-with-days {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.pair-tile-with-days .pair-tile-main { padding: 13px 10px; gap: 8px; }
.pair-tile-with-days .pair-tile-icons { width: 64px; height: 40px; flex: 0 0 64px; }
.pair-tile-with-days .pair-coin { width: 30px; }
.pair-tile-with-days .pair-coin img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.pair-tile-with-days .pair-tile-identity strong { line-height: 1.15; overflow-wrap: anywhere; }
.pair-tile .pair-tile-days {
  min-width: 0;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: rgba(99, 212, 137, .035);
  text-align: center;
}
.pair-tile-days small {
  color: #adc1cc;
  font: 500 11px/1.2 var(--font-ui, "Segoe UI", Arial, sans-serif);
  letter-spacing: 0;
  text-transform: none;
}
.pair-tile-days b {
  max-width: 100%;
  color: #7bdfa6;
  font: 700 24px/1.1 var(--font-ui, "Segoe UI", Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .investment-projection-panel > footer strong { font-size: 11px; }
  .investment-projection-panel .actual-chart-balance { font-size: 11px; }
}
@media (max-width: 680px) {
  #bot-expo .spot-profit-summary { grid-template-columns: minmax(0, 1fr); }
  #bot-expo .spot-return-metrics { gap: 8px; }
  #bot-expo .spot-return-metrics > .metric-card { padding: 10px 27px 10px 10px; }
  #bot-expo .spot-return-metrics .metric-card strong { font-size: clamp(17px, 5vw, 22px); }
  #bot-expo .spot-return-metrics .metric-card .metric-orb { width: 22px; height: 25px; font-size: 16px; }
}
@media (max-width: 600px) {
  .investment-projection-panel .projection-chart-summary,
  .investment-projection-legend { gap: 5px; }
  .projection-legend-item { padding: 7px 3px; }
  .investment-projection-panel .projection-legend-percent { font-size: 13px; }
  .investment-projection-panel .projection-legend-amount { font-size: clamp(12px, 3.4vw + 1px, 15px); }
  .investment-projection-panel .projection-legend-name { font-size: 10px; }
}
@media (max-width: 350px) {
  .investment-projection-panel > footer small { font-size: 9px; }
  .investment-projection-panel > footer strong { font-size: 9.5px; }
}

.metric-grid.futures-overview-grid {
  --futures-metric-icon-clearance: 58px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.futures-overview-grid > .metric-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  padding-inline-end: 18px;
  padding-bottom: 42px;
}
.futures-overview-grid > .metric-card:not(:has(> .futures-quantity-breakdown)) {
  padding-block: 10px;
  padding-inline-end: var(--futures-metric-icon-clearance);
  align-content: start;
  gap: 5px;
}
.futures-overview-grid > .metric-card > strong {
  font-size: clamp(20px, 2.5vw, 29px);
  overflow-wrap: anywhere;
}
.futures-overview-grid > .metric-card > .metric-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: none;
  padding-inline: 0;
  padding-block-end: 3px;
  border-block-end: 1px solid rgba(130, 174, 186, .36);
  font-size: clamp(16px, 1.25vw, 17px);
  text-align: center;
}
.futures-overview-grid > .metric-card:not(:has(> .futures-quantity-breakdown)) > .metric-label {
  margin-inline-end: calc(18px - var(--futures-metric-icon-clearance));
}
.futures-equity-breakdown,
.futures-long-breakdown {
  display: grid;
  row-gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.futures-equity-breakdown > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.futures-long-breakdown > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 7px;
}
.futures-equity-breakdown dt,
.futures-long-breakdown dt { color: #a6b8c4; }
.futures-equity-breakdown dd,
.futures-long-breakdown dd { min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.futures-long-breakdown dd > strong { font-size: 16px; }
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  .metric-grid.futures-overview-grid {
    --futures-metric-icon-clearance: 40px;
    grid-template-columns: minmax(0, 1fr);
  }
  .futures-overview-grid > .metric-card > .metric-label { font-size: clamp(15px, 4vw, 16px); }
  .futures-overview-grid > .metric-card > .metric-orb { width: 32px; height: 34px; font-size: 20px; }
  .futures-overview-grid .metric-orb-token img { width: 25px; height: 25px; }
  .futures-long-breakdown dd > strong { font-size: 14px; }
}

/* The mobile Spot partial supplies the marker on its profit chart. */
#bot-expo:has(.spot-profit-period-mobile) .bot-detail-tab-panel > .metric-grid {
  margin-bottom: 12px;
  row-gap: 8px;
}
#bot-expo:has(.spot-profit-period-mobile) .detail-grid { row-gap: 10px; }
#bot-expo:has(.spot-profit-period-mobile) .spot-summary-values {
  margin-top: 7px;
  row-gap: 3px;
}
#bot-expo:has(.spot-profit-period-mobile) .spot-summary-card[data-spot-balance="asset"] { padding-block: 12px; }
#bot-expo:has(.spot-profit-period-mobile) .spot-coin-breakdown {
  margin-top: 8px;
  padding-top: 6px;
  line-height: 1.25;
}
#bot-expo:has(.spot-profit-period-mobile) .spot-summary-card[data-spot-balance="value"] {
  min-height: 64.6px;
  align-self: start;
  align-content: center;
  padding: 6px 10px;
}
#bot-expo:has(.spot-profit-period-mobile) [data-spot-balance="value"] .spot-summary-heading { min-height: 0; }
#bot-expo:has(.spot-profit-period-mobile) [data-spot-balance="value"] .spot-summary-values { margin-top: 3px; }
#bot-expo:has(.spot-profit-period-mobile) [data-spot-balance="value"] .spot-summary-values strong { line-height: 1.12; }
#bot-expo:has(.spot-profit-period-mobile) .spot-return-metrics > .metric-card {
  min-height: 51.6px;
  padding-block: 4px;
  align-content: center;
  row-gap: 2px;
}
#bot-expo:has(.spot-profit-period-mobile) .spot-return-metrics .metric-label { line-height: 1.1; }

#bot-expo:has(.spot-profit-period-mobile) .bot-strategy-projections { margin-top: 12px; }
#bot-expo:has(.spot-profit-period-mobile) .market-strategy-details > summary {
  min-height: 0;
  padding-block: 5px;
  line-height: 1.2;
}
#bot-expo:has(.spot-profit-period-mobile) .market-strategy-details > summary > span:first-child { vertical-align: middle; }
#bot-expo:has(.spot-profit-period-mobile) .market-strategy-details > summary > small { display: inline; margin: 0 0 0 8px; }
#bot-expo:has(.spot-profit-period-mobile) .market-strategy-body { padding-block: 2px 10px; }
#bot-expo:has(.spot-profit-period-mobile) .market-strategy-body .investment-projection-panel {
  margin-top: 6px;
  padding-top: 5px;
}
#bot-expo:has(.spot-profit-period-mobile) .investment-projection-panel > header { row-gap: 7px; }
#bot-expo:has(.spot-profit-period-mobile) .projection-legend-item { gap: 2px; padding-block: 5px; }

#bot-expo:has(.spot-profit-period-mobile) .metric-card.locked-extra-card { padding: 11px 13px; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card :is(.metric-label, .extra-label, .extra-value > strong, .extra-exit > div > strong, .extra-unit) {
  font-size: 14px;
  line-height: 1.2;
}
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .extra-unit { color: inherit; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .execution-edge-value > strong:not(.negative, .neutral) { color: #76de9c; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .extra-values { margin-top: 7px; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .extra-exit { margin-top: 8px; padding-top: 7px; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .extra-exit > div > .extra-label {
  display: flex;
  align-items: center;
  min-height: 20px;
  gap: 2px;
}
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card .extra-exit .context-help { margin-left: 0; }
#bot-expo:has(.spot-profit-period-mobile) .locked-extra-card :is(.extra-value > strong, .extra-exit > div > strong) { margin-top: 3px; }

#bot-expo:has(.spot-profit-period-mobile) .profit-history-notice { margin-top: 4px; line-height: 1.25; }
#bot-expo .spot-profit-period-mobile > .multi-coin-customer-period-header { row-gap: 8px; margin-bottom: 10px; }
#bot-expo:has(.spot-profit-period-mobile) .accumulated-order { row-gap: 2px; padding-block: 5px; }

@media (min-width: 681px) {
  #bot-expo:has(.spot-profit-period-mobile) .spot-return-metrics > .metric-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }
}

/* Only the status supplied by the confirmed-stop presentation gets this frame. */
.dashboard-shell :is(.bot-pair-card, .portfolio-market-item):has(.bot-status.status-stopped),
.market-allocation:has(> header > .request-status-stopped),
.investment-card:has(> header > .request-status-stopped) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.bot-status.status-stopped,
.request-status.request-status-stopped {
  color: #190605;
  background: var(--red);
}

#bot-expo .detail-grid > .accumulated-orders-card {
  grid-column: 1 / -1;
}

.stopped-bot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px 8px;
  inline-size: min(100%, 18rem);
  margin: 14px 0 0 auto;
}

.stopped-bot-actions > form { margin: 0; }
.stopped-bot-actions > .bot-status,
.stopped-bot-actions .customer-bot-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 38px;
  padding: 4px 8px;
  border-radius: 8px;
  font: 800 12px/1.15 var(--font-ui);
  letter-spacing: normal;
  text-align: center;
}
.stopped-bot-actions > .bot-status:only-child { grid-column: 2; }
.stopped-bot-actions > small {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: right;
}

.member-topbar-center:has(> .futures-refresh-summary) {
  align-content: center;
  gap: 3px;
  overflow: visible;
}
.futures-refresh-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--amber, #e7b95e);
  font-family: var(--font-ui, "Segoe UI", sans-serif);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}
.mobile-dashboard-header > .futures-refresh-summary {
  font-size: clamp(10px, 3vw, 12px);
  gap: 5px;
}
.futures-refresh-summary time { font-variant-numeric: tabular-nums; }
.futures-refresh-summary [data-futures-refresh-message] {
  overflow: hidden;
  text-overflow: ellipsis;
}
.futures-refresh-summary [data-futures-refresh-message]:not([hidden])::before {
  content: "\00b7";
  margin-inline-end: 5px;
}

.bot-type-panel > .futures-group-header,
.spot-market-totals {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(99, 147, 238, .26);
  border-radius: 6px;
  background: rgba(9, 23, 42, .48);
}
.bot-type-panel > .futures-group-header > .bot-type-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  width: 100%;
}
.bot-type-panel > .futures-group-header > .bot-type-totals:only-child { margin-inline: 0; }
.futures-group-header .bot-type-total-row {
  display: grid;
  justify-content: stretch;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.futures-group-header .bot-type-total-row > small {
  font-size: clamp(11px, 3vw, 13px);
  white-space: nowrap;
}
.futures-group-header .bot-type-total-row > :is(strong, span) {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(14px, 4vw, 19px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .mobile-dashboard-shell .bot-market-section-futures .bot-pair-card > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-dashboard-shell .bot-market-section-futures .bot-pair-card > dl > div > dt { white-space: nowrap; }
}

.mobile-dashboard-header > .mobile-dashboard-brand-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
.mobile-dashboard-shell:not(.is-vault-details-frame) .mobile-dashboard-header:not(.mobile-dashboard-header-with-page-heading):has(.futures-refresh-summary) {
  grid-template-rows: 42px auto;
  row-gap: 4px;
}
.mobile-dashboard-shell:not(.is-vault-details-frame) .mobile-dashboard-header:not(.mobile-dashboard-header-with-page-heading):has(.futures-refresh-summary)
  :is(.mobile-dashboard-title-row, .mobile-dashboard-title-zone, .mobile-dashboard-actions, .mobile-dashboard-command-stack) {
  height: auto;
}
.portfolio-stopped-actions:not(:has(> *)) { display: none; }

.futures-page-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.mobile-dashboard-title-zone > .futures-page-title-row { justify-content: flex-start; }
.futures-page-title-row > .market-add-button { flex: 0 0 auto; }
.dashboard-page-market .bot-market-section-futures .bot-market-groups { grid-template-columns: minmax(0, 1fr); }
.futures-market-stop { display: grid; justify-items: end; margin-top: 14px; }
.futures-market-stop .spot-stop-action { margin-top: 0; }
.mobile-dashboard-shell .bot-pair-card > dl.bot-card-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.mobile-dashboard-shell .bot-pair-card > .bot-card-metrics > div { min-width: 0; }
.mobile-dashboard-shell .bot-card-metrics > div > dt { font-size: 11px; white-space: nowrap; }
.mobile-dashboard-shell .bot-card-metrics > div > dd { margin-top: 4px; overflow-wrap: anywhere; white-space: normal; }
.mobile-dashboard-shell .bot-card-metrics .bot-metric-days > dd { color: #7bdfa6; font-size: 18px; }
@media (max-width: 420px) {
  .mobile-dashboard-shell .bot-pair-card > dl.bot-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-dashboard-shell .dashboard-content .pair-tile-with-days .pair-tile-main { padding-inline: 7px; gap: 6px; }
  .mobile-dashboard-shell .dashboard-content .pair-tile-with-days .pair-tile-icons { width: 52px; flex-basis: 52px; }
}

.futures-projection-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-inline: 14px;
  padding-block: 4px 3px;
  border-block-end: 1px solid var(--provision-line, rgba(130, 174, 186, .28));
}
.futures-projection-heading-title { display: flex; align-items: center; }
.futures-projection-heading-title > h3 {
  margin: 0;
  color: var(--provision-cyan, #55d8e8);
  font-size: 16px;
  line-height: 1.2;
}
.futures-projection-heading-bot {
  min-width: 0;
  color: var(--provision-muted, #adc1cc);
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}
.futures-static-projection > .market-strategy-body { padding-top: 4px; }
.futures-static-projection .investment-projection-panel { margin-top: 0; padding-top: 2px; border-top: 0; }
.futures-static-projection .market-projection-unavailable { margin-top: 0; padding-top: 4px; }

.dashboard-page-market .bot-market-section-futures .bot-type-panel-futures { display: contents; }
.dashboard-page-market .bot-market-section-futures .futures-group-header .bot-type-total-row:first-child > strong {
  color: var(--amber, #e7b95e);
}

.dashboard-content:has(> .futures-market-summary) { --futures-pair-gap: 14px; }
.dashboard-content > .futures-market-summary { margin-block-end: var(--futures-pair-gap); }
.futures-market-summary + .pair-rail-block .pair-rail { gap: var(--futures-pair-gap); }
.futures-market-summary .futures-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.futures-market-summary .futures-group-header > .bot-type-totals { display: contents; }
.futures-market-summary .bot-type-total-row:first-child { grid-area: 1 / 1; }
.futures-market-summary .bot-type-total-row:nth-child(2) { grid-area: 1 / 3; }
.futures-market-summary .futures-summary-add-bot {
  grid-area: 1 / 2;
  justify-self: center;
  padding-inline: clamp(6px, 2vw, 12px);
  white-space: nowrap;
}
.mobile-dashboard-header .futures-page-title-row > .mobile-dashboard-title { flex: 0 0 auto; }
.mobile-dashboard-header .futures-page-title-row > .futures-refresh-summary {
  min-width: 0;
  gap: 5px;
  font-size: clamp(10px, 2.8vw, 12px);
}
@media (max-width: 360px) {
  .futures-market-summary .futures-group-header { column-gap: 4px; padding-inline: 6px; }
  .futures-market-summary .bot-type-total-row > small { font-size: 10px; }
  .futures-market-summary .futures-summary-add-bot { min-width: 60px; font-size: 12px; }
}

.mobile-dashboard-header .futures-page-title-row { align-items: baseline; }

.mobile-dashboard-shell .futures-market-summary .futures-summary-add-bot {
  min-width: 76.8px;
  padding-inline: calc(clamp(6px, 2vw, 12px) * 1.2 + 5px);
}

@media (max-width: 360px) {
  .mobile-dashboard-shell .futures-market-summary .futures-summary-add-bot { min-width: 72px; }
  .mobile-dashboard-shell #portfolio-closed-period { padding-inline: 8px; }
}

:is(.portfolio-mobile-period, [data-bot-profit-periods]) .portfolio-period-title-year {
  color: var(--cyan, #54d7e8);
  font: inherit;
  letter-spacing: inherit;
}

.mobile-dashboard-shell .dashboard-content :is(#portfolio-mobile-period, #portfolio-closed-period, [data-bot-profit-periods]) > header.multi-coin-customer-period-header {
  --portfolio-period-value-size: clamp(13px, 4vw, 18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(108px, calc((100% - 12px) / 3)), max-content) minmax(0, 1fr);
  grid-template-areas: "heading heading heading" "year total month";
  gap: 8px 6px;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) > .multi-coin-customer-period-header > :first-child { grid-area: heading; }
.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls { display: contents; }

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) :is(.multi-coin-customer-period-controls > label, .multi-coin-customer-period-total) {
  display: grid;
  grid-template-rows: auto 32px;
  align-self: end;
  min-width: 0;
  text-align: center;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls > label {
  width: 100%;
  max-width: 108px;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls > label:first-child { grid-area: year; }
.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls > label:nth-child(2) {
  grid-area: month;
  justify-self: end;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) :is(.multi-coin-customer-period-controls > label, .multi-coin-customer-period-total) > span {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls :is(select, .dark-period-picker-trigger) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding-inline: 8px;
  font-size: var(--portfolio-period-value-size);
  letter-spacing: -.025em;
  text-align: center;
  text-align-last: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .dark-period-picker-trigger::after {
  box-sizing: border-box;
  right: 3px;
  width: 4px;
  height: 4px;
  border-width: 1px;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-total {
  grid-area: total;
  padding: 0;
  margin: 0;
  border: 0;
  white-space: nowrap;
}

.mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-total > strong {
  display: grid;
  place-items: center;
  min-width: 74px;
  padding-inline: 5px;
  border: 1px solid rgba(84, 215, 232, 0.25);
  border-radius: 7px;
  background: #071724;
  font-size: var(--portfolio-period-value-size) !important;
}

@media (max-width: 360px) {
  .mobile-dashboard-shell #portfolio-mobile-period { padding-inline: 8px; }
  .mobile-dashboard-shell #portfolio-closed-period { margin-inline: -11px; padding-inline: 6px; }
  .mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-customer-period-controls
    :is(select, .dark-period-picker-trigger) { padding-inline: 6px; letter-spacing: -.035em; }
  .mobile-dashboard-shell :is(.portfolio-mobile-period, [data-bot-profit-periods]) .dark-period-picker-trigger::after {
    right: 2px;
    width: 3px;
    height: 3px;
  }
}


.mobile-dashboard-header > .mobile-dashboard-brand-row:not(:has(> [data-sidebar-toggle])) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-dashboard-shell .mobile-dashboard-header-with-page-heading {
  grid-template-rows: 42px auto;
  row-gap: 4px;
  padding-block-end: 4px;
}

.mobile-dashboard-header-with-page-heading > .mobile-dashboard-title-row:not(.has-portfolio-welcome) { display: none; }

.mobile-dashboard-shell.is-vault-details-frame .mobile-dashboard-header-with-page-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.mobile-dashboard-shell.is-vault-details-frame .mobile-dashboard-header-with-page-heading > .mobile-dashboard-title-row:not(.has-portfolio-welcome) {
  display: contents;
}

.mobile-dashboard-header-with-page-heading .mobile-dashboard-actions { height: 42px; }
.mobile-dashboard-header-with-page-heading > .has-portfolio-welcome { grid-column: 1 / -1; }

.mobile-dashboard-header > .mobile-dashboard-page-heading {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.mobile-dashboard-page-heading > .mobile-dashboard-title { flex: 0 0 auto; }
.mobile-dashboard-page-heading > .futures-refresh-summary {
  gap: 5px;
  font-size: clamp(10px, 2.8vw, 12px);
}

@media (max-width: 360px) {
  .mobile-dashboard-shell.dashboard-page-portfolio .mobile-dashboard-page-heading { gap: 8px; }
  .mobile-dashboard-shell.dashboard-page-portfolio .mobile-dashboard-page-heading > .futures-refresh-summary {
    font-size: 9px;
    gap: 4px;
  }
}

:is(.portfolio-mobile-period, [data-bot-profit-periods]) .multi-coin-profit-zero {
  stroke: var(--amber, #e7b95e);
}

.futures-market-summary .spot-market-totals {
  margin: 0;
  width: 100%;
}
.futures-market-summary .spot-market-totals .bot-type-total-row:first-child > strong { color: var(--amber, #e7b95e); }
.futures-market-summary .bot-market-section-spot .bot-type-panel:not(:has(.bot-pair-card)) { display: none; }
.futures-market-summary .bot-market-section-spot .bot-market-groups:not(:has(.bot-pair-card)),
.spot-market-stop:empty { display: none; }

.desktop-dashboard-shell [data-bot-profit-periods] > .multi-coin-customer-period-header {
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
}
.desktop-dashboard-shell [data-bot-profit-periods] .multi-coin-customer-period-total {
  padding: 0;
  border: 0;
  text-align: center;
}

#bot-expo [data-spot-balance="value"] .spot-summary-values {
  padding-inline-end: 40px;
}

.mobile-dashboard-shell #bot-expo [data-spot-balance="value"] .spot-summary-values { padding-inline-end: 32px; }
.mobile-dashboard-shell #bot-expo [data-spot-balance="value"] .metric-orb {
  width: 32px;
  height: 34px;
  font-size: 20px;
}

@media (max-width: 420px) {
  .dashboard-page-bot_type .mobile-dashboard-page-heading:has(.spot-cycle-summary) { gap: 6px; }
  .dashboard-page-bot_type .mobile-dashboard-page-heading:has(.spot-cycle-summary) > .mobile-dashboard-title {
    flex: 0 1 auto;
    font-size: clamp(16px, 5vw, 20px);
  }
  .dashboard-page-bot_type .mobile-dashboard-page-heading > .spot-cycle-summary { gap: 4px; font-size: 9px; }
}
