.messages-c,
.saved-c,
.tools-c {
  overflow: hidden;
  position: relative;
}

.messages-c .hero-header,
.saved-c .hero-header,
.tools-c .hero-header {
  margin-bottom: 0.5rem;
}

.messages-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(var(--primary-color-rgb), 0.12) 0.5px,
    transparent 0
  );
  background-size: 24px 24px;
  opacity: 0.28;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.messages-c:hover .messages-dots,
.saved-c:hover .messages-dots,
.tools-c:hover .messages-dots {
  opacity: 0.5;
}

.messages-stack {
  position: relative;
  flex: 1;
  min-height: 170px;
  margin-top: 0.5rem;
  z-index: 10;
}

.messages-stack::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 100px;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(var(--primary-color-rgb), 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.messages-c:hover .messages-stack::after,
.saved-c:hover .messages-stack::after,
.tools-c:hover .messages-stack::after {
  opacity: 1;
}

.messages-c .scard,
.saved-c .scard,
.tools-c .scard {
  position: absolute;
  left: 50%;
  border-radius: 12px;
  background: var(--white-color);
  border: 1px solid var(--color-neutral-surface-cool);
  transition: all 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  transform-origin: center bottom;
  box-shadow:
    0 1px 3px rgba(var(--black-color-rgb), 0.04),
    0 1px 2px rgba(var(--black-color-rgb), 0.03);
}

.messages-c .sc1,
.saved-c .sc1,
.tools-c .sc1 {
  width: 78%;
  max-width: 300px;
  height: 60px;
  margin-left: -39%;
  top: 4px;
  border-color: var(--color-neutral-surface-cooler);
  opacity: 0.45;
  transform: rotate(-6deg) scale(0.86);
}

.messages-c .sc2,
.saved-c .sc2,
.tools-c .sc2 {
  width: 86%;
  max-width: 330px;
  height: 70px;
  margin-left: -43%;
  top: 18px;
  border-color: var(--color-neutral-surface-cool);
  opacity: 0.6;
  transform: rotate(-2.5deg) scale(0.92);
}

.messages-c .sc3,
.saved-c .sc3,
.tools-c .sc3 {
  width: 92%;
  max-width: 360px;
  height: 84px;
  margin-left: -46%;
  top: 38px;
  border-color: var(--color-neutral-surface-cool);
  opacity: 0.82;
  transform: rotate(1deg);
  box-shadow:
    0 4px 16px rgba(var(--black-color-rgb), 0.06),
    0 1px 4px rgba(var(--black-color-rgb), 0.04);
}

.messages-c .sc4,
.saved-c .sc4,
.tools-c .sc4 {
  width: 98%;
  max-width: 390px;
  height: 100px;
  margin-left: -49%;
  top: 62px;
  border-color: var(--color-neutral-surface-cool);
  opacity: 1;
  transform: rotate(2.5deg) scale(1.01);
  box-shadow:
    0 12px 40px rgba(var(--black-color-rgb), 0.08),
    0 4px 12px rgba(var(--black-color-rgb), 0.04);
}

.messages-c .sc-inner,
.saved-c .sc-inner,
.tools-c .sc-inner {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

@media (min-width: 640px) {
  .messages-c .sc-inner,
  .saved-c .sc-inner,
  .tools-c .sc-inner {
    padding: 14px 16px;
    gap: 9px;
  }
}

.messages-c .sc-dot,
.saved-c .sc-dot,
.tools-c .sc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.messages-c .sc-line,
.saved-c .sc-line,
.tools-c .sc-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(var(--primary-color-rgb), 0.1);
  transition: all 0.4s ease;
}

.messages-c .sc-line-2,
.saved-c .sc-line-2,
.tools-c .sc-line-2 {
  height: 3px;
  border-radius: 2px;
  background: rgba(var(--primary-color-rgb), 0.1);
  width: 55%;
  transition: all 0.4s ease;
  opacity: 0.7;
}

.messages-c .sc-row,
.saved-c .sc-row,
.tools-c .sc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messages-c .sc-tag,
.saved-c .sc-tag,
.tools-c .sc-tag {
  width: 36px;
  height: 13px;
  border-radius: 6px;
  background: rgba(var(--primary-color-rgb), 0.1);
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  transition: all 0.4s ease;
}

.messages-c:hover .sc1,
.saved-c:hover .sc1,
.tools-c:hover .sc1 {
  transform: rotate(-10deg) translateY(-16px) scale(0.84);
  opacity: 0.3;
}

.messages-c:hover .sc2,
.saved-c:hover .sc2,
.tools-c:hover .sc2 {
  transform: rotate(-5deg) translateY(-10px) scale(0.9);
  opacity: 0.5;
}

.messages-c:hover .sc3,
.saved-c:hover .sc3,
.tools-c:hover .sc3 {
  transform: rotate(0deg) translateY(-5px) scale(0.96);
  opacity: 0.72;
}

.messages-c:hover .sc4,
.saved-c:hover .sc4,
.tools-c:hover .sc4 {
  transform: rotate(0deg) translateY(-9px) scale(1.04);
  border-color: rgba(var(--primary-color-rgb), 0.3);
  box-shadow:
    0 20px 60px rgba(var(--black-color-rgb), 0.1),
    0 8px 20px rgba(var(--black-color-rgb), 0.05),
    0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
}

.messages-c:hover .sc-dot,
.saved-c:hover .sc-dot,
.tools-c:hover .sc-dot {
  background: rgba(var(--primary-color-rgb), 0.6);
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.15);
}

.messages-c:hover .sc-line,
.saved-c:hover .sc-line,
.tools-c:hover .sc-line {
  background: rgba(var(--primary-color-rgb), 0.2);
}

.messages-c:hover .sc-line-2,
.saved-c:hover .sc-line-2,
.tools-c:hover .sc-line-2 {
  background: rgba(var(--primary-color-rgb), 0.15);
}

.messages-c:hover .sc-tag,
.saved-c:hover .sc-tag,
.tools-c:hover .sc-tag {
  background: rgba(var(--primary-color-rgb), 0.15);
  border-color: rgba(var(--primary-color-rgb), 0.2);
}

.candidates-c {
  overflow: hidden;
}

.candidates-c:hover .candidates-search-mock {
  background: rgba(var(--primary-color-rgb), 0.05);
  border-color: rgba(var(--primary-color-rgb), 0.22);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.06);
}

.candidates-c:hover .candidates-search-icon {
  color: var(--color-brand-green-3dcc4e);
}

@keyframes candidateCaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.candidates-c:hover .candidates-search-kbd {
  color: rgba(var(--black-color-rgb), 0.6);
  border-color: rgba(var(--black-color-rgb), 0.12);
}

.candidates-c:hover .candidate-row {
  border-color: rgba(var(--black-color-rgb), 0.08);
  background: rgba(var(--black-color-rgb), 0.025);
}

.candidates-c:hover .candidate-row:nth-child(1) {
  transform: translateX(3px);
  border-color: rgba(var(--primary-color-rgb), 0.25);
  background: rgba(var(--primary-color-rgb), 0.04);
}

.candidates-c:hover .candidate-av-a {
  background: rgba(var(--primary-color-rgb), 0.18);
  border-color: rgba(var(--primary-color-rgb), 0.35);
  box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.25);
}

.candidates-c:hover .candidate-av-b {
  background: rgba(var(--info-color-rgb), 0.14);
  border-color: rgba(var(--info-color-rgb), 0.3);
}

.candidates-c:hover .candidate-av-c {
  background: rgba(var(--purple-color-rgb), 0.13);
  border-color: rgba(var(--purple-color-rgb), 0.28);
}

.candidates-c:hover .candidate-name-bar {
  background: rgba(var(--black-color-rgb), 0.15);
}

.candidates-c:hover .candidate-role-bar {
  background: rgba(var(--black-color-rgb), 0.1);
}

.candidates-c:hover .candidate-match-high {
  color: var(--success-color);
  background: rgba(var(--success-color-rgb), 0.14);
  border-color: rgba(var(--success-color-rgb), 0.3);
  box-shadow: 0 0 10px rgba(var(--success-color-rgb), 0.2);
}

.candidates-c:hover .candidate-match-mid {
  color: var(--color-brand-green-3dcc4e);
  background: rgba(var(--primary-color-rgb), 0.12);
  border-color: rgba(var(--primary-color-rgb), 0.25);
}

main[data-view="design"] #search-candidates-card {
  flex: 0 0 0px !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  border: none !important;
  transition:
    flex 500ms cubic-bezier(0.22, 1, 0.36, 1),
    height 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms ease,
    margin 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

#search-candidates-card {
  transition:
    flex 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 400ms ease,
    box-shadow 400ms ease,
    background 400ms ease;
}

@media (max-width: 639px) {
  main[data-view="dashboard"] .messages-stack,
  main[data-view="dashboard"] .messages-dots,
  main[data-view="user-dashboard"] .messages-stack,
  main[data-view="user-dashboard"] .messages-dots {
    display: none !important;
  }
}
