.portfolio-history {
  max-width: 850px;
  margin: 28px auto 45px;
}
.portfolio-history h2 {
  font-size: 24px;
}
.portfolio-history article {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  margin: 10px 0;
  border: 1px solid #e5d6ad;
  border-radius: 13px;
  background: #fff;
}
.portfolio-history article > div {
  display: grid;
  gap: 3px;
}
.portfolio-history article > div:nth-child(2),
.portfolio-history article > div:nth-child(3) {
  text-align: right;
}
.portfolio-history span {
  color: #786d61;
  font-size: 13px;
}
@media (max-width: 760px) {
  .portfolio-history article {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-history article > div:nth-child(3) {
    grid-column: 1/-1;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #eee5d1;
  }
}
.profile-card .profile-stats {
  display: none !important;
}
.live-profile-assets {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid #ffffff24;
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff18;
}
.live-profile-assets > div {
  padding: 18px;
  background: #160f0555;
}
.live-profile-assets span,
.live-profile-assets b {
  display: block;
}
.live-profile-assets span {
  font-size: 12px;
  color: #eadbb4;
}
.live-profile-assets b {
  margin-top: 5px;
  color: #ffd65c;
  font: 800 19px Inter;
}
.live-profile-assets > small {
  grid-column: 1/-1;
  padding: 8px 15px;
  background: #fff4c8;
  color: #745000;
  text-align: center;
}
@media (max-width: 760px) {
  .live-profile-assets {
    grid-template-columns: 1fr 1fr;
  }
  .live-profile-assets > div {
    padding: 13px;
  }
  .live-profile-assets b {
    font-size: 16px;
  }
}
.live-profile-assets .profit-stat {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #ffffff2b;
  background: #0d2b205e;
}
.live-profile-assets .profit-stat b {
  font-size: 22px;
}
.live-profile-assets .profit-stat small {
  grid-column: 1/-1;
  color: #dacda8;
}
.live-profile-assets .profit-stat.positive b {
  color: #7ff0b2;
}
.live-profile-assets .profit-stat.negative {
  background: #43191166;
}
.live-profile-assets .profit-stat.negative b {
  color: #ff9e86;
}
.kyc-form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eadfc9;
}
.kyc-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kyc-heading > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #c89518;
  color: #fff;
  font-weight: 900;
}
.kyc-heading h3,
.kyc-heading p {
  margin: 0;
}
.kyc-heading p {
  color: #817466;
  font-size: 13px;
}
.kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.kyc-grid label,
.kyc-uploads label {
  margin: 0;
}
.kyc-grid .wide {
  grid-column: 1/-1;
}
.kyc-grid textarea {
  min-height: 68px;
  resize: vertical;
}
.kyc-grid select,
.kyc-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ddd1c3;
  border-radius: 9px;
  background: #fff;
}
.kyc-uploads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.kyc-uploads label {
  padding: 10px;
  border: 1px dashed #c89518;
  border-radius: 9px;
  font-size: 12px;
}
.kyc-uploads input {
  width: 100%;
  margin-top: 8px;
}
.kyc-consent {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
}
.kyc-consent input {
  width: auto !important;
  margin: 3px 0 !important;
}
.kyc-status {
  margin-top: 18px;
  padding: 12px;
  border-radius: 9px;
}
.kyc-status.approved {
  background: #dff5e8;
  color: #147348;
}
@media (max-width: 600px) {
  .kyc-grid,
  .kyc-uploads {
    grid-template-columns: 1fr;
  }
  .kyc-grid .wide {
    grid-column: auto;
  }
}
.portfolio-value-breakdown {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ffffff2b;
}
.portfolio-value-breakdown span,
.portfolio-value-breakdown b,
.portfolio-value-breakdown small {
  display: block;
}
.portfolio-value-breakdown span {
  font-size: 12px;
  color: #eadbb4;
}
.portfolio-value-breakdown b {
  margin: 5px 0;
  color: #fff;
  font: 700 14px Inter;
}
.portfolio-value-breakdown small {
  color: #eadbb4;
}
.portfolio-value-breakdown .gain {
  color: #83efb7;
}
.portfolio-value-breakdown .loss {
  color: #ff9d86;
}
