.pc-message-root {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}

.pc-message-item {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(123, 181, 255, 0.18);
  border-radius: 12px;
  color: #eff5ff;
  background: rgba(10, 20, 35, 0.92);
  box-shadow: 0 18px 40px rgba(0, 8, 20, 0.34);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: pc-message-in 0.22s ease;
}

.pc-message-item::before {
  content: "i";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2f8cff, #18c0ff);
}

.pc-message-item.error::before {
  content: "!";
  background: linear-gradient(135deg, #ff7a59, #ef5b5b);
}

.pc-message-item.success::before {
  content: "√";
  background: linear-gradient(135deg, #14b87a, #34d399);
}

.pc-message-item.warning::before {
  content: "!";
  background: linear-gradient(135deg, #ffb347, #ff8f3f);
}

.pc-message-text {
  line-height: 1.6;
  font-size: 14px;
  word-break: break-word;
}

.pc-message-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: pc-message-bar linear forwards;
  background: linear-gradient(90deg, #2f8cff, #18c0ff);
}

.pc-message-item.error .pc-message-bar {
  background: linear-gradient(90deg, #ff7a59, #ef5b5b);
}

.pc-message-item.success .pc-message-bar {
  background: linear-gradient(90deg, #14b87a, #34d399);
}

.pc-message-item.warning .pc-message-bar {
  background: linear-gradient(90deg, #ffb347, #ff8f3f);
}

@keyframes pc-message-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pc-message-bar {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}
