.deal-composition-card {
  box-sizing: border-box;
  min-height: 540px;
  padding: 32px;
  color: #1f1f1f;
  background: #fff;
  border-radius: 16px;
}

.deal-composition-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.deal-composition-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: 0;
}

.deal-composition-head p {
  margin: 4px 0 0;
  color: #7f7f7f;
  font-size: 16px;
  line-height: 24px;
}

.deal-composition-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0;
  color: #777;
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.deal-composition-download::before {
  width: 18px;
  height: 18px;
  content: "";
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 1px;
  clip-path: polygon(0 38%, 36% 38%, 36% 0, 64% 0, 64% 38%, 100% 38%, 50% 88%);
  background: currentColor;
}

.deal-composition-body {
  display: grid;
  grid-template-columns: 41% 59%;
  min-height: 408px;
  overflow: hidden;
  border: 1px solid #edf0f0;
  border-radius: 4px;
}

.deal-composition-chart,
.deal-composition-ranking {
  box-sizing: border-box;
  min-width: 0;
  padding: 28px 32px;
}

.deal-composition-chart {
  background: #f5fcfb;
  border-right: 1px solid #e8efee;
}

.deal-composition-chart h3,
.deal-composition-ranking h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
}

.deal-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 268px;
}

.deal-donut {
  position: relative;
  width: 214px;
  height: 214px;
  border-radius: 50%;
  background: conic-gradient(#18b9aa 0 67%, #ffc72c 67% 100%);
  box-shadow: 0 8px 18px rgba(19, 185, 169, .10);
  transition: transform .22s ease, filter .22s ease;
}

.deal-donut::before {
  position: absolute;
  inset: 36px;
  content: "";
  background: #f5fcfb;
  border-radius: 50%;
}

.deal-donut::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 2px solid transparent;
  border-radius: 50%;
  transition: border-color .22s ease;
}

.deal-donut.is-self {
  transform: rotate(-2deg) scale(1.035);
  filter: drop-shadow(0 8px 9px rgba(24, 185, 170, .14));
}

.deal-donut.is-partner {
  transform: rotate(2deg) scale(1.035);
  filter: drop-shadow(0 8px 9px rgba(255, 199, 44, .16));
}

.deal-donut.is-self::after { border-color: rgba(24, 185, 170, .18); }
.deal-donut.is-partner::after { border-color: rgba(255, 199, 44, .25); }

.deal-donut-center {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.deal-donut-center span {
  color: #767676;
  font-size: 14px;
  line-height: 22px;
}

.deal-donut-center strong {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 600;
  line-height: 36px;
}

.deal-donut-center em {
  margin-top: 2px;
  color: #8b8b8b;
  font-size: 13px;
  font-style: normal;
}

.deal-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.deal-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #6d6d6d;
  font-size: 16px;
}

.deal-chart-legend span::before {
  width: 11px;
  height: 11px;
  content: "";
  background: #18b9aa;
  border-radius: 50%;
}

.deal-chart-legend span[data-kind="partner"]::before { background: #ffc72c; }

.deal-composition-ranking {
  background: #fff;
}

.deal-rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ededed;
}

.deal-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
}

.deal-tab {
  position: relative;
  height: 42px;
  padding: 0;
  color: #777;
  font: inherit;
  font-size: 17px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.deal-tab.is-active {
  color: #1f1f1f;
  font-weight: 600;
}

.deal-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: #18b9aa;
  border-radius: 3px 3px 0 0;
}

.deal-account-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px 92px 106px;
  align-items: center;
  height: 44px;
  padding-left: 68px;
  color: #777;
  font-size: 13px;
  background: #f7f8f9;
}

.deal-account-header span:not(:first-child) { text-align: right; }

.deal-account-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.deal-account-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(152px, 1fr) 92px 92px 106px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #eeeeee;
}

.deal-account-row:last-child { border-bottom: 0; }
.deal-account-rank { color: #777; font-size: 14px; }

.deal-account-avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 50%;
}

.deal-account-name {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-account-tag {
  flex: 0 0 auto;
  padding: 1px 5px;
  color: #0aa99a;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  background: #eaf9f7;
  border-radius: 2px;
}

.deal-account-tag.is-agency {
  color: #806116;
  background: #fff7dc;
}

.deal-account-metric {
  color: #202020;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.deal-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 48px;
  border-top: 1px solid #eeeeee;
}

.deal-pagination button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: #666;
  font: inherit;
  font-size: 13px;
  line-height: 26px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 3px;
  cursor: pointer;
}

.deal-pagination button:hover:not(:disabled),
.deal-pagination button.is-active {
  color: #08aa9b;
  border-color: #08b9aa;
}

.deal-pagination button.is-active { background: #effbf9; }
.deal-pagination button:disabled { color: #c9c9c9; cursor: not-allowed; }

.deal-pagination span {
  margin-left: 8px;
  color: #8c8c8c;
  font-size: 12px;
}

.deal-menu-item {
  box-sizing: border-box;
  width: 132px;
  height: 48px;
  padding-left: 24px;
  color: #7f7f7f;
  font-size: 14px;
  line-height: 48px;
  cursor: pointer;
}

.deal-menu-item:hover,
.deal-menu-item.is-active {
  color: #202020;
  font-weight: 600;
}

.deal-menu-item.is-active { border-left: 3px solid #202020; padding-left: 21px; }

@media (max-width: 1180px) {
  .deal-composition-body { grid-template-columns: 390px minmax(560px, 1fr); }
}
