/* RugInspect — Trading */

.rt-card {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #164c3b;
  border-radius: 18px;
  background: linear-gradient(120deg, #061c14, #03100c);
  color: #e4f5ed;
}

.rt-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rt-heading h2,
.rt-heading h3 {
  margin: 0;
}

.rt-muted,
.rt-small {
  color: #a4bbb0;
}

.rt-small {
  font-size: 12px;
  line-height: 1.5;
}

.rt-button {
  font: inherit;
  font-size: 13px;
  border: 1px solid #235d47;
  border-radius: 10px;
  background: #082219;
  color: #e5f9ef;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.rt-button:hover {
  border-color: #53edba;
}

.rt-primary {
  background: linear-gradient(110deg, #68f8ca, #11dca2);
  color: #012116;
  font-weight: 700;
  border-color: transparent;
}

.rt-sell {
  color: #ffadaf;
  border-color: #813c44;
  background: #211316;
}

.rt-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rt-button:focus-visible,
.rt-field input:focus-visible,
.rt-settings select:focus-visible {
  outline: 2px solid #63f5c2;
  outline-offset: 3px;
}

.rt-trade-grid {
  display: grid;
  grid-template-columns:
    180px
    minmax(130px, 1fr)
    24px
    minmax(130px, 1fr)
    190px;
  align-items: start;
  gap: 20px;
}

.rt-tabs {
  display: flex;
  padding: 3px;
  border: 1px solid #24503d;
  border-radius: 11px;
  margin-top: 18px;
}

.rt-tabs .rt-button {
  flex: 1;
  border: 0;
  background: transparent;
}

.rt-tabs .rt-selected {
  background: #39ebae;
  color: #012316;
  font-weight: 700;
}

.rt-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rt-field input,
.rt-field strong {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #22543f;
  border-radius: 10px;
  background: #04140e;
  color: #edfff6;
  font: inherit;
  min-height: 46px;
}

.rt-field strong {
  display: block;
  overflow-wrap: anywhere;
}

.rt-presets {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.rt-presets .rt-button {
  padding: 4px 10px;
  font-size: 11px;
  flex: 1;
}

.rt-arrow {
  margin-top: 35px;
  color: #7edcbb;
}

.rt-trade-grid > .rt-primary {
  margin-top: 24px;
  min-height: 46px;
}

.rt-settings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
}

.rt-settings select {
  margin-left: 8px;
  background: #062218;
  color: #cff5e4;
  border: 1px solid #255a43;
  border-radius: 7px;
  padding: 5px;
}

.rt-review {
  border-top: 1px solid #1d4333;
  margin-top: 14px;
  padding-top: 12px;
}

.rt-review p {
  margin: 5px 0;
  font-size: 13px;
}

.rt-status {
  font-size: 13px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.rt-status:empty {
  display: none;
}

.rt-wallet-address {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  background: #052217;
  padding: 14px;
  border: 1px solid #20503a;
  border-radius: 10px;
}

.rt-badge {
  color: #47e9b3;
  font-size: 12px;
}

.rt-summaries {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.rt-summary {
  padding: 16px;
  background: #08291d;
  border: 1px solid #1e4e38;
  border-radius: 10px;
  font-weight: 600;
}

.rt-table-wrap {
  overflow-x: auto;
}

.rt-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.rt-table th {
  text-align: left;
  color: #a4c5b4;
  font-size: 12px;
  font-weight: 500;
}

.rt-table th,
.rt-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #183f2d;
  white-space: nowrap;
}

.rt-table td small {
  display: block;
  margin-top: 4px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-actions .rt-button {
  margin: 0 4px;
}

.rt-token-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  float: left;
  margin: 0 10px 0 0;
}

.rt-dialog {
  width: min(820px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 0;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #23654b;
  border-radius: 20px;
  background: #03140d;
  color: #edfdf5;
}

.rt-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.rt-dialog-body {
  padding: 22px;
}

.rt-dialog .rt-card {
  padding: 16px;
  margin: 16px 0 0;
}

.rt-dialog .rt-trade-grid {
  grid-template-columns: 1fr 24px 1fr;
  gap: 12px;
}

.rt-dialog .rt-tabs {
  grid-column: 1 / -1;
  margin: 0;
}

.rt-dialog .rt-trade-grid > .rt-primary {
  grid-column: 1 / -1;
  margin: 0;
}

.rt-wallet-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.rt-link {
  color: #5be8bb;
  text-decoration: underline;
}

.rt-warning {
  padding: 14px;
  border: 1px solid #6f5a23;
  background: #28230f;
  border-radius: 10px;
  color: #f6de9f;
}

.rt-warning .rt-button {
  margin-right: 8px;
}

.rt-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  max-width: min(500px, calc(100vw - 48px));
  padding: 14px 18px;
  background: #082519;
  color: #d9ffeb;
  border: 1px solid #2d6c4b;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 40px #0008;
}

.rt-notice:empty {
  display: none;
}

.rt-trend-trade {
  display: inline-block;
  margin-left: 8px;
}

.rt-card[hidden],
.rt-review[hidden] {
  display: none !important;
}

@media (max-width: 1000px) {
  .rt-trade-grid {
    grid-template-columns: 1fr 24px 1fr;
  }

  .rt-tabs {
    grid-column: 1 / -1;
    margin: 0;
  }

  .rt-trade-grid > .rt-primary {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (max-width: 580px) {
  .rt-card {
    padding: 16px;
  }

  .rt-settings {
    align-items: flex-start;
    flex-direction: column;
  }

  .rt-table th,
  .rt-table td {
    padding: 12px 8px;
  }

  .rt-heading {
    gap: 10px;
  }

  .rt-dialog-body {
    padding: 12px;
  }

  .rt-notice {
    bottom: 12px;
    left: 12px;
  }

  .rt-trade-grid,
  .rt-dialog .rt-trade-grid {
    grid-template-columns: 1fr;
  }

  .rt-arrow {
    display: none;
  }

  .rt-trade-grid .rt-tabs,
  .rt-trade-grid > .rt-primary {
    grid-column: auto;
  }

  .rt-summaries {
    gap: 8px;
  }

  .rt-summary {
    width: 100%;
    box-sizing: border-box;
  }
}


/* Wallet card and centered wallet picker */

dialog.rt-dialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;

  height: fit-content !important;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);

  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

dialog.rt-dialog:not([open]) {
  display: none !important;
}

dialog.rt-dialog[open] {
  display: block !important;
}

dialog.rt-dialog::backdrop {
  background: rgb(0 8 5 / 76%);
  backdrop-filter: blur(6px);
}

dialog.rt-wallet-dialog {
  width: 440px !important;
  padding: 0 !important;

  border: 1px solid #23664d;
  border-radius: 22px;

  background:
    radial-gradient(
      circle at top left,
      rgb(22 94 66 / 14%),
      transparent 65%
    ),
    #04130d;

  color: #e8f5ee;

  box-shadow:
    0 30px 100px rgb(0 0 0 / 60%),
    0 0 40px rgb(0 214 151 / 4%);
}

.rt-wallet-dialog-body {
  padding: 26px;
}

.rt-wallet-modal-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.rt-wallet-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;

  width: 46px;
  height: 46px;
  border: 1px solid #205c45;
  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #0d3928,
      #061e15
    );

  color: #35edb3;
}

.rt-wallet-mark svg {
  width: 25px;
  height: 25px;
}

.rt-wallet-modal-titles {
  flex: 1;
  min-width: 0;
}

.rt-wallet-modal-titles h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.rt-wallet-modal-titles p {
  margin: 6px 0 0;
  color: #9eb7aa;
  font-size: 13px;
  line-height: 1.5;
}

.rt-wallet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;

  width: 32px;
  height: 32px;
  padding: 0;

  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;

  color: #b8cfc2;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.rt-wallet-close:hover {
  background: #102c20;
  border-color: #25523e;
  color: #fff;
}

.rt-wallet-close:focus-visible,
.rt-wallet-option:focus-visible {
  outline: 2px solid #4aefb9;
  outline-offset: 3px;
}

.rt-wallet-options {
  display: grid;
  gap: 10px;
}

.rt-wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;

  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  padding: 10px 15px;

  border: 1px solid #1e4936;
  border-radius: 12px;

  background:
    linear-gradient(
      110deg,
      #09281b,
      #061c13
    );

  color: #eaf8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;

  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.rt-wallet-option:hover {
  border-color: #3fbb8e;
  background: #0b3021;
}

.rt-wallet-option:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rt-wallet-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;

  width: 34px;
  height: 34px;
}

.rt-wallet-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rt-wallet-option-name {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.rt-wallet-chevron {
  color: #b3d2c0;
  font-size: 27px;
  line-height: 1;
}

.rt-wallet-picker-status {
  margin-top: 14px;
  color: #b9cebf;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rt-wallet-picker-status:empty {
  display: none;
}

.rt-wallet-picker-status p {
  margin: 0 0 8px;
}

.rt-wallet-modal-footer {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #1b4633;
}

.rt-wallet-modal-footer .rt-wallet-mark {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.rt-wallet-modal-footer p {
  margin: 0;
  color: #a5beaf;
  font-size: 12px;
  line-height: 1.8;
}

/* Account wallet card */

#rtWalletRoot {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 0;

  min-height: 0 !important;
  box-sizing: border-box;
}

.rt-wallet-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.rt-wallet-card-titles {
  flex: 1;
  min-width: 0;
}

.rt-wallet-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#rtWalletRoot .rt-wallet-title-row h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.rt-wallet-offline {
  padding: 4px 9px;
  border: 1px solid #294b3a;
  border-radius: 20px;

  background: #173327;
  color: #b9cdc0;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

#rtWalletRoot .rt-wallet-description {
  margin: 8px 0 0;
  color: #a7bfb0;
  font-size: 13px;
  line-height: 1.6;
}

.rt-wallet-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.rt-wallet-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;

  color: #bfd3c6;
  font-size: 11px;
  line-height: 1.4;
}

.rt-wallet-brand .rt-wallet-logo {
  flex-basis: auto;
  width: 52px;
  height: 46px;

  padding: 7px 10px;
  box-sizing: border-box;

  border: 1px solid #1b4d36;
  border-radius: 12px;
  background: #041c11;
}

#rtWalletRoot .rt-wallet-connect {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 11px;
  font-size: 14px;
}

#rtWalletRoot .rt-wallet-caption {
  margin: 10px 0 0;
  color: #9fb7a8;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.rt-wallet-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #1a402e;

  color: #9db7a7;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 580px) {
  .rt-wallet-dialog-body {
    padding: 22px 18px;
  }

  .rt-wallet-modal-titles h2 {
    font-size: 20px;
  }

  .rt-wallet-modal-heading {
    gap: 11px;
    margin-bottom: 20px;
  }

  .rt-wallet-brands {
    gap: 6px;
  }

  .rt-wallet-card-heading {
    gap: 11px;
  }

  #rtWalletRoot .rt-wallet-title-row h2 {
    font-size: 20px;
  }
}

/* Connected wallet and holdings appearance */

#rtWalletRoot,
#rtHoldingsRoot {
  min-width: 0;
}

.rt-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.rt-account-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#rtWalletRoot .rt-connected-title {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.rt-connected-panel {
  padding: 18px;
  border: 1px solid #1b513b;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at top right,
      rgb(29 163 112 / 8%),
      transparent 70%
    ),
    #051c13;
}

.rt-connected-profile {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rt-connected-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid #246047;
  border-radius: 14px;
  background: #042117;
}

.rt-connected-brand .rt-wallet-logo {
  width: 36px;
  height: 36px;
}

.rt-connected-details {
  flex: 1;
  min-width: 0;
}

.rt-connected-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
}

.rt-connected-name > strong {
  font-size: 15px;
  color: #eefbf4;
}

.rt-connection-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #a9bdb1;
}

.rt-connection-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #879c90;
}

.rt-connection-state.is-connected {
  color: #48edb7;
}

.rt-connection-state.is-connected::before {
  background: #36e9ac;
}

.rt-connected-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
}

.rt-connected-address > strong {
  font-size: 14px;
  color: #e6f5ed;
  overflow-wrap: anywhere;
}

#rtWalletRoot .rt-address-copy,
#rtHoldingsRoot .rt-address-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a3c8b5;
}

#rtWalletRoot .rt-address-copy:hover,
#rtHoldingsRoot .rt-address-copy:hover {
  border-color: #28634a;
  background: #0c3021;
  color: #59f1bf;
}

.rt-verified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid #287252;
  border-radius: 20px;
  background: rgb(25 115 78 / 17%);
  color: #50edb9;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.rt-connected-balance {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #204a36;
}

.rt-connected-balance > .rt-account-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  box-sizing: border-box;
  border: 1px solid #1b5038;
  border-radius: 12px;
  background: #03170f;
}

.rt-account-label {
  display: block;
  color: #a8c2b4;
  font-size: 12px;
  line-height: 1.5;
}

.rt-account-number {
  display: block;
  margin-top: 4px;
  color: #f0fcf5;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.rt-connected-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 18px;
}

#rtWalletRoot .rt-connected-footer .rt-button {
  margin: 0;
}

#rtWalletRoot .rt-connected-footer p {
  flex: 1;
  min-width: 160px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

/* Holdings */

#rtHoldingsRoot {
  padding: 26px;
  border-color: #236148;
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at top left,
      rgb(13 102 67 / 10%),
      transparent 60%
    ),
    linear-gradient(130deg, #041b12, #03110c);
}

.rt-portfolio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.rt-portfolio-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#rtHoldingsRoot .rt-portfolio-title h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

#rtHoldingsRoot .rt-portfolio-title p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.rt-portfolio-refresh {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 7px;
}

.rt-portfolio-refresh .rt-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rt-portfolio-refresh .rt-small {
  font-size: 10px;
}

.rt-portfolio-overview {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 0.8fr)
    minmax(0, 1.25fr);
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  padding: 22px 0;
  border: 1px solid #235f44;
  border-radius: 15px;
  background:
    linear-gradient(
      110deg,
      rgb(15 65 43 / 65%),
      rgb(5 33 22 / 55%)
    );
}

.rt-portfolio-metric {
  min-width: 0;
  padding: 0 22px;
}

.rt-portfolio-metric + .rt-portfolio-metric {
  border-left: 1px solid #24513c;
}

.rt-portfolio-metric:first-child .rt-account-number {
  font-size: 32px;
}

.rt-portfolio-wallet .rt-connected-address {
  gap: 6px;
  margin-top: 5px;
}

.rt-portfolio-wallet .rt-connected-address > strong {
  font-size: 15px;
}

/* Token rows */

.rt-portfolio-table-wrap {
  width: 100%;
  margin-top: 6px;
  -webkit-overflow-scrolling: touch;
}

#rtHoldingsRoot .rt-portfolio-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#rtHoldingsRoot .rt-portfolio-table th {
  padding: 8px 16px 12px;
  border: 0;
  color: #9db9aa;
  font-size: 11px;
  font-weight: 500;
}

#rtHoldingsRoot .rt-portfolio-table th:nth-child(2),
#rtHoldingsRoot .rt-portfolio-table th:nth-child(3),
#rtHoldingsRoot .rt-portfolio-table th:nth-child(4) {
  text-align: right;
}

#rtHoldingsRoot .rt-portfolio-table td {
  height: 76px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid #193d2c;
}

#rtHoldingsRoot .rt-holding-row td {
  border-top-color: #1b4b34;
  border-bottom-color: #1b4b34;
  background: rgb(12 49 32 / 55%);
}

#rtHoldingsRoot .rt-holding-row td:first-child {
  border-left: 1px solid #1b4b34;
  border-radius: 13px 0 0 13px;
}

#rtHoldingsRoot .rt-holding-row td:last-child {
  border-right: 1px solid #1b4b34;
  border-radius: 0 13px 13px 0;
}

#rtHoldingsRoot .rt-holding-row:hover td {
  background: rgb(17 65 43 / 65%);
}

.rt-portfolio-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.rt-portfolio-token-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #23563e;
  border-radius: 50%;
  background: #062317;
  color: #60e9b8;
  font-size: 12px;
  font-weight: 700;
}

.rt-portfolio-token-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-portfolio-token-icon .rt-account-icon {
  width: 25px;
  height: 25px;
}

.rt-portfolio-token-text {
  min-width: 0;
}

.rt-portfolio-token-text > strong {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #edf9f2;
}

#rtHoldingsRoot .rt-portfolio-token-text small {
  margin-top: 5px;
  font-size: 11px;
}

#rtHoldingsRoot .rt-portfolio-numeric {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#rtHoldingsRoot .rt-portfolio-value {
  font-weight: 700;
  color: #edf9f2;
}

.rt-portfolio-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.rt-portfolio-action-group .rt-button {
  margin: 0;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 12px;
}

.rt-portfolio-action-group .rt-primary {
  box-shadow: 0 3px 14px rgb(13 211 148 / 8%);
}

.rt-portfolio-action-group .rt-sell {
  border-color: #79434a;
  background: rgb(62 27 32 / 30%);
  color: #f49da5;
}

.rt-portfolio-action-group .rt-sell:hover {
  border-color: #e1818d;
}

.rt-portfolio-action-group .rt-portfolio-analyze {
  border-color: #254c3a;
  background: transparent;
  color: #a7c8b6;
}

.rt-portfolio-actions {
  text-align: right;
}

.rt-native-row .rt-portfolio-actions {
  color: #99b6a6;
  font-size: 12px;
}

#rtHoldingsRoot .rt-portfolio-footnote {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid #1b4933;
  font-size: 11px;
  line-height: 1.6;
}

/* Smaller screens */

@media (max-width: 1100px) {
  .rt-connected-profile {
    flex-wrap: wrap;
  }

  .rt-portfolio-overview {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .rt-portfolio-wallet {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid #24513c;
  }

  .rt-portfolio-metric.rt-portfolio-wallet {
    border-left: 0;
  }
}

@media (max-width: 580px) {
  #rtHoldingsRoot {
    padding: 18px;
    border-radius: 16px;
  }

  .rt-portfolio-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .rt-portfolio-title {
    gap: 10px;
  }

  .rt-portfolio-title > .rt-wallet-mark {
    display: none;
  }

  #rtHoldingsRoot .rt-portfolio-title h2 {
    font-size: 21px;
  }

  #rtHoldingsRoot .rt-portfolio-title p {
    font-size: 11px;
  }

  .rt-portfolio-refresh .rt-button {
    padding: 9px 11px;
    font-size: 11px;
  }

  .rt-portfolio-refresh .rt-small {
    max-width: 100px;
    text-align: right;
    font-size: 9px;
  }

  .rt-portfolio-overview {
    padding: 18px 0;
    margin-bottom: 14px;
  }

  .rt-portfolio-metric {
    padding-right: 14px;
    padding-left: 14px;
  }

  .rt-portfolio-metric .rt-account-label {
    font-size: 10px;
  }

  .rt-portfolio-metric .rt-account-number {
    font-size: 22px;
  }

  .rt-portfolio-metric:first-child .rt-account-number {
    font-size: 27px;
  }

  .rt-connected-panel {
    padding: 15px;
  }

  .rt-connected-profile {
    gap: 10px;
  }

  .rt-connected-brand {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .rt-connected-name > strong {
    font-size: 14px;
  }

  .rt-connected-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  #rtWalletRoot .rt-connected-footer p {
    min-width: 0;
  }
}


#rtHoldingsRoot .rt-holdings-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

#rtHoldingsRoot .rt-holdings-pagination .rt-button {
  margin: 0;
  padding: 9px 13px;
  font-size: 12px;
}

#rtHoldingsRoot .rt-holdings-pagination .rt-small {
  font-variant-numeric: tabular-nums;
}

#rtHoldingsRoot .rt-holdings-pagination .rt-button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 580px) {
  #rtHoldingsRoot .rt-holdings-pagination {
    justify-content: center;
    gap: 10px;
  }
}