:root {
  --bg: #050907;
  --surface: #0a110d;
  --surface-2: #0d1711;
  --surface-3: #111e16;
  --line: rgba(151, 255, 190, .12);
  --line-strong: rgba(151, 255, 190, .24);
  --text: #f2f7f3;
  --muted: #819087;
  --green: #7bf2ad;
  --green-2: #b9ffd2;
  --red: #ff7f8d;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(72, 189, 116, .12), transparent 32rem),
    linear-gradient(180deg, #07100b 0, var(--bg) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 7, .88);
  backdrop-filter: blur(18px);
}

.app-brand { display: flex; align-items: center; gap: 12px; }
.app-brand img { width: 40px; height: 40px; object-fit: contain; }
.app-brand span { display: flex; flex-direction: column; line-height: 1; }
.app-brand strong { font-size: 13px; letter-spacing: .14em; }
.app-brand small { margin-top: 5px; color: var(--green); font-size: 9px; letter-spacing: .18em; }

.app-nav { justify-self: center; display: flex; gap: 28px; }
.app-nav a {
  padding: 28px 0 25px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-nav a:hover, .app-nav a.active { color: var(--text); border-color: var(--green); }

.app-actions { display: flex; align-items: center; gap: 12px; }
.season-chip, .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.season-chip i, .live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.wallet-button, .execute-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #041007;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.wallet-button { padding: 12px 16px; }

.account-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 207, 92, 0.45);
  border-radius: 999px;
  background: rgba(255, 207, 92, 0.1);
  color: #ffcf5c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(255, 207, 92, 0.05);
}

.account-tier-badge[hidden] {
  display: none;
}
.execute-button { width: 100%; padding: 16px; }
.execute-button:hover, .wallet-button:hover { background: var(--green-2); }
.execute-button.muted { width: auto; background: transparent; color: var(--green); cursor: default; }

.app-menu { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }

.app-main { width: min(1600px, 94vw); margin: 0 auto; padding: 44px 0 80px; }
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.page-intro > div:first-child > span, .panel-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.page-intro h1 { margin: 8px 0 10px; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.055em; }
.page-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.intro-status { min-width: 230px; text-align: right; }
.intro-status span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.intro-status strong { display: block; margin: 6px 0; font-size: 22px; }
.intro-status small { font-weight: 800; }

.panel, .metric-card, .leaderboard-summary article, .rule-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 30, 22, .92), rgba(7, 13, 9, .96));
  box-shadow: var(--shadow);
}
.panel { overflow: hidden; }
.panel-head {
  min-height: 78px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 5px 0 0; font-size: 17px; }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 310px;
  gap: 14px;
}
.watchlist-panel, .order-panel { min-height: 670px; }
.market-list { padding: 8px; }
.market-row {
  width: 100%;
  padding: 15px 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.market-row:hover { background: rgba(123, 242, 173, .04); }
.market-row.selected { border-color: var(--line-strong); background: rgba(123, 242, 173, .07); }
.token-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #0a1510;
  color: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.token-mark.large { width: 46px; height: 46px; font-size: 16px; }
.token-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.token-mark img[src$=".svg"] {
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.market-name, .market-price { display: flex; flex-direction: column; }
.market-name strong, .market-price strong { font-size: 12px; }
.market-name small, .market-price small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.market-price { text-align: right; }

.simulation-notice { margin: 18px; padding: 16px; border: 1px solid var(--line); }
.simulation-notice span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.simulation-notice p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.instrument-head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.instrument-title { display: flex; align-items: center; gap: 13px; }
.instrument-title h2 { margin: 5px 0 0; font-size: 22px; }
.instrument-price { text-align: right; }
.instrument-price strong { display: block; font-size: 25px; }
.instrument-price span { font-size: 11px; font-weight: 800; }
.market-metrics {
  padding: 13px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.market-metrics div { display: flex; flex-direction: column; gap: 5px; }
.market-metrics span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.market-metrics strong { font-size: 11px; }

.timeframes { padding: 12px 18px; display: flex; gap: 6px; }
.timeframes button, .allocation-buttons button, .trade-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.timeframes button { padding: 8px 11px; }
.timeframes button.active, .timeframes button:hover,
.allocation-buttons button:hover, .trade-tabs button.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(123, 242, 173, .06);
}

.chart-stage, .portfolio-chart { position: relative; min-height: 440px; overflow: hidden; }
.portfolio-chart { min-height: 360px; }
.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 72px, 110px 100%;
  opacity: .42;
}
.chart-stage svg, .portfolio-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.terminal-area { fill: url(#terminalFill); }
.portfolio-chart-area { fill: url(#portfolioFill); }
.terminal-line { fill: none; stroke: var(--green); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-watermark { position: absolute; left: 24px; bottom: 20px; display: flex; flex-direction: column; }
.chart-watermark strong { color: rgba(255,255,255,.16); font-size: 28px; letter-spacing: .16em; }
.chart-watermark span { margin-top: 5px; color: rgba(123,242,173,.26); font-size: 9px; letter-spacing: .18em; }

.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.trade-tabs button { padding: 19px; border-width: 0 0 2px; }
.order-balance { margin: 22px; display: flex; justify-content: space-between; }
.order-balance span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.order-balance strong { font-size: 11px; }
.field { margin: 0 22px; display: block; }
.field > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.field div { padding: 15px; display: flex; border: 1px solid var(--line-strong); background: #070d09; }
.field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; }
.field strong { font-size: 11px; align-self: center; }
.allocation-buttons { margin: 10px 22px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.allocation-buttons button { padding: 9px 4px; }
.order-summary { margin: 0 22px 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-summary div { padding: 6px 0; display: flex; justify-content: space-between; font-size: 10px; }
.order-summary span { color: var(--muted); }
.order-panel .execute-button { width: calc(100% - 44px); margin: 0 22px; }
.order-panel .execute-button:disabled { cursor: not-allowed; opacity: .55; }
.order-message { min-height: 18px; margin: 12px 22px 0; color: var(--green); font-size: 10px; line-height: 1.5; }
.portfolio-empty { padding: 28px; color: var(--muted); font-size: 11px; text-align: center; }
.order-disclaimer { margin: 16px 22px; color: var(--muted); font-size: 9px; line-height: 1.6; }

.metrics-grid { margin-bottom: 14px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 14px; }
.metric-card { padding: 24px; min-height: 135px; }
.metric-card span, .leaderboard-summary span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.metric-card strong { display: block; margin: 14px 0 8px; font-size: 28px; }
.metric-card small { color: var(--muted); }
.primary-metric { background: linear-gradient(145deg, rgba(29, 70, 44, .9), rgba(8, 17, 11, .96)); }

.dashboard-grid { margin-bottom: 14px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.performance-panel, .allocation-panel { min-height: 470px; }
.allocation-ring { padding: 34px 20px 20px; display: grid; place-items: center; }
.ring {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 51%, transparent 52%),
    conic-gradient(var(--green) 0 42%, #56b77c 42% 73.5%, #357552 73.5% 91.7%, #244c36 91.7%);
}
.ring span { font-size: 36px; font-weight: 800; }
.ring small { color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.allocation-list { padding: 0 28px 24px; }
.allocation-list div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; }
.allocation-list span { display: flex; align-items: center; gap: 8px; }
.allocation-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.data-table, .leader-table { overflow-x: auto; }
.table-row, .leader-row {
  min-width: 780px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.table-header, .leader-header { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.table-row > span:first-child { display: flex; flex-direction: column; }
.table-row small { margin-top: 3px; color: var(--muted); }

.leaderboard-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.leaderboard-summary article { padding: 24px; }
.leaderboard-summary strong { display: block; margin: 12px 0 6px; font-size: 25px; }
.leaderboard-summary small { color: var(--muted); }
.leader-row { grid-template-columns: .55fr 1.5fr 1fr .8fr .8fr; }
.trader { display: flex; align-items: center; gap: 10px; }
.trader i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); font-style: normal; }
.you-row { background: rgba(123, 242, 173, .07); border-left: 2px solid var(--green); }
.leaderboard-law { margin: 22px; padding: 20px; border: 1px solid var(--line-strong); background: rgba(123,242,173,.04); }
.leaderboard-law strong { color: var(--green); }
.leaderboard-law p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.leaderboard-status{
  padding:16px 22px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

[data-leaderboard-rows]{
  min-height:120px;
}

[data-leaderboard-rows]:empty::before{
  content:"Waiting for live leaderboard...";
  display:block;
  padding:24px;
  color:var(--muted);
  font-size:11px;
}

.positive{
  color:var(--green);
  font-weight:700;
}

.negative{
  color:#ff6b6b;
  font-weight:700;
}

.season-hero {
  margin-bottom: 14px;
  min-height: 400px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(22, 64, 39, .9), rgba(6, 12, 8, .98));
  box-shadow: var(--shadow);
}
.season-clock { padding: 50px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.season-clock > strong { margin: 5px 0 -4px; font-size: clamp(90px, 13vw, 170px); line-height: .95; letter-spacing: -.08em; }
.season-clock > small { color: var(--green); font-weight: 900; letter-spacing: .18em; }
.progress-track { margin-top: 28px; height: 6px; background: rgba(255,255,255,.08); }
.progress-track i { display: block; height: 100%; background: var(--green); }
.season-clock p { color: var(--muted); font-size: 11px; }
.season-copy { padding: 60px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.season-copy h2 { margin: 8px 0 14px; font-size: clamp(34px, 5vw, 62px); letter-spacing: -.055em; }
.season-copy p { max-width: 650px; margin: 0 0 25px; color: var(--muted); line-height: 1.8; }

.season-rules { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rule-card { min-height: 230px; padding: 24px; }
.rule-card > span { color: var(--green); font-size: 11px; font-weight: 900; }
.rule-card h3 { margin: 38px 0 10px; font-size: 18px; }
.rule-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.detail-list { padding: 12px 22px 24px; }
.detail-list div { padding: 16px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-list span { color: var(--muted); }

.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.app-footer {
  padding: 30px 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}
.app-footer p { margin: 0; text-align: center; }
.app-footer a { justify-self: end; color: var(--green); }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: auto 1fr auto; }
  .app-nav {
    position: fixed;
    inset: 76px 0 auto;
    padding: 18px 3vw;
    display: none;
    justify-content: center;
    background: #07100b;
    border-bottom: 1px solid var(--line);
  }
  body.menu-open .app-nav { display: flex; }
  .app-menu { display: block; }
  .app-actions { justify-self: end; }
  .terminal-grid { grid-template-columns: 240px 1fr; }
  .order-panel { grid-column: 1 / -1; min-height: auto; }
  .order-panel .execute-button { max-width: 420px; }
  .season-rules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .app-header { min-height: 68px; padding: 0 18px; gap: 12px; }
  .app-brand img { width: 34px; height: 34px; }
  .app-brand span { display: none; }
  .season-chip { display: none; }
  .wallet-button { padding: 10px; font-size: 9px; }
  .app-nav { inset: 68px 0 auto; flex-direction: column; gap: 0; align-items: stretch; }
  .app-nav a { padding: 13px 0; }
  .app-main { width: min(94vw, 680px); padding-top: 28px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .intro-status { text-align: left; }
  .terminal-grid, .dashboard-grid, .season-hero { grid-template-columns: 1fr; }
  .watchlist-panel, .order-panel { min-height: auto; }
  .chart-panel { min-height: 520px; }
  .market-metrics { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .metrics-grid, .leaderboard-summary, .season-rules { grid-template-columns: 1fr; }
  .season-clock { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 28px; }
  .season-copy { padding: 38px 28px; }
  .season-clock > strong { font-size: 110px; }
  .app-footer { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .app-footer a { justify-self: center; }
}

/* XRPL_TRADE_WATCHLIST_LOADERS */
.market-row.loading .market-price {
  min-width: 78px;
  min-height: 29px;
  align-items: flex-end;
  justify-content: center;
}

.market-row.loading .market-price strong,
.market-row.loading .market-price small {
  display: none;
}

.market-row.loading .market-price::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  border: 2px solid rgba(123, 242, 173, 0.2);
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: xrpl-watchlist-spin 0.7s linear infinite;
}

@keyframes xrpl-watchlist-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.player-name-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 7, 0.82);
  backdrop-filter: blur(10px);
}

.player-name-modal[hidden] {
  display: none;
}

.player-name-card {
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid rgba(0, 255, 153, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 28, 24, 0.98), rgba(7, 15, 13, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 255, 153, 0.04) inset;
}

.player-name-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
}

.player-name-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

#player-display-name {
  width: 100%;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 255, 153, 0.24);
  border-radius: 12px;
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 18px;
}

#player-display-name:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.1);
}

#player-name-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ff8d8d;
  font-size: 14px;
}

.player-name-card .execute-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* XRPL_TRADE_MULTI_INPUT_ORDER_FORM */
.trade-entry-grid {
  margin: 0 22px;
  display: grid;
  gap: 10px;
}

.trade-entry-grid .field {
  margin: 0;
}

.trade-entry-grid .field div {
  position: relative;
  min-height: 58px;
  padding: 9px 14px;
  align-items: center;
  border-color: rgba(123, 242, 173, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 20, 14, 0.98), rgba(5, 11, 8, 0.98));
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.trade-entry-grid .field div:focus-within {
  border-color: var(--green);
  background:
    linear-gradient(180deg, rgba(12, 27, 18, 0.98), rgba(6, 14, 10, 0.98));
  box-shadow:
    0 0 0 3px rgba(123, 242, 173, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.24);
}

.trade-entry-grid .field input {
  width: 100%;
  padding: 7px 12px 7px 0;
  font-variant-numeric: tabular-nums;
}

.trade-entry-grid .field input::placeholder {
  color: rgba(148, 164, 153, 0.46);
}

.trade-entry-grid .field strong {
  min-width: 52px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: right;
}

.trade-entry-grid .calculated-field div {
  border-style: dashed;
  background: rgba(123, 242, 173, 0.035);
}

.trade-entry-grid .calculated-field input {
  color: var(--muted);
  cursor: default;
}

.trade-entry-grid .calculated-field strong {
  color: var(--muted);
}

.trade-route {
  margin: 12px 22px 18px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
}

.order-panel .allocation-buttons {
  margin-top: 12px;
}

.order-summary strong {
  max-width: 62%;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 760px) {
  .trade-entry-grid {
    margin: 0 16px;
  }

  .trade-entry-grid .field div {
    min-height: 56px;
    padding: 8px 12px;
  }

  .trade-entry-grid .field input {
    font-size: 16px;
  }

  .trade-route {
    margin-right: 16px;
    margin-left: 16px;
  }

  .order-panel .allocation-buttons,
  .order-panel .order-summary {
    margin-right: 16px;
    margin-left: 16px;
  }

  .order-panel .execute-button {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .order-message {
    margin-right: 16px;
    margin-left: 16px;
  }
}

/* PORTFOLIO_USD_VALUE_DISPLAY */
.portfolio-usd-value {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.primary-metric #portfolio-profit {
  display: block;
  margin-top: 13px;
  font-weight: 700;
}

.primary-metric .portfolio-profit-usd {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.intro-status .portfolio-usd-value {
  margin-bottom: 5px;
}

.negative {
  color: #ff6b78 !important;
}


/* PORTFOLIO_TRANSACTION_HISTORY */
.history-table .table-row {
  grid-template-columns: 0.7fr 1fr 1.2fr 1.2fr 1.25fr 1.25fr;
}

.portfolio-asset-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.portfolio-asset-link:hover,
.portfolio-asset-link:focus-visible {
  color: #53f5a2;
}

.trade-side {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.trade-side.buy {
  color: #53f5a2;
  background: rgba(83, 245, 162, 0.08);
}

.trade-side.sell {
  color: #ff6678;
  background: rgba(255, 102, 120, 0.08);
}

.portfolio-history-panel {
  margin-top: 24px;
}

@media (max-width: 820px) {
  .history-table {
    overflow-x: auto;
  }

  .history-table .table-row {
    min-width: 760px;
  }
}


.season-action-chip {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.season-action-chip:disabled {
  opacity: 1;
  cursor: default;
}
